1 2010-01-18 Bruno Haible <bruno@clisp.org>
3 New modules for common <math.h> functions.
4 * m4/mathfunc.m4: New file.
5 * modules/acos: New file.
6 * modules/asin: New file.
7 * modules/atan: New file.
8 * modules/atan2: New file.
9 * modules/cbrt: New file.
10 * modules/copysign: New file.
11 * modules/cos: New file.
12 * modules/cosh: New file.
13 * modules/erf: New file.
14 * modules/erfc: New file.
15 * modules/exp: New file.
16 * modules/fabs: New file.
17 * modules/fmod: New file.
18 * modules/hypot: New file.
19 * modules/j0: New file.
20 * modules/j1: New file.
21 * modules/jn: New file.
22 * modules/ldexp: New file.
23 * modules/lgamma: New file.
24 * modules/log: New file.
25 * modules/log10: New file.
26 * modules/log1p: New file.
27 * modules/logb: New file.
28 * modules/modf: New file.
29 * modules/nextafter: New file.
30 * modules/pow: New file.
31 * modules/remainder: New file.
32 * modules/rint: New file.
33 * modules/sin: New file.
34 * modules/sinh: New file.
35 * modules/sqrt: New file.
36 * modules/tan: New file.
37 * modules/tanh: New file.
38 * modules/y0: New file.
39 * modules/y1: New file.
40 * modules/yn: New file.
41 * doc/posix-functions/acos.texi: Mention the 'acos' module.
42 * doc/posix-functions/asin.texi: Mention the 'asin' module.
43 * doc/posix-functions/atan.texi: Mention the 'atan' module.
44 * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
45 * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
46 * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
47 * doc/posix-functions/cos.texi: Mention the 'cos' module.
48 * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
49 * doc/posix-functions/erf.texi: Mention the 'erf' module.
50 * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
51 * doc/posix-functions/exp.texi: Mention the 'exp' module.
52 * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
53 * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
54 * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
55 * doc/posix-functions/j0.texi: Mention the 'j0' module.
56 * doc/posix-functions/j1.texi: Mention the 'j1' module.
57 * doc/posix-functions/jn.texi: Mention the 'jn' module.
58 * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
59 * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
60 * doc/posix-functions/log.texi: Mention the 'log' module.
61 * doc/posix-functions/log10.texi: Mention the 'log10' module.
62 * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
63 * doc/posix-functions/logb.texi: Mention the 'logb' module.
64 * doc/posix-functions/modf.texi: Mention the 'modf' module.
65 * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
66 * doc/posix-functions/pow.texi: Mention the 'pow' module.
67 * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
68 * doc/posix-functions/rint.texi: Mention the 'rint' module.
69 * doc/posix-functions/sin.texi: Mention the 'sin' module.
70 * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
71 * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
72 * doc/posix-functions/tan.texi: Mention the 'tan' module.
73 * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
74 * doc/posix-functions/y0.texi: Mention the 'y0' module.
75 * doc/posix-functions/y1.texi: Mention the 'y1' module.
76 * doc/posix-functions/yn.texi: Mention the 'yn' module.
78 2010-01-18 Jim Meyering <meyering@redhat.com>
80 ignore-value: relax license to LGPLv2+
81 * modules/ignore-value (License): Relax to LGPLv2+.
83 getdate: don't leak when TZ contains two or more '"'s
84 * lib/getdate.y (get_date): Don't leak a copy of TZ for each
85 double quote in TZ after the first one.
87 readtokens: do not leak internal token_lengths buffer
88 * lib/readtokens.c (readtokens): Free the local, lengths,
89 when the supplied "token_lengths" parameter is NULL.
91 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
93 Fix a couple of missing LIBTHREAD link failures on AIX.
94 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
96 * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
98 Link test-poll against INET_PTON_LIB.
99 * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
100 for inet_pton on Solaris 10.
102 2010-01-17 Bruno Haible <bruno@clisp.org>
104 unistdio/*-sprintf: Fix typo in module description.
105 * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
106 * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
107 * modules/unistdio/u16-sprintf (Depends-on): Likewise.
108 * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
109 * modules/unistdio/u32-sprintf (Depends-on): Likewise.
110 * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
111 * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
112 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
116 gnulib-tool: fix filelist for AIX, HP-UX ksh.
117 * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
118 variables in shell case patterns, for AIX and HP-UX ksh.
120 Split large sed scripts, for HP-UX sed.
121 * modules/stdio: Split sed scripts around 50 sed commands,
122 to avoid HP-UX limit of 99 commands, in the near future.
123 * modules/string: Likewise.
124 * modules/unistd: Likewise.
126 gnulib-tool: avoid writing in the current directory.
127 * gnulib-tool (func_emit_lib_Makefile_am)
128 (func_emit_tests_Makefile_am): Put temporary files in $tmp,
129 not in the current directory, so concurrent gnulib-tool
130 instances do not interfere.
132 2010-01-16 Jim Meyering <meyering@redhat.com>
134 doc: update users.txt
135 * users.txt: Add grep.
136 (diffutils, gzip): Update URLs.
138 2010-01-12 Bruno Haible <bruno@clisp.org>
140 posix_spawn: Avoid test failure on Cygwin.
141 * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
143 Reported by Simon Josefsson.
145 2010-01-12 Bruno Haible <bruno@clisp.org>
147 * tests/test-cond.c (main): When skipping the test, show the reason.
149 2010-01-12 Simon Josefsson <simon@josefsson.org>
151 * lib/striconv.c (str_cd_iconv): Avoid if before free.
153 2010-01-12 Simon Josefsson <simon@josefsson.org>
155 * top/maint.mk (VC_LIST_EXCEPT): Filter list through
156 VC_LIST_ALWAYS_EXCLUDE_REGEX.
158 2010-01-12 Eric Blake <ebb9@byu.net>
160 build: guarantee AS_VAR_IF
161 * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
162 (gl_AS_VAR_IF): Move...
163 * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
164 Reported by Simon Josefsson.
166 2010-01-12 Simon Josefsson <simon@josefsson.org>
168 * lib/stdio.in.h: Fix typo.
170 2010-01-12 Simon Josefsson <simon@josefsson.org>
172 * m4/gc.m4: Check if linking to libgcrypt also needs linking to
175 2010-01-12 Simon Josefsson <simon@josefsson.org>
177 * tests/test-xalloc-die.sh: Use $EXEEXT.
179 2010-01-12 Simon Josefsson <simon@josefsson.org>
180 Bruno Haible <bruno@clisp.org>
182 getlogin, getlogin_r: Avoid test failure.
183 * tests/test-getlogin.c: Include <stdio.h>.
184 (main): Skip the test when the function fails because stdin is not a
186 * tests/test-getlogin_r.c: Include <stdio.h>.
187 (main): Skip the test when the function fails because stdin is not a
190 2010-01-11 Eric Blake <ebb9@byu.net>
192 tests: avoid more large file warnings
193 * tests/test-fflush.c: Avoid warning about ftell use.
194 * tests/test-fseek.c: Avoid warning about fseek use.
196 2010-01-10 Bruno Haible <bruno@clisp.org>
198 nproc: Work better on Linux when /proc and /sys are not mounted.
199 * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
200 as lower bound when, on glibc/Linux systems,
201 sysconf (_SC_NPROCESSORS_CONF) returns 1.
202 Suggested by Pádraig Brady <P@draigbrady.com>.
203 Reported by Dmitry V. Levin <ldv@altlinux.org>.
206 * lib/nproc.c (num_processors_via_affinity_mask): New function,
207 extracted from num_processors.
208 (num_processors): Call it.
210 2010-01-11 Jim Meyering <meyering@redhat.com>
212 utimecmp: avoid new warning from upcoming gcc-4.5.0
213 * lib/utimecmp.c (BILLION): Define using #define rather than an
214 anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
216 2010-01-11 Eric Blake <ebb9@byu.net>
218 math: add portability warnings for classification macros
219 * modules/math (Depends-on): Add warn-on-use.
220 (Makefile.am): Provide new substitutions.
221 * m4/math_h.m4 (gl_MATH_H): Require inline.
222 * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
223 (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
224 (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
227 unistd: warn on use of environ without module
228 * modules/unistd (Depends-on): Add warn-on-use.
229 (Makefile.am): Provide new substitutions.
230 * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
231 * lib/unistd.in.h (environ): Wrap with a warning helper function.
233 stdio: warn on suspicious uses
234 * modules/stdio (Depends-on): Add warn-on-use.
235 (Makefile.am): Provide new substitutions.
236 * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
238 * lib/stdio.in.h (gets): Always warn on use.
239 (fseek, ftell): Adjust when warnings are issued, and honor
240 _GL_NO_LARGE_FILES as a way to silence the warning.
241 * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
242 any warning about large file offsets.
243 * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
244 * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
245 * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
246 * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
247 * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
248 * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
249 * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
250 * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
252 warn-on-use: new module
253 * modules/warn-on-use: New file.
254 * build-aux/warn-on-use.h: Likewise.
255 * m4/warn-on-use.m4: Likewise.
256 * MODULES.html.sh (Support for building): Mention it.
258 2010-01-10 Bruno Haible <bruno@clisp.org>
260 Tests for module 'unistr/u32-strdup'.
261 * modules/unistr/u32-strdup-tests: New file.
262 * tests/unistr/test-u32-strdup.c: New file.
264 Tests for module 'unistr/u16-strdup'.
265 * modules/unistr/u16-strdup-tests: New file.
266 * tests/unistr/test-u16-strdup.c: New file.
268 Tests for module 'unistr/u8-strdup'.
269 * modules/unistr/u8-strdup-tests: New file.
270 * tests/unistr/test-u8-strdup.c: New file.
271 * tests/unistr/test-strdup.h: New file.
273 Tests for module 'unistr/u32-strncmp'.
274 * modules/unistr/u32-strncmp-tests: New file.
275 * tests/unistr/test-u32-strncmp.c: New file.
277 Tests for module 'unistr/u16-strncmp'.
278 * modules/unistr/u16-strncmp-tests: New file.
279 * tests/unistr/test-u16-strncmp.c: New file.
281 Tests for module 'unistr/u8-strncmp'.
282 * modules/unistr/u8-strncmp-tests: New file.
283 * tests/unistr/test-u8-strncmp.c: New file.
284 * tests/unistr/test-strncmp.h: New file.
286 Tests for module 'unistr/u32-strcoll'.
287 * modules/unistr/u32-strcoll-tests: New file.
288 * tests/unistr/test-u32-strcoll.c: New file.
290 Tests for module 'unistr/u16-strcoll'.
291 * modules/unistr/u16-strcoll-tests: New file.
292 * tests/unistr/test-u16-strcoll.c: New file.
294 Tests for module 'unistr/u8-strcoll'.
295 * modules/unistr/u8-strcoll-tests: New file.
296 * tests/unistr/test-u8-strcoll.c: New file.
298 Tests for module 'unistr/u32-strcmp'.
299 * modules/unistr/u32-strcmp-tests: New file.
300 * tests/unistr/test-u32-strcmp.c: New file.
301 * tests/unistr/test-u32-strcmp.h: New file.
303 Tests for module 'unistr/u16-strcmp'.
304 * modules/unistr/u16-strcmp-tests: New file.
305 * tests/unistr/test-u16-strcmp.c: New file.
306 * tests/unistr/test-u16-strcmp.h: New file.
308 Tests for module 'unistr/u8-strcmp'.
309 * modules/unistr/u8-strcmp-tests: New file.
310 * tests/unistr/test-u8-strcmp.c: New file.
311 * tests/unistr/test-u8-strcmp.h: New file.
312 * tests/unistr/test-strcmp.h: New file.
314 Tests for module 'unistr/u32-strncat'.
315 * modules/unistr/u32-strncat-tests: New file.
316 * tests/unistr/test-u32-strncat.c: New file.
318 Tests for module 'unistr/u16-strncat'.
319 * modules/unistr/u16-strncat-tests: New file.
320 * tests/unistr/test-u16-strncat.c: New file.
322 Tests for module 'unistr/u8-strncat'.
323 * modules/unistr/u8-strncat-tests: New file.
324 * tests/unistr/test-u8-strncat.c: New file.
325 * tests/unistr/test-strncat.h: New file.
327 Tests for module 'unistr/u32-strcat'.
328 * modules/unistr/u32-strcat-tests: New file.
329 * tests/unistr/test-u32-strcat.c: New file.
331 Tests for module 'unistr/u16-strcat'.
332 * modules/unistr/u16-strcat-tests: New file.
333 * tests/unistr/test-u16-strcat.c: New file.
335 Tests for module 'unistr/u8-strcat'.
336 * modules/unistr/u8-strcat-tests: New file.
337 * tests/unistr/test-u8-strcat.c: New file.
338 * tests/unistr/test-strcat.h: New file.
340 Tests for module 'unistr/u32-stpncpy'.
341 * modules/unistr/u32-stpncpy-tests: New file.
342 * tests/unistr/test-u32-stpncpy.c: New file.
344 Tests for module 'unistr/u16-stpncpy'.
345 * modules/unistr/u16-stpncpy-tests: New file.
346 * tests/unistr/test-u16-stpncpy.c: New file.
348 Tests for module 'unistr/u8-stpncpy'.
349 * modules/unistr/u8-stpncpy-tests: New file.
350 * tests/unistr/test-u8-stpncpy.c: New file.
351 * tests/unistr/test-stpncpy.h: New file.
353 Tests for module 'unistr/u32-strncpy'.
354 * modules/unistr/u32-strncpy-tests: New file.
355 * tests/unistr/test-u32-strncpy.c: New file.
357 Tests for module 'unistr/u16-strncpy'.
358 * modules/unistr/u16-strncpy-tests: New file.
359 * tests/unistr/test-u16-strncpy.c: New file.
361 Tests for module 'unistr/u8-strncpy'.
362 * modules/unistr/u8-strncpy-tests: New file.
363 * tests/unistr/test-u8-strncpy.c: New file.
364 * tests/unistr/test-strncpy.h: New file.
366 Tests for module 'unistr/u32-stpcpy'.
367 * modules/unistr/u32-stpcpy-tests: New file.
368 * tests/unistr/test-u32-stpcpy.c: New file.
370 Tests for module 'unistr/u16-stpcpy'.
371 * modules/unistr/u16-stpcpy-tests: New file.
372 * tests/unistr/test-u16-stpcpy.c: New file.
374 Tests for module 'unistr/u8-stpcpy'.
375 * modules/unistr/u8-stpcpy-tests: New file.
376 * tests/unistr/test-u8-stpcpy.c: New file.
377 * tests/unistr/test-stpcpy.h: New file.
379 Tests for module 'unistr/u32-strcpy'.
380 * modules/unistr/u32-strcpy-tests: New file.
381 * tests/unistr/test-u32-strcpy.c: New file.
383 Tests for module 'unistr/u16-strcpy'.
384 * modules/unistr/u16-strcpy-tests: New file.
385 * tests/unistr/test-u16-strcpy.c: New file.
387 Tests for module 'unistr/u8-strcpy'.
388 * modules/unistr/u8-strcpy-tests: New file.
389 * tests/unistr/test-u8-strcpy.c: New file.
390 * tests/unistr/test-strcpy.h: New file.
392 Tests for module 'unistr/u32-strnlen'.
393 * modules/unistr/u32-strnlen-tests: New file.
394 * tests/unistr/test-u32-strnlen.c: New file.
396 Tests for module 'unistr/u16-strnlen'.
397 * modules/unistr/u16-strnlen-tests: New file.
398 * tests/unistr/test-u16-strnlen.c: New file.
400 Tests for module 'unistr/u8-strnlen'.
401 * modules/unistr/u8-strnlen-tests: New file.
402 * tests/unistr/test-u8-strnlen.c: New file.
403 * tests/unistr/test-strnlen.h: New file.
405 Tests for module 'unistr/u32-strlen'.
406 * modules/unistr/u32-strlen-tests: New file.
407 * tests/unistr/test-u32-strlen.c: New file.
409 Tests for module 'unistr/u16-strlen'.
410 * modules/unistr/u16-strlen-tests: New file.
411 * tests/unistr/test-u16-strlen.c: New file.
413 Tests for module 'unistr/u8-strlen'.
414 * modules/unistr/u8-strlen-tests: New file.
415 * tests/unistr/test-u8-strlen.c: New file.
417 Tests for module 'unistr/u32-prev'.
418 * modules/unistr/u32-prev-tests: New file.
419 * tests/unistr/test-u32-prev.c: New file.
421 Tests for module 'unistr/u16-prev'.
422 * modules/unistr/u16-prev-tests: New file.
423 * tests/unistr/test-u16-prev.c: New file.
425 Tests for module 'unistr/u8-prev'.
426 * modules/unistr/u8-prev-tests: New file.
427 * tests/unistr/test-u8-prev.c: New file.
429 Tests for module 'unistr/u32-next'.
430 * modules/unistr/u32-next-tests: New file.
431 * tests/unistr/test-u32-next.c: New file.
433 Tests for module 'unistr/u16-next'.
434 * modules/unistr/u16-next-tests: New file.
435 * tests/unistr/test-u16-next.c: New file.
437 Tests for module 'unistr/u8-next'.
438 * modules/unistr/u8-next-tests: New file.
439 * tests/unistr/test-u8-next.c: New file.
441 Tests for module 'unistr/u32-strmbtouc'.
442 * modules/unistr/u32-strmbtouc-tests: New file.
443 * tests/unistr/test-u32-strmbtouc.c: New file.
445 Tests for module 'unistr/u16-strmbtouc'.
446 * modules/unistr/u16-strmbtouc-tests: New file.
447 * tests/unistr/test-u16-strmbtouc.c: New file.
449 Tests for module 'unistr/u8-strmbtouc'.
450 * modules/unistr/u8-strmbtouc-tests: New file.
451 * tests/unistr/test-u8-strmbtouc.c: New file.
453 Tests for module 'unistr/u32-strmblen'.
454 * modules/unistr/u32-strmblen-tests: New file.
455 * tests/unistr/test-u32-strmblen.c: New file.
457 Tests for module 'unistr/u16-strmblen'.
458 * modules/unistr/u16-strmblen-tests: New file.
459 * tests/unistr/test-u16-strmblen.c: New file.
461 Tests for module 'unistr/u8-strmblen'.
462 * modules/unistr/u8-strmblen-tests: New file.
463 * tests/unistr/test-u8-strmblen.c: New file.
465 Tests for module 'unistr/u32-cpy-alloc'.
466 * modules/unistr/u32-cpy-alloc-tests: New file.
467 * tests/unistr/test-u32-cpy-alloc.c: New file.
469 Tests for module 'unistr/u16-cpy-alloc'.
470 * modules/unistr/u16-cpy-alloc-tests: New file.
471 * tests/unistr/test-u16-cpy-alloc.c: New file.
473 Tests for module 'unistr/u8-cpy-alloc'.
474 * modules/unistr/u8-cpy-alloc-tests: New file.
475 * tests/unistr/test-u8-cpy-alloc.c: New file.
476 * tests/unistr/test-cpy-alloc.h: New file.
478 Tests for module 'unistr/u32-mbsnlen'.
479 * modules/unistr/u32-mbsnlen-tests: New file.
480 * tests/unistr/test-u32-mbsnlen.c: New file.
482 Tests for module 'unistr/u16-mbsnlen'.
483 * modules/unistr/u16-mbsnlen-tests: New file.
484 * tests/unistr/test-u16-mbsnlen.c: New file.
486 Tests for module 'unistr/u8-mbsnlen'.
487 * modules/unistr/u8-mbsnlen-tests: New file.
488 * tests/unistr/test-u8-mbsnlen.c: New file.
490 Tests for module 'unistr/u32-chr'.
491 * modules/unistr/u32-chr-tests: New file.
492 * tests/unistr/test-u32-chr.c: New file.
494 Tests for module 'unistr/u16-chr'.
495 * modules/unistr/u16-chr-tests: New file.
496 * tests/unistr/test-u16-chr.c: New file.
498 Tests for module 'unistr/u8-chr'.
499 * modules/unistr/u8-chr-tests: New file.
500 * tests/unistr/test-u8-chr.c: New file.
501 * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
503 Tests for module 'unistr/u32-cmp2'.
504 * modules/unistr/u32-cmp2-tests: New file.
505 * tests/unistr/test-u32-cmp2.c: New file.
507 Tests for module 'unistr/u16-cmp2'.
508 * modules/unistr/u16-cmp2-tests: New file.
509 * tests/unistr/test-u16-cmp2.c: New file.
511 Tests for module 'unistr/u8-cmp2'.
512 * modules/unistr/u8-cmp2-tests: New file.
513 * tests/unistr/test-u8-cmp2.c: New file.
514 * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
516 Tests for module 'unistr/u32-cmp'.
517 * modules/unistr/u32-cmp-tests: New file.
518 * tests/unistr/test-u32-cmp.c: New file.
520 Tests for module 'unistr/u16-cmp'.
521 * modules/unistr/u16-cmp-tests: New file.
522 * tests/unistr/test-u16-cmp.c: New file.
524 Tests for module 'unistr/u8-cmp'.
525 * modules/unistr/u8-cmp-tests: New file.
526 * tests/unistr/test-u8-cmp.c: New file.
527 * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
529 Tests for module 'unistr/u32-set'.
530 * modules/unistr/u32-set-tests: New file.
531 * tests/unistr/test-u32-set.c: New file.
533 Tests for module 'unistr/u16-set'.
534 * modules/unistr/u16-set-tests: New file.
535 * tests/unistr/test-u16-set.c: New file.
537 Tests for module 'unistr/u8-set'.
538 * modules/unistr/u8-set-tests: New file.
539 * tests/unistr/test-u8-set.c: New file.
540 * tests/unistr/test-set.h: New file.
542 Tests for module 'unistr/u32-move'.
543 * modules/unistr/u32-move-tests: New file.
544 * tests/unistr/test-u32-move.c: New file.
546 Tests for module 'unistr/u16-move'.
547 * modules/unistr/u16-move-tests: New file.
548 * tests/unistr/test-u16-move.c: New file.
550 Tests for module 'unistr/u8-move'.
551 * modules/unistr/u8-move-tests: New file.
552 * tests/unistr/test-u8-move.c: New file.
553 * tests/unistr/test-move.h: New file.
555 Tests for module 'unistr/u32-cpy'.
556 * modules/unistr/u32-cpy-tests: New file.
557 * tests/unistr/test-u32-cpy.c: New file.
559 Tests for module 'unistr/u16-cpy'.
560 * modules/unistr/u16-cpy-tests: New file.
561 * tests/unistr/test-u16-cpy.c: New file.
563 Tests for module 'unistr/u8-cpy'.
564 * modules/unistr/u8-cpy-tests: New file.
565 * tests/unistr/test-u8-cpy.c: New file.
566 * tests/unistr/test-cpy.h: New file.
568 2010-01-09 Bruno Haible <bruno@clisp.org>
570 Tests for module 'unistr/u32-uctomb'.
571 * modules/unistr/u32-uctomb-tests: New file.
572 * tests/unistr/test-u32-uctomb.c: New file.
574 Tests for module 'unistr/u16-uctomb'.
575 * modules/unistr/u16-uctomb-tests: New file.
576 * tests/unistr/test-u16-uctomb.c: New file.
578 Tests for module 'unistr/u8-uctomb'.
579 * modules/unistr/u8-uctomb-tests: New file.
580 * tests/unistr/test-u8-uctomb.c: New file.
582 Tests for module 'unistr/u32-mbtoucr'.
583 * modules/unistr/u32-mbtoucr-tests: New file.
584 * tests/unistr/test-u32-mbtoucr.c: New file.
586 Tests for module 'unistr/u16-mbtoucr'.
587 * modules/unistr/u16-mbtoucr-tests: New file.
588 * tests/unistr/test-u16-mbtoucr.c: New file.
590 Tests for module 'unistr/u8-mbtoucr'.
591 * modules/unistr/u8-mbtoucr-tests: New file.
592 * tests/unistr/test-u8-mbtoucr.c: New file.
594 Tests for module 'unistr/u32-mbtouc'.
595 * modules/unistr/u32-mbtouc-tests: New file.
596 * tests/unistr/test-u32-mbtouc.c: New file.
598 Tests for module 'unistr/u16-mbtouc'.
599 * modules/unistr/u16-mbtouc-tests: New file.
600 * tests/unistr/test-u16-mbtouc.c: New file.
602 Tests for module 'unistr/u8-mbtouc'.
603 * modules/unistr/u8-mbtouc-tests: New file.
604 * tests/unistr/test-u8-mbtouc.c: New file.
606 Tests for module 'unistr/u32-mbtouc-unsafe'.
607 * modules/unistr/u32-mbtouc-unsafe-tests: New file.
608 * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
609 * tests/unistr/test-u32-mbtouc.h: New file.
611 Tests for module 'unistr/u16-mbtouc-unsafe'.
612 * modules/unistr/u16-mbtouc-unsafe-tests: New file.
613 * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
614 * tests/unistr/test-u16-mbtouc.h: New file.
616 Tests for module 'unistr/u8-mbtouc-unsafe'.
617 * modules/unistr/u8-mbtouc-unsafe-tests: New file.
618 * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
619 * tests/unistr/test-u8-mbtouc.h: New file.
621 Tests for module 'unistr/u32-mblen'.
622 * modules/unistr/u32-mblen-tests: New file.
623 * tests/unistr/test-u32-mblen.c: New file.
625 Tests for module 'unistr/u16-mblen'.
626 * modules/unistr/u16-mblen-tests: New file.
627 * tests/unistr/test-u16-mblen.c: New file.
629 Tests for module 'unistr/u8-mblen'.
630 * modules/unistr/u8-mblen-tests: New file.
631 * tests/unistr/test-u8-mblen.c: New file.
633 Tests for module 'unistr/u32-to-u16'.
634 * modules/unistr/u32-to-u16-tests: New file.
635 * tests/unistr/test-u32-to-u16.c: New file.
637 Tests for module 'unistr/u32-to-u8'.
638 * modules/unistr/u32-to-u8-tests: New file.
639 * tests/unistr/test-u32-to-u8.c: New file.
641 Tests for module 'unistr/u16-to-u32'.
642 * modules/unistr/u16-to-u32-tests: New file.
643 * tests/unistr/test-u16-to-u32.c: New file.
645 Tests for module 'unistr/u16-to-u8'.
646 * modules/unistr/u16-to-u8-tests: New file.
647 * tests/unistr/test-u16-to-u8.c: New file.
649 Tests for module 'unistr/u8-to-u32'.
650 * modules/unistr/u8-to-u32-tests: New file.
651 * tests/unistr/test-u8-to-u32.c: New file.
653 Tests for module 'unistr/u8-to-u16'.
654 * modules/unistr/u8-to-u16-tests: New file.
655 * tests/unistr/test-u8-to-u16.c: New file.
657 Tests for module 'unistr/u32-check'.
658 * modules/unistr/u32-check-tests: New file.
659 * tests/unistr/test-u32-check.c: New file.
661 Tests for module 'unistr/u16-check'.
662 * modules/unistr/u16-check-tests: New file.
663 * tests/unistr/test-u16-check.c: New file.
665 Tests for module 'unistr/u8-check'.
666 * modules/unistr/u8-check-tests: New file.
667 * tests/unistr/test-u8-check.c: New file.
669 * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
670 (category_equals): New function.
671 (main): Add more tests.
672 * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
674 * tests/unictype/test-bidi_byname.c (main): Add more tests.
676 2010-01-10 Bruno Haible <bruno@clisp.org>
678 unistr/u*-strcoll: Try harder to distinguish different strings.
679 * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
680 compare s1 and s2 to see if they are different.
682 2010-01-10 Bruno Haible <bruno@clisp.org>
684 unistr/u*-stpncpy: Fix the return value.
685 * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
686 description of the return value consistent with stpncpy in glibc.
687 * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
688 written non-NUL unit.
690 2010-01-10 Bruno Haible <bruno@clisp.org>
692 unistr/u*-next: Add missing dependencies.
693 * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
694 * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
695 * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
697 2010-01-10 Bruno Haible <bruno@clisp.org>
699 unistr/u8-mbsnlen: Fix return value for incomplete character.
700 * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
702 * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
703 Remove unistr/u8-mblen.
704 * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
706 * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
707 Remove unistr/u16-mblen.
709 2010-01-10 Bruno Haible <bruno@clisp.org>
711 wchar: Fix compilation error when <wchar.h> is used from coreutils.
712 * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
713 Reported by Brian Gough <bjg@gnu.org> and
714 Chris Clayton <chris2553@googlemail.com> via
715 Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
717 2010-01-09 Bruno Haible <bruno@clisp.org>
719 unistr/u16-to-u32: Reject invalid input.
720 * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
722 * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
723 Remove unistr/u16-mbtouc.
725 unistr/u16-to-u8: Reject invalid input.
726 * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
728 * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
729 Remove unistr/u16-mbtouc.
731 unistr/u8-to-u32: Reject invalid input.
732 * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
734 * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
735 Remove unistr/u8-mbtouc.
737 unistr/u8-to-u16: Reject invalid input.
738 * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
740 * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
741 Remove unistr/u8-mbtouc.
743 2010-01-09 Bruno Haible <bruno@clisp.org>
745 Tests for module 'getlogin'.
746 * modules/getlogin-tests: New file.
747 * tests/test-getlogin.c: New file.
749 New module 'getlogin'.
750 * lib/unistd.in.h (getlogin): New declaration.
751 * lib/getlogin.c: New file.
752 * m4/getlogin.m4: New file.
753 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
755 * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
757 * modules/getlogin: New file.
758 * doc/posix-functions/getlogin.texi: Mention the new module.
759 Reported by John W. Eaton <jwe@gnu.org>.
761 2010-01-09 Bruno Haible <bruno@clisp.org>
763 getlogin_r: Support for native Windows.
764 * lib/getlogin_r.c: Include <windows.h>
765 (getlogin_r): Implement for native Windows.
766 * tests/test-getlogin_r.c (main): Also test with a huge buffer.
767 Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
768 via John W. Eaton <jwe@gnu.org>.
770 2010-01-09 Bruno Haible <bruno@clisp.org>
772 getlogin_r: Small fixes.
773 * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
775 * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
776 before testing whether getlogin_r is declared. No need to set
777 HAVE_DECL_GETLOGIN_R to 1.
778 (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
780 2010-01-09 Bruno Haible <bruno@clisp.org>
782 * lib/unistd.in.h (getlogin_r): Add comment.
784 2010-01-09 Bruno Haible <bruno@clisp.org>
786 Tests for module 'getlogin_r'.
787 * modules/getlogin_r-tests: New file.
788 * tests/test-getlogin_r.c: New file.
790 2010-01-09 Jim Meyering <meyering@redhat.com>
792 maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
793 * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
794 also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
796 2010-01-08 Simon Josefsson <simon@josefsson.org>
798 * lib/dup2.c (rpl_dup2): Improve comment.
800 2010-01-08 Eric Blake <ebb9@byu.net>
802 maint.mk: allow packages to add makefile @@ exceptions
803 * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
804 (sc_makefile_check): Rename...
805 (sc_makefile_at_at_check): ...to this, and use hook.
807 dup2: work around mingw bug
808 * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
809 Reported by Simon Josefsson.
811 2010-01-07 John W. Eaton <jwe@octave.org> (tiny change)
813 glob: Fix C++ compilation.
814 * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
817 2010-01-07 Bruno Haible <bruno@clisp.org>
819 Fix indentation of wctype.in.h, broken since 2007-01-06.
820 * lib/wctype.in.h: Fix indentation of preprocessor directives.
822 2010-01-07 Bruno Haible <bruno@clisp.org>
824 mbslen: Avoid collision with system function.
825 * lib/string.in.h [MirBSD]: Include <wchar.h>.
826 (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
827 * m4/mbslen.m4: New file.
828 * modules/mbslen (Files): Add it.
829 (configure.ac): Invoke gl_MBSLEN.
830 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
831 * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
832 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
833 via Ian Beckwith <ianb@erislabs.net>.
835 2010-01-07 Bruno Haible <bruno@clisp.org>
837 dirent: Document the last fix.
838 * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
840 2010-01-07 Bruno Haible <bruno@clisp.org>
842 stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
843 * lib/stdio.in.h: Include <sys/types.h> unconditionally.
844 * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
846 * doc/posix-headers/stdio.texi: Document the bug of missing types.
847 Reported by Eric Blake.
849 2010-01-07 Bruno Haible <bruno@clisp.org>
851 xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
852 * modules/xlist (Depends-on): Add 'list',
853 * modules/xoset (Depends-on): Add 'oset'.
854 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
856 2010-01-07 Bruno Haible <bruno@clisp.org>
858 * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
859 * doc/posix-functions/strncasecmp.texi: Likewise.
861 2010-01-07 Bruno Haible <bruno@clisp.org>
863 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
865 2010-01-07 John W. Eaton <jwe@octave.org>
867 wctype: allow C++ use
868 * lib/wctype.in.h: Add extern "C" block for C++.
870 2010-01-06 Eric Blake <ebb9@byu.net>
872 maint.mk: detect incorrect GFDL usage
873 * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
875 2010-01-06 Jim Meyering <meyering@redhat.com>
876 and Eric Blake <ebb9@byu.net>
878 maint.mk: ignore multi-line copyright in NEWS
879 * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
881 2010-01-06 Eric Blake <ebb9@byu.net>
883 select: add missing dependency
884 * modules/select-tests (Depends-on): Move sockets dependency...
885 * modules/select (Depends-on): ...here.
886 Reported by Ian Beckwith.
888 doc: regenerate INSTALL
889 * doc/INSTALL: Reflect recent autoconf update.
890 * doc/INSTALL.ISO: Likewise.
891 * doc/INSTALL.UTF-8: Likewise.
893 pread: fix compilation on glibc
894 * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
895 Reported by Ralf Wildenhues.
897 dirent: fix test failure
898 * lib/dirent.in.h (includes): Guarantee ino_t.
899 Reported by Ralf Wildenhues.
901 2010-01-06 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
903 linkat, renameat: avoid bad free
904 * lib/at-func2.c (at_func2): Fix typo.
905 Reported via Ian Beckwith, from http://bugs.debian.org/561117.
907 2010-01-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
909 cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
910 * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
911 to avoid failure of symlink test later.
913 2010-01-06 Eric Blake <ebb9@byu.net>
915 stdio, unistd: guarantee ssize_t
916 * lib/unistd.in.h (includes): Ensure that types required by POSIX
917 2008 are exposed when needed.
918 * lib/stdio.in.h (includes): Likewise.
919 Reported by Ralf Wildenhues.
921 2010-01-06 Paolo Bonzini <bonzini@gnu.org>
923 nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
924 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
925 AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
927 2010-01-06 Jim Meyering <meyering@redhat.com>
929 readtokens: this module *does* require xalloc.h
930 It uses only functions that were omitted by the old syntax-check rule.
931 * lib/readtokens.c: Include "xalloc.h" once again.
932 * modules/readtokens (Depends-on): Add xalloc.
933 This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
935 2010-01-05 Eric Blake <ebb9@byu.net>
937 maint: support 'make announcement' from a VPATH build
938 * top/maint.mk (announcement): Look for correct NEWS file.
940 2010-01-05 Aurelien Jarno <aurelien@aurel32.net> (tiny change)
942 utimens (fdutimens): ignore a negative FD, per contract
943 * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
944 when we have a valid file descriptor. Otherwise, using a brand
945 new glibc (with just-patched futimens that now fails with EBADF)
946 would cause this function to fail with ENOSYS.
947 Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
948 See also http://bugzilla.redhat.com/552320.
950 2010-01-05 Eric Blake <ebb9@byu.net>
952 strcase: document what it provides
953 * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
955 * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
956 Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
958 2010-01-05 Jim Meyering <meyering@redhat.com>
960 maint: remove useless inclusions of "xalloc.h"
961 * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
962 * lib/readtokens.c: Likewise.
963 * lib/same.c: Likewise.
964 * modules/getloadavg (Depends-on): Remove xalloc.
965 * modules/readtokens: Likewise.
966 * modules/same: Likewise.
968 maint.mk: include 4 more function names in alloca.h-checking regexp
969 * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
970 regexp. Before, we would give a false-positive (saying alloca.h
971 is included unnecessarily) when the only uses involved omitted symbols.
973 xalloc.h: use consistent formatting
974 * lib/xalloc.h: Move declarations to start in the first column.
976 2010-01-05 Eric Blake <ebb9@byu.net>
979 * lib/mkdir.c (includes): Drop unused header.
980 Reported by John W. Eaton.
982 2010-01-04 Jim Meyering <meyering@redhat.com>
984 nl_langinfo: avoid configure-time syntax error
985 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
986 for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
987 the empty string. Don't let that provoke a shell syntax error.
989 regcomp, regexec, fnmatch: avoid array bounds read error
990 * lib/regcomp.c (build_equiv_class): From glibc:
991 Use only the low 24 bits of a findidx return value as an index
992 into the weights array. Patch by Ulrich Drepper:
993 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
994 * lib/regexec.c (check_node_accept_bytes): Likewise.
995 * lib/fnmatch_loop.c (FCT): Likewise.
997 regcomp: skip collseq lookup when there are no rules
998 * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
999 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
1001 regcomp: recognize ill-formed { } expressions
1002 * lib/regcomp.c (parse_dup_op): From glibc:
1003 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
1005 regcomp: fix typo in comment
1006 * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
1007 s/satisfy/satisfies/.
1009 regcomp: sync from glibc: remove dead store
1010 * lib/regcomp.c (duplicate_node_closure): Remove useless
1011 search_duplicated_node call and dead store.
1013 regcomp: sync from glibc; always use nl_langinfo
1014 * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
1015 now that gnulib provides it. Recognize UTF8 as well as UTF-8.
1016 * modules/regex (Depends-on): Add nl_langinfo.
1018 2010-01-04 Eric Blake <ebb9@byu.net>
1020 fdopendir: fix configure test
1021 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
1023 2010-01-01 Bruno Haible <bruno@clisp.org>
1025 wchar: Remove unused configure check.
1026 * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
1028 2010-01-01 Eric Blake <ebb9@byu.net>
1030 headers: make check of system header explicit
1031 * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
1032 gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
1034 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1035 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1036 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
1037 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
1039 * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
1041 Suggested by Bruno Haible.
1043 2010-01-01 Jim Meyering <meyering@redhat.com>
1045 ChangeLog: tweak to eliminate unnecessary copyright line
1046 * ChangeLog: Remove a copyright line that was mistakenly updated
1047 by today's update-copyright run. Reported by Eric Blake.
1049 test-update-copyright: don't let envvar setting cause test failure
1050 * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
1052 2010-01-01 Bruno Haible <bruno@clisp.org>
1054 localename: Avoid gcc warning.
1055 * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
1056 function if it is not used.
1058 2010-01-01 Jim Meyering <meyering@redhat.com>
1060 update nearly all FSF copyright year lists to include 2010
1061 Use the same procedure as for 2009, outlined in
1062 http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
1064 version-etc: set COPYRIGHT_YEAR to 2010
1065 * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
1067 2009-12-31 Eric Blake <ebb9@byu.net>
1069 doc: correct availability of cygwin 1.5.x getopt
1070 * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
1072 * doc/posix-functions/opterr.texi (opterr): Likewise.
1073 * doc/posix-functions/optind.texi (optind): Likewise.
1074 * doc/posix-functions/optopt.texi (optopt): Likewise.
1075 * doc/posix-functions/tzname.texi (tzname): Likewise.
1077 openat: update maintainer
1078 * modules/openat (Maintainer): Add myself.
1080 utimens: avoid shadowing warning
1081 * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
1082 buffers into one, to avoid shadowing, as well as avoiding a
1084 Reported by Jim Meyering.
1086 test-dup2: avoid compiler warning
1087 * tests/test-dup2.c (is_inheritable): Only define if used.
1089 2010-01-01 Bruno Haible <bruno@clisp.org>
1091 vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
1092 * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
1093 defined, use wctomb instead of wcrtomb.
1095 2010-01-01 Bruno Haible <bruno@clisp.org>
1097 iconv: Reject native Solaris iconv.
1098 * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
1099 * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
1101 2009-12-31 Bruno Haible <bruno@clisp.org>
1103 * tests/test-signal.c (main): Remove test of 'SIG'.
1105 2009-12-31 Bruno Haible <bruno@clisp.org>
1107 spawn: Fix incomplete fix.
1108 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
1109 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
1110 warnings for GNULIB_POSIXCHECK again.
1111 Reported by Eric Blake.
1113 2009-12-31 Bruno Haible <bruno@clisp.org>
1115 Avoid namespace pollution on glibc systems.
1116 * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
1117 * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
1118 * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
1121 2009-12-31 Bruno Haible <bruno@clisp.org>
1123 * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
1124 (gl_REPLACE_WCHAR_H): Turn into a no-op.
1125 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
1126 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
1127 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
1128 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
1129 * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
1131 2009-12-31 Bruno Haible <bruno@clisp.org>
1133 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
1134 gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
1137 2009-12-31 Bruno Haible <bruno@clisp.org>
1139 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
1142 2009-12-31 Bruno Haible <bruno@clisp.org>
1144 spawn: Fix misapplied patch.
1145 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
1146 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
1147 warnings for GNULIB_POSIXCHECK.
1149 2009-12-31 Bruno Haible <bruno@clisp.org>
1151 times: Update after sys_times changed.
1152 * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
1153 * modules/times (Files): Add it.
1154 (configure.ac): Invoke gl_FUNC_TIMES.
1156 2009-12-31 Bruno Haible <bruno@clisp.org>
1158 Use AC_C_INLINE where necessary.
1159 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
1160 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
1161 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
1162 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
1163 * m4/mbfile.m4 (gl_MBFILE): Likewise.
1164 * m4/mbiter.m4 (gl_MBITER): Likewise.
1165 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1166 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
1167 * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
1168 * modules/u64 (configure.ac): Likewise.
1170 2009-12-31 Bruno Haible <bruno@clisp.org>
1172 Use AC_C_INLINE instead of module 'inline' where possible.
1173 * modules/inline (Description): Clarify purpose.
1174 * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
1175 * modules/count-one-bits (Depends-on): Remove inline.
1176 * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
1177 * modules/openat (Depends-on): Remove inline.
1178 * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
1179 instead of depending on module 'inline'.
1180 * modules/filevercmp (Depends-on, configure.ac): Likewise.
1181 * modules/unicase/cased (Depends-on, configure.ac): Likewise.
1182 * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
1183 * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
1184 * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
1185 * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
1186 * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
1187 * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
1188 * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
1189 * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
1190 * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
1191 * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
1192 * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
1193 * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
1194 * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
1195 * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
1196 * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
1197 * modules/unictype/property-alphabetic (Depends-on, configure.ac):
1199 * modules/unictype/property-ascii-hex-digit (Depends-on,
1200 configure.ac): Likewise.
1201 * modules/unictype/property-bidi-arabic-digit (Depends-on,
1202 configure.ac): Likewise.
1203 * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
1204 configure.ac): Likewise.
1205 * modules/unictype/property-bidi-block-separator (Depends-on,
1206 configure.ac): Likewise.
1207 * modules/unictype/property-bidi-boundary-neutral (Depends-on,
1208 configure.ac): Likewise.
1209 * modules/unictype/property-bidi-common-separator (Depends-on,
1210 configure.ac): Likewise.
1211 * modules/unictype/property-bidi-control (Depends-on, configure.ac):
1213 * modules/unictype/property-bidi-embedding-or-override (Depends-on,
1214 configure.ac): Likewise.
1215 * modules/unictype/property-bidi-eur-num-separator (Depends-on,
1216 configure.ac): Likewise.
1217 * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
1218 configure.ac): Likewise.
1219 * modules/unictype/property-bidi-european-digit (Depends-on,
1220 configure.ac): Likewise.
1221 * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
1222 configure.ac): Likewise.
1223 * modules/unictype/property-bidi-left-to-right (Depends-on,
1224 configure.ac): Likewise.
1225 * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
1226 configure.ac): Likewise.
1227 * modules/unictype/property-bidi-other-neutral (Depends-on,
1228 configure.ac): Likewise.
1229 * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
1231 * modules/unictype/property-bidi-segment-separator (Depends-on,
1232 configure.ac): Likewise.
1233 * modules/unictype/property-bidi-whitespace (Depends-on,
1234 configure.ac): Likewise.
1235 * modules/unictype/property-combining (Depends-on, configure.ac):
1237 * modules/unictype/property-composite (Depends-on, configure.ac):
1239 * modules/unictype/property-currency-symbol (Depends-on,
1240 configure.ac): Likewise.
1241 * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
1242 * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
1244 * modules/unictype/property-default-ignorable-code-point (Depends-on,
1245 configure.ac): Likewise.
1246 * modules/unictype/property-deprecated (Depends-on, configure.ac):
1248 * modules/unictype/property-diacritic (Depends-on, configure.ac):
1250 * modules/unictype/property-extender (Depends-on, configure.ac):
1252 * modules/unictype/property-format-control (Depends-on, configure.ac):
1254 * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
1256 * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
1258 * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
1260 * modules/unictype/property-hex-digit (Depends-on, configure.ac):
1262 * modules/unictype/property-hyphen (Depends-on, configure.ac):
1264 * modules/unictype/property-id-continue (Depends-on, configure.ac):
1266 * modules/unictype/property-id-start (Depends-on, configure.ac):
1268 * modules/unictype/property-ideographic (Depends-on, configure.ac):
1270 * modules/unictype/property-ids-binary-operator (Depends-on,
1271 configure.ac): Likewise.
1272 * modules/unictype/property-ids-trinary-operator (Depends-on,
1273 configure.ac): Likewise.
1274 * modules/unictype/property-ignorable-control (Depends-on,
1275 configure.ac): Likewise.
1276 * modules/unictype/property-iso-control (Depends-on, configure.ac):
1278 * modules/unictype/property-join-control (Depends-on, configure.ac):
1280 * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
1282 * modules/unictype/property-line-separator (Depends-on, configure.ac):
1284 * modules/unictype/property-logical-order-exception (Depends-on,
1285 configure.ac): Likewise.
1286 * modules/unictype/property-lowercase (Depends-on, configure.ac):
1288 * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
1289 * modules/unictype/property-non-break (Depends-on, configure.ac):
1291 * modules/unictype/property-not-a-character (Depends-on, configure.ac):
1293 * modules/unictype/property-numeric (Depends-on, configure.ac):
1295 * modules/unictype/property-other-alphabetic (Depends-on,
1296 configure.ac): Likewise.
1297 * modules/unictype/property-other-default-ignorable-code-point
1298 (Depends-on, configure.ac): Likewise.
1299 * modules/unictype/property-other-grapheme-extend (Depends-on,
1300 configure.ac): Likewise.
1301 * modules/unictype/property-other-id-continue (Depends-on,
1302 configure.ac): Likewise.
1303 * modules/unictype/property-other-id-start (Depends-on, configure.ac):
1305 * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
1307 * modules/unictype/property-other-math (Depends-on, configure.ac):
1309 * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
1311 * modules/unictype/property-paired-punctuation (Depends-on,
1312 configure.ac): Likewise.
1313 * modules/unictype/property-paragraph-separator (Depends-on,
1314 configure.ac): Likewise.
1315 * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
1317 * modules/unictype/property-pattern-white-space (Depends-on,
1318 configure.ac): Likewise.
1319 * modules/unictype/property-private-use (Depends-on, configure.ac):
1321 * modules/unictype/property-punctuation (Depends-on, configure.ac):
1323 * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
1325 * modules/unictype/property-radical (Depends-on, configure.ac):
1327 * modules/unictype/property-sentence-terminal (Depends-on,
1328 configure.ac): Likewise.
1329 * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
1331 * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
1332 * modules/unictype/property-terminal-punctuation (Depends-on,
1333 configure.ac): Likewise.
1334 * modules/unictype/property-titlecase (Depends-on, configure.ac):
1336 * modules/unictype/property-unassigned-code-value (Depends-on,
1337 configure.ac): Likewise.
1338 * modules/unictype/property-unified-ideograph (Depends-on,
1339 configure.ac): Likewise.
1340 * modules/unictype/property-uppercase (Depends-on, configure.ac):
1342 * modules/unictype/property-variation-selector (Depends-on,
1343 configure.ac): Likewise.
1344 * modules/unictype/property-white-space (Depends-on, configure.ac):
1346 * modules/unictype/property-xid-continue (Depends-on, configure.ac):
1348 * modules/unictype/property-xid-start (Depends-on, configure.ac):
1350 * modules/unictype/property-zero-width (Depends-on, configure.ac):
1352 * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
1353 * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
1356 2009-12-31 Bruno Haible <bruno@clisp.org>
1358 Remove unnecessary AC_C_INLINE invocation.
1359 * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
1362 2009-12-31 Jim Meyering <meyering@redhat.com>
1364 maint.mk: don't require explicit gpg_key_ID in cfg.mk
1365 * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
1366 With this change, we can all remove the gpg_key_ID = ... definition
1367 from our respective cfg.mk files.
1369 maint.mk: create announcement template in ~/, not in /tmp
1370 * top/maint.mk (emit_upload_commands): Adjust.
1371 (release-prep): Emit into ~/announce-..., not /tmp/announce-...
1372 Remove temporary file, .ci-msg.
1374 2009-12-31 Eric Blake <ebb9@byu.net>
1376 link-warning: always build headers with link warnings
1377 * modules/arpa_inet (Makefile.am): Always build replacement
1379 * modules/ctype (Makefile.am): Likewise.
1380 * modules/dirent (Makefile.am): Likewise.
1381 * modules/inttypes (Makefile.am): Likewise.
1382 * modules/langinfo (Makefile.am): Likewise.
1383 * modules/locale (Makefile.am): Likewise.
1384 * modules/spawn (Makefile.am): Likewise.
1385 * modules/sys_file (Makefile.am): Likewise.
1386 * modules/sys_ioctl (Makefile.am): Likewise.
1387 * modules/sys_select (Makefile.am): Likewise.
1388 * modules/sys_socket (Makefile.am): Likewise.
1389 * modules/sys_times (Makefile.am): Likewise.
1390 * modules/sys_utsname (Makefile.am): Likewise.
1391 * modules/sys_wait (Makefile.am): Likewise.
1392 * modules/wchar (Makefile.am): Likewise.
1393 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
1394 (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
1395 * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
1396 * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
1397 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
1399 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1400 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1401 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
1403 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
1405 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
1406 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
1407 (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
1408 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1409 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1410 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
1411 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
1412 * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
1413 (gl_WCHAR_H_DEFAULTS): Likewise.
1415 2009-12-31 Eric Blake <ebb9@byu.net>
1417 signal, spawn: use link warnings
1418 * lib/signal.in.h (sigset_t): Make unconditional.
1419 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
1420 (sigpending, sigprocmask, sigaction): Add link warnings.
1421 * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
1422 (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
1423 (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
1424 (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
1425 (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
1426 (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
1427 (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
1428 (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
1429 (posix_spawn_file_actions_destroy)
1430 (posix_spawn_file_actions_addopen)
1431 (posix_spawn_file_actions_addclose)
1432 (posix_spawwn_file_actions_adddup2): Likewise.
1433 * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
1434 * tests/test-signal.c (main): Enhance test.
1436 spawn: improve wrapper support
1437 * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
1438 (gl_SPAWN_H_DEFAULTS): New defaults.
1439 * modules/spawn (Makefile.am): Substitute them.
1440 * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
1441 Only declare if missing or broken.
1443 sys_times, sys_utsname: use include_next
1444 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
1446 (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
1447 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
1448 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
1449 * modules/sys_times (Depends-on): Add include_next.
1450 (Makefile.am): Substitute additional values.
1451 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
1452 * lib/sys_times.in.h (includes): Include native header, if
1454 * lib/sys_utsname.in.h (includes): Likewise.
1455 * tests/test-sys_times.c (main): Enhance test.
1457 fdutimensat: revert prior patch
1458 * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
1460 Reported by Bruno Haible.
1462 2009-12-30 Eric Blake <ebb9@byu.net>
1464 sys_wait: drop link-warning dependency
1465 * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
1466 link-warning efforts.
1467 * lib/sys_wait.in.h: Likewise.
1469 fdutimensat: remove bogus dependency
1470 * modules/fdutimensat (Depends-on): Drop inline.
1473 * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
1475 2009-12-30 Bruno Haible <bruno@clisp.org>
1477 Fix compilation error with Solaris cc.
1478 * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
1479 * lib/unicase/u16-is-invariant.c: Likewise.
1480 * lib/unicase/u32-is-invariant.c: Likewise.
1481 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
1483 2009-12-30 Bruno Haible <bruno@clisp.org>
1486 * tests/test-localename.c (test_locale_name_thread): Skip unavailable
1488 Reported by Simon Josefsson <simon@josefsson.org>.
1490 2009-12-30 Bruno Haible <bruno@clisp.org>
1492 Fix compilation error on most platforms.
1493 * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
1494 Reported by Simon Josefsson <simon@josefsson.org>
1495 and Nelson H. F. Beebe <beebe@math.utah.edu>.
1497 2009-12-30 Eric Blake <ebb9@byu.net>
1499 futimens, utimensat: work around ntfs-3g bug
1500 * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
1501 a ctime bug is present, and expand workaround to cover ntfs-3g.
1502 * lib/utimens.c (fdutimens, lutimens): Likewise.
1503 (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
1504 (validate_timespec): Adjust return value.
1505 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
1506 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
1507 Reported by ctrn3e8 <ctrn3e8@gmail.com>.
1509 2009-12-29 Eric Blake <ebb9@byu.net>
1511 link-warning: make usage consistent
1512 * modules/ctype (Depends-on): Add link-warning.
1513 (Makefile.am): Update rules accordingly.
1514 * modules/langinfo (Depends-on, Makefile.am): Likewise.
1515 * modules/locale (Depends-on, Makefile.am): Likewise.
1516 * modules/sys_file (Makefile.am): Likewise.
1517 * modules/getopt-posix (Makefile.am): Delete unused link warning
1519 * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
1520 * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
1521 * lib/locale.in.h (GL_LINK_WARNING): Likewise.
1522 * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
1524 stdio: remove unused variables
1525 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
1526 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
1527 * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
1529 tests: test more substitute headers
1530 * modules/ctype-tests: New file.
1531 * modules/dirent-tests: Likewise.
1532 * modules/spawn-tests: Likewise.
1533 * modules/sys_file-tests: Likewise.
1534 * modules/sys_ioctl-tests: Likewise.
1535 * modules/sys_wait-tests: Likewise.
1536 * tests/test-ctype.c: Likewise.
1537 * tests/test-dirent.c: Likewise.
1538 * tests/test-spawn.c: Likewise.
1539 * tests/test-sys_file.c: Likewise.
1540 * tests/test-sys_ioctl.c: Likewise.
1541 * tests/test-sys_wait.c: Likewise.
1542 * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
1543 * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
1544 whether or not flock is in use.
1546 tests: remove License section from module
1547 * modules/arpa_inet-tests: Remove unneeded section.
1548 * modules/byteswap-tests: Likewise.
1549 * modules/ceilf-tests: Likewise.
1550 * modules/ceill-tests: Likewise.
1551 * modules/crypto/des-tests: Likewise.
1552 * modules/crypto/gc-arcfour-tests: Likewise.
1553 * modules/crypto/gc-arctwo-tests: Likewise.
1554 * modules/crypto/gc-des-tests: Likewise.
1555 * modules/crypto/gc-hmac-md5-tests: Likewise.
1556 * modules/crypto/gc-hmac-sha1-tests: Likewise.
1557 * modules/crypto/gc-md2-tests: Likewise.
1558 * modules/crypto/gc-md4-tests: Likewise.
1559 * modules/crypto/gc-md5-tests: Likewise.
1560 * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
1561 * modules/crypto/gc-rijndael-tests: Likewise.
1562 * modules/crypto/gc-sha1-tests: Likewise.
1563 * modules/crypto/gc-tests: Likewise.
1564 * modules/crypto/md2-tests: Likewise.
1565 * modules/crypto/md4-tests: Likewise.
1566 * modules/fcntl-h-tests: Likewise.
1567 * modules/floorf-tests: Likewise.
1568 * modules/floorl-tests: Likewise.
1569 * modules/frexp-nolibm-tests: Likewise.
1570 * modules/frexp-tests: Likewise.
1571 * modules/frexpl-nolibm-tests: Likewise.
1572 * modules/frexpl-tests: Likewise.
1573 * modules/getaddrinfo-tests: Likewise.
1574 * modules/inttypes-tests: Likewise.
1575 * modules/isfinite-tests: Likewise.
1576 * modules/isinf-tests: Likewise.
1577 * modules/ldexpl-tests: Likewise.
1578 * modules/locale-tests: Likewise.
1579 * modules/math-tests: Likewise.
1580 * modules/netdb-tests: Likewise.
1581 * modules/netinet_in-tests: Likewise.
1582 * modules/printf-frexp-tests: Likewise.
1583 * modules/printf-frexpl-tests: Likewise.
1584 * modules/priv-set-tests: Likewise.
1585 * modules/random_r-tests: Likewise.
1586 * modules/round-tests: Likewise.
1587 * modules/roundf-tests: Likewise.
1588 * modules/roundl-tests: Likewise.
1589 * modules/search-tests: Likewise.
1590 * modules/select-tests: Likewise.
1591 * modules/signal-tests: Likewise.
1592 * modules/stdbool-tests: Likewise.
1593 * modules/stddef-tests: Likewise.
1594 * modules/stdint-tests: Likewise.
1595 * modules/stdio-tests: Likewise.
1596 * modules/stdlib-tests: Likewise.
1597 * modules/string-tests: Likewise.
1598 * modules/strings-tests: Likewise.
1599 * modules/sys_select-tests: Likewise.
1600 * modules/sys_socket-tests: Likewise.
1601 * modules/sys_stat-tests: Likewise.
1602 * modules/sys_time-tests: Likewise.
1603 * modules/sys_utsname-tests: Likewise.
1604 * modules/sysexits-tests: Likewise.
1605 * modules/time-tests: Likewise.
1606 * modules/trunc-tests: Likewise.
1607 * modules/truncf-tests: Likewise.
1608 * modules/truncl-tests: Likewise.
1609 * modules/tsearch-tests: Likewise.
1610 * modules/unistd-tests: Likewise.
1611 * modules/wchar-tests: Likewise.
1612 * modules/wctype-tests: Likewise.
1614 tests: fix license on several tests
1615 * tests/test-des.c: Update to GPLv3+.
1616 * tests/test-flock.c: Likewise.
1617 * tests/test-fsync.c: Likewise.
1618 * tests/test-futimens.h: Likewise.
1619 * tests/test-gc-arcfour.c: Likewise.
1620 * tests/test-gc-arctwo.c: Likewise.
1621 * tests/test-gc-des.c: Likewise.
1622 * tests/test-gc-hmac-md5.c: Likewise.
1623 * tests/test-gc-hmac-sha1.c: Likewise.
1624 * tests/test-gc-md2.c: Likewise.
1625 * tests/test-gc-md4.c: Likewise.
1626 * tests/test-gc-md5.c: Likewise.
1627 * tests/test-gc-pbkdf2-sha1.c: Likewise.
1628 * tests/test-gc-rijndael.c: Likewise.
1629 * tests/test-gc-sha1.c: Likewise.
1630 * tests/test-gc.c: Likewise.
1631 * tests/test-getcwd.c: Likewise.
1632 * tests/test-link.c: Likewise.
1633 * tests/test-link.h: Likewise.
1634 * tests/test-lutimens.h: Likewise.
1635 * tests/test-md2.c: Likewise.
1636 * tests/test-md4.c: Likewise.
1637 * tests/test-mkdir.h: Likewise.
1638 * tests/test-rename.c: Likewise.
1639 * tests/test-rename.h: Likewise.
1640 * tests/test-safe-alloc.c: Likewise.
1641 * tests/test-utimens-common.h: Likewise.
1642 * tests/test-utimens.h: Likewise.
1644 maint: sync license texts
1645 * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
1646 * doc/gpl-3.0.texi: Revert copyright year update.
1647 * doc/lgpl-3.0.texi: Likewise.
1649 2009-12-29 Jim Meyering <meyering@redhat.com>
1651 update nearly all FSF copyright year lists to include 2009
1652 The files named by the following are exempted:
1653 grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
1654 test -f "$dst" && { echo "$dst"; continue; }
1655 test -d "$dst" || continue
1656 echo "$dst"/$(basename "$src")
1658 git ls-files tests/unictype >> exempt
1659 In the remaining files, convert to all-interval notation if
1660 - there is already at least one year interval like 2000-2003
1661 - the file is maintained by me
1662 - the file is in lib/uni*/, where that style already prevails
1663 Otherwise, use update-copyright's default.
1665 2009-12-29 Simon Josefsson <simon@josefsson.org>
1666 and Eric Blake <ebb9@byu.net>
1668 tests: don't require debug system() to pass
1669 * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
1670 * tests/test-rmdir.h (test_rmdir_func): Likewise.
1671 * tests/test-unlink.h (test_unlink_func): Likewise.
1672 * tests/test-fstatat.c (main): ...into callers.
1673 * tests/test-lstat.c (main): Likewise.
1674 * tests/test-rmdir.c (main): Likewise.
1675 * tests/test-unlink.c (main): Likewise.
1676 * tests/test-unlinkat.c (main): Likewise.
1677 * tests/test-areadlink-with-size.c (main): Don't require a
1678 debug-only system call to pass, aiding cross-testing to mingw.
1679 * tests/test-areadlink.c (main): Likewise.
1680 * tests/test-areadlinkat-with-size.c (main): Likewise.
1681 * tests/test-areadlinkat.c (main): Likewise.
1682 * tests/test-canonicalize-lgpl.c (main): Likewise.
1683 * tests/test-canonicalize.c (main): Likewise.
1684 * tests/test-chown.c (main): Likewise.
1685 * tests/test-fchownat.c (main): Likewise.
1686 * tests/test-lchown.c (main): Likewise.
1687 * tests/test-fdutimensat.c (main): Likewise.
1688 * tests/test-futimens.c (main): Likewise.
1689 * tests/test-link.c (main): Likewise.
1690 * tests/test-linkat.c (main): Likewise.
1691 * tests/test-mkdir.c (main): Likewise.
1692 * tests/test-mkdirat.c (main): Likewise.
1693 * tests/test-mkfifo.c (main): Likewise.
1694 * tests/test-mkfifoat.c (main): Likewise.
1695 * tests/test-mknod.c (main): Likewise.
1696 * tests/test-readlink.c (main): Likewise.
1697 * tests/test-remove.c (main): Likewise.
1698 * tests/test-rename.c (main): Likewise.
1699 * tests/test-renameat.c (main): Likewise.
1700 * tests/test-symlink.c (main): Likewise.
1701 * tests/test-symlinkat.c (main): Likewise.
1702 * tests/test-utimens.c (main): Likewise.
1703 * tests/test-utimensat.c (main): Likewise.
1705 2009-12-29 Simon Josefsson <simon@josefsson.org>
1707 * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
1708 on $(UNUSED_PARAMETER_H) to avoid build failure.
1710 2009-12-28 Jim Meyering <meyering@redhat.com>
1712 update-copyright: you may specify a max. line length other than 72
1713 * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
1715 maint: use consistent FSF copyright line syntax
1716 * lib/posixtm.c: Add missing comma in FSF copyright line.
1717 * lib/posixtm.h: Likewise.
1718 * lib/getugroups.c: Add missing ", Inc.".
1720 pmccabe2html: emit consistent FSF copyright; remove trailing blanks
1721 * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
1722 FSF copyright line. Remove trailing blanks.
1724 2009-12-28 Eric Blake <ebb9@byu.net>
1726 test-dup2: reduce dependencies
1727 * modules/cloexec (Configure.ac): Set witness.
1728 * modules/dup2-tests (Depends-on): Drop cloexec.
1729 * tests/test-dup2.c (main): Skip portion of test if cloexec module
1731 Suggested by Bruno Haible.
1733 2009-12-26 Bruno Haible <bruno@clisp.org>
1735 Remove an unneeded dependency.
1736 * modules/fseterr (Depends-on): Remove dup2.
1738 2009-12-26 Eric Blake <ebb9@byu.net>
1740 tests: use macros.h in more places
1741 * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
1742 (ASSERT_STREAM): Provide default of stderr.
1743 * tests/test-dirent-safer.c: Include macros.h, using alternate
1744 stream for assertions.
1745 * tests/test-dup-safer.c: Likewise.
1746 * tests/test-freopen-safer.c: Likewise.
1747 * tests/test-getopt.c: Likewise.
1748 * tests/test-openat-safer.c: Likewise.
1749 * tests/test-pipe.c: Likewise.
1750 * tests/test-popen-safer.c: Likewise.
1751 * modules/dirent-safer-tests (Files): Include macros.h.
1752 * modules/unistd-safer-tests (Files): Likewise.
1753 * modules/freopen-safer-tests (Files): Likewise.
1754 * modules/getopt-posix-tests (Files): Likewise.
1755 * modules/openat-safer-tests (Files): Likewise.
1756 * modules/pipe-tests (Files): Likewise.
1758 2009-12-26 Bruno Haible <bruno@clisp.org>
1760 javacomp: Portability fix.
1761 * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
1762 that it also works on Solaris.
1764 2009-12-26 Bruno Haible <bruno@clisp.org>
1766 localename: Fix storage allocation of gl_locale_name_thread's result.
1767 * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
1768 HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
1769 all platforms that have 'uselocale'.
1770 (gl_locale_name_thread_unsafe): New function, extracted from
1771 gl_locale_name_thread.
1772 (gl_locale_name_thread): Call struniq on all platforms that have
1774 * tests/test-localename.c (test_locale_name_thread): Check that the
1775 resulting strings are permanently allocated.
1776 * modules/localename-tests (Depends-on): Add strdup.
1778 2009-12-26 Bruno Haible <bruno@clisp.org>
1780 * tests/test-localename.c (categories): Fill in the strings.
1782 2009-12-26 Jim Meyering <meyering@redhat.com>
1784 isdir: complete the removal of m4/isdir.m4
1785 * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
1787 isdir: clean up, since at least grep still uses it
1788 * lib/isdir.c: Include "isdir.h".
1789 (S_ISDIR): Remove now-unneeded definition.
1790 * modules/isdir (Files): Add lib/isdir.h.
1791 * lib/isdir.h: New file, with declaration.
1792 * m4/isdir.m4: Remove file -- unneeded.
1794 2009-12-25 Bruno Haible <bruno@clisp.org>
1796 selinux-h: Make generated .h files standalone.
1797 * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
1798 definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
1799 * lib/se-selinux.in.h: Likewise.
1800 * modules/selinux-h (Depends-on): Add unused-parameter.
1801 (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
1802 selinux/selinux.h and selinux/context.h.
1803 Suggested by Eric Blake.
1805 2009-12-25 Bruno Haible <bruno@clisp.org>
1807 Move gl_FCNTL_O_FLAGS to a separate .m4 file.
1808 * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
1809 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
1810 * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
1811 * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
1813 2009-12-24 Bruno Haible <bruno@clisp.org>
1815 openat: Fix warning.
1816 * lib/openat-proc.c: Include <unistd.h>.
1818 2009-12-24 Bruno Haible <bruno@clisp.org>
1820 New module 'unused-parameter'.
1821 * build-aux/unused-parameter.h: New file, extracted from earlier
1823 * modules/unused-parameter: New file.
1824 * lib/unistr.h: Include unused-parameter.h.
1825 (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
1827 * modules/unistr/base (Depends-on): Add unused-parameter.
1829 2009-12-24 Bruno Haible <bruno@clisp.org>
1831 Add missing dependencies to 'extensions' module.
1832 * m4/extensions.m4: Add comment.
1833 * modules/accept4 (Depends-on): Add extensions.
1834 * modules/dup3 (Depends-on): Likewise.
1835 * modules/fcntl (Depends-on): Likewise.
1836 * modules/futimens (Depends-on): Likewise.
1837 * modules/mknod (Depends-on): Likewise.
1838 * modules/pipe2 (Depends-on): Likewise.
1839 * modules/stat-time (Depends-on): Likewise.
1840 * modules/strcasestr-simple (Depends-on): Likewise.
1841 * modules/strsignal (Depends-on): Likewise.
1842 * modules/utimensat (Depends-on): Likewise.
1843 * modules/localcharset (Depends-on): Likewise. Needed because of
1845 * modules/wcrtomb (Depends-on): Likewise. Needed because of
1847 * modules/wcsnrtombs (Depends-on): Likewise.
1848 * modules/wcsrtombs (Depends-on): Likewise.
1850 2009-12-24 Bruno Haible <bruno@clisp.org>
1852 binary-io: Avoid gcc warning due to SET_BINARY.
1853 * lib/binary-io.h (SET_BINARY): Cast the result to void.
1854 Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
1856 2009-12-24 Bruno Haible <bruno@clisp.org>
1858 Avoid future namespace pollution on glibc systems.
1859 * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
1860 * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
1861 * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
1864 2009-12-24 Bruno Haible <bruno@clisp.org>
1866 Refactor common macros used in tests.
1867 * tests/macros.h: New file.
1868 * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
1869 and/or <stdlib.h>, if appropriate.
1870 (ASSERT, SIZEOF): Remove macros.
1871 * tests/test-areadlink-with-size.c: Likewise.
1872 * tests/test-areadlinkat.c: Likewise.
1873 * tests/test-areadlinkat-with-size.c: Likewise.
1874 * tests/test-argmatch.c: Likewise.
1875 * tests/test-argv-iter.c: Likewise.
1876 * tests/test-array-mergesort.c: Likewise.
1877 * tests/test-array_list.c: Likewise.
1878 * tests/test-array_oset.c: Likewise.
1879 * tests/test-avltree_list.c: Likewise.
1880 * tests/test-avltree_oset.c: Likewise.
1881 * tests/test-avltreehash_list.c: Likewise.
1882 * tests/test-base64.c: Likewise.
1883 * tests/test-binary-io.c: Likewise.
1884 * tests/test-bitrotate.c: Likewise.
1885 * tests/test-btowc.c: Likewise.
1886 * tests/test-byteswap.c: Likewise.
1887 * tests/test-c-ctype.c: Likewise.
1888 * tests/test-c-stack.c: Likewise.
1889 * tests/test-c-strcasecmp.c: Likewise.
1890 * tests/test-c-strcasestr.c: Likewise.
1891 * tests/test-c-strncasecmp.c: Likewise.
1892 * tests/test-c-strstr.c: Likewise.
1893 * tests/test-canonicalize-lgpl.c: Likewise.
1894 * tests/test-canonicalize.c: Likewise.
1895 * tests/test-carray_list.c: Likewise.
1896 * tests/test-ceilf1.c: Likewise.
1897 * tests/test-ceilf2.c: Likewise.
1898 * tests/test-ceill.c: Likewise.
1899 * tests/test-chown.c: Likewise.
1900 * tests/test-cloexec.c: Likewise.
1901 * tests/test-copy-acl.c: Likewise.
1902 * tests/test-copy-file.c: Likewise.
1903 * tests/test-count-one-bits.c: Likewise.
1904 * tests/test-dprintf-posix.c: Likewise.
1905 * tests/test-dup2.c: Likewise.
1906 * tests/test-dup3.c: Likewise.
1907 * tests/test-duplocale.c: Likewise.
1908 * tests/test-fbufmode.c: Likewise.
1909 * tests/test-fchdir.c: Likewise.
1910 * tests/test-fchownat.c: Likewise.
1911 * tests/test-fcntl-safer.c: Likewise.
1912 * tests/test-fcntl.c: Likewise.
1913 * tests/test-fdopendir.c: Likewise.
1914 * tests/test-fdutimensat.c: Likewise.
1915 * tests/test-fflush2.c: Likewise.
1916 * tests/test-file-has-acl.c: Likewise.
1917 * tests/test-filevercmp.c: Likewise.
1918 * tests/test-flock.c: Likewise.
1919 * tests/test-floorf1.c: Likewise.
1920 * tests/test-floorf2.c: Likewise.
1921 * tests/test-floorl.c: Likewise.
1922 * tests/test-fnmatch.c: Likewise.
1923 * tests/test-fopen.h: Likewise.
1924 * tests/test-fpending.c: Likewise.
1925 * tests/test-fprintf-posix.c: Likewise.
1926 * tests/test-fpurge.c: Likewise.
1927 * tests/test-freadable.c: Likewise.
1928 * tests/test-freadahead.c: Likewise.
1929 * tests/test-freading.c: Likewise.
1930 * tests/test-freadptr.c: Likewise.
1931 * tests/test-freadptr2.c: Likewise.
1932 * tests/test-freadseek.c: Likewise.
1933 * tests/test-freopen.c: Likewise.
1934 * tests/test-frexp.c: Likewise.
1935 * tests/test-frexpl.c: Likewise.
1936 * tests/test-fseek.c: Likewise.
1937 * tests/test-fseeko.c: Likewise.
1938 * tests/test-fstatat.c: Likewise.
1939 * tests/test-fstrcmp.c: Likewise.
1940 * tests/test-fsync.c: Likewise.
1941 * tests/test-ftell.c: Likewise.
1942 * tests/test-ftello.c: Likewise.
1943 * tests/test-func.c: Likewise.
1944 * tests/test-futimens.c: Likewise.
1945 * tests/test-fwritable.c: Likewise.
1946 * tests/test-fwriting.c: Likewise.
1947 * tests/test-getcwd.c: Likewise.
1948 * tests/test-getdate.c: Likewise.
1949 * tests/test-getdelim.c: Likewise.
1950 * tests/test-getdtablesize.c: Likewise.
1951 * tests/test-getgroups.c: Likewise.
1952 * tests/test-getline.c: Likewise.
1953 * tests/test-getndelim2.c: Likewise.
1954 * tests/test-glob.c: Likewise.
1955 * tests/test-hash.c: Likewise.
1956 * tests/test-i-ring.c: Likewise.
1957 * tests/test-iconv-utf.c: Likewise.
1958 * tests/test-iconv.c: Likewise.
1959 * tests/test-idpriv-drop.c: Likewise.
1960 * tests/test-idpriv-droptemp.c: Likewise.
1961 * tests/test-inet_ntop.c: Likewise.
1962 * tests/test-inet_pton.c: Likewise.
1963 * tests/test-isblank.c: Likewise.
1964 * tests/test-isfinite.c: Likewise.
1965 * tests/test-isinf.c: Likewise.
1966 * tests/test-isnan.c: Likewise.
1967 * tests/test-isnand.h: Likewise.
1968 * tests/test-isnanf.h: Likewise.
1969 * tests/test-isnanl.h: Likewise.
1970 * tests/test-lchown.c: Likewise.
1971 * tests/test-ldexpl.c: Likewise.
1972 * tests/test-link.c: Likewise.
1973 * tests/test-linkat.c: Likewise.
1974 * tests/test-linked_list.c: Likewise.
1975 * tests/test-linkedhash_list.c: Likewise.
1976 * tests/test-localename.c: Likewise.
1977 * tests/test-lseek.c: Likewise.
1978 * tests/test-lstat.c: Likewise.
1979 * tests/test-mbmemcasecmp.c: Likewise.
1980 * tests/test-mbmemcasecoll.c: Likewise.
1981 * tests/test-mbrtowc.c: Likewise.
1982 * tests/test-mbscasecmp.c: Likewise.
1983 * tests/test-mbscasestr1.c: Likewise.
1984 * tests/test-mbscasestr2.c: Likewise.
1985 * tests/test-mbscasestr3.c: Likewise.
1986 * tests/test-mbscasestr4.c: Likewise.
1987 * tests/test-mbschr.c: Likewise.
1988 * tests/test-mbscspn.c: Likewise.
1989 * tests/test-mbsinit.c: Likewise.
1990 * tests/test-mbsncasecmp.c: Likewise.
1991 * tests/test-mbsnrtowcs.c: Likewise.
1992 * tests/test-mbspbrk.c: Likewise.
1993 * tests/test-mbspcasecmp.c: Likewise.
1994 * tests/test-mbsrchr.c: Likewise.
1995 * tests/test-mbsrtowcs.c: Likewise.
1996 * tests/test-mbsspn.c: Likewise.
1997 * tests/test-mbsstr1.c: Likewise.
1998 * tests/test-mbsstr2.c: Likewise.
1999 * tests/test-mbsstr3.c: Likewise.
2000 * tests/test-memchr.c: Likewise.
2001 * tests/test-memchr2.c: Likewise.
2002 * tests/test-memcmp.c: Likewise.
2003 * tests/test-memmem.c: Likewise.
2004 * tests/test-memrchr.c: Likewise.
2005 * tests/test-mkdir.c: Likewise.
2006 * tests/test-mkdirat.c: Likewise.
2007 * tests/test-mkfifo.c: Likewise.
2008 * tests/test-mkfifoat.c: Likewise.
2009 * tests/test-mknod.c: Likewise.
2010 * tests/test-nanosleep.c: Likewise.
2011 * tests/test-nl_langinfo.c: Likewise.
2012 * tests/test-obstack-printf.c: Likewise.
2013 * tests/test-open.c: Likewise.
2014 * tests/test-openat.c: Likewise.
2015 * tests/test-pipe-filter-gi1.c: Likewise.
2016 * tests/test-pipe-filter-gi2-main.c: Likewise.
2017 * tests/test-pipe-filter-ii1.c: Likewise.
2018 * tests/test-pipe-filter-ii2-main.c: Likewise.
2019 * tests/test-pipe2.c: Likewise.
2020 * tests/test-popen.h: Likewise.
2021 * tests/test-posixtm.c: Likewise.
2022 * tests/test-pread.c: Likewise.
2023 * tests/test-printf-frexp.c: Likewise.
2024 * tests/test-printf-frexpl.c: Likewise.
2025 * tests/test-printf-posix.c: Likewise.
2026 * tests/test-priv-set.c: Likewise.
2027 * tests/test-quotearg.c: Likewise.
2028 * tests/test-random_r.c: Likewise.
2029 * tests/test-rawmemchr.c: Likewise.
2030 * tests/test-rbtree_list.c: Likewise.
2031 * tests/test-rbtree_oset.c: Likewise.
2032 * tests/test-rbtreehash_list.c: Likewise.
2033 * tests/test-readlink.c: Likewise.
2034 * tests/test-remove.c: Likewise.
2035 * tests/test-rename.c: Likewise.
2036 * tests/test-renameat.c: Likewise.
2037 * tests/test-rmdir.c: Likewise.
2038 * tests/test-round1.c: Likewise.
2039 * tests/test-roundf1.c: Likewise.
2040 * tests/test-roundl.c: Likewise.
2041 * tests/test-safe-alloc.c: Likewise.
2042 * tests/test-sameacls.c: Likewise.
2043 * tests/test-set-mode-acl.c: Likewise.
2044 * tests/test-setenv.c: Likewise.
2045 * tests/test-sigaction.c: Likewise.
2046 * tests/test-signbit.c: Likewise.
2047 * tests/test-sleep.c: Likewise.
2048 * tests/test-snprintf-posix.c: Likewise.
2049 * tests/test-snprintf.c: Likewise.
2050 * tests/test-sprintf-posix.c: Likewise.
2051 * tests/test-stat-time.c: Likewise.
2052 * tests/test-stat.c: Likewise.
2053 * tests/test-strcasestr.c: Likewise.
2054 * tests/test-strchrnul.c: Likewise.
2055 * tests/test-strerror.c: Likewise.
2056 * tests/test-striconv.c: Likewise.
2057 * tests/test-striconveh.c: Likewise.
2058 * tests/test-striconveha.c: Likewise.
2059 * tests/test-strsignal.c: Likewise.
2060 * tests/test-strstr.c: Likewise.
2061 * tests/test-strtod.c: Likewise.
2062 * tests/test-strverscmp.c: Likewise.
2063 * tests/test-symlink.c: Likewise.
2064 * tests/test-symlinkat.c: Likewise.
2065 * tests/test-trunc1.c: Likewise.
2066 * tests/test-trunc2.c: Likewise.
2067 * tests/test-truncf1.c: Likewise.
2068 * tests/test-truncf2.c: Likewise.
2069 * tests/test-truncl.c: Likewise.
2070 * tests/test-uname.c: Likewise.
2071 * tests/test-unlink.c: Likewise.
2072 * tests/test-unlinkat.c: Likewise.
2073 * tests/test-unsetenv.c: Likewise.
2074 * tests/test-usleep.c: Likewise.
2075 * tests/test-utimens.c: Likewise.
2076 * tests/test-utimensat.c: Likewise.
2077 * tests/test-vasnprintf-posix.c: Likewise.
2078 * tests/test-vasnprintf-posix2.c: Likewise.
2079 * tests/test-vasnprintf.c: Likewise.
2080 * tests/test-vasprintf-posix.c: Likewise.
2081 * tests/test-vasprintf.c: Likewise.
2082 * tests/test-vdprintf-posix.c: Likewise.
2083 * tests/test-vfprintf-posix.c: Likewise.
2084 * tests/test-vprintf-posix.c: Likewise.
2085 * tests/test-vsnprintf-posix.c: Likewise.
2086 * tests/test-vsnprintf.c: Likewise.
2087 * tests/test-vsprintf-posix.c: Likewise.
2088 * tests/test-wcrtomb.c: Likewise.
2089 * tests/test-wcsnrtombs.c: Likewise.
2090 * tests/test-wcsrtombs.c: Likewise.
2091 * tests/test-wctype.c: Likewise.
2092 * tests/test-wcwidth.c: Likewise.
2093 * tests/test-xfprintf-posix.c: Likewise.
2094 * tests/test-xmemdup0.c: Likewise.
2095 * tests/test-xprintf-posix.c: Likewise.
2096 * tests/test-xvasprintf.c: Likewise.
2097 * tests/unicase/test-locale-language.c: Likewise.
2098 * tests/unicase/test-mapping-part1.h: Likewise.
2099 * tests/unicase/test-predicate-part1.h: Likewise.
2100 * tests/unicase/test-u8-casecmp.c: Likewise.
2101 * tests/unicase/test-u8-casecoll.c: Likewise.
2102 * tests/unicase/test-u8-casefold.c: Likewise.
2103 * tests/unicase/test-u8-is-cased.c: Likewise.
2104 * tests/unicase/test-u8-is-casefolded.c: Likewise.
2105 * tests/unicase/test-u8-is-lowercase.c: Likewise.
2106 * tests/unicase/test-u8-is-titlecase.c: Likewise.
2107 * tests/unicase/test-u8-is-uppercase.c: Likewise.
2108 * tests/unicase/test-u8-tolower.c: Likewise.
2109 * tests/unicase/test-u8-totitle.c: Likewise.
2110 * tests/unicase/test-u8-toupper.c: Likewise.
2111 * tests/unicase/test-u16-casecmp.c: Likewise.
2112 * tests/unicase/test-u16-casecoll.c: Likewise.
2113 * tests/unicase/test-u16-casefold.c: Likewise.
2114 * tests/unicase/test-u16-is-cased.c: Likewise.
2115 * tests/unicase/test-u16-is-casefolded.c: Likewise.
2116 * tests/unicase/test-u16-is-lowercase.c: Likewise.
2117 * tests/unicase/test-u16-is-titlecase.c: Likewise.
2118 * tests/unicase/test-u16-is-uppercase.c: Likewise.
2119 * tests/unicase/test-u16-tolower.c: Likewise.
2120 * tests/unicase/test-u16-totitle.c: Likewise.
2121 * tests/unicase/test-u16-toupper.c: Likewise.
2122 * tests/unicase/test-u32-casecmp.c: Likewise.
2123 * tests/unicase/test-u32-casecoll.c: Likewise.
2124 * tests/unicase/test-u32-casefold.c: Likewise.
2125 * tests/unicase/test-u32-is-cased.c: Likewise.
2126 * tests/unicase/test-u32-is-casefolded.c: Likewise.
2127 * tests/unicase/test-u32-is-lowercase.c: Likewise.
2128 * tests/unicase/test-u32-is-titlecase.c: Likewise.
2129 * tests/unicase/test-u32-is-uppercase.c: Likewise.
2130 * tests/unicase/test-u32-tolower.c: Likewise.
2131 * tests/unicase/test-u32-totitle.c: Likewise.
2132 * tests/unicase/test-u32-toupper.c: Likewise.
2133 * tests/unicase/test-ulc-casecmp.c: Likewise.
2134 * tests/unicase/test-ulc-casecoll.c: Likewise.
2135 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
2136 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
2137 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
2138 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
2139 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
2140 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
2141 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
2142 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
2143 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
2144 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
2145 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
2146 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
2147 * tests/unictype/test-bidi_byname.c: Likewise.
2148 * tests/unictype/test-bidi_name.c: Likewise.
2149 * tests/unictype/test-bidi_of.c: Likewise.
2150 * tests/unictype/test-bidi_test.c: Likewise.
2151 * tests/unictype/test-block_list.c: Likewise.
2152 * tests/unictype/test-block_of.c: Likewise.
2153 * tests/unictype/test-block_test.c: Likewise.
2154 * tests/unictype/test-categ_and.c: Likewise.
2155 * tests/unictype/test-categ_and_not.c: Likewise.
2156 * tests/unictype/test-categ_byname.c: Likewise.
2157 * tests/unictype/test-categ_name.c: Likewise.
2158 * tests/unictype/test-categ_none.c: Likewise.
2159 * tests/unictype/test-categ_of.c: Likewise.
2160 * tests/unictype/test-categ_or.c: Likewise.
2161 * tests/unictype/test-categ_test_withtable.c: Likewise.
2162 * tests/unictype/test-combining.c: Likewise.
2163 * tests/unictype/test-decdigit.c: Likewise.
2164 * tests/unictype/test-digit.c: Likewise.
2165 * tests/unictype/test-mirror.c: Likewise.
2166 * tests/unictype/test-numeric.c: Likewise.
2167 * tests/unictype/test-pr_byname.c: Likewise.
2168 * tests/unictype/test-pr_test.c: Likewise.
2169 * tests/unictype/test-predicate-part1.h: Likewise.
2170 * tests/unictype/test-scripts.c: Likewise.
2171 * tests/unictype/test-sy_c_ident.c: Likewise.
2172 * tests/unictype/test-sy_java_ident.c: Likewise.
2173 * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
2174 * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
2175 * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
2176 * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
2177 * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
2178 * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
2179 * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
2180 * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
2181 * tests/uninorm/test-canonical-decomposition.c: Likewise.
2182 * tests/uninorm/test-compat-decomposition.c: Likewise.
2183 * tests/uninorm/test-composition.c: Likewise.
2184 * tests/uninorm/test-decomposing-form.c: Likewise.
2185 * tests/uninorm/test-decomposition.c: Likewise.
2186 * tests/uninorm/test-u8-nfc.c: Likewise.
2187 * tests/uninorm/test-u8-nfd.c: Likewise.
2188 * tests/uninorm/test-u8-nfkc.c: Likewise.
2189 * tests/uninorm/test-u8-nfkd.c: Likewise.
2190 * tests/uninorm/test-u8-normcmp.c: Likewise.
2191 * tests/uninorm/test-u8-normcoll.c: Likewise.
2192 * tests/uninorm/test-u16-nfc.c: Likewise.
2193 * tests/uninorm/test-u16-nfd.c: Likewise.
2194 * tests/uninorm/test-u16-nfkc.c: Likewise.
2195 * tests/uninorm/test-u16-nfkd.c: Likewise.
2196 * tests/uninorm/test-u16-normcmp.c: Likewise.
2197 * tests/uninorm/test-u16-normcoll.c: Likewise.
2198 * tests/uninorm/test-u32-nfc.c: Likewise.
2199 * tests/uninorm/test-u32-nfd.c: Likewise.
2200 * tests/uninorm/test-u32-nfkc.c: Likewise.
2201 * tests/uninorm/test-u32-nfkd.c: Likewise.
2202 * tests/uninorm/test-u32-normalize-big.c: Likewise.
2203 * tests/uninorm/test-u32-normcmp.c: Likewise.
2204 * tests/uninorm/test-u32-normcoll.c: Likewise.
2205 * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
2206 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
2207 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
2208 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
2209 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
2210 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
2211 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
2212 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
2213 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
2214 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
2215 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
2216 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
2217 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
2218 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
2219 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
2220 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
2221 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
2222 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
2223 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
2224 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
2225 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
2226 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
2227 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
2228 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
2229 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
2230 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
2231 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
2232 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
2233 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
2234 * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
2235 * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
2236 * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
2237 * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
2238 * tests/uniwidth/test-u8-strwidth.c: Likewise.
2239 * tests/uniwidth/test-u8-width.c: Likewise.
2240 * tests/uniwidth/test-u16-strwidth.c: Likewise.
2241 * tests/uniwidth/test-u16-width.c: Likewise.
2242 * tests/uniwidth/test-u32-strwidth.c: Likewise.
2243 * tests/uniwidth/test-u32-width.c: Likewise.
2244 * tests/uniwidth/test-uc_width.c: Likewise.
2245 * tests/uniwidth/test-uc_width2.c: Likewise.
2246 * modules/acl-tests (Files): Add tests/macros.h.
2247 * modules/areadlink-tests (Files): Likewise.
2248 * modules/areadlink-with-size-tests (Files): Likewise.
2249 * modules/areadlinkat-tests (Files): Likewise.
2250 * modules/areadlinkat-with-size-tests (Files): Likewise.
2251 * modules/argmatch-tests (Files): Likewise.
2252 * modules/argv-iter-tests (Files): Likewise.
2253 * modules/array-list-tests (Files): Likewise.
2254 * modules/array-mergesort-tests (Files): Likewise.
2255 * modules/array-oset-tests (Files): Likewise.
2256 * modules/avltree-list-tests (Files): Likewise.
2257 * modules/avltree-oset-tests (Files): Likewise.
2258 * modules/avltreehash-list-tests (Files): Likewise.
2259 * modules/base64-tests (Files): Likewise.
2260 * modules/binary-io-tests (Files): Likewise.
2261 * modules/bitrotate-tests (Files): Likewise.
2262 * modules/btowc-tests (Files): Likewise.
2263 * modules/byteswap-tests (Files): Likewise.
2264 * modules/c-ctype-tests (Files): Likewise.
2265 * modules/c-stack-tests (Files): Likewise.
2266 * modules/c-strcase-tests (Files): Likewise.
2267 * modules/c-strcasestr-tests (Files): Likewise.
2268 * modules/c-strstr-tests (Files): Likewise.
2269 * modules/canonicalize-lgpl-tests (Files): Likewise.
2270 * modules/canonicalize-tests (Files): Likewise.
2271 * modules/carray-list-tests (Files): Likewise.
2272 * modules/ceilf-tests (Files): Likewise.
2273 * modules/ceill-tests (Files): Likewise.
2274 * modules/chown-tests (Files): Likewise.
2275 * modules/cloexec-tests (Files): Likewise.
2276 * modules/copy-file-tests (Files): Likewise.
2277 * modules/count-one-bits-tests (Files): Likewise.
2278 * modules/dprintf-posix-tests (Files): Likewise.
2279 * modules/dup2-tests (Files): Likewise.
2280 * modules/dup3-tests (Files): Likewise.
2281 * modules/duplocale-tests (Files): Likewise.
2282 * modules/fbufmode-tests (Files): Likewise.
2283 * modules/fchdir-tests (Files): Likewise.
2284 * modules/fcntl-safer-tests (Files): Likewise.
2285 * modules/fcntl-tests (Files): Likewise.
2286 * modules/fdopendir-tests (Files): Likewise.
2287 * modules/fdutimensat-tests (Files): Likewise.
2288 * modules/fflush-tests (Files): Likewise.
2289 * modules/filevercmp-tests (Files): Likewise.
2290 * modules/flock-tests (Files): Likewise.
2291 * modules/floorf-tests (Files): Likewise.
2292 * modules/floorl-tests (Files): Likewise.
2293 * modules/fnmatch-tests (Files): Likewise.
2294 * modules/fopen-safer-tests (Files): Likewise.
2295 * modules/fopen-tests (Files): Likewise.
2296 * modules/fpending-tests (Files): Likewise.
2297 * modules/fprintf-posix-tests (Files): Likewise.
2298 * modules/fpurge-tests (Files): Likewise.
2299 * modules/freadable-tests (Files): Likewise.
2300 * modules/freadahead-tests (Files): Likewise.
2301 * modules/freading-tests (Files): Likewise.
2302 * modules/freadptr-tests (Files): Likewise.
2303 * modules/freadseek-tests (Files): Likewise.
2304 * modules/freopen-tests (Files): Likewise.
2305 * modules/frexp-nolibm-tests (Files): Likewise.
2306 * modules/frexp-tests (Files): Likewise.
2307 * modules/frexpl-nolibm-tests (Files): Likewise.
2308 * modules/frexpl-tests (Files): Likewise.
2309 * modules/fseek-tests (Files): Likewise.
2310 * modules/fseeko-tests (Files): Likewise.
2311 * modules/fstrcmp-tests (Files): Likewise.
2312 * modules/fsync-tests (Files): Likewise.
2313 * modules/ftell-tests (Files): Likewise.
2314 * modules/ftello-tests (Files): Likewise.
2315 * modules/func-tests (Files): Likewise.
2316 * modules/futimens-tests (Files): Likewise.
2317 * modules/fwritable-tests (Files): Likewise.
2318 * modules/fwriting-tests (Files): Likewise.
2319 * modules/getcwd-tests (Files): Likewise.
2320 * modules/getdate-tests (Files): Likewise.
2321 * modules/getdelim-tests (Files): Likewise.
2322 * modules/getdtablesize-tests (Files): Likewise.
2323 * modules/getgroups-tests (Files): Likewise.
2324 * modules/getline-tests (Files): Likewise.
2325 * modules/getndelim2-tests (Files): Likewise.
2326 * modules/glob-tests (Files): Likewise.
2327 * modules/hash-tests (Files): Likewise.
2328 * modules/i-ring-tests (Files): Likewise.
2329 * modules/iconv-tests (Files): Likewise.
2330 * modules/iconv_open-utf-tests (Files): Likewise.
2331 * modules/idpriv-drop-tests (Files): Likewise.
2332 * modules/idpriv-droptemp-tests (Files): Likewise.
2333 * modules/inet_ntop-tests (Files): Likewise.
2334 * modules/inet_pton-tests (Files): Likewise.
2335 * modules/isblank-tests (Files): Likewise.
2336 * modules/isfinite-tests (Files): Likewise.
2337 * modules/isinf-tests (Files): Likewise.
2338 * modules/isnan-tests (Files): Likewise.
2339 * modules/isnand-nolibm-tests (Files): Likewise.
2340 * modules/isnand-tests (Files): Likewise.
2341 * modules/isnanf-nolibm-tests (Files): Likewise.
2342 * modules/isnanf-tests (Files): Likewise.
2343 * modules/isnanl-nolibm-tests (Files): Likewise.
2344 * modules/isnanl-tests (Files): Likewise.
2345 * modules/lchown-tests (Files): Likewise.
2346 * modules/ldexpl-tests (Files): Likewise.
2347 * modules/link-tests (Files): Likewise.
2348 * modules/linkat-tests (Files): Likewise.
2349 * modules/linked-list-tests (Files): Likewise.
2350 * modules/linkedhash-list-tests (Files): Likewise.
2351 * modules/localename-tests (Files): Likewise.
2352 * modules/lseek-tests (Files): Likewise.
2353 * modules/lstat-tests (Files): Likewise.
2354 * modules/mbmemcasecmp-tests (Files): Likewise.
2355 * modules/mbmemcasecoll-tests (Files): Likewise.
2356 * modules/mbrtowc-tests (Files): Likewise.
2357 * modules/mbscasecmp-tests (Files): Likewise.
2358 * modules/mbscasestr-tests (Files): Likewise.
2359 * modules/mbschr-tests (Files): Likewise.
2360 * modules/mbscspn-tests (Files): Likewise.
2361 * modules/mbsinit-tests (Files): Likewise.
2362 * modules/mbsncasecmp-tests (Files): Likewise.
2363 * modules/mbsnrtowcs-tests (Files): Likewise.
2364 * modules/mbspbrk-tests (Files): Likewise.
2365 * modules/mbspcasecmp-tests (Files): Likewise.
2366 * modules/mbsrchr-tests (Files): Likewise.
2367 * modules/mbsrtowcs-tests (Files): Likewise.
2368 * modules/mbsspn-tests (Files): Likewise.
2369 * modules/mbsstr-tests (Files): Likewise.
2370 * modules/memchr-tests (Files): Likewise.
2371 * modules/memchr2-tests (Files): Likewise.
2372 * modules/memcmp-tests (Files): Likewise.
2373 * modules/memmem-tests (Files): Likewise.
2374 * modules/memrchr-tests (Files): Likewise.
2375 * modules/mkdir-tests (Files): Likewise.
2376 * modules/mkfifo-tests (Files): Likewise.
2377 * modules/mkfifoat-tests (Files): Likewise.
2378 * modules/mknod-tests (Files): Likewise.
2379 * modules/nanosleep-tests (Files): Likewise.
2380 * modules/nl_langinfo-tests (Files): Likewise.
2381 * modules/obstack-printf-tests (Files): Likewise.
2382 * modules/open-tests (Files): Likewise.
2383 * modules/openat-tests (Files): Likewise.
2384 * modules/pipe-filter-gi-tests (Files): Likewise.
2385 * modules/pipe-filter-ii-tests (Files): Likewise.
2386 * modules/pipe2-tests (Files): Likewise.
2387 * modules/popen-safer-tests (Files): Likewise.
2388 * modules/popen-tests (Files): Likewise.
2389 * modules/posixtm-tests (Files): Likewise.
2390 * modules/pread-tests (Files): Likewise.
2391 * modules/printf-frexp-tests (Files): Likewise.
2392 * modules/printf-frexpl-tests (Files): Likewise.
2393 * modules/printf-posix-tests (Files): Likewise.
2394 * modules/priv-set-tests (Files): Likewise.
2395 * modules/quotearg-tests (Files): Likewise.
2396 * modules/random_r-tests (Files): Likewise.
2397 * modules/rawmemchr-tests (Files): Likewise.
2398 * modules/rbtree-list-tests (Files): Likewise.
2399 * modules/rbtree-oset-tests (Files): Likewise.
2400 * modules/rbtreehash-list-tests (Files): Likewise.
2401 * modules/readlink-tests (Files): Likewise.
2402 * modules/remove-tests (Files): Likewise.
2403 * modules/rename-tests (Files): Likewise.
2404 * modules/renameat-tests (Files): Likewise.
2405 * modules/rmdir-tests (Files): Likewise.
2406 * modules/round-tests (Files): Likewise.
2407 * modules/roundf-tests (Files): Likewise.
2408 * modules/roundl-tests (Files): Likewise.
2409 * modules/safe-alloc-tests (Files): Likewise.
2410 * modules/setenv-tests (Files): Likewise.
2411 * modules/sigaction-tests (Files): Likewise.
2412 * modules/signbit-tests (Files): Likewise.
2413 * modules/sleep-tests (Files): Likewise.
2414 * modules/snprintf-posix-tests (Files): Likewise.
2415 * modules/snprintf-tests (Files): Likewise.
2416 * modules/sprintf-posix-tests (Files): Likewise.
2417 * modules/stat-tests (Files): Likewise.
2418 * modules/stat-time-tests (Files): Likewise.
2419 * modules/strcasestr-tests (Files): Likewise.
2420 * modules/strchrnul-tests (Files): Likewise.
2421 * modules/strerror-tests (Files): Likewise.
2422 * modules/striconv-tests (Files): Likewise.
2423 * modules/striconveh-tests (Files): Likewise.
2424 * modules/striconveha-tests (Files): Likewise.
2425 * modules/strsignal-tests (Files): Likewise.
2426 * modules/strstr-tests (Files): Likewise.
2427 * modules/strtod-tests (Files): Likewise.
2428 * modules/strverscmp-tests (Files): Likewise.
2429 * modules/symlink-tests (Files): Likewise.
2430 * modules/symlinkat-tests (Files): Likewise.
2431 * modules/trunc-tests (Files): Likewise.
2432 * modules/truncf-tests (Files): Likewise.
2433 * modules/truncl-tests (Files): Likewise.
2434 * modules/uname-tests (Files): Likewise.
2435 * modules/unicase/cased-tests (Files): Likewise.
2436 * modules/unicase/ignorable-tests (Files): Likewise.
2437 * modules/unicase/locale-language-tests (Files): Likewise.
2438 * modules/unicase/tolower-tests (Files): Likewise.
2439 * modules/unicase/totitle-tests (Files): Likewise.
2440 * modules/unicase/toupper-tests (Files): Likewise.
2441 * modules/unicase/u8-casecmp-tests (Files): Likewise.
2442 * modules/unicase/u8-casecoll-tests (Files): Likewise.
2443 * modules/unicase/u8-casefold-tests (Files): Likewise.
2444 * modules/unicase/u8-is-cased-tests (Files): Likewise.
2445 * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
2446 * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
2447 * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
2448 * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
2449 * modules/unicase/u8-tolower-tests (Files): Likewise.
2450 * modules/unicase/u8-totitle-tests (Files): Likewise.
2451 * modules/unicase/u8-toupper-tests (Files): Likewise.
2452 * modules/unicase/u16-casecmp-tests (Files): Likewise.
2453 * modules/unicase/u16-casecoll-tests (Files): Likewise.
2454 * modules/unicase/u16-casefold-tests (Files): Likewise.
2455 * modules/unicase/u16-is-cased-tests (Files): Likewise.
2456 * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
2457 * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
2458 * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
2459 * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
2460 * modules/unicase/u16-tolower-tests (Files): Likewise.
2461 * modules/unicase/u16-totitle-tests (Files): Likewise.
2462 * modules/unicase/u16-toupper-tests (Files): Likewise.
2463 * modules/unicase/u32-casecmp-tests (Files): Likewise.
2464 * modules/unicase/u32-casecoll-tests (Files): Likewise.
2465 * modules/unicase/u32-casefold-tests (Files): Likewise.
2466 * modules/unicase/u32-is-cased-tests (Files): Likewise.
2467 * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
2468 * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
2469 * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
2470 * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
2471 * modules/unicase/u32-tolower-tests (Files): Likewise.
2472 * modules/unicase/u32-totitle-tests (Files): Likewise.
2473 * modules/unicase/u32-toupper-tests (Files): Likewise.
2474 * modules/unicase/ulc-casecmp-tests (Files): Likewise.
2475 * modules/unicase/ulc-casecoll-tests (Files): Likewise.
2476 * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
2477 * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
2478 * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
2479 * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
2480 * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
2481 * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
2482 * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
2483 * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
2484 * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
2485 * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
2486 * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
2487 * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
2488 * modules/unictype/bidicategory-byname-tests (Files): Likewise.
2489 * modules/unictype/bidicategory-name-tests (Files): Likewise.
2490 * modules/unictype/bidicategory-of-tests (Files): Likewise.
2491 * modules/unictype/bidicategory-test-tests (Files): Likewise.
2492 * modules/unictype/block-list-tests (Files): Likewise.
2493 * modules/unictype/block-of-tests (Files): Likewise.
2494 * modules/unictype/block-test-tests (Files): Likewise.
2495 * modules/unictype/category-C-tests (Files): Likewise.
2496 * modules/unictype/category-Cc-tests (Files): Likewise.
2497 * modules/unictype/category-Cf-tests (Files): Likewise.
2498 * modules/unictype/category-Cn-tests (Files): Likewise.
2499 * modules/unictype/category-Co-tests (Files): Likewise.
2500 * modules/unictype/category-Cs-tests (Files): Likewise.
2501 * modules/unictype/category-L-tests (Files): Likewise.
2502 * modules/unictype/category-Ll-tests (Files): Likewise.
2503 * modules/unictype/category-Lm-tests (Files): Likewise.
2504 * modules/unictype/category-Lo-tests (Files): Likewise.
2505 * modules/unictype/category-Lt-tests (Files): Likewise.
2506 * modules/unictype/category-Lu-tests (Files): Likewise.
2507 * modules/unictype/category-M-tests (Files): Likewise.
2508 * modules/unictype/category-Mc-tests (Files): Likewise.
2509 * modules/unictype/category-Me-tests (Files): Likewise.
2510 * modules/unictype/category-Mn-tests (Files): Likewise.
2511 * modules/unictype/category-N-tests (Files): Likewise.
2512 * modules/unictype/category-Nd-tests (Files): Likewise.
2513 * modules/unictype/category-Nl-tests (Files): Likewise.
2514 * modules/unictype/category-No-tests (Files): Likewise.
2515 * modules/unictype/category-P-tests (Files): Likewise.
2516 * modules/unictype/category-Pc-tests (Files): Likewise.
2517 * modules/unictype/category-Pd-tests (Files): Likewise.
2518 * modules/unictype/category-Pe-tests (Files): Likewise.
2519 * modules/unictype/category-Pf-tests (Files): Likewise.
2520 * modules/unictype/category-Pi-tests (Files): Likewise.
2521 * modules/unictype/category-Po-tests (Files): Likewise.
2522 * modules/unictype/category-Ps-tests (Files): Likewise.
2523 * modules/unictype/category-S-tests (Files): Likewise.
2524 * modules/unictype/category-Sc-tests (Files): Likewise.
2525 * modules/unictype/category-Sk-tests (Files): Likewise.
2526 * modules/unictype/category-Sm-tests (Files): Likewise.
2527 * modules/unictype/category-So-tests (Files): Likewise.
2528 * modules/unictype/category-Z-tests (Files): Likewise.
2529 * modules/unictype/category-Zl-tests (Files): Likewise.
2530 * modules/unictype/category-Zp-tests (Files): Likewise.
2531 * modules/unictype/category-Zs-tests (Files): Likewise.
2532 * modules/unictype/category-and-not-tests (Files): Likewise.
2533 * modules/unictype/category-and-tests (Files): Likewise.
2534 * modules/unictype/category-byname-tests (Files): Likewise.
2535 * modules/unictype/category-name-tests (Files): Likewise.
2536 * modules/unictype/category-none-tests (Files): Likewise.
2537 * modules/unictype/category-of-tests (Files): Likewise.
2538 * modules/unictype/category-or-tests (Files): Likewise.
2539 * modules/unictype/category-test-withtable-tests (Files): Likewise.
2540 * modules/unictype/combining-class-tests (Files): Likewise.
2541 * modules/unictype/ctype-alnum-tests (Files): Likewise.
2542 * modules/unictype/ctype-alpha-tests (Files): Likewise.
2543 * modules/unictype/ctype-blank-tests (Files): Likewise.
2544 * modules/unictype/ctype-cntrl-tests (Files): Likewise.
2545 * modules/unictype/ctype-digit-tests (Files): Likewise.
2546 * modules/unictype/ctype-graph-tests (Files): Likewise.
2547 * modules/unictype/ctype-lower-tests (Files): Likewise.
2548 * modules/unictype/ctype-print-tests (Files): Likewise.
2549 * modules/unictype/ctype-punct-tests (Files): Likewise.
2550 * modules/unictype/ctype-space-tests (Files): Likewise.
2551 * modules/unictype/ctype-upper-tests (Files): Likewise.
2552 * modules/unictype/ctype-xdigit-tests (Files): Likewise.
2553 * modules/unictype/decimal-digit-tests (Files): Likewise.
2554 * modules/unictype/digit-tests (Files): Likewise.
2555 * modules/unictype/mirror-tests (Files): Likewise.
2556 * modules/unictype/numeric-tests (Files): Likewise.
2557 * modules/unictype/property-alphabetic-tests (Files): Likewise.
2558 * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
2559 * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
2560 * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
2562 * modules/unictype/property-bidi-block-separator-tests (Files):
2564 * modules/unictype/property-bidi-boundary-neutral-tests (Files):
2566 * modules/unictype/property-bidi-common-separator-tests (Files):
2568 * modules/unictype/property-bidi-control-tests (Files): Likewise.
2569 * modules/unictype/property-bidi-embedding-or-override-tests (Files):
2571 * modules/unictype/property-bidi-eur-num-separator-tests (Files):
2573 * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
2575 * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
2576 * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
2578 * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
2579 * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
2581 * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
2582 * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
2583 * modules/unictype/property-bidi-segment-separator-tests (Files):
2585 * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
2586 * modules/unictype/property-byname-tests (Files): Likewise.
2587 * modules/unictype/property-combining-tests (Files): Likewise.
2588 * modules/unictype/property-composite-tests (Files): Likewise.
2589 * modules/unictype/property-currency-symbol-tests (Files): Likewise.
2590 * modules/unictype/property-dash-tests (Files): Likewise.
2591 * modules/unictype/property-decimal-digit-tests (Files): Likewise.
2592 * modules/unictype/property-default-ignorable-code-point-tests (Files):
2594 * modules/unictype/property-deprecated-tests (Files): Likewise.
2595 * modules/unictype/property-diacritic-tests (Files): Likewise.
2596 * modules/unictype/property-extender-tests (Files): Likewise.
2597 * modules/unictype/property-format-control-tests (Files): Likewise.
2598 * modules/unictype/property-grapheme-base-tests (Files): Likewise.
2599 * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
2600 * modules/unictype/property-grapheme-link-tests (Files): Likewise.
2601 * modules/unictype/property-hex-digit-tests (Files): Likewise.
2602 * modules/unictype/property-hyphen-tests (Files): Likewise.
2603 * modules/unictype/property-id-continue-tests (Files): Likewise.
2604 * modules/unictype/property-id-start-tests (Files): Likewise.
2605 * modules/unictype/property-ideographic-tests (Files): Likewise.
2606 * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
2607 * modules/unictype/property-ids-trinary-operator-tests (Files):
2609 * modules/unictype/property-ignorable-control-tests (Files): Likewise.
2610 * modules/unictype/property-iso-control-tests (Files): Likewise.
2611 * modules/unictype/property-join-control-tests (Files): Likewise.
2612 * modules/unictype/property-left-of-pair-tests (Files): Likewise.
2613 * modules/unictype/property-line-separator-tests (Files): Likewise.
2614 * modules/unictype/property-logical-order-exception-tests (Files):
2616 * modules/unictype/property-lowercase-tests (Files): Likewise.
2617 * modules/unictype/property-math-tests (Files): Likewise.
2618 * modules/unictype/property-non-break-tests (Files): Likewise.
2619 * modules/unictype/property-not-a-character-tests (Files): Likewise.
2620 * modules/unictype/property-numeric-tests (Files): Likewise.
2621 * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
2622 * modules/unictype/property-other-default-ignorable-code-point-tests
2624 * modules/unictype/property-other-grapheme-extend-tests (Files):
2626 * modules/unictype/property-other-id-continue-tests (Files): Likewise.
2627 * modules/unictype/property-other-id-start-tests (Files): Likewise.
2628 * modules/unictype/property-other-lowercase-tests (Files): Likewise.
2629 * modules/unictype/property-other-math-tests (Files): Likewise.
2630 * modules/unictype/property-other-uppercase-tests (Files): Likewise.
2631 * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
2632 * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
2633 * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
2634 * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
2635 * modules/unictype/property-private-use-tests (Files): Likewise.
2636 * modules/unictype/property-punctuation-tests (Files): Likewise.
2637 * modules/unictype/property-quotation-mark-tests (Files): Likewise.
2638 * modules/unictype/property-radical-tests (Files): Likewise.
2639 * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
2640 * modules/unictype/property-soft-dotted-tests (Files): Likewise.
2641 * modules/unictype/property-space-tests (Files): Likewise.
2642 * modules/unictype/property-terminal-punctuation-tests (Files):
2644 * modules/unictype/property-test-tests (Files): Likewise.
2645 * modules/unictype/property-titlecase-tests (Files): Likewise.
2646 * modules/unictype/property-unassigned-code-value-tests (Files):
2648 * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
2649 * modules/unictype/property-uppercase-tests (Files): Likewise.
2650 * modules/unictype/property-variation-selector-tests (Files): Likewise.
2651 * modules/unictype/property-white-space-tests (Files): Likewise.
2652 * modules/unictype/property-xid-continue-tests (Files): Likewise.
2653 * modules/unictype/property-xid-start-tests (Files): Likewise.
2654 * modules/unictype/property-zero-width-tests (Files): Likewise.
2655 * modules/unictype/scripts-tests (Files): Likewise.
2656 * modules/unictype/syntax-c-ident-tests (Files): Likewise.
2657 * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
2658 * modules/unictype/syntax-java-ident-tests (Files): Likewise.
2659 * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
2660 * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
2661 * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
2662 * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
2663 * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
2664 * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
2665 * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
2666 * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
2667 * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
2668 * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
2669 * modules/uninorm/compat-decomposition-tests (Files): Likewise.
2670 * modules/uninorm/composition-tests (Files): Likewise.
2671 * modules/uninorm/decomposing-form-tests (Files): Likewise.
2672 * modules/uninorm/decomposition-tests (Files): Likewise.
2673 * modules/uninorm/filter-tests (Files): Likewise.
2674 * modules/uninorm/nfc-tests (Files): Likewise.
2675 * modules/uninorm/nfd-tests (Files): Likewise.
2676 * modules/uninorm/nfkc-tests (Files): Likewise.
2677 * modules/uninorm/nfkd-tests (Files): Likewise.
2678 * modules/uninorm/u8-normcmp-tests (Files): Likewise.
2679 * modules/uninorm/u8-normcoll-tests (Files): Likewise.
2680 * modules/uninorm/u16-normcmp-tests (Files): Likewise.
2681 * modules/uninorm/u16-normcoll-tests (Files): Likewise.
2682 * modules/uninorm/u32-normcmp-tests (Files): Likewise.
2683 * modules/uninorm/u32-normcoll-tests (Files): Likewise.
2684 * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
2685 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
2686 * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
2687 * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
2688 * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
2689 * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
2690 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
2691 * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
2692 * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
2693 * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
2694 * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
2695 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
2696 * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
2697 * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
2698 * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
2699 * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
2700 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
2701 * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
2702 * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
2703 * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
2704 * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
2705 * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
2706 * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
2707 * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
2708 * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
2709 * modules/uniwidth/u8-width-tests (Files): Likewise.
2710 * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
2711 * modules/uniwidth/u16-width-tests (Files): Likewise.
2712 * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
2713 * modules/uniwidth/u32-width-tests (Files): Likewise.
2714 * modules/uniwidth/width-tests (Files): Likewise.
2715 * modules/unlink-tests (Files): Likewise.
2716 * modules/unsetenv-tests (Files): Likewise.
2717 * modules/usleep-tests (Files): Likewise.
2718 * modules/utimens-tests (Files): Likewise.
2719 * modules/utimensat-tests (Files): Likewise.
2720 * modules/vasnprintf-posix-tests (Files): Likewise.
2721 * modules/vasnprintf-tests (Files): Likewise.
2722 * modules/vasprintf-posix-tests (Files): Likewise.
2723 * modules/vasprintf-tests (Files): Likewise.
2724 * modules/vdprintf-posix-tests (Files): Likewise.
2725 * modules/vfprintf-posix-tests (Files): Likewise.
2726 * modules/vprintf-posix-tests (Files): Likewise.
2727 * modules/vsnprintf-posix-tests (Files): Likewise.
2728 * modules/vsnprintf-tests (Files): Likewise.
2729 * modules/vsprintf-posix-tests (Files): Likewise.
2730 * modules/wcrtomb-tests (Files): Likewise.
2731 * modules/wcsnrtombs-tests (Files): Likewise.
2732 * modules/wcsrtombs-tests (Files): Likewise.
2733 * modules/wctype-tests (Files): Likewise.
2734 * modules/wcwidth-tests (Files): Likewise.
2735 * modules/xmemdup0-tests (Files): Likewise.
2736 * modules/xprintf-posix-tests (Files): Likewise.
2737 * modules/xvasprintf-tests (Files): Likewise.
2739 2009-12-24 Eric Blake <ebb9@byu.net>
2741 test-nanosleep: fix typo
2742 * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
2744 Reported by Bruno Haible.
2746 2009-12-24 Bruno Haible <bruno@clisp.org>
2748 Reduce namespace pollution on glibc systems.
2749 * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
2750 * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
2752 * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
2753 <getopt.h> on glibc systems.
2754 * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
2756 * lib/fcntl.c: Include <unistd.h> here instead.
2758 2009-12-24 Bruno Haible <bruno@clisp.org>
2760 * lib/stdlib.in.h (includes): Fix typo in today's commit.
2762 2009-12-24 Eric Blake <ebb9@byu.net>
2764 tests: add signature checks
2765 * tests/signature.h (SIGNATURE_CHECK): New file.
2766 * modules/atexit-tests (Files): Use it.
2767 * modules/btowc-tests (Files): Likewise.
2768 * modules/canonicalize-lgpl-tests (Files): Likewise.
2769 * modules/ceilf-tests (Files): Likewise.
2770 * modules/ceill-tests (Files): Likewise.
2771 * modules/chown-tests (Files): Likewise.
2772 * modules/dprintf-posix-tests (Files): Likewise.
2773 * modules/dup2-tests (Files): Likewise.
2774 * modules/dup3-tests (Files): Likewise.
2775 * modules/duplocale-tests (Files): Likewise.
2776 * modules/fchdir-tests (Files): Likewise.
2777 * modules/fcntl-tests (Files): Likewise.
2778 * modules/fdopendir-tests (Files): Likewise.
2779 * modules/fflush-tests (Files): Likewise.
2780 * modules/flock-tests (Files): Likewise.
2781 * modules/floorf-tests (Files): Likewise.
2782 * modules/floorl-tests (Files): Likewise.
2783 * modules/fnmatch-tests (Files): Likewise.
2784 * modules/fopen-tests (Files): Likewise.
2785 * modules/fprintf-posix-tests (Files): Likewise.
2786 * modules/freopen-tests (Files): Likewise.
2787 * modules/frexp-nolibm-tests (Files): Likewise.
2788 * modules/frexp-tests (Files): Likewise.
2789 * modules/frexpl-nolibm-tests (Files): Likewise.
2790 * modules/frexpl-tests (Files): Likewise.
2791 * modules/fseek-tests (Files): Likewise.
2792 * modules/fseeko-tests (Files): Likewise.
2793 * modules/fsync-tests (Files): Likewise.
2794 * modules/ftell-tests (Files): Likewise.
2795 * modules/ftello-tests (Files): Likewise.
2796 * modules/futimens-tests (Files): Likewise.
2797 * modules/getaddrinfo-tests (Files): Likewise.
2798 * modules/getcwd-tests (Files): Likewise.
2799 * modules/getdelim-tests (Files): Likewise.
2800 * modules/getdtablesize-tests (Files): Likewise.
2801 * modules/getgroups-tests (Files): Likewise.
2802 * modules/gethostname-tests (Files): Likewise.
2803 * modules/getline-tests (Files): Likewise.
2804 * modules/getopt-posix-tests (Files): Likewise.
2805 * modules/gettimeofday-tests (Files): Likewise.
2806 * modules/glob-tests (Files): Likewise.
2807 * modules/iconv-tests (Files): Likewise.
2808 * modules/inet_ntop-tests (Files): Likewise.
2809 * modules/inet_pton-tests (Files): Likewise.
2810 * modules/isblank-tests (Files): Likewise.
2811 * modules/lchown-tests (Files): Likewise.
2812 * modules/ldexpl-tests (Files): Likewise.
2813 * modules/link-tests (Files): Likewise.
2814 * modules/linkat-tests (Files): Likewise.
2815 * modules/lseek-tests (Files): Likewise.
2816 * modules/lstat-tests (Files): Likewise.
2817 * modules/mbrtowc-tests (Files): Likewise.
2818 * modules/mbsinit-tests (Files): Likewise.
2819 * modules/mbsnrtowcs-tests (Files): Likewise.
2820 * modules/mbsrtowcs-tests (Files): Likewise.
2821 * modules/memchr-tests (Files): Likewise.
2822 * modules/memcmp-tests (Files): Likewise.
2823 * modules/memmem-tests (Files): Likewise.
2824 * modules/memrchr-tests (Files): Likewise.
2825 * modules/mkdir-tests (Files): Likewise.
2826 * modules/mkfifo-tests (Files): Likewise.
2827 * modules/mkfifoat-tests (Files): Likewise.
2828 * modules/mknod-tests (Files): Likewise.
2829 * modules/nanosleep-tests (Files): Likewise.
2830 * modules/nl_langinfo-tests (Files): Likewise.
2831 * modules/obstack-printf-tests (Files): Likewise.
2832 * modules/open-tests (Files): Likewise.
2833 * modules/openat-tests (Files): Likewise.
2834 * modules/perror-tests (Files): Likewise.
2835 * modules/pipe2-tests (Files): Likewise.
2836 * modules/poll-tests (Files): Likewise.
2837 * modules/popen-tests (Files): Likewise.
2838 * modules/posix_spawn-tests (Files): Likewise.
2839 * modules/posix_spawnp-tests (Files): Likewise.
2840 * modules/pread-tests (Files): Likewise.
2841 * modules/printf-posix-tests (Files): Likewise.
2842 * modules/pty-tests (Files): Likewise.
2843 * modules/random_r-tests (Files): Likewise.
2844 * modules/rawmemchr-tests (Files): Likewise.
2845 * modules/readlink-tests (Files): Likewise.
2846 * modules/remove-tests (Files): Likewise.
2847 * modules/rename-tests (Files): Likewise.
2848 * modules/renameat-tests (Files): Likewise.
2849 * modules/rmdir-tests (Files): Likewise.
2850 * modules/round-tests (Files): Likewise.
2851 * modules/roundf-tests (Files): Likewise.
2852 * modules/roundl-tests (Files): Likewise.
2853 * modules/select-tests (Files): Likewise.
2854 * modules/setenv-tests (Files): Likewise.
2855 * modules/sigaction-tests (Files): Likewise.
2856 * modules/sleep-tests (Files): Likewise.
2857 * modules/snprintf-posix-tests (Files): Likewise.
2858 * modules/snprintf-tests (Files): Likewise.
2859 * modules/sprintf-posix-tests (Files): Likewise.
2860 * modules/stat-tests (Files): Likewise.
2861 * modules/strcasestr-tests (Files): Likewise.
2862 * modules/strchrnul-tests (Files): Likewise.
2863 * modules/strerror-tests (Files): Likewise.
2864 * modules/strsignal-tests (Files): Likewise.
2865 * modules/strstr-tests (Files): Likewise.
2866 * modules/strtod-tests (Files): Likewise.
2867 * modules/strverscmp-tests (Files): Likewise.
2868 * modules/symlink-tests (Files): Likewise.
2869 * modules/symlinkat-tests (Files): Likewise.
2870 * modules/times-tests (Files): Likewise.
2871 * modules/trunc-tests (Files): Likewise.
2872 * modules/truncf-tests (Files): Likewise.
2873 * modules/truncl-tests (Files): Likewise.
2874 * modules/tsearch-tests (Files): Likewise.
2875 * modules/uname-tests (Files): Likewise.
2876 * modules/unlink-tests (Files): Likewise.
2877 * modules/unsetenv-tests (Files): Likewise.
2878 * modules/usleep-tests (Files): Likewise.
2879 * modules/utimensat-tests (Files): Likewise.
2880 * modules/vasprintf-tests (Files): Likewise.
2881 * modules/vdprintf-posix-tests (Files): Likewise.
2882 * modules/vfprintf-posix-tests (Files): Likewise.
2883 * modules/vprintf-posix-tests (Files): Likewise.
2884 * modules/vsnprintf-posix-tests (Files): Likewise.
2885 * modules/vsnprintf-tests (Files): Likewise.
2886 * modules/vsprintf-posix-tests (Files): Likewise.
2887 * modules/wcrtomb-tests (Files): Likewise.
2888 * modules/wcsnrtombs-tests (Files): Likewise.
2889 * modules/wcsrtombs-tests (Files): Likewise.
2890 * modules/wcwidth-tests (Files): Likewise.
2891 * tests/test-isfinite.c (isfinite): Ensure macro declaration.
2892 * tests/test-isinf.c (isinf): Likewise.
2893 * tests/test-isnan.c (isnan): Likewise.
2894 * tests/test-signbit.c (signbit): Likewise.
2895 * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
2896 declaration, either as macro or with correct signature.
2897 (select): Ensure function under test is declared with correct
2898 signature in correct header.
2899 * tests/test-atexit.c (atexit): Likewise.
2900 * tests/test-btowc.c (btowc): Likewise.
2901 * tests/test-canonicalize-lgpl.c (realpath)
2902 (canonicalize_file_name): Likewise.
2903 * tests/test-ceilf1.c (ceilf): Likewise.
2904 * tests/test-ceill.c (ceill): Likewise.
2905 * tests/test-chown.c (chown): Likewise.
2906 * tests/test-dprintf-posix.c (dprintf): Likewise.
2907 * tests/test-dup2.c (dup2): Likewise.
2908 * tests/test-dup3.c (dup3): Likewise.
2909 * tests/test-duplocale.c (duplocale): Likewise.
2910 * tests/test-fchdir.c (fchdir): Likewise.
2911 * tests/test-fchownat.c (fchownat): Likewise.
2912 * tests/test-fcntl.c (fcntl): Likewise.
2913 * tests/test-fdopendir.c (fdopendir): Likewise.
2914 * tests/test-fflush.c (fflush): Likewise.
2915 * tests/test-flock.c (flock): Likewise.
2916 * tests/test-floorf1.c (floorf): Likewise.
2917 * tests/test-floorl.c (floorl): Likewise.
2918 * tests/test-fnmatch.c (fnmatch): Likewise.
2919 * tests/test-fopen.c (fopen): Likewise.
2920 * tests/test-fprintf-posix.c (fprintf): Likewise.
2921 * tests/test-freopen.c (freopen): Likewise.
2922 * tests/test-frexp.c (frexp): Likewise.
2923 * tests/test-frexpl.c (frexpl): Likewise.
2924 * tests/test-fseek.c (fseek): Likewise.
2925 * tests/test-fseeko.c (fseeko): Likewise.
2926 * tests/test-fstatat.c (fstatat): Likewise.
2927 * tests/test-fsync.c (fsync): Likewise.
2928 * tests/test-ftell.c (ftell): Likewise.
2929 * tests/test-ftello.c (ftello): Likewise.
2930 * tests/test-futimens.c (futimens): Likewise.
2931 * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
2932 (gai_strerror): Likewise.
2933 * tests/test-getcwd.c (getcwd): Likewise.
2934 * tests/test-getdelim.c (getdelim): Likewise.
2935 * tests/test-getdtablesize.c (getdtablesize): Likewise.
2936 * tests/test-getgroups.c (getgroups): Likewise.
2937 * tests/test-gethostname.c (gethostname): Likewise.
2938 * tests/test-getline.c (getline): Likewise.
2939 * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
2941 * tests/test-gettimeofday.c (gettimeofday): Likewise.
2942 * tests/test-glob.c (glob, globfree): Likewise.
2943 * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
2944 * tests/test-inet_ntop.c (inet_ntop): Likewise.
2945 * tests/test-inet_pton.c (inet_pton): Likewise.
2946 * tests/test-isblank.c (isblank): Likewise.
2947 * tests/test-lchown.c (lchown): Likewise.
2948 * tests/test-ldexpl.c (ldexpl): Likewise.
2949 * tests/test-link.c (link): Likewise.
2950 * tests/test-linkat.c (linkat): Likewise.
2951 * tests/test-lseek.c (lseek): Likewise.
2952 * tests/test-lstat.c (lstat): Likewise.
2953 * tests/test-mbrtowc.c (mbrtowc): Likewise.
2954 * tests/test-mbsinit.c (mbsinit): Likewise.
2955 * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
2956 * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
2957 * tests/test-memchr.c (memchr): Likewise.
2958 * tests/test-memcmp.c (memcmp): Likewise.
2959 * tests/test-memmem.c (memmem): Likewise.
2960 * tests/test-memrchr.c (memrchr): Likewise.
2961 * tests/test-mkdir.c (mkdir): Likewise.
2962 * tests/test-mkdirat.c (mkdirat): Likewise.
2963 * tests/test-mkfifo.c (mkfifo): Likewise.
2964 * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
2965 * tests/test-mknod.c (mknod): Likewise.
2966 * tests/test-nanosleep.c (nanosleep): Likewise.
2967 * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
2968 * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
2970 * tests/test-open.c (open): Likewise.
2971 * tests/test-openat.c (openat): Likewise.
2972 * tests/test-perror.c (perror): Likewise.
2973 * tests/test-pipe2.c (pipe2): Likewise.
2974 * tests/test-poll.c (poll): Likewise.
2975 * tests/test-popen.c (popen, pclose): Likewise.
2976 * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
2977 (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
2978 (posix_spawnattr_setflags, posix_spawn_file_actions_init)
2979 (posix_spawn_file_actions_destroy)
2980 (posix_spawn_file_actions_addclose)
2981 (posix_spawn_file_actions_addopen)
2982 (posix_spawn_file_actions_adddup2): Likewise.
2983 * tests/test-posix_spawn3.c (posix_spawn): Likewise.
2984 * tests/test-pread.c (pread): Likewise.
2985 * tests/test-printf-posix.c (printf): Likewise.
2986 * tests/test-pty.c (openpty, forkpty): Likewise.
2987 * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
2988 (random_r): Likewise.
2989 * tests/test-rawmemchr.c (rawmemchr): Likewise.
2990 * tests/test-readlink.c (readlink): Likewise.
2991 * tests/test-remove.c (remove): Likewise.
2992 * tests/test-rename.c (rename): Likewise.
2993 * tests/test-renameat.c (renameat): Likewise.
2994 * tests/test-rmdir.c (rmdir): Likewise.
2995 * tests/test-round1.c (round): Likewise.
2996 * tests/test-roundf1.c (roundf): Likewise.
2997 * tests/test-roundl.c (roundl): Likewise.
2998 * tests/test-setenv.c (setenv): Likewise.
2999 * tests/test-sigaction.c (sigaction): Likewise.
3000 * tests/test-sleep.c (sleep): Likewise.
3001 * tests/test-snprintf.c (snprintf): Likewise.
3002 * tests/test-sprintf-posix.c (sprintf): Likewise.
3003 * tests/test-stat.c (stat): Likewise.
3004 * tests/test-stpncpy.c (stpncpy): Likewise.
3005 * tests/test-strcasestr.c (strcasestr): Likewise.
3006 * tests/test-strchrnul.c (strchrnul): Likewise.
3007 * tests/test-strerror.c (strerror): Likewise.
3008 * tests/test-strsignal.c (strsignal): Likewise.
3009 * tests/test-strstr.c (strstr): Likewise.
3010 * tests/test-strtod.c (strtod): Likewise.
3011 * tests/test-strverscmp.c (strverscmp): Likewise.
3012 * tests/test-symlink.c (symlink): Likewise.
3013 * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
3014 * tests/test-times.c (times): Likewise.
3015 * tests/test-trunc1.c (trunc): Likewise.
3016 * tests/test-truncf1.c (truncf): Likewise.
3017 * tests/test-truncl.c (truncl): Likewise.
3018 * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
3020 * tests/test-uname.c (uname): Likewise.
3021 * tests/test-unlink.c (unlink): Likewise.
3022 * tests/test-unlinkat.c (unlinkat): Likewise.
3023 * tests/test-unsetenv.c (unsetenv): Likewise.
3024 * tests/test-usleep.c (usleep): Likewise.
3025 * tests/test-utimensat.c (utimensat): Likewise.
3026 * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
3027 * tests/test-vdprintf-posix.c (vdprintf): Likewise.
3028 * tests/test-vfprintf-posix.c (vfprintf): Likewise.
3029 * tests/test-vprintf-posix.c (vprintf): Likewise.
3030 * tests/test-vsnprintf.c (vsnprintf): Likewise.
3031 * tests/test-vsprintf-posix.c (vsprintf): Likewise.
3032 * tests/test-wcrtomb.c (wcrtomb): Likewise.
3033 * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
3034 * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
3035 * tests/test-wcwidth.c (wcwidth): Likewise.
3037 build: pull in conditional headers during GNULIB_POSIXCHECK
3038 * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
3039 definitions from any conditionally-included headers.
3040 * lib/stdlib.in.h (includes): Likewise.
3041 * lib/unistd.in.h (includes): Likewise.
3043 2009-12-24 Bruno Haible <bruno@clisp.org>
3045 * tests/test-argv-iter.c: Include header file being tested immediately
3047 * tests/test-base64.c: Likewise.
3048 * tests/test-flock.c: Likewise.
3049 * tests/test-fsync.c: Likewise.
3050 * tests/test-getdate.c: Likewise.
3051 * tests/test-getndelim2.c: Likewise.
3052 * tests/test-isfinite.c: Likewise.
3053 * tests/test-isinf.c: Likewise.
3054 * tests/test-strerror.c: Likewise.
3055 * tests/test-strsignal.c: Likewise.
3057 2009-12-23 Eric Blake <ebb9@byu.net>
3059 unistd: work around cygwin bug
3060 * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
3061 * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
3062 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
3064 2009-12-23 Bruno Haible <bruno@clisp.org>
3066 localename: More tests.
3067 * tests/test-localename.c (SIZEOF): New macro.
3068 (categories): New variable.
3069 (test_locale_name, test_locale_name_posix, test_locale_name_environ,
3070 test_locale_name_default): Add test w.r.t. thread locale.
3071 (test_locale_name_thread): New function.
3074 localename: Make aware of thread locale.
3075 * lib/localename.h (gl_locale_name_thread): New declaration.
3076 (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
3077 behaviour with respect to thread locale.
3078 * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
3079 <langinfo.h>, glthread/lock.h.
3080 (SIZE_BITS): New macro.
3081 (string_hash): New function.
3082 (struct hash_node): New type.
3083 (HASH_TABLE_SIZE): New macro.
3084 (struniq_hash_table, struniq_lock): New variables.
3085 (struniq): New function.
3086 (gl_locale_name_thread): New function.
3087 (gl_locale_name): Invoke it.
3088 * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
3089 * modules/localename (Depends-on): Add lock.
3090 Reported by Mike Gran <spk121@yahoo.com>.
3092 2009-12-23 Eric Blake <ebb9@byu.net>
3095 * modules/va-args: New file.
3096 * m4/va-args.m4 (gl_VA_ARGS): Likewise.
3097 * MODULES.html.sh (Core language properties): Mention it.
3099 gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
3100 * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
3101 named alias for __attribute__((__unused__)).
3102 * lib/chown.c: Update client.
3103 * lib/fchmodat.c: Likewise.
3104 * lib/fts.c: Likewise.
3105 * lib/getdate.y: Likewise.
3106 * lib/getgroups.c: Likewise.
3107 * lib/getopt.c: Likewise.
3108 * lib/getugroups.c: Likewise.
3109 * lib/mkdir.c: Likewise.
3110 * lib/mkfifo.c: Likewise.
3111 * lib/mkfifoat.c: Likewise.
3112 * lib/mknod.c: Likewise.
3113 * lib/mknodat.c: Likewise.
3114 * lib/readlink.c: Likewise.
3115 * lib/se-context.in.h: Likewise.
3116 * lib/se-selinux.in.h: Likewise.
3117 * lib/sockets.c: Likewise.
3118 * lib/symlink.c: Likewise.
3119 * lib/symlinkat.c: Likewise.
3120 * lib/unicodeio.c: Likewise.
3121 * lib/unistr.h: Likewise.
3122 * tests/test-areadlink.c: Likewise.
3123 * tests/test-areadlinkat.c: Likewise.
3124 * tests/test-filenamecat.c: Likewise.
3125 * tests/test-fseeko.c: Likewise.
3126 * tests/test-ftello.c: Likewise.
3127 * tests/test-getdate.c: Likewise.
3128 * tests/test-getgroups.c: Likewise.
3129 * tests/test-gethostname.c: Likewise.
3130 * tests/test-quotearg.c: Likewise.
3131 * tests/test-version-etc.c: Likewise.
3132 * tests/test-xalloc-die.c: Likewise.
3133 * tests/test-xfprintf-posix.c: Likewise.
3134 * tests/test-xprintf-posix.c: Likewise.
3135 * tests/test-xvasprintf.c: Likewise.
3137 tests: avoid compiler warnings
3138 * tests/test-fcntl.c (main): Delete unused parameters.
3139 * tests/test-freopen-safer.c (main): Likewise.
3140 * tests/test-xalloc-die.c (main): Mark unused parameters.
3141 * tests/test-fseeko.c (main): Likewise.
3142 * tests/test-ftello.c (main): Likewise.
3143 * tests/test-nanosleep.c (main): Avoid declaration warning.
3144 * tests/test-sleep.c (main): Likewise.
3145 * tests/test-unsetenv.c (main): Silence warning about string
3147 * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
3149 2009-12-23 Bruno Haible <bruno@clisp.org>
3151 * tests/test-localename.c (test_locale_name): New function, extracted
3152 from main. Also test mixed situations.
3153 (test_locale_name_posix, test_locale_name_environ,
3154 test_locale_name_default): New functions.
3155 (main): Invoke them all.
3156 * modules/localename-tests (configure.ac): Test for newlocale.
3158 2009-12-23 Bruno Haible <bruno@clisp.org>
3160 unistd: Ensure getcwd gets declared before being overridden.
3161 * lib/unistd.in.h: Conditionally include <io.h>.
3163 2009-12-22 Bruno Haible <bruno@clisp.org>
3165 wchar: Diagnose broken combination of glibc and gcc versions and flags.
3166 * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
3167 (gl_WCHAR_H): Invoke it.
3168 * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
3169 * doc/posix-headers/wchar.texi: Mention the interoperability problem.
3170 Reported by Karl Berry <karl@freefriends.org>.
3172 2009-12-22 Eric Blake <ebb9@byu.net>
3174 math, unistd: avoid redundant includes
3175 * lib/math.in.h (isnan): No need to re-include <math.h>.
3176 * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
3178 getsubopt: work around cygwin bug
3179 * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
3180 avoid conflicting with system getsubopt.
3181 * doc/posix-functions/getsubopt.texi (getsubopt): Document the
3184 getopt: synchronize from glibc
3185 * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
3186 parameter order. Adjust all callers.
3187 (_getopt_internal_r, main): Adjust quoting in error messages.
3188 Drop considerations for outdated POSIX 1003.2 error message.
3189 * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
3191 * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
3193 test-getopt: test stderr behavior
3194 * modules/getopt-posix-tests (Depends-on): Add dup2.
3195 * tests/test-getopt.c (ASSERT): Avoid stderr.
3196 (main): Move stderr to a temporary file.
3197 * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
3198 Instead, add parameter to inform caller if output occurred.
3199 (test_getopt): Adjust all existing tests to expect silence, and
3200 add new tests of leading ":".
3201 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
3202 glibc shortcomings with leading "-:" or "+:" in optstring.
3203 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3205 * doc/posix-functions/getopt.texi (getopt): Likewise.
3207 test-getopt: enhance test
3208 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
3210 * tests/test-getopt.c (OPTIND_MIN): Move...
3211 * tests/test-getopt.h (OPTIND_MIN): ...here.
3212 * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
3213 Require that optind=0 works, since modern BSD supports it in
3214 addition to optreset, and since coreutils expects it.
3215 (test_getopt_long_only): New test.
3216 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
3217 glibc shortcomings with 'W;', and enforcement of optind=0.
3218 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3221 2009-12-21 Bruno Haible <bruno@clisp.org>
3223 localename: Improvements for MacOS X and Cygwin.
3224 * lib/localename.h (gl_locale_name_environ): New declaration.
3225 * lib/localename.c (gl_locale_name_environ): New function, extracted from
3226 gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
3227 (gl_locale_name_posix): Invoke it.
3228 (gl_locale_name_default): Add comments. Use Windows native API also on
3231 2009-12-21 Bruno Haible <bruno@clisp.org>
3233 Update list of Win32 locale ids.
3234 * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
3235 (LANG_SAMI): Renamed from LANG_SAAMI.
3236 (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
3237 LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
3238 LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
3239 LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
3240 (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
3241 SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
3242 SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
3243 SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
3244 SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
3245 SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
3246 SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
3247 SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
3248 SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
3249 SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
3250 SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
3251 SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
3252 SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
3253 SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
3254 SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
3255 SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
3256 SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
3257 SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
3258 SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
3259 SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
3260 SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
3261 SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
3262 SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
3263 SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
3264 SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
3265 SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
3266 SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
3267 SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
3268 SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
3269 SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
3270 SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
3271 SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
3272 SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
3273 SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
3274 SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
3275 SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
3276 SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
3277 SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
3278 SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
3279 SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
3280 SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
3281 SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
3282 SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
3283 SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
3284 SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
3285 SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
3286 SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
3287 SUBLANG_ZULU_SOUTH_AFRICA): New macros.
3288 (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
3289 locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
3290 Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
3291 Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
3292 Add more languages and countries for Sami, Sorbian. Add more countries
3293 for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
3294 for Pashto. Change country for Syriac, Tswana.
3296 2009-12-21 Eric Blake <ebb9@byu.net>
3298 test-utimens: avoid spurious failure
3299 * tests/test-chown.h (nap): Factor...
3300 * tests/nap.h: ...into new file.
3301 * tests/test-lchown.h (nap): Avoid duplication.
3302 * tests/test-utimens-common.h (nap): Use shared implementation,
3303 necessary on file systems with 1-second resolution.
3304 * modules/chown-tests (Files): Include new file.
3305 * modules/fdutimensat-tests (Files): Likewise.
3306 * modules/futimens-tests (Files): Likewise.
3307 * modules/lchown-tests (Files): Likewise.
3308 * modules/openat-tests (Files): Likewise.
3309 * modules/utimens-tests (Files): Likewise.
3310 * modules/utimensat-tests (Files): Likewise.
3312 2009-12-19 Eric Blake <ebb9@byu.net>
3314 futimens, utimensat: work around Linux bug
3315 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
3316 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3317 * lib/utimensat.c (rpl_utimensat): Work around it.
3318 * lib/futimens.c (rpl_futimens): Adjust comment.
3320 utimens: work around Linux ctime bug
3321 * lib/utimens.c (detect_ctime_bug): New helper function.
3322 (update_timespec): Differentiate between workaround needed for
3323 this bug vs. what is needed for systems that lack utimensat.
3324 (fdutimens, lutimens): Work around bug.
3326 utimens: check for ctime update
3327 * tests/test-utimens-common.h (check_ctime): Define.
3328 * tests/test-utimens.h (test_utimens): Expose the Linux bug.
3329 * tests/test-futimens.h (test_futimens): Likewise.
3330 * tests/test-lutimens.h (test_lutimens): Likewise.
3331 * doc/posix-functions/futimens.texi (futimens): Document the bug.
3332 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
3334 2009-12-19 Bruno Haible <bruno@clisp.org>
3336 dprintf-posix: Check against memory leak fixed on 2009-12-15.
3337 * tests/test-dprintf-posix2.sh: New file.
3338 * tests/test-dprintf-posix2.c: New file.
3339 * modules/dprintf-posix-tests (Files): Add them.
3340 (configure.ac): Check for getrlimit and setrlimit.
3341 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
3343 2009-12-19 Bruno Haible <bruno@clisp.org>
3345 fprintf-posix: Check against memory leak fixed on 2009-12-15.
3346 * tests/test-fprintf-posix3.sh: New file.
3347 * tests/test-fprintf-posix3.c: New file.
3348 * modules/fprintf-posix-tests (Files): Add them.
3349 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
3351 2009-12-19 Eric Blake <ebb9@byu.net>
3353 dirfd: fix prototype
3354 * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
3355 * lib/dirfd.c (dirfd): Likewise.
3357 canonicalize: reduce memory usage
3358 * lib/canonicalize.c (canonicalize_filename_mode): Trim the
3360 Reported by Solar Designer <solar@openwall.com>.
3362 2009-12-19 Bruno Haible <bruno@clisp.org>
3364 New module attribute 'Applicability'.
3365 * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
3366 * gnulib-tool: New option --extract-applicability.
3367 (func_usage): Document it.
3368 (sed_extract_prog): Recognize it.
3369 (func_get_applicability): New function.
3370 (func_import): Generalize handling of 'link-warning' module.
3371 * modules/link-warning (Applicability): New section.
3372 * modules/arg-nonnull (Applicability): New section.
3373 Repoted by Simon Josefsson <simon@josefsson.org>.
3375 2009-12-19 Bruno Haible <bruno@clisp.org>
3378 * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
3379 * lib/fseeko.c (rpl_fseeko): Likewise.
3381 2009-12-16 José E. Marchesi <jemarch@gnu.org> (tiny change)
3383 * lib/gl_list.h: Fix typo in comment.
3385 2009-12-16 Eric Blake <ebb9@byu.net>
3387 fcntl: use to simplify other modules
3388 * modules/cloexec (Depends-on): Add fcntl.
3389 * modules/fchdir (Depends-on): Likewise.
3390 * modules/fd-safer-flag (Depends-on): Likewise.
3391 * modules/unistd-safer (Depends-on): Likewise.
3392 * modules/dup3 (configure.ac): Set module indicator.
3393 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
3395 * lib/fchdir.c (_gl_register_dup): Fix comment.
3396 * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
3397 * lib/dup-safer.c (dup_safer): Likewise.
3398 * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
3399 * lib/dup3.c (dup3): Likewise.
3400 * tests/test-fchdir.c (main): Enhance test.
3401 Fixes a dup_cloexec bug reported by Ondřej Vašík.
3403 fcntl: port portions of fcntl to mingw
3404 * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
3405 * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
3406 replacement for mingw.
3407 * modules/fcntl (Description): Update.
3408 (Depends-on): Add dup2.
3409 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
3410 * modules/fcntl-h (Makefile.am): Substitute it.
3411 * lib/fcntl.in.h (fcntl): Update declaration.
3412 (F_DUPFD, F_GETFD): New macros, when needed.
3413 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
3414 * doc/posix-functions/fcntl.texi (fcntl): Likewise.
3415 * tests/test-fcntl.c (check_flags, main): Enhance test for items
3418 fcntl: work around cygwin bug in F_DUPFD
3419 * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
3420 (gl_FUNC_FCNTL): Use it. Test for F_DUPFD bug.
3421 * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
3422 <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
3423 * doc/posix-functions/fcntl.texi (fcntl): Document it.
3425 fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
3426 * modules/fcntl (Files): List new files.
3427 (configure.ac): Run a test.
3428 * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
3429 * lib/fcntl.c (rpl_fcntl): Likewise.
3430 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
3431 (gl_FCNTL_H): Always replace fcntl.h.
3432 * modules/fcntl-h (Makefile.am): Substitute witnesses.
3433 * lib/fcntl.in.h (fcntl): Declare replacement.
3434 (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
3435 needed, plus a witness.
3436 * doc/posix-functions/fcntl.texi (fcntl): Document this.
3437 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
3438 * tests/test-fcntl.c: New file.
3439 * modules/fcntl-tests: Likewise.
3441 binary-io: avoid potential compilation warning
3442 * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
3445 fflush: avoid compilation error on NetBSD
3446 * lib/fflush.c (update_fpos_cache): Use a union to safely convert
3447 between off_t and fpos_t, since the latter is sometimes a struct.
3448 * lib/fseeko.c (rpl_fseeko): Likewise.
3449 Reported by Alexander Nasonov <alnsn@yandex.ru>.
3451 2009-12-15 Eric Blake <ebb9@byu.net>
3453 fcntl-h, stdio, sys_ioctl: fix declarations
3454 * lib/stdio.in.h (dprintf): Use of link warning on a variadic
3455 function must not take arguments.
3456 * lib/sys_ioctl.in.h (ioctl): Likewise.
3457 * lib/fcntl.in.h (openat): Likewise. Declare extern.
3458 (open): Add a link warning.
3460 2009-12-15 Jim Meyering <meyering@redhat.com>
3462 areadlink, areadlink-with-size: relax license to LGPLv2+
3463 * modules/areadlink (License): Relax to LGPLv2+.
3464 * modules/areadlink-with-size (License): Likewise.
3466 2009-12-15 Joel E. Denny <jdenny@clemson.edu>
3467 Bruno Haible <bruno@clisp.org>
3469 *printf: Fix memory leak.
3470 * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
3471 * lib/vfprintf.c (vfprintf): Likewise.
3472 * lib/dprintf.c (dprintf): Likewise.
3473 * lib/vdprintf.c (vdprintf): Likewise.
3475 2009-12-14 Eric Blake <ebb9@byu.net>
3477 accept4: adjust module dependencies
3478 * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
3480 utimens: one more try at avoiding compiler warning
3481 * lib/utimens.c (lutimens): Lower scope of result.
3483 2009-12-13 Bruno Haible <bruno@clisp.org>
3485 Move the malloc checking from module 'list' to new module 'xlist'.
3486 * modules/xlist: New file.
3487 * lib/gl_xlist.h: New file.
3488 * lib/gl_xlist.c: New file.
3489 * lib/gl_list.h (gl_list_create_empty, gl_list_create,
3490 gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
3491 gl_list_add_last, gl_list_add_before, gl_list_add_after,
3492 gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
3493 (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
3494 gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
3495 gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
3496 gl_sortedlist_nx_add): New declarations.
3497 (struct gl_list_implementation): Rename and change methods accordingly.
3498 (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
3499 (gl_list_nx_create): Renamed from gl_list_create.
3500 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
3501 (gl_list_nx_set_at): Renamed from gl_list_set_at.
3502 (gl_list_nx_add_first): Renamed from gl_list_add_first.
3503 (gl_list_nx_add_last): Renamed from gl_list_add_last.
3504 (gl_list_nx_add_before): Renamed from gl_list_add_before.
3505 (gl_list_nx_add_after): Renamed from gl_list_add_after.
3506 (gl_list_nx_add_at): Renamed from gl_list_add_at.
3507 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
3508 * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
3509 gl_list_create_empty.
3510 (gl_list_nx_create): Renamed from gl_list_create.
3511 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
3512 (gl_list_nx_set_at): Renamed from gl_list_set_at.
3513 (gl_list_nx_add_first): Renamed from gl_list_add_first.
3514 (gl_list_nx_add_last): Renamed from gl_list_add_last.
3515 (gl_list_nx_add_before): Renamed from gl_list_add_before.
3516 (gl_list_nx_add_after): Renamed from gl_list_add_after.
3517 (gl_list_nx_add_at): Renamed from gl_list_add_at.
3518 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
3519 * lib/gl_array_list.c: Don't include xalloc.h.
3520 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
3521 NULL upon out-of-memory.
3522 (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
3524 (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
3525 Change return type to 'int'.
3526 (gl_array_nx_set_at): Renamed from gl_array_set_at.
3527 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
3528 (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
3530 (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
3532 (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
3534 (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
3536 (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
3538 (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
3540 (gl_array_list_implementation): Update.
3541 * lib/gl_carray_list.c: Don't include xalloc.h.
3542 (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
3543 Return NULL upon out-of-memory.
3544 (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
3546 (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
3547 Change return type to 'int'.
3548 (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
3549 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
3550 (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
3552 (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
3554 (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
3556 (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
3557 (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
3558 (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
3560 (gl_carray_list_implementation): Update.
3561 * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
3562 * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
3563 gl_linked_create_empty. Return NULL upon out-of-memory.
3564 (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
3566 (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
3567 Change return type to 'int'. Return -1 upon out-of-memory.
3568 (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
3570 (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
3572 (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
3574 (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
3575 NULL upon out-of-memory.
3576 (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
3578 (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
3580 (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
3582 * lib/gl_linked_list.c: Don't include xalloc.h.
3583 (gl_linked_list_implementation): Update.
3584 * lib/gl_linkedhash_list.c: Don't include xalloc.h.
3585 (add_to_bucket): Change return type to 'int'.
3586 (gl_linkedhash_list_implementation): Update.
3587 * lib/gl_anytree_list1.h (free_subtree): New function.
3588 * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
3589 gl_tree_create_empty. Return NULL upon out-of-memory.
3590 (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
3591 Change return type to 'int'. Return -1 upon out-of-memory.
3592 (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
3594 (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
3595 (gl_tree_remove_node): New function, moved here from
3596 lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
3597 (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
3599 * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
3600 malloc, not xmalloc. Return NULL upon out-of-memory.
3601 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
3603 (gl_tree_remove_node_from_tree): New function, extracted from
3604 gl_tree_remove_node.
3605 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
3607 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
3609 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
3611 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
3613 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
3614 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
3615 not xmalloc. Return NULL upon out-of-memory.
3616 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
3618 (gl_tree_remove_node_from_tree): New function, extracted from
3619 gl_tree_remove_node.
3620 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
3622 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
3624 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
3626 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
3628 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
3629 * lib/gl_avltree_list.c: Don't include xalloc.h. Include
3630 gl_anytree_list1.h before gl_anyavltree_list2.h.
3631 (gl_avltree_list_implementation): Update.
3632 * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
3633 gl_anytree_list1.h before gl_anyavltree_list2.h.
3634 (gl_rbtree_list_implementation): Update.
3635 * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
3636 Change return type to 'int'. Return -1 upon out-of-memory. Use
3638 * lib/gl_avltreehash_list.c: Don't include xalloc.h.
3639 (gl_avltreehash_list_implementation): Update.
3640 * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
3641 (gl_rbtreehash_list_implementation): Update.
3642 * modules/array-list (Depends-on): Remove xalloc.
3643 * modules/carray-list (Depends-on): Likewise.
3644 * modules/linked-list (Depends-on): Likewise.
3645 * modules/linkedhash-list (Depends-on): Likewise.
3646 * modules/avltree-list (Depends-on): Likewise.
3647 * modules/rbtree-list (Depends-on): Likewise.
3648 * modules/avltreehash-list (Depends-on): Likewise.
3649 * modules/rbtreehash-list (Depends-on): Likewise.
3651 * modules/xsublist: New file.
3652 * lib/gl_xsublist.h: New file.
3653 * lib/gl_xsublist.c: New file.
3654 * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
3655 (gl_sublist_nx_create): New declaration.
3656 * lib/gl_sublist.c: Don't include xalloc.h.
3657 (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
3658 (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
3659 (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
3660 Change return type to 'int'. Return -1 upon out-of-memory.
3661 (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
3663 (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
3664 NULL upon out-of-memory.
3665 (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
3667 (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
3668 NULL upon out-of-memory.
3669 (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
3670 NULL upon out-of-memory.
3671 (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
3673 (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
3674 (gl_sublist_list_implementation): Update.
3675 (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
3677 * modules/sublist (Depends-on): Remove xalloc.
3679 * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
3680 * tests/test-carray_list.c: Likewise.
3681 * tests/test-linked_list.c: Likewise.
3682 * tests/test-linkedhash_list.c: Likewise.
3683 * tests/test-avltree_list.c: Likewise.
3684 * tests/test-rbtree_list.c: Likewise.
3685 * tests/test-avltreehash_list.c: Likewise.
3686 * tests/test-rbtreehash_list.c: Likewise.
3687 * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
3688 * modules/carray-list-tests (Makefile.am): Likewise.
3689 * modules/linked-list-tests (Makefile.am): Likewise.
3690 * modules/linkedhash-list-tests (Makefile.am): Likewise.
3691 * modules/avltree-list-tests (Makefile.am): Likewise.
3692 * modules/rbtree-list-tests (Makefile.am): Likewise.
3693 * modules/avltreehash-list-tests (Makefile.am): Likewise.
3694 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
3696 * NEWS: Mention the changes.
3698 * lib/clean-temp.c: Include gl_xlist.h.
3699 * modules/clean-temp (Depends-on): Add xlist.
3701 * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
3702 * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
3704 * tests/test-array_oset.c: Include gl_xlist.h.
3705 * modules/array-oset-tests (Depends-on): Add xlist.
3707 Reported by José E. Marchesi <jemarch@gnu.org>.
3709 2009-12-13 Bruno Haible <bruno@clisp.org>
3711 Move the malloc checking from module 'oset' to new module 'xoset'.
3712 * modules/xoset: New file.
3713 * lib/gl_xoset.h: New file.
3714 * lib/gl_xoset.c: New file.
3715 * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
3717 (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
3718 (struct gl_oset_implementation): Rename and change methods accordingly.
3719 (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
3720 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
3721 'int'. Mark as __warn_unused_result__.
3722 * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
3723 gl_oset_create_empty.
3724 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
3726 * lib/gl_array_oset.c: Don't include xalloc.h.
3727 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
3728 malloc, not xmalloc.
3729 (grow): Change return type to 'int'. Don't call xalloc_die.
3730 (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
3732 (gl_array_nx_add): Renamed from gl_array_add. Change return type to
3734 (gl_array_oset_implementation): Update.
3735 * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
3736 gl_tree_create_empty.
3737 (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
3739 * lib/gl_avltree_oset.c: Don't include xalloc.h.
3740 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
3742 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
3744 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
3746 (gl_avltree_oset_implementation): Update.
3747 * lib/gl_rbtree_oset.c: Don't include xalloc.h.
3748 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
3750 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
3752 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
3754 (gl_rbtree_oset_implementation): Update.
3755 * modules/array-oset (Depends-on): Remove xalloc.
3756 * modules/avltree-oset (Depends-on): Likewise.
3757 * modules/rbtree-oset (Depends-on): Likewise.
3758 * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
3759 * tests/test-avltree_oset.c: Likewise.
3760 * tests/test-rbtree_oset.c: Likewise.
3761 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
3762 * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
3763 * modules/rbtree-oset-tests (Makefile.am): Likewise.
3764 * NEWS: Mention the change.
3766 2009-12-05 Alfred M. Szmidt <ams@gnu.org>
3768 maint.mk: allow a project to override release-prep commands
3769 * top/maint.mk (alpha, beta, stable): Move release-preparatory
3770 commands into a new rule.
3771 (release-prep): New rule.
3772 (release-prep-hook): New overridable variable.
3774 2009-12-13 Bruno Haible <bruno@clisp.org>
3776 * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
3778 2009-12-13 Jim Meyering <meyering@redhat.com>
3780 maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
3781 * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
3783 2009-12-12 Bruno Haible <bruno@clisp.org>
3786 * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
3788 2009-12-12 Karl Berry <karl@gnu.org>
3790 * config/srclist.txt (strtoll.c): tab changes, no more sync.
3792 2009-12-12 Bruno Haible <bruno@clisp.org>
3794 * m4/po.m4: Undo incorrect untabification.
3796 2009-12-12 Bruno Haible <bruno@clisp.org>
3798 c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
3799 * modules/c-strtod (Depends-on): Add locale.
3800 * modules/c-strtold (Depends-on): Likewise.
3802 2009-12-12 Bruno Haible <bruno@clisp.org>
3804 * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
3806 2009-12-11 Eric Blake <ebb9@byu.net>
3808 setenv: relax requirement in light of POSIX ruling
3809 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
3811 * tests/test-setenv.c (main): Relax test.
3812 * tests/test-unsetenv.c (main): Likewise.
3813 * doc/posix-functions/setenv.texi (setenv): Document this.
3814 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
3816 2009-12-11 Bruno Haible <bruno@clisp.org>
3818 New module 'fd-safer-flag'.
3819 * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
3820 * lib/dup-safer.c (dup_safer_flag): Remove function.
3821 * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
3822 * lib/fd-safer.c (fd_safer_flag): Remove function.
3823 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
3824 * modules/cloexec (configure.ac): Drop indicator macro.
3825 * modules/fd-safer-flag: New file.
3826 * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
3827 * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
3828 * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
3830 2009-12-11 Bruno Haible <bruno@clisp.org>
3832 Tests for module 'nl_langinfo'.
3833 * modules/nl_langinfo-tests: New file.
3834 * tests/test-nl_langinfo.sh: New file.
3835 * tests/test-nl_langinfo.c: New file.
3837 New module 'nl_langinfo'.
3838 * lib/nl_langinfo.c: New file.
3839 * m4/nl_langinfo.m4: New file.
3840 * modules/nl_langinfo: New file.
3841 * doc/posix-functions/nl_langinfo.texi: Mention the new module.
3843 2009-12-11 Bruno Haible <bruno@clisp.org>
3845 Tests for module 'langinfo'.
3846 * modules/langinfo-tests: New file.
3847 * tests/test-langinfo.c: New file.
3849 New module 'langinfo'.
3850 * lib/langinfo.in.h: New file.
3851 * m4/langinfo_h.m4: New file.
3852 * modules/langinfo: New file.
3853 * doc/posix-headers/langinfo.texi: Mention the new module.
3855 2009-12-11 Bruno Haible <bruno@clisp.org>
3857 * lib/config.charset: Untabify.
3859 2009-12-11 Bruno Haible <bruno@clisp.org>
3861 * modules/unistd-safer (configure.ac): Drop indicator macro.
3863 2009-12-11 Bruno Haible <bruno@clisp.org>
3865 Move pipe2-safer code to its own file.
3866 * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
3867 * lib/pipe-safer.c (pipe2_safer): Remove function.
3868 * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
3869 (Makefile.am): Add it to lib_SOURCES.
3871 2009-12-10 Bruno Haible <bruno@clisp.org>
3873 * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
3875 2009-12-10 Bruno Haible <bruno@clisp.org>
3877 Declare which arguments expect non-NULL values, for GCC and clang.
3878 * build-aux/arg-nonnull.h: New file.
3879 * modules/arg-nonnull: New file.
3880 * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
3881 (inet_ntop, inet_pton): Use it.
3882 * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
3883 (closedir, dirfd, opendir, scandir, alphasort): Use it.
3884 * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
3885 (open, openat): Use it.
3886 * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
3888 * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
3889 (getopt, getopt_long, getopt_long_only): Use it.
3890 * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
3891 * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
3893 * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
3894 (iconv_open): Use it.
3895 * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
3896 (strtoimax, strtoumax): Use it.
3897 * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
3898 (duplocale): Use it.
3899 * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
3900 (frexp, frexpl): Use it.
3901 * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
3902 (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
3903 * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
3904 (tsearch, tfind, tdelete, twalk): Use it.
3905 * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
3906 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
3907 sigpending): Use it.
3908 * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
3909 (posix_spawn, posix_spawnp, posix_spawnattr_init,
3910 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
3911 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
3912 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
3913 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
3914 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
3915 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
3916 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
3917 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
3918 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
3920 * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
3921 (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
3922 rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
3923 obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
3924 rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
3925 vfprintf, vprintf, vsnprintf, vsprintf): Use it.
3926 * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
3927 (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
3928 mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
3929 setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
3930 strtoull, unsetenv): Use it.
3931 * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
3932 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
3933 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
3934 strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
3935 mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
3936 mbsspn, mbssep, mbstok_r, strverscmp): Use it.
3937 * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
3938 (strcasecmp, strncasecmp): Use it.
3939 * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
3940 (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
3941 rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
3942 rpl_setsockopt): Use it.
3943 * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
3944 (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
3945 mkfifoat, mknod, mknodat, stat, utimensat): Use it.
3946 * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
3947 (gettimeofday): Use it.
3948 * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
3950 * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
3952 * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
3953 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
3954 * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
3955 (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
3956 getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
3957 pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
3958 unlinkat, write): Use it.
3959 * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
3960 (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
3961 * lib/argv-iter.h: Include arg-nonnull.h.
3962 (_ATTRIBUTE_NONNULL_): Remove macro.
3963 (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
3964 argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
3965 * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
3967 * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
3968 * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
3969 * lib/glob.c (_GL_ARG_NONNULL): Likewise.
3970 * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
3971 * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
3972 * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
3973 * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
3974 * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
3975 * modules/arpa_inet (Depends-on): Add arg-nonnull.
3976 (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
3977 * modules/dirent (Depends-on): Add arg-nonnull.
3978 (Makefile.am): Insert arg-nonnull.h into dirent.h.
3979 * modules/fcntl-h (Depends-on): Add arg-nonnull.
3980 (Makefile.am): Insert arg-nonnull.h into fcntl.h.
3981 * modules/fnmatch (Depends-on): Add arg-nonnull.
3982 (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
3983 * modules/getopt-posix (Depends-on): Add arg-nonnull.
3984 (Makefile.am): Insert arg-nonnull.h into getopt.h.
3985 * modules/glob (Depends-on): Add arg-nonnull.
3986 (Makefile.am): Insert arg-nonnull.h into glob.h.
3987 * modules/iconv_open (Depends-on): Add arg-nonnull.
3988 (Makefile.am): Insert arg-nonnull.h into iconv.h.
3989 * modules/inttypes (Depends-on): Add arg-nonnull.
3990 (Makefile.am): Insert arg-nonnull.h into inttypes.h.
3991 * modules/locale (Depends-on): Add arg-nonnull.
3992 (Makefile.am): Insert arg-nonnull.h into locale.h.
3993 * modules/math (Depends-on): Add arg-nonnull.
3994 (Makefile.am): Insert arg-nonnull.h into math.h.
3995 * modules/netdb (Depends-on): Add arg-nonnull.
3996 (Makefile.am): Insert arg-nonnull.h into netdb.h.
3997 * modules/search (Depends-on): Add arg-nonnull.
3998 (Makefile.am): Insert arg-nonnull.h into search.h.
3999 * modules/signal (Depends-on): Add arg-nonnull.
4000 (Makefile.am): Insert arg-nonnull.h into signal.h.
4001 * modules/spawn (Depends-on): Add arg-nonnull.
4002 (Makefile.am): Insert arg-nonnull.h into spawn.h.
4003 * modules/stdio (Depends-on): Add arg-nonnull.
4004 (Makefile.am): Insert arg-nonnull.h into stdio.h.
4005 * modules/stdlib (Depends-on): Add arg-nonnull.
4006 (Makefile.am): Insert arg-nonnull.h into stdlib.h.
4007 * modules/string (Depends-on): Add arg-nonnull.
4008 (Makefile.am): Insert arg-nonnull.h into string.h.
4009 * modules/strings (Depends-on): Add arg-nonnull.
4010 (Makefile.am): Insert arg-nonnull.h into strings.h.
4011 * modules/sys_socket (Depends-on): Add arg-nonnull.
4012 (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
4013 * modules/sys_stat (Depends-on): Add arg-nonnull.
4014 (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
4015 * modules/sys_time (Depends-on): Add arg-nonnull.
4016 (Makefile.am): Insert arg-nonnull.h into sys/time.h.
4017 * modules/sys_times (Depends-on): Add arg-nonnull.
4018 (Makefile.am): Insert arg-nonnull.h into sys/times.h.
4019 * modules/sys_utsname (Depends-on): Add arg-nonnull.
4020 (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
4021 * modules/time (Depends-on): Add arg-nonnull.
4022 (Makefile.am): Insert arg-nonnull.h into time.h.
4023 * modules/unistd (Depends-on): Add arg-nonnull.
4024 (Makefile.am): Insert arg-nonnull.h into unistd.h.
4025 * modules/wchar (Depends-on): Add arg-nonnull.
4026 (Makefile.am): Insert arg-nonnull.h into wchar.h.
4027 * modules/argv-iter (Depends-on): Add arg-nonnull.
4028 * tests/test-canonicalize.c (null_ptr): New function.
4030 * tests/test-canonicalize-lgpl.c (null_ptr): New function.
4032 * tests/test-memmem.c (null_ptr): New function.
4034 Reported by Jim Meyering.
4036 2009-12-10 Bruno Haible <bruno@clisp.org>
4038 Use spaces for indentation, not tabs.
4039 * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
4040 * m4/*.m4: Untabify.
4041 * build-aux/*.h: Untabify.
4042 * tests/**/*.[hc]: Untabify.
4043 * README: New section "Indent with spaces, not TABs", based on
4044 coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
4045 * NEWS: Mention the change.
4047 2009-12-10 Bruno Haible <bruno@clisp.org>
4049 pty test: Fix link error.
4050 * modules/pty-tests (Makefile.am): Add the default LDADD value to
4053 2009-12-07 Simon Josefsson <simon@josefsson.org>
4055 * modules/pty: New file.
4056 * modules/pty-tests: New file.
4057 * m4/pty.m4: New file.
4058 * tests/test-pty.c: New file.
4059 * doc/glibc-headers/pty.texi: Modified.
4060 * doc/glibc-functions/forkpty.texi: Modified.
4061 * doc/glibc-functions/openpty.texi: Modified.
4063 2009-12-10 Bruno Haible <bruno@clisp.org>
4065 Avoid syntax error in C++ mode.
4066 * lib/stdio.in.h (rename): Don't use parameter name 'new'.
4068 2009-12-10 Bruno Haible <bruno@clisp.org>
4070 Use sed with option -e.
4071 * gnulib-tool (func_version, func_emit_copyright_notice,
4072 func_emit_initmacro_end, func_import, func_create_testdir): Pass
4074 * modules/link-warning (Makefile.am): Likewise.
4076 2009-12-10 Jim Meyering <meyering@redhat.com>
4078 mgetgroups: do not write bytes beyond end of malloc'd buffer
4079 * lib/mgetgroups.c: Fix an off-by-one error. When we have no
4080 username, we call getgroups with a one-element-shorter buffer,
4081 but still told it the length was original, max_n_groups.
4083 2009-12-09 Eric Blake <ebb9@byu.net>
4085 cloexec: relax license
4086 * modules/cloexec (Maintainer): Add myself.
4087 (License): Use LGPL, not GPL.
4089 link-warning: optimize generation
4090 * modules/link-warning (Makefile.am): Reduce process usage.
4092 2009-12-09 Bruno Haible <bruno@clisp.org>
4094 * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
4095 workaround was added on 2009-11-17.
4097 2009-12-09 Jim Meyering <meyering@redhat.com>
4098 Bruno Haible <bruno@clisp.org>
4100 link-warning: Allow extra lines at the top of build-aux/link-warning.h.
4101 * modules/link-warning (Makefile.am): Make the comment-removing sed
4102 command more robust in the face of bootstrap-prepended comment lines.
4104 2009-12-09 Bruno Haible <bruno@clisp.org>
4106 * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
4109 2009-12-09 Simon Josefsson <simon@josefsson.org>
4110 Bruno Haible <bruno@clisp.org>
4112 * build-aux/link-warning.h: Add copyright notice.
4113 * modules/link-warning (Makefile.am): Generate link-warning.h from
4114 build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
4115 * NEWS: Mention change in link-warning module.
4116 * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
4117 * modules/dirent (Makefile.am): Add dependency to dirent.h.
4118 * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
4119 * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
4120 * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
4121 * modules/math (Makefile.am): Add dependency to math.h.
4122 * modules/search (Makefile.am): Add dependency to search.h.
4123 * modules/signal (Makefile.am): Add dependency to signal.h.
4124 * modules/spawn (Makefile.am): Add dependency to spawn.h.
4125 * modules/stdio (Makefile.am): Add dependency to stdio.h.
4126 * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
4127 * modules/string (Makefile.am): Add dependency to string.h.
4128 * modules/strings (Makefile.am): Add dependency to strings.h.
4129 * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
4130 * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
4131 * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
4132 * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
4133 * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
4134 * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
4135 * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
4136 * modules/unistd (Makefile.am): Add dependency to unistd.h.
4137 * modules/wchar (Makefile.am): Add dependency to wchar.h.
4139 2009-12-09 Bruno Haible <bruno@clisp.org>
4141 fchdir: Optimize away rpl_fstat when possible.
4142 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
4143 REPLACE_OPEN_DIRECTORY.
4144 * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
4146 2009-12-09 Bruno Haible <bruno@clisp.org>
4148 * lib/fchdir.c: Update comment.
4150 2009-12-09 Bruno Haible <bruno@clisp.org>
4152 * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
4154 2009-12-08 Eric Blake <ebb9@byu.net>
4156 fchdir: avoid memory leak on re-registration.
4157 * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
4159 2009-12-08 Jim Meyering <meyering@redhat.com>
4161 init.sh: avoid Solaris 10 /bin/sh portability problem
4162 Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
4164 $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
4165 $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
4167 tests/init.sh relied on that, accepting a --set-path=DIR argument,
4168 and two tests used that idiom.
4169 * tests/init.sh: Update suggested usage comments.
4170 (path_prepend_): New function, to be used in place
4171 of the --src-path=DIR option.
4172 (setup_): Move PATH-prepending code into path_prepend_.
4173 * tests/test-pread.sh: Adapt to new usage.
4174 * tests/test-xalloc-die.sh: Likewise.
4176 2009-12-08 Simon Josefsson <simon@josefsson.org>
4178 * doc/gnulib.texi (Glibc pty.h): Add.
4179 * doc/glibc-functions/forkpty.texi: Add.
4180 * doc/glibc-functions/openpty.texi: Add.
4181 Suggested by Bruno Haible.
4183 2009-12-08 Eric Blake <ebb9@byu.net>
4185 fchdir: fix logic bugs
4186 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
4187 * tests/test-fchdir.c (main): Enhance test.
4188 * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
4191 dup2: fix logic bugs
4192 * lib/dup2.c (dup2): Fix logic bugs. Use HAVE_DUP2 rather than
4193 REPLACE_DUP2 to decide when rpl_dup2 is needed.
4194 * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
4196 (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
4198 2009-12-07 Eric Blake <ebb9@byu.net>
4200 unlink: fix m4 detection
4201 * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
4203 unistd-safer: add unit test
4204 * modules/unistd-safer-tests: New file.
4205 * tests/test-dup-safer.c: Likewise.
4206 * tests/test-cloexec.c (setmode): Avoid compiler warning.
4207 * tests/test-dup2.c (setmode): Likewise.
4208 * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
4210 cloexec: preserve text vs. binary across dup_cloexec
4211 * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
4213 * modules/dup2-tests (Depends-on): Add binary-io.
4214 * modules/cloexec-tests (Depends-on): Likewise.
4215 * tests/test-dup2.c (setmode, is_mode): New helpers.
4216 (main): Add tests that translation mode is preserved.
4217 * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
4218 Reported by Bruno Haible.
4220 mgetgroups: reduce duplicate listings
4221 * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
4223 * tests/test-chown.h (test_chown): Simplify client.
4224 * tests/test-lchown.h (test_lchown): Likewise.
4226 2009-12-06 Bruno Haible <bruno@clisp.org>
4228 * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
4231 2009-12-06 Bruno Haible <bruno@clisp.org>
4233 * lib/progname.c: Include stdio.h, stdlib.h.
4234 (set_program_name): Reject a NULL argument.
4236 2009-12-05 Eric Blake <ebb9@byu.net>
4238 pipe2-safer: new module
4239 * modules/pipe2-safer: New file.
4240 * lib/unistd-safer.h (pipe2_safer): New prototype.
4241 * lib/unistd--.h (pipe2): New wrapper.
4242 * lib/pipe-safer.c (pipe2_safer): New function.
4243 * modules/pipe (Depends-on): Add pipe2-safer.
4244 * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
4246 stdlib-safer: preserve cloexec flag for mkostemp[s]
4247 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
4250 unistd-safer: allow preservation of cloexec status via flag
4251 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
4253 * lib/dup-safer.c (dup_safer_flag): New function.
4254 * lib/fd-safer.c (fd_safer_flag): Likewise.
4255 * modules/cloexec (configure.ac): Set witness.
4257 test-dup2: enhance test
4258 * modules/dup2-tests (Depends-on): Add cloexec.
4259 * tests/test-dup2.c (main): Enhance test.
4261 cloexec: add dup_cloexec
4262 * lib/cloexec.h (dup_cloexec): New prototype. Add copyright
4263 header and comments.
4264 * lib/cloexec.c (set_cloexec_flag): Add comments.
4265 (dup_cloexec): New function, with mingw implementation borrowed
4267 * lib/w32spawn.h (dup_noinherit): ...here.
4268 * modules/execute (Depends-on): Add cloexec.
4269 * modules/pipe (Depends-on): Likewise.
4270 * modules/cloexec (Depends-on): Add dup2.
4271 * modules/cloexec-tests (Files): New file.
4272 * tests/test-cloexec.c: Likewise.
4274 test-xalloc-die: fix test for mingw
4275 * modules/xalloc-die-tests (Files): Add tests/init.sh.
4276 * tests/test-xalloc-die.sh: Rewrite to use init.sh. Strip
4277 directory and .exe suffix off argv[0] output.
4279 test-fseeko: fix test for mingw
4280 * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
4281 than undefining fseek, so test will pass on mingw.
4283 2009-12-05 Bruno Haible <bruno@clisp.org>
4285 * lib/progname.h (set_program_name): Clarify specification.
4286 * lib/progname.c (set_program_name): Likewise.
4287 Reported by Jim Meyering.
4289 2009-12-05 Jim Meyering <meyering@redhat.com>
4291 maint.mk: backslash-escape parens in default regexp
4292 * top/maint.mk (news-check-regexp): Now that we're using grep -E,
4293 backslash-escape the literal parentheses.
4295 maint.mk: news-date-check: use grep -E
4296 * top/maint.mk (today): Define a Make variable, not a...
4297 (news-date-check): ...shell variable.
4298 (news-date-regexp): Use the Make variable.
4299 Use grep's -E option. Change the failing diagnostic to mention
4300 the variable, $(news-date-regexp).
4302 2009-12-04 Alfred M. Szmidt <ams@gnu.org>
4304 maintainer-makefile: allow customization of NEWS entry format
4305 * top/maint.mk (news-date-regexp): New overridable variable.
4306 (news-date-check): Use it.
4308 2009-12-04 Eric Blake <ebb9@byu.net>
4310 mgetgroups: add xgetgroups, and avoid ENOSYS failures
4311 * lib/mgetgroups.h (xgetgroups): New prototype.
4312 * lib/mgetgroups.c (xgetgroups): New wrapper.
4313 (mgetgroups): Handle ENOSYS.
4314 * modules/mgetgroups (Depends-on): Add realloc.
4315 Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
4317 mgetgroups: avoid argument promotion issues with -1
4318 * lib/mgetgroups.c (mgetgroups): A cast is required when checking
4320 * tests/test-chown.h (getegid, test_chown): Likewise.
4321 * tests/test-lchown.h (getegid, test_lchown): Likewise.
4323 2009-12-03 Paolo Bonzini <bonzini@gnu.org>
4325 exclude: Fix header file problems.
4326 * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
4328 2009-12-01 Jim Meyering <meyering@redhat.com>
4330 fts: fts_open: do not let an empty string cause immediate failure
4331 This is required in support of GNU rm, for which the command
4332 "rm A '' B" must process and remove both A and B, in spite of
4333 the empty string argument.
4334 * lib/fts.c (fts_open): Do not let the presence of an empty string
4335 cause fts_open to fail immediately. Most fts-using tools must be
4336 able to process all arguments, in order, and can be expected to
4337 diagnose such arguments themselves.
4339 2009-11-30 Eric Blake <ebb9@byu.net>
4341 utimens: fix compilation error
4342 * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
4343 Declare variable at right scope.
4345 2009-11-29 Jim Meyering <meyering@redhat.com>
4347 bootstrap: handle perl-5.11's changed --version output
4348 * build-aux/bootstrap (get_version): Handle perl separately,
4349 since perl-5.11's --version output is different.
4351 2009-11-28 Jim Meyering <meyering@redhat.com>
4353 userspec: depend on the inttostr module, too
4354 * modules/userspec (Depends-on): Add inttostr.
4356 userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
4357 * lib/userspec.c (parse_with_separator): Do not accept a user ID
4358 number of MAXUID when it evaluates to (uid_t) -1.
4359 Likewise for group ID. Reported by Matt McCutchen in
4360 <http://savannah.gnu.org/bugs/?28113>
4362 userspec: reformat to use spaces, not TABs
4363 * lib/userspec.c: Expand TABs to spaces.
4364 Add Emacs' "indent-tabs-mode: nil" hint.
4366 2009-11-27 Eric Blake <ebb9@byu.net>
4368 getopt-gnu: flush out another BSD bug
4369 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
4370 * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
4372 * tests/test-getopt.h (test_getopt): End lists with NULL.
4373 * tests/test-getopt_long.h (test_getopt_long): Likewise.
4374 (test_getopt_long_posix): Enhance test.
4375 * modules/getopt-posix-tests (Depends-on): Add stdbool.
4376 * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
4378 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4381 2009-11-27 Simon Josefsson <simon@josefsson.org>
4383 * modules/idpriv-droptemp-tests (Notice): Fix text.
4385 2009-11-27 Jim Meyering <meyering@redhat.com>
4387 test-xalloc-die: avoid spurious failure due to libtool argv difference
4388 In a libtool-enabled project, this test would fail due to a difference
4389 in the emitted program name, e.g.,
4390 -test-xalloc-die: memory exhausted
4391 +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
4392 Use program to avoid that.
4393 * modules/xalloc-die-tests (Depends-on): Add progname.
4394 * tests/test-xalloc-die.c: Include progname.h".
4395 (program_name): Remove decl.
4396 (main): Call set_program_name.
4397 * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
4399 2009-11-26 Richard Jones <rjones@redhat.com>
4401 w32sock: leave win32 error in place.
4402 * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
4404 2009-11-26 Eric Blake <ebb9@byu.net>
4406 init.sh: suggest to use skip_ and fail_ functions in comments
4407 * tests/init.sh: Add a sentence.
4409 2009-11-25 Bruno Haible <bruno@clisp.org>
4411 init.sh: add documentation in comments
4412 * tests/init.sh: Add some developer and user documentation.
4414 2009-11-26 Jim Meyering <meyering@redhat.com>
4416 init.sh: accommodate even those who specify bogus srcdir manually
4417 * tests/init.sh: Normally, srcdir is guaranteed by automake and
4418 configure-time tests to be sanitized, so that there is no need to
4419 use "$srcdir" in Makefile rules and shell scripts. Using $srcdir
4420 (with no double quotes) suffices. However, since tests may be
4421 invoked manually, and since you may explicitly set srcdir to the
4422 name of a directory containing spaces, do quote its uses here.
4423 * tests/test-pread.sh: Likewise.
4424 Suggested by Bruno Haible.
4426 test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
4427 * tests/test-pread.sh: Write no data into the pipe, because
4428 test-pread actually reads none. This avoids a diagnostic,
4429 "bash: echo: write error: Broken pipe", that arises in the unusual
4430 event something is ignoring SIGPIPE, and might be interpreted
4431 as some sort of failure. Reported by Bruno Haible.
4433 2009-11-25 Jim Meyering <meyering@redhat.com>
4435 test-pread: cover failure with ESPIPE and EINVAL
4436 * tests/test-pread.c (main): Test for failure, too.
4437 * tests/test-pread.sh: Invoke with stdin on a pipe.
4438 Suggested by Eric Blake.
4440 pread: improvement and fix
4441 * modules/pread (Depends-on): Depend on lseek, for portability to
4442 e.g., mingw. Suggested by Eric Blake.
4443 * lib/pread.c (__libc_read): Define. Reported by Richard W.M. Jones.
4445 unistd.in.h: correct declaration of pread
4446 * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
4447 Reported by Richard W.M. Jones.
4449 test-pread.sh: distribute the test script
4450 * modules/pread-tests (Files): Include test-pread.sh.
4452 test-pread.sh: clean up
4453 * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
4454 * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
4455 That is unnecessary, since it's always ".".
4456 Suggestion from Eric Blake.
4458 test-pread.sh: make executable
4459 * tests/test-pread.sh: Set executable bit.
4460 Reported by Eric Blake.
4462 correct typo in test-pread.sh
4463 * tests/test-pread.sh: Add #! line.
4466 * tests/test-pread.c: New file.
4467 * tests/test-pread.sh: Likewise.
4468 * modules/pread-tests: Likewise.
4471 * modules/pread: New file.
4472 * lib/unistd.in.h (pread): Define/declare.
4473 * lib/pread.c (pread): New file.
4474 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
4475 * modules/unistd (Makefile.am): Substitute witnesses.
4476 * doc/posix-functions/pread.texi (pread): Update.
4477 * MODULES.html.sh: Add pread.
4479 2009-11-25 Jim Meyering <meyering@redhat.com>
4481 tests/init.sh: new file to be used via most *.sh tests
4482 * tests/init.sh: New file.
4484 2009-11-25 Eric Blake <ebb9@byu.net>
4486 utimens: work around older Linux failure with symlinks
4487 * lib/utimens.c (lutimensat_works_really): New variable.
4488 (fdutimens, lutimens): Use it to manage kernels that support
4489 nanosecond times on files, but not on symlinks.
4490 Reported by Ondřej Vašík.
4492 utimes: fix configure grammar
4493 * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
4495 2009-11-25 Paolo Bonzini <bonzini@gnu.org>
4497 regex: Fix fastmap for multibyte character ranges.
4498 * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
4499 characters when a multibyte character range is included.
4501 2009-11-22 Andy Wingo <wingo@pobox.com>
4503 version-etc: work also with AM_INIT_AUTOMAKE's no-define option
4504 * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
4506 2009-11-24 Bruno Haible <bruno@clisp.org>
4508 doc: Most *_l functions exist in MacOS X 10.5.
4509 * doc/posix-functions/duplocale.texi: Update platforms list.
4510 * doc/posix-functions/freelocale.texi: Likewise.
4511 * doc/posix-functions/newlocale.texi: Likewise.
4512 * doc/posix-functions/uselocale.texi: Likewise.
4513 * doc/posix-functions/isalnum_l.texi: Likewise.
4514 * doc/posix-functions/isalpha_l.texi: Likewise.
4515 * doc/posix-functions/isblank_l.texi: Likewise.
4516 * doc/posix-functions/iscntrl_l.texi: Likewise.
4517 * doc/posix-functions/isdigit_l.texi: Likewise.
4518 * doc/posix-functions/isgraph_l.texi: Likewise.
4519 * doc/posix-functions/islower_l.texi: Likewise.
4520 * doc/posix-functions/isprint_l.texi: Likewise.
4521 * doc/posix-functions/ispunct_l.texi: Likewise.
4522 * doc/posix-functions/isspace_l.texi: Likewise.
4523 * doc/posix-functions/isupper_l.texi: Likewise.
4524 * doc/posix-functions/iswalnum_l.texi: Likewise.
4525 * doc/posix-functions/iswalpha_l.texi: Likewise.
4526 * doc/posix-functions/iswblank_l.texi: Likewise.
4527 * doc/posix-functions/iswcntrl_l.texi: Likewise.
4528 * doc/posix-functions/iswctype_l.texi: Likewise.
4529 * doc/posix-functions/iswdigit_l.texi: Likewise.
4530 * doc/posix-functions/iswgraph_l.texi: Likewise.
4531 * doc/posix-functions/iswlower_l.texi: Likewise.
4532 * doc/posix-functions/iswprint_l.texi: Likewise.
4533 * doc/posix-functions/iswpunct_l.texi: Likewise.
4534 * doc/posix-functions/iswspace_l.texi: Likewise.
4535 * doc/posix-functions/iswupper_l.texi: Likewise.
4536 * doc/posix-functions/iswxdigit_l.texi: Likewise.
4537 * doc/posix-functions/isxdigit_l.texi: Likewise.
4538 * doc/posix-functions/nl_langinfo_l.texi: Likewise.
4539 * doc/posix-functions/strcasecmp_l.texi: Likewise.
4540 * doc/posix-functions/strcoll_l.texi: Likewise.
4541 * doc/posix-functions/strfmon_l.texi: Likewise.
4542 * doc/posix-functions/strftime_l.texi: Likewise.
4543 * doc/posix-functions/strncasecmp_l.texi: Likewise.
4544 * doc/posix-functions/strxfrm_l.texi: Likewise.
4545 * doc/posix-functions/tolower_l.texi: Likewise.
4546 * doc/posix-functions/toupper_l.texi: Likewise.
4547 * doc/posix-functions/towctrans_l.texi: Likewise.
4548 * doc/posix-functions/towlower_l.texi: Likewise.
4549 * doc/posix-functions/towupper_l.texi: Likewise.
4550 * doc/posix-functions/wcscoll_l.texi: Likewise.
4551 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
4552 * doc/posix-functions/wctrans_l.texi: Likewise.
4553 * doc/posix-functions/wctype_l.texi: Likewise.
4554 * doc/glibc-functions/strptime_l.texi: Likewise.
4555 * doc/glibc-functions/strtod_l.texi: Likewise.
4556 * doc/glibc-functions/strtof_l.texi: Likewise.
4557 * doc/glibc-functions/strtol_l.texi: Likewise.
4558 * doc/glibc-functions/strtold_l.texi: Likewise.
4559 * doc/glibc-functions/strtoll_l.texi: Likewise.
4560 * doc/glibc-functions/strtoul_l.texi: Likewise.
4561 * doc/glibc-functions/strtoull_l.texi: Likewise.
4562 * doc/glibc-functions/wcsftime_l.texi: Likewise.
4563 * doc/glibc-functions/wcstod_l.texi: Likewise.
4564 * doc/glibc-functions/wcstof_l.texi: Likewise.
4565 * doc/glibc-functions/wcstol_l.texi: Likewise.
4566 * doc/glibc-functions/wcstold_l.texi: Likewise.
4567 * doc/glibc-functions/wcstoll_l.texi: Likewise.
4568 * doc/glibc-functions/wcstoul_l.texi: Likewise.
4569 * doc/glibc-functions/wcstoull_l.texi: Likewise.
4571 2009-11-24 Bruno Haible <bruno@clisp.org>
4573 duplocale: Fix logic bug.
4574 * lib/duplocale.c: Don't include <langinfo.h>.
4575 (_NL_LOCALE_NAME): Remove macro.
4576 (rpl_duplocale): Use setlocale instead of nl_langinfo.
4577 * tests/test-duplocale.c (main): Also test duplocale after uselocale.
4579 2009-11-23 Jim Meyering <meyering@redhat.com>
4581 test-update-copyright: don't hard-code /usr/bin/perl
4582 * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
4583 perl to print the current year. Gilles Espinasse reported that
4584 the replaced use of perl was hard-coded as /usr/bin/perl.
4586 2009-11-23 Bruno Haible <bruno@clisp.org>
4588 duplocale: Add support for glibc 2.3.x.
4589 * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
4591 2009-11-22 Bruno Haible <bruno@clisp.org>
4593 vasnprintf: Tiny optimization.
4594 * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
4597 2009-11-22 Bruno Haible <bruno@clisp.org>
4599 Tests for module 'duplocale'.
4600 * modules/duplocale-tests: New file.
4601 * tests/test-duplocale.c: New file.
4603 New module 'duplocale'.
4604 * m4/duplocale.m4: New file.
4605 * lib/locale.in.h (duplocale): New declaration.
4606 * lib/duplocale.c: New file.
4607 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
4608 gl_LOCALE_H_DEFAULTS): New macros.
4609 (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
4610 gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
4611 * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
4613 * modules/duplocale: New file.
4614 * doc/posix-functions/duplocale.texi: Mention the glibc bug.
4616 2009-11-22 Bruno Haible <bruno@clisp.org>
4618 * modules/locale-tests (configure.ac): Test for newlocale function.
4619 * tests/test-locale.c: When the system has extended locale functions,
4620 verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
4622 locale: Make locale_t available when possible.
4623 * lib/locale.in.h: Include <xlocale.h> when it exists.
4624 * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
4625 replace <locale.h> if it does not define locale_t but <xlocale.h> does.
4626 * modules/locale (Depends-on): Add extensions.
4627 (Makefile.am): Also substitute HAVE_XLOCALE_H.
4628 * doc/posix-headers/locale.texi: Document the problem with locale_t.
4630 2009-11-22 Bruno Haible <bruno@clisp.org>
4633 * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
4635 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
4636 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4637 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
4639 2009-11-22 Bruno Haible <bruno@clisp.org>
4641 error: account for the possibility of freopen (stdout).
4642 * lib/error.c: Include <unistd.h>.
4643 (flush_stdout): New function, extracted from error and error_at_line.
4644 Determine stdout's fd dynamically.
4645 (error, error_at_line): Invoke flush_stdout.
4646 * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
4647 * modules/error (Depends-on): Add unistd.
4649 2009-11-22 Bruno Haible <bruno@clisp.org>
4651 diffseq: Add comment.
4652 * lib/diffseq.h (IF_LINT): Add comment about pitfall.
4654 2009-11-22 Jim Meyering <meyering@redhat.com>
4656 c-stack: avoid defining an unused static function
4657 * lib/c-stack.c (find_stack_direction): Do not define this function
4658 when it will not be used.
4660 diffseq: avoid spurious gcc warnings
4661 * lib/diffseq.h (IF_LINT2): Define.
4662 (compareseq): Use it to initialize two members of "part".
4663 This avoids two used-uninitialized warnings.
4665 2009-11-21 Jim Meyering <meyering@redhat.com>
4667 c-stack: avoid "ignoring return value of `write'" warning
4668 * lib/c-stack.c: Include "ignore-value.h".
4669 (die): Explicitly ignore each write return value.
4670 * modules/c-stack (Depends-on): Add ignore-value.
4672 2009-11-21 Bruno Haible <bruno@clisp.org>
4674 diffseq: reduce scope of variable 'best'.
4675 * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
4676 variable, earlier used for two different purposes.
4678 2009-11-21 Jim Meyering <meyering@redhat.com>
4680 diffseq: remove useless assignment to "best"
4681 * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
4682 assignment. At that point "best" is already guaranteed to be zero.
4684 2009-11-20 Eric Blake <ebb9@byu.net>
4686 build: mention ftp redirector in release announcements
4687 * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
4688 values that used to come from cfg.mk; mention FTP redirect URL.
4689 * build-aux/announce-gen: Mention the mirror list.
4690 Suggested by Karl Berry.
4692 nanosleep: improve port to mingw
4693 * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
4694 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
4695 LIB_NANOSLEEP, but only when needed.
4696 * modules/select (Link): Document LIBSOCKET.
4697 * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
4700 nanosleep: work around cygwin bug
4701 * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
4702 Fix logic bug when nanosleep fails. Work around cygwin 1.5.x
4704 (getnow): Delete, not needed.
4705 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
4707 * modules/nanosleep (Depends-on): Add intprops and verify. Drop
4708 clock-time, gettime.
4709 * doc/posix-functions/nanosleep.texi (nanosleep): Document the
4711 * modules/nanosleep-tests: New test.
4712 * tests/test-nanosleep.c: New file.
4714 sleep: work around cygwin bug
4715 * lib/sleep.c (rpl_sleep): Work around the bug.
4716 * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
4717 (gl_PREREQ_SLEEP): Delete unused macro.
4718 * modules/sleep (Depends-on): Add verify.
4719 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
4720 * modules/unistd (Makefile.am): Substitute witness.
4721 * lib/unistd.in.h (sleep): Update prototype.
4722 * doc/posix-functions/sleep.texi (sleep): Document the bug.
4723 * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
4724 * modules/sleep-tests (Depends-on): Check for alarm.
4726 2009-11-20 Jim Meyering <meyering@redhat.com>
4728 maint.mk: improve sc_prohibit_magic_number_exit
4729 * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
4730 so it does not match uses like System.exit(1).
4731 Add comments showing how to correct all offenders.
4733 2009-11-19 Eric Blake <ebb9@byu.net>
4735 xalloc-die-tests: add missing library
4736 * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
4738 test-xvasprintf: silence compiler warnings
4739 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
4740 empty string from gcc.
4742 2009-11-19 Jim Meyering <meyering@redhat.com>
4744 xfreopen: new module, from coreutils
4745 * modules/xfreopen: New module.
4746 * lib/xfreopen.c: New file.
4747 * lib/xfreopen.h: New file.
4748 * MODULES.html.sh (File stream based Input/Output"): Add it.
4750 2009-11-19 Eric Blake <ebb9@byu.net>
4752 manywarnings: depend on warnings
4753 * modules/manywarnings (Depends-on): Add warnings.
4755 build: avoid compiler warnings
4756 * lib/select.c (rpl_select): Delete unused variable.
4757 * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
4759 2009-11-18 Eric Blake <ebb9@byu.net>
4761 tests: avoid false negative with --with-packager
4762 * tests/test-version-etc.sh: Discard packager information.
4763 * tests/test-argp-version-etc-1.sh: Likewise.
4764 Reported by Mike Frysinger.
4766 utimens: fix regression on Solaris
4767 * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
4768 * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
4769 can only change fd timestamps via futimesat. Instead, use an
4770 additional witness macro to avoid BSD bug.
4771 Reported by Jim Meyering.
4773 2009-11-17 Eric Blake <ebb9@byu.net>
4775 usleep: use it to simplify tests
4776 * modules/stat-time-tests (Depends-on): Add usleep.
4777 (configure.ac): Drop usleep check.
4778 * modules/chown-tests (Depends-on, configure.ac): Likewise.
4779 * modules/lchown-tests (Depends-on, configure.ac): Likewise.
4780 * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
4781 * modules/futimens-tests (Depends-on, configure.ac): Likewise.
4782 * modules/openat-tests (Depends-on, configure.ac): Likewise.
4783 * modules/utimens-tests (Depends-on, configure.ac): Likewise.
4784 * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
4785 * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
4787 * tests/test-chown.h (nap): Rely on nicer usleep semantics.
4788 * tests/test-lchown.h (nap): Likewise.
4789 * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
4790 * tests/test-stat-time.c (nap): Likewise.
4791 * tests/test-utimens-common.h (nap): Update comments.
4794 * modules/usleep: New file.
4795 * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
4796 * lib/usleep.c (usleep): Likewise.
4797 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
4798 * modules/unistd (Makefile.am): Substitute witnesses.
4799 * lib/unistd.in.h (usleep): Add declaration.
4800 * doc/pastposix-functions/usleep.texi (usleep): Document this.
4801 * MODULES.html.sh (Date and time): Likewise.
4802 * modules/usleep-tests (Depends-on): New test.
4803 * tests/test-usleep.c: New file.
4805 chown: work around OpenBSD bug
4806 * lib/chown.c (rpl_chown): Work around the bug.
4807 * lib/lchown.c (rpl_lchown): Attempt to do likewise.
4808 * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
4809 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
4810 * modules/chown (Depends-on): Add stdbool.
4811 * modules/lchown (Depends-on): Likewise.
4812 * doc/posix-functions/chown.texi (chown): Document the bug.
4813 * doc/posix-functions/lchown.texi (lchown): Likewise.
4814 * tests/test-lchown.h (test_chown): Relax test.
4816 mkstemp: avoid conflict with C++ keyword template
4817 * lib/mkdtemp.c (mkdtemp): Change spelling of template.
4818 * lib/mkostemp.c (mkostemp): Likewise.
4819 * lib/mkostemps.c (mkostemps): Likewise.
4820 * lib/mkstemp.c (mkstemp): Likewise.
4821 * lib/mkstemps.c (mkstemps): Likewise.
4823 xalloc-die-tests: optimize
4824 * tests/test-xalloc-die.sh: Reduce number of processes.
4826 2009-11-17 Simon Josefsson <simon@josefsson.org>
4828 * gnulib-tool: Support LGPLv3+ licenses in module files. Tiny
4829 patch from ludo@gnu.org (Ludovic Courtès).
4831 2009-11-17 Jim Meyering <meyering@redhat.com>
4833 version-etc: use proper license string
4834 * modules/version-etc (License): Use LGPL, not LGPLv3+.
4835 * modules/version-etc-fsf: Likewise.
4837 2009-11-17 Simon Josefsson <simon@josefsson.org>
4839 * tests/test-xalloc-die.sh: Add license. Check that nothing is
4840 printed to stdout. Deal with EOL differences.
4842 2009-11-17 Eric Blake <ebb9@byu.net>
4844 unsetenv: work around Solaris bug
4845 * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
4846 * lib/unsetenv.c (rpl_unsetenv): Work around it.
4847 Reported by Jim Meyering.
4849 vasnprintf: avoid compiler warnings
4850 * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
4852 * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
4854 2009-11-17 Simon Josefsson <simon@josefsson.org>
4856 * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
4857 settings since xalloc-die is no longer the self test,
4860 2009-11-17 Jim Meyering <meyering@redhat.com>
4862 test-xalloc-die.sh: make the code agree with the commit log
4863 * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
4864 at the end, just in case you happen to have a test-xalloc-die
4865 program in some other PATH directory.
4867 test-xalloc-die.sh: fix a portability bug
4868 * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
4869 Instead, set PATH to start with "." and invoke via "test-xalloc-die".
4870 Otherwise, argv[0] (as often seen in diagnostics) would be too
4871 system-dependent, sometimes with, and sometimes without the leading "./".
4873 version-etc-fsf: relax license to LGPLv3+
4874 * modules/version-etc-fsf (License): Relax license.
4876 2009-11-16 Eric Blake <ebb9@byu.net>
4878 xalloc-die-tests: avoid printing null pointer
4879 * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
4881 * tests/test-xalloc-die.c (program_name): Declare.
4882 * tests/test-xalloc-die.sh (tmpfiles): New file.
4884 setenv, unsetenv: work around various bugs
4885 * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
4886 (setenv) [HAVE_SETENV]: Work around bugs.
4887 * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
4888 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
4890 (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
4891 * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
4892 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
4893 * modules/stdlib (Makefile.am): Update substitutions.
4894 * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
4895 * doc/posix-functions/setenv.texi (setenv): Document the bugs.
4896 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
4897 * modules/setenv-tests: New test.
4898 * modules/unsetenv-tests: Likewise.
4899 * tests/test-setenv.c: New file.
4900 * tests/test-unsetenv.c: Likewise.
4902 2009-11-16 Jim Meyering <meyering@redhat.com>
4904 version-etc: relax license to LGPLv3+
4905 * modules/version-etc (License): Relax license.
4907 better AC_REQUIRE expanded-before-required-warning avoidance
4908 * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
4909 with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
4910 Suggested by Eric Blake. This change also reverts commit 1b712ba8,
4911 which is no longer needed.
4913 2009-11-16 Eric Blake <ebb9@byu.net>
4915 test-freading: clean up temporary file
4916 * tests/test-freading.c (main): Remove file on success, and use
4917 ASSERT more liberally.
4918 Reported by Jim Meyering.
4920 2009-11-16 Jim Meyering <meyering@redhat.com>
4922 avoid new AC_REQUIRE expanded-before-required warnings
4923 * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
4925 * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
4926 * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
4928 2009-11-15 Simon Josefsson <simon@josefsson.org>
4930 * tests/test-xalloc-die.c: New file.
4931 * modules/xalloc-die-tests: New file.
4932 * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
4933 XFAIL_TESTS so it can be appended by modules.
4935 2009-11-15 Simon Josefsson <simon@josefsson.org>
4937 * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898. Reported
4938 by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
4940 2009-11-14 Eric Blake <ebb9@byu.net>
4942 fnmatch: avoid compiler warning
4943 * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
4944 to silence compiler warning about mismatch signedness in ?:.
4945 Reported by Robert Millan.
4947 intprops: add double-inclusion guard
4948 * lib/intprops.h: Allow idempotent includes.
4949 Suggested by Bruce Korb.
4951 openat: detect Solaris fchownat bug
4952 * lib/fchownat.c (rpl_fchownat): Work around Solaris bug. Avoid
4953 penalizing glibc chownat when only lchownat is broken.
4954 * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
4955 trailing slash bugs.
4956 * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
4957 * modules/openat-tests (Files): Include more files.
4958 (Depends-on): Add mgetgroups, sleep, stat-time.
4959 (configure.ac): Add additional checks.
4960 (Makefile.am): Build new test.
4961 * tests/test-fchownat.c: New file.
4963 lchown: detect Solaris and FreeBSD bug
4964 * lib/lchown.c (rpl_lchown): Work around bug.
4965 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
4966 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
4967 * modules/unistd (Makefile.am): Populate it.
4968 * lib/unistd.in.h (lchown): Update declaration.
4969 * doc/posix-functions/lchown.texi (lchown): Document the bug.
4970 * modules/lchown-tests: New file.
4971 * tests/test-lchown.h (test_lchown): Likewise.
4972 * tests/test-lchown.c (main): Likewise.
4974 chown: detect Solaris and FreeBSD bug
4975 * lib/chown.c (rpl_chown): Work around bug.
4976 * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
4977 (gl_PREREQ_CHOWN): Delete.
4978 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
4979 * modules/unistd (Makefile.am): Populate it.
4980 * lib/unistd.in.h (chown): Update declaration.
4981 * lib/lchown.c (chown): Update client.
4982 * modules/lchown (Depends-on): Add lstat.
4983 * doc/posix-functions/chown.texi (chown): Document the bug.
4984 * doc/posix-functions/getgroups.texi (getgroups): Document
4986 * modules/chown-tests: New file.
4987 * tests/test-chown.h (test_chown): Likewise.
4988 * tests/test-chown.c (main): Likewise.
4990 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> (tiny change)
4992 gnulib-tool: correctly detect absence of m4 directories
4993 * gnulib-tool: Avoid extra newline on data passed to wc -l.
4995 2009-11-14 Jim Meyering <meyering@redhat.com>
4997 maint.mk: Prohibit inclusion of "xalloc.h" without use.
4998 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
5000 2009-11-14 John W. Eaton <jwe@gnu.org>
5002 strftime.h: wrap funtion declaration in extern "C" block
5003 * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
5005 2009-11-13 Eric Blake <ebb9@byu.net>
5007 getgroups: avoid compiler warning
5008 * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
5010 getgroups: work around FreeBSD bug
5011 * lib/getgroups.c (rpl_getgroups): Work around the bug.
5012 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
5013 * doc/posix-functions/getgroups.texi (getgroups): Document it.
5014 * tests/test-getgroups.c (main): Fix buffer overrun.
5016 getgroups: avoid compilation failure
5017 * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
5018 * modules/getgroups (Depends-on): Add stdint.
5020 2009-11-13 Jim Meyering <meyering@redhat.com>
5022 test-getgroups: avoid compilation failure
5023 * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
5025 2009-11-13 Eric Blake <ebb9@byu.net>
5027 mgetgroups: new module, taken from coreutils
5028 * modules/mgetgroups: New file.
5029 * lib/mgetgroups.h: Likewise.
5030 * lib/mgetgroups.c (mgetgroups): Likewise.
5031 * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
5032 * MODULES.html.sh (Users and groups): Mention it.
5034 getgroups: don't expose GETGROUPS_T to user
5035 * lib/getgroups.c (rpl_getgroups): Change signature. Copy array
5036 an element at a time if GETGROUPS_T is wrong size.
5037 * lib/getugroups.h (getugroups): Change signature.
5038 * lib/unistd.in.h (getgroups): Likewise.
5039 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
5040 signature needs fixing.
5041 * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
5043 * modules/group-member (Depends-on): Add getgroups.
5044 * lib/group-member.c (group_info, get_group_info): Use gid_t.
5045 (group_member): Rely on getgroups replacement.
5046 * lib/getugroups.c (getugroups): Use gid_t.
5047 * tests/test-getgroups.c (main): Likewise.
5048 * NEWS: Mention the signature change.
5049 * doc/posix-functions/getgroups.texi (getgroups): Mention the
5050 problem with signature.
5051 * doc/glibc-functions/setgroups.texi (setgroups): Mention that
5052 GETGROUPS_T is still useful for setgroups.
5054 getgroups, getugroups: provide stubs for mingw
5055 * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
5056 * lib/getugroups.c (getugroups): Likewise.
5057 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
5058 function. Modernize replacement scheme.
5059 (gl_PREREQ_GETGROUPS): Delete.
5060 * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
5061 * modules/getgroups (configure.ac): Declare witness.
5062 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
5063 * modules/unistd (Depends-on): Substitute witness.
5064 * lib/unistd.in.h (getgroups): Declare replacement.
5066 getgroups: avoid calling exit
5067 * modules/getgroups (Depends-on): Add malloc-posix and unistd,
5069 * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
5071 * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
5072 exiting, in the rare case of malloc failure.
5074 getgroups: fix logic error
5075 * lib/getgroups.c (rpl_getgroups): Don't fail if current process
5076 has more than 20 groups.
5077 * modules/getgroups-tests: New test.
5078 * tests/test-getgroups.c: New file.
5080 2009-11-13 Simon Josefsson <simon@josefsson.org>
5082 * tests/test-base64.c: Improve.
5084 2009-11-13 Simon Josefsson <simon@josefsson.org>
5086 * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
5087 Blake <ebb9@byu.net>.
5089 2009-11-13 Simon Josefsson <simon@josefsson.org>
5091 * tests/test-xvasprintf.c: Add %s%s related checks.
5093 2009-11-12 Eric Blake <ebb9@byu.net>
5095 version-etc: match standards.texi style
5096 * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
5097 and use <> only for URLs.
5099 2009-11-10 Kamil Dudka <kdudka@redhat.com>
5101 fts: do not fail on a submount during traversal
5102 * lib/fts.c (fts_build): Read the stat info again after opening
5103 a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
5104 Original report at http://bugzilla.redhat.com/501848.
5106 2009-11-12 Jim Meyering <meyering@redhat.com>
5108 bootstrap: sync from coreutils
5109 * build-aux/bootstrap (bootstrap_epilogue): New function.
5110 Use git_modules_config in one more place. This make bootstrap's
5111 --gnulib-srcdir option more useful for testing.
5113 bootstrap: generalize autoheader check
5114 * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
5117 2009-11-11 Eric Blake <ebb9@byu.net>
5119 mkfifoat: use new modules for Solaris and BSD bugs
5120 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
5121 * lib/mkfifoat.c (mknodat): Split...
5122 * lib/mknodat.c (mknodat): ...into new file.
5123 * modules/mkfifoat (Files): Ship new file.
5124 (Depends-on): Add mkfifo, mknod.
5125 * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
5126 (Depends-on): Add symlink.
5127 * tests/test-mkfifoat.c (main): Enhance test. Drop portions now
5128 redundant with test_mkfifo.h.
5129 (do_mkfifoat, do_mknodat): New helpers.
5132 * modules/mknod: New file.
5133 * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
5134 * lib/mknod.c (mknod): Likewise.
5135 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
5137 * modules/sys_stat (Makefile.am): Substitute them.
5138 * lib/sys_stat.in.h (mknod): Declare replacement.
5139 * MODULES.html.sh (Support for systems lacking POSIX:2008):
5141 * doc/posix-functions/mknod.texi (mknod): Likewise.
5142 * modules/mknod-tests: New test.
5143 * tests/test-mknod.c: Likewise.
5146 * modules/mkfifo: New file.
5147 * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
5148 * lib/mkfifo.c (mkfifo): Likewise.
5149 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
5151 * modules/sys_stat (Makefile.am): Substitute them.
5152 * lib/sys_stat.in.h (mkfifo): Declare replacement.
5153 * MODULES.html.sh (Support for systems lacking POSIX:2008):
5155 * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
5156 * modules/mkfifo-tests: New test.
5157 * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
5158 from test-mkfifoat.c.
5159 * tests/test-mkfifo.c: New file.
5161 readlink: detect FreeBSD bug
5162 * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
5164 * doc/posix-functions/readlink.texi (readlink): Document the bug.
5165 * tests/test-readlink.h (test_readlink): Enhance test.
5167 symlink: detect FreeBSD bug
5168 * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
5170 * doc/posix-functions/symlink.texi (symlink): Document the bug.
5171 * tests/test-symlink.h (test_symlink): Enhance test.
5173 2009-11-10 Eric Blake <ebb9@byu.net>
5175 link: detect FreeBSD bug
5176 * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
5178 * doc/posix-functions/link.texi (link): Document the bug.
5179 * tests/test-link.h (test_link): Enhance test.
5180 * tests/test-linkat.c (main): Update caller.
5182 unlink, remove: detect FreeBSD bug
5183 * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
5185 * doc/posix-functions/unlink.texi (unlink): Document the bug.
5186 * doc/posix-functions/remove.texi (remove): Likewise.
5187 * tests/test-unlink.h (test_unlink): Enhance test.
5188 * tests/test-remove.c (main): Likewise.
5190 2009-11-09 Eric Blake <ebb9@byu.net>
5192 rename: detect FreeBSD bug
5193 * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
5195 * modules/renameat-tests (Depends-on): Add filenamecat.
5196 * tests/test-rename.h (test_rename): Allow one more errno.
5197 * tests/test-renameat.c (main): Likewise.
5198 * doc/posix-functions/rename.texi (rename): Document the bug.
5200 open: detect FreeBSD bug
5201 * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
5203 * doc/posix-functions/open.texi (open): Document the bug.
5204 * doc/posix-functions/utimes.texi (utimes): Likewise.
5205 * tests/test-open.h (test_open): Add parameters, and test symlink
5207 * tests/test-open.c (main): Adjust caller.
5208 * tests/test-fcntl-safer.c (main): Likewise.
5209 * modules/open-tests (Depends-on): Add stdbool, symlink.
5210 * modules/fcntl-safer-tests (Depends-on): Likewise.
5211 * tests/test-openat.c (main): Add test-open tests.
5213 stat: detect FreeBSD bug
5214 * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
5216 * doc/posix-functions/stat.texi (stat): Document the bug.
5217 * tests/test-stat.h (test_stat_func): Add argument.
5218 * tests/test-stat.c (main): Adjust caller.
5219 * tests/test-fstatat.c (main): Likewise.
5220 * modules/stat-tests (Depends-on): Add stdbool, symlink.
5221 Reported by Jim Meyering.
5223 2009-11-09 James Youngman <jay@gnu.org>
5225 strftime.c: include ignore-value.h only when FPRINTFTIME is defined
5226 * lib/strftime.c: Correct placement of #include "ignore-value.h".
5228 2009-11-08 Jim Meyering <meyering@redhat.com>
5230 utimens: remove invalid futimesat call
5231 * lib/utimens.c (fdutimens): Remove invalid futimesat call.
5232 It used the file descriptor of the target file as the DIR_FD
5233 parameter and NULL as the file name. That caused failure with
5234 errno == EFAULT on FreeBSD-8.0-rc2
5236 2009-11-07 Eric Blake <ebb9@byu.net>
5238 fflush, freadseek: use fseeko, not fseek
5239 * lib/fflush.c (clear_ungetc_buffer_preserving_position)
5240 (clear_ungetc_buffer): Avoid potential problems on large files.
5241 * lib/freadseek.c (freadseek): Likewise.
5242 * modules/freadseek (Depends-on): Add fseeko.
5243 * modules/fseek (configure.ac): Set a witness.
5244 * tests/test-fflush.c (main): Use fseeko.
5245 * tests/test-fpurge.c (fseek): Disable link warning.
5246 * tests/test-freadable.c (fseek): Likewise.
5247 * tests/test-freading.c (fseek): Likewise.
5248 * tests/test-fseeko.c (fseek): Likewise.
5249 * tests/test-ftell.c (fseek): Likewise.
5250 * tests/test-ftello.c (fseek): Likewise.
5251 * tests/test-fwritable.c (fseek): Likewise.
5252 * tests/test-fwriting.c (fseek): Likewise.
5254 2009-11-06 Simon Josefsson <simon@josefsson.org>
5256 * modules/memchr (Depends-on): Drop getpagesize dependency.
5258 2009-11-06 Simon Josefsson <simon@josefsson.org>
5260 * build-aux/pmccabe2html: Disable execute bit. Suggested by
5261 Reported by Ludovic Courtès.
5262 * build-aux/pmccabe2html: Improve example usage.
5263 * build-aux/pmccabe2html: Drop #! header. Doc fix.
5265 2009-11-06 Jim Meyering <meyering@redhat.com>
5267 do-release-commit-and-tag: New module.
5268 Automate the release-commit and tag process.
5269 * build-aux/do-release-commit-and-tag: New script, from coreutils.
5270 * modules/do-release-commit-and-tag: New file.
5271 * MODULES.html.sh (Support for maintaining and releasing): Add it.
5273 2009-11-06 Simon Josefsson <simon@josefsson.org>
5275 * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
5276 because test-select.c uses inet_pton.
5278 2009-11-06 Simon Josefsson <simon@josefsson.org>
5280 * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
5281 GETADDRINFO_LIB. Bump serial number.
5282 * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
5283 Suggested by Eric Blake <ebb9@byu.net>.
5285 2009-11-05 Eric Blake <ebb9@byu.net>
5287 strtod: detect darwin bug
5288 * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
5289 Reported by Leo Davis.
5291 freopen-safer: new module
5292 * modules/freopen-safer: New module.
5293 * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
5294 * lib/freopen-safer.c (freopen_safer): New file.
5295 * lib/stdio-safer.h (freopen_safer): New declaration.
5296 * lib/stdio--.h (freopen): New override.
5297 * MODULES.html.sh (File stream based Input/Output): Mention it.
5298 * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
5299 freopen-safer module.
5300 * doc/posix-functions/stderr.texi (stderr): Likewise.
5301 * doc/posix-functions/stdin.texi (stdin): Likewise.
5302 * doc/posix-functions/stdout.texi (stdout): Likewise.
5303 * modules/freopen-safer-tests: New test.
5304 * tests/test-reopen-safer.c: New file.
5306 2009-11-05 Jim Meyering <meyering@redhat.com>
5308 maint.mk: Prohibit inclusion of "close-stream.h" without use.
5309 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
5311 2009-11-05 Simon Josefsson <simon@josefsson.org>
5313 * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
5315 2009-11-05 Simon Josefsson <simon@josefsson.org>
5317 * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
5319 2009-11-05 Simon Josefsson <simon@josefsson.org>
5322 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
5323 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5325 2009-11-05 Simon Josefsson <simon@josefsson.org>
5327 * tests/test-func.c: Also test value of __func__.
5329 2009-11-05 Simon Josefsson <simon@josefsson.org>
5331 * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
5332 may be an 8-bit type. Reported by Bruno Haible <bruno@clisp.org>.
5334 2009-11-05 Bruno Haible <bruno@clisp.org>
5337 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
5338 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5339 Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
5341 2009-11-05 Bruno Haible <bruno@clisp.org>
5343 Tests for module 'inet_pton'.
5344 * modules/inet_pton-tests: New file.
5345 * tests/test-inet_pton.c: New file.
5347 2009-11-05 Bruno Haible <bruno@clisp.org>
5349 Tests for module 'inet_ntop'.
5350 * modules/inet_ntop-tests: New file.
5351 * tests/test-inet_ntop.c: New file.
5353 2009-11-04 Eric Blake <ebb9@byu.net>
5355 stdlib-safer: wrap all mkstemp variants
5356 * modules/mkostemp (configure.ac): Set witness.
5357 * modules/mkostemps (configure.ac): Likewise.
5358 * modules/mkstemps (configure.ac): Likewise.
5359 * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
5360 (mkstemps_safer): Wrap more functions.
5361 * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
5363 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
5364 (mkstemps_safer): Implement the wrappers.
5366 mkstemps, mkostemps: new modules
5367 * modules/mkostemps: New module.
5368 * modules/mkstemps: Likewise.
5369 * lib/mkostemps.c (mkostemps): New file.
5370 * lib/mkstemps.c (mkstemps): Likewise.
5371 * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
5372 * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
5373 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
5374 * modules/stdlib (Makefile.am): Substitute them.
5375 * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
5376 * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
5377 * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
5378 * doc/gnulib.texi (Glibc stdlib.h): Include them.
5379 * MODULES.html.sh (File system functions): Mention them.
5381 tempname: resync from glibc
5382 * lib/tempname.c (__gen_tempname): Add suffixlen argument. Use
5383 same values for __GT_FILE as glibc. Abort even when assertions
5385 * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
5386 match its value otherwise. Allow idempotent inclusion.
5387 * lib/mkdtemp.c (mkdtemp): Adjust caller.
5388 * lib/mkostemp.c (mkostemp): Likewise.
5389 * lib/mkstemp.c (mkstemp): Likewise.
5390 * lib/tmpfile.c (tmpfile): Likewise.
5391 * NEWS: Document this.
5393 utimens: fix use of futimens on older Linux
5394 * lib/utimens.c (fdutimens): Use updated, rather than original,
5395 timespec to avoid bug in older Linux kernel.
5396 Reported by Simon Josefsson.
5398 2009-11-04 Bruno Haible <bruno@clisp.org>
5400 Make num_processors more flexible and consistent.
5401 * lib/nproc.h (enum nproc_query): New type.
5402 (num_processors): Add a 'query' argument.
5403 * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
5404 (num_processors): Add a 'query' argument. Test the value of the
5405 OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
5406 mingw, count the number of CPUs available for the current process.
5407 * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
5408 Check for sched_getaffinity and sched_getaffinity_np.
5409 * modules/nproc (Depends-on): Add c-ctype, extensions.
5410 * NEWS: Mention the change.
5412 2009-11-03 Bruno Haible <bruno@clisp.org>
5414 * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
5416 2009-11-03 Jim Meyering <meyering@redhat.com>
5418 test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
5419 * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
5422 2009-11-02 Eric Blake <ebb9@byu.net>
5424 mktime, timegm: share common declaration
5425 * lib/mktime-internal.h: New file.
5426 * lib/mktime.c: Use it rather than open-coding a declaration.
5427 * lib/timegm.c: Likewise.
5428 * modules/mktime (Files): Ship it.
5429 * modules/timegm (Files): Likewise.
5430 Suggested by Bruno Haible.
5432 test-update-copyright: update test to match script changes
5433 * tests/test-update-copyright.sh: Avoid hard-coding perl
5434 location. Don't update *.bak created by earlier runs.
5436 2009-11-02 Paul Eggert <eggert@cs.ucla.edu>
5437 Simon Josefsson <simon@josefsson.org>
5438 Bruno Haible <bruno@clisp.org>
5440 Fix link error on Solaris 8.
5441 * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
5442 also in libnsl. Define also INET_PTON_LIB.
5443 * modules/inet_pton (Link): New section.
5445 2009-11-02 Simon Josefsson <simon@josefsson.org>
5446 Bruno Haible <bruno@clisp.org>
5448 * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
5449 * modules/inet_ntop (Link): New section.
5450 Reported by Boyan Kasarov <bkasarov@gmail.com>.
5452 2009-11-02 Eric Blake <ebb9@byu.net>
5454 maint: avoid compiler warnings in m4 macros
5455 * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
5456 * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
5458 2009-11-02 Simon Josefsson <simon@josefsson.org>
5460 * m4/pmccabe2html.m4: Remove file.
5461 * modules/pmccabe2html: Drop pmccabe2html.m4. Don't call m4
5462 function. Change maintainer.
5463 * build-aux/pmccabe2html: Use /bin/sh with magic instead of
5464 hard-coding path to awk. Tiny patch from ludo@gnu.org (Ludovic
5467 2009-10-31 Eric Blake <ebb9@byu.net>
5469 fseeko: fix m4 regression
5470 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro. Fixes
5471 regression from 2009-10-27.
5472 Reported by Ralf Wildenhues.
5474 2009-10-31 Jim Meyering <meyering@redhat.com>
5476 inttostr: aesthetics and improved (compile-time) safety
5477 Define inttype_is_signed rather than inttype_is_unsigned,
5478 since the sole use is via "#if inttype_is_signed".
5479 * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
5480 inttype_is_unsigned.
5481 * lib/offtostr.c (inttype_is_signed): Likewise.
5482 * lib/uinttostr.c (inttype_is_signed): Likewise.
5483 * lib/umaxtostr.c (inttype_is_signed): Likewise.
5484 * lib/inttostr.c (inttostr): Use verify to cross-check the
5485 inttype_is_signed value and the signedness of the actual type.
5486 * modules/inttostr (Depends-on): Add verify.
5488 2009-10-30 Eric Blake <ebb9@byu.net>
5490 build: avoid compiler warnings
5491 * lib/fchmodat.c (lchmod): Mark unused variables.
5492 * lib/getopt.c (_getopt_initialize): Likewise.
5493 * lib/mktime.c (__mktime_internal): Provide prototype.
5494 * lib/inttostr.c (inttostr): Avoid compiler warning even with
5495 older gcc that do not understand #pragma GCC diagnostic.
5496 * lib/uinttostr.c (inttype_is_unsigned): Define.
5497 * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
5499 2009-10-30 Michael Haubenwallner <michael.haubenwallner@salomon.at>
5501 stat: fix compilation on AIX
5502 * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
5503 only see struct stat64.
5505 2009-10-30 Eric Blake <ebb9@byu.net>
5507 exclude: make more robust
5508 * lib/exclude.c (excluded_file_name): Abort on unexpected value,
5509 rather than masking a coding bug.
5510 Suggested by Bruno Haible.
5512 2009-10-30 Jim Meyering <meyering@redhat.com>
5514 perl scripts: remove #!/usr/bin/perl in favor of more portable...
5515 Rather than putting #!/usr/bin/perl on the first line,
5516 start with a variant of what's recommended by "man perlrun" that
5517 invokes the first "perl" program from your shell's search path.
5518 * build-aux/gitlog-to-changelog: Replace #!... as above.
5519 Add a "Local Variables" perl mode setting.
5520 Prompted by a patch from Ludovic Courtès.
5521 Improved by Eric Blake.
5522 * build-aux/useless-if-before-free: Likewise.
5523 * build-aux/announce-gen: Likewise.
5524 * build-aux/update-copyright: Likewise.
5526 2009-10-29 Eric Blake <ebb9@byu.net>
5528 filenamecat-lgpl: adjust clients
5529 * modules/linkat (Depends-on): Use filenamecat-lgpl, not
5531 * modules/renameat (Depends-on): Likewise.
5533 filenamecat: split into filenamecat-lgpl
5534 * modules/filenamecat-lgpl: New module.
5535 * modules/filenamecat (Files): Move library-safe files into
5537 (Depends-on): Add filenamecat-lgpl.
5538 (configure.ac): Declare witness.
5539 * lib/filenamecat.h (file_name_concat): Only declare when using
5541 * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
5543 * lib/filenamecat-lgpl.c: ...into new file.
5544 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
5545 (gl_FILE_NAME_CONCAT): Use it.
5546 * MODULES.html.sh (File system functions): Mention new module.
5548 argp: avoid memory leak
5549 * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
5550 * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
5551 base_name, since the latter malloc()s and can call exit().
5552 Leak introduced 2006-07-03.
5554 dirname-lgpl: adjust clients that don't need full dirname
5555 * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
5556 * modules/filenamecat (Depends-on): Likewise.
5557 * modules/linkat (Depends-on): Likewise.
5558 * modules/mkancesdirs (Depends-on): Likewise.
5559 * modules/mkdir (Depends-on): Likewise.
5560 * modules/openat (Depends-on): Likewise.
5561 * modules/savewd (Depends-on): Likewise.
5562 * modules/rename (Depends-on): Likewise.
5563 (License): Relax license.
5564 * modules/mkdir-tests (Depends-on): Drop progname.
5565 (Makefile.am): Delete unneeded LDADD.
5566 * modules/rename-tests (Depends-on, Makefile.am): Likewise.
5568 dirname: split into dirname-lgpl
5569 * modules/dirname-lgpl: New module.
5570 * modules/dirname (Files): Move library-safe files into
5572 (Depends-on): Add dirname-lgpl.
5573 (configure.ac): Declare witness.
5574 * modules/double-slash-root (License): Relax license.
5575 * lib/dirname.h (base_name, dir_name): Only declare when using GPL
5577 * lib/dirname.c (dir_len, mdir_name): Move...
5578 * lib/dirname-lgpl.c: ...into new file.
5579 * lib/basename.c (last_component, base_len): Move...
5580 * lib/basename-lgpl.c: ...into new file.
5581 * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
5582 (gl_DIRNAME): Use it.
5583 * MODULES.html.sh (Enhancements for POSIX:2008 functions):
5585 * modules/dirname-tests (Depends-on): Add progname.
5586 * tests/test-dirname.c (program_name): Delete.
5588 mkdir: make safe for libraries
5589 * modules/mkdir (Depends-on): Drop xalloc.
5590 * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
5593 tests: avoid some compiler warnings
5594 * tests/test-getaddrinfo.c (simple): Mark static, and allow string
5596 * tests/test-memchr.c (main): Avoid type mismatch.
5597 * tests/test-arpa_inet.c (main): Avoid unused parameters.
5598 * tests/test-base64.c (main): Likewise.
5599 * tests/test-getdelim.c (main): Likewise.
5600 * tests/test-gethostname.c (main): Likewise.
5601 * tests/test-getline.c (main): Likewise.
5602 * tests/test-netinet_in.c (main): Likewise.
5603 * tests/test-select.c (open_server_socket, main): Likewise.
5604 * tests/test-select-stdin.c (main): Likewise.
5605 * tests/test-sockets.c (main): Likewise.
5606 * tests/test-strsignal.c (main): Likewise.
5607 * tests/test-sys_select.c (main): Likewise.
5608 * tests/test-sys_socket.c (main): Likewise.
5609 * tests/test-u64.c (main): Likewise.
5610 * tests/test-xfprintf-posix.c (main): Likewise.
5611 * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
5613 sockets: avoid compiler warning
5614 * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
5616 maint: detect usage(1) and other suspicious exits
5617 * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
5619 2009-10-29 Jim Meyering <meyering@redhat.com>
5621 timespec: long-to-int truncation could make timespec_cmp malfunction
5622 * lib/timespec.h (timespec_cmp): Do not interpret a difference of
5623 a multiple of 2^32 nanoseconds as no difference.
5625 2009-10-28 Jim Meyering <meyering@redhat.com>
5627 fprintftime: wrap macro code argument in "do {...} while(0)"
5628 * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
5629 cpy macro must be a statement that can be followed by a semicolon.
5630 Now that the else clause contains a comment and is hence longer
5631 than one line, I require curly braces. That in turn requires
5632 that we wrap this code block in the standard do...while(0).
5634 fprintftime: remove stray semicolon from previous change
5635 * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
5637 fprintftime: avoid a warning about ignored fwrite return value
5638 * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
5639 (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
5641 * modules/fprintftime (Depends-on): Add ignore-value.
5643 exclude: avoid an unwarranted warning
5644 * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
5646 2009-10-27 Eric Blake <ebb9@byu.net>
5648 fseek: avoid compilation failure when fflush is replaced
5649 * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
5650 * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
5652 * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
5653 module is not in use; since REPLACE_FSEEK worked otherwise.
5654 (GNULIB_FTELLO): Likewise for ftell.
5655 Reported by Ian Beckwith and others.
5657 2009-10-27 Bruno Haible <bruno@clisp.org>
5659 * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
5660 Reported by Jim Meyering.
5662 2009-10-27 Jim Meyering <jim@meyering.net>
5663 Bruno Haible <bruno@clisp.org>
5665 Avoid warning despite dropping the return value of fwrite.
5666 * lib/unicodeio.c: Include ignore-value.h.
5667 (fwrite_success_callback): Explicitly ignore fwrite's return value.
5668 * modules/unicodeio (Depends-on): Add ignore-value.
5670 2009-10-26 Eric Blake <ebb9@byu.net>
5672 areadlinkat: fix fallback path
5673 * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
5676 2009-10-22 Pádraig Brady <P@draigBrady.com>
5678 Use a better IO block size for modern systems
5679 * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
5680 * lib/md2.c: Likewise.
5681 * lib/md4.c: Likewise.
5682 * lib/md5.c: Likewise.
5683 * lib/sha1.c: Likewise.
5684 * lib/sha256.c: Likewise.
5685 * lib/sha512.c: Likewise.
5687 2009-10-22 Eric Blake <ebb9@byu.net>
5689 tests: avoid several compiler warnings
5690 * tests/test-getcwd.c (main): Avoid buffer underflow.
5691 * tests/test-getdate.c (main): String literals are not safe with
5692 putenv, so use setenv. Declare unused argument.
5693 * modules/getdate-tests (Depends-on): Add setenv.
5694 * tests/test-argv-iter.c (main): Declare unused argument. Avoid
5695 problems with string literals in char *.
5696 * tests/test-hash.c (main): Avoid shadowing declaration.
5697 (insert_new): Treat string literals as char const *.
5698 * tests/test-getopt.h (test_getopt): Likewise.
5699 (getopt_loop): Alter types to minimize casting elsewhere.
5700 * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
5701 (test_getopt_long_posix): Likewise.
5702 (do_getopt_long): Add wrapper to minimize casting.
5703 * tests/test-atexit.c (clear_temp_file): Use void.
5704 * tests/test-areadlink-with-size.c (main): Declare unused
5706 * tests/test-areadlink.c (main): Likewise.
5707 * tests/test-areadlinkat-with-size.c (main): Likewise.
5708 * tests/test-areadlinkat.c (main): Likewise.
5709 * tests/test-canonicalize-lgpl.c (main): Likewise.
5710 * tests/test-canonicalize.c (main): Likewise.
5711 * tests/test-dirent-safer.c (main): Likewise.
5712 * tests/test-dirname.c (main): Likewise.
5713 * tests/test-dup2.c (main): Likewise.
5714 * tests/test-fchdir.c (main): Likewise.
5715 * tests/test-fcntl-h.c (main): Likewise.
5716 * tests/test-fcntl-safer.c (main): Likewise.
5717 * tests/test-fdopendir.c (main): Likewise.
5718 * tests/test-fdutimensat.c (main): Likewise.
5719 * tests/test-fflush.c (main): Likewise.
5720 * tests/test-filenamecat.c (main): Likewise.
5721 * tests/test-filevercmp.c (main): Likewise.
5722 * tests/test-fopen-safer.c (main): Likewise.
5723 * tests/test-fopen.c (main): Likewise.
5724 * tests/test-fpending.c (main): Likewise.
5725 * tests/test-fpurge.c (main): Likewise.
5726 * tests/test-freading.c (main): Likewise.
5727 * tests/test-fstatat.c (main): Likewise.
5728 * tests/test-fsync.c (main): Likewise.
5729 * tests/test-futimens.c (main): Likewise.
5730 * tests/test-getndelim2.c (main): Likewise.
5731 * tests/test-gettimeofday.c (main): Likewise.
5732 * tests/test-getopt.c (main): Likewise.
5733 * tests/test-i-ring.c (main): Likewise.
5734 * tests/test-inttypes.c (main): Likewise.
5735 * tests/test-link.c (main): Likewise.
5736 * tests/test-lstat.c (main): Likewise.
5737 * tests/test-math.c (main): Likewise.
5738 * tests/test-md5.c (main): Likewise.
5739 * tests/test-memchr2.c (main): Likewise.
5740 * tests/test-memrchr.c (main): Likewise.
5741 * tests/test-mkdir.c (main): Likewise.
5742 * tests/test-mkdirat.c (main): Likewise.
5743 * tests/test-mkfifoat.c (main): Likewise.
5744 * tests/test-open.c (main): Likewise.
5745 * tests/test-openat-safer.c (main): Likewise.
5746 * tests/test-openat.c (main): Likewise.
5747 * tests/test-quotearg.c (main): Likewise.
5748 * tests/test-rawmemchr.c (main): Likewise.
5749 * tests/test-readlink.c (main): Likewise.
5750 * tests/test-remove.c (main): Likewise.
5751 * tests/test-rename.c (main): Likewise.
5752 * tests/test-renameat.c (main): Likewise.
5753 * tests/test-rmdir.c (main): Likewise.
5754 * tests/test-sha1.c (main): Likewise.
5755 * tests/test-signal.c (main): Likewise.
5756 * tests/test-sigaction.c (main): Likewise.
5757 * tests/test-stat.c (main): Likewise.
5758 * tests/test-stat-time.c (main): Likewise.
5759 * tests/test-stddef.c (main): Likewise.
5760 * tests/test-stdint.c (main): Likewise.
5761 * tests/test-stdio.c (main): Likewise.
5762 * tests/test-stdlib.c (main): Likewise.
5763 * tests/test-strchrnul.c (main): Likewise.
5764 * tests/test-strerror.c (main): Likewise.
5765 * tests/test-string.c (main): Likewise.
5766 * tests/test-strtod.c (main): Likewise.
5767 * tests/test-strverscmp.c (main): Likewise.
5768 * tests/test-symlink.c (main): Likewise.
5769 * tests/test-symlinkat.c (main): Likewise.
5770 * tests/test-sys_stat.c (main): Likewise.
5771 * tests/test-sys_time.c (main): Likewise.
5772 * tests/test-time.c (main): Likewise.
5773 * tests/test-unistd.c (main): Likewise.
5774 * tests/test-unlink.c (main): Likewise.
5775 * tests/test-unlinkat.c (main): Likewise.
5776 * tests/test-utimens.c (main): Likewise.
5777 * tests/test-utimensat.c (main): Likewise.
5778 * tests/test-version-etc.c (main): Likewise.
5779 * tests/test-wchar.c (main): Likewise.
5780 * tests/test-wctype.c (main): Likewise.
5781 * tests/test-xprintf-posix.c (main): Likewise.
5782 * tests/test-posixtm.c (main): Likewise.
5783 (STREQ): Delete unused macro.
5784 * tests/test-linkat.c (main): Declare unused arguments. Avoid
5786 * tests/test-memchr.c (main): Likewise.
5788 2009-10-21 Eric Blake <ebb9@byu.net>
5790 areadlinkat: avoid failure on older glibc
5791 * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
5792 rather than mis-comparing 0 against FUNC_RESULT of char*.
5794 2009-10-21 Bruno Haible <bruno@clisp.org>
5796 * modules/stpncpy (License): Relicense under LGPLv2+.
5797 Reported by David Lutterkort <lutter@redhat.com>.
5799 2009-10-20 Eric Blake <ebb9@byu.net>
5801 utimensat: work around Solaris 9 bug
5802 * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
5803 has trailing slash bugs.
5804 * tests/test-lutimens.h (test_lutimens): Enhance test.
5805 * tests/test-utimens.h (test_utimens): Likewise.
5806 * doc/posix-functions/utime.texi (utime): Enhance documentation.
5807 * doc/posix-functions/utimes.texi (utimes): Likewise.
5808 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5809 * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
5810 * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
5811 * doc/posix-functions/futimens.texi (futimens): Likewise.
5813 fdutimensat: new module
5814 * modules/fdutimensat: New file.
5815 * lib/fdutimensat.c (fdutimensat): Likewise.
5816 * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
5817 * MODULES.html.sh (File system functions): Mention module.
5818 * modules/fdutimensat-tests: New test.
5819 * tests/test-fdutimensat.c: Likewise.
5821 doc: regenerate INSTALL
5822 * doc/INSTALL: Reflect recent autoconf update.
5823 * doc/INSTALL.ISO: Likewise.
5824 * doc/INSTALL.UTF-8: Likewise.
5826 2009-10-20 Pádraig Brady <P@draigBrady.com>
5828 acl: warn if ACL support is not detected
5829 * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
5831 2009-10-19 Giuseppe Scrivano <gscrivano@gnu.org>
5833 * lib/nproc.h: Add extern "C" block for C++.
5835 2009-10-18 Reuben Thomas <rrt@sc3d.org>
5836 Bruno Haible <bruno@clisp.org>
5838 * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
5839 * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
5840 * doc/posix-functions/isalpha.texi: Likewise.
5841 * doc/posix-functions/isblank.texi: Likewise.
5842 * doc/posix-functions/iscntrl.texi: Likewise.
5843 * doc/posix-functions/isdigit.texi: Likewise.
5844 * doc/posix-functions/isgraph.texi: Likewise.
5845 * doc/posix-functions/islower.texi: Likewise.
5846 * doc/posix-functions/isprint.texi: Likewise.
5847 * doc/posix-functions/ispunct.texi: Likewise.
5848 * doc/posix-functions/isspace.texi: Likewise.
5849 * doc/posix-functions/isupper.texi: Likewise.
5850 * doc/posix-functions/isxdigit.texi: Likewise.
5852 2009-10-18 Bruno Haible <bruno@clisp.org>
5854 Tests for module 'isblank'.
5855 * modules/isblank-tests: New file.
5856 * tests/test-isblank.c: New file.
5858 New module 'isblank'.
5859 * lib/isblank.c: New file.
5860 * m4/isblank.m4: New file.
5861 * modules/isblank: New file.
5862 * doc/posix-functions/isblank.texi: Mention the new module.
5864 2009-10-18 Bruno Haible <bruno@clisp.org>
5867 * lib/ctype.in.h: New file.
5868 * m4/ctype.m4: New file.
5869 * modules/ctype: New file.
5870 * doc/posix-headers/ctype.texi: Mention the new module.
5872 2009-10-18 Jim Meyering <meyering@redhat.com>
5874 m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
5875 Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
5876 right after its initialization, rather than farther down.
5877 Keeping these in close proximity makes it easier to ensure
5878 that each such variable is initialized. E.g.,
5881 AC_SUBST([LIB_CLOCK_GETTIME])
5883 This change also increments these serial numbers.
5884 * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
5885 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
5886 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5888 2009-10-18 Bruno Haible <bruno@clisp.org>
5890 Don't let environment variables perturb build.
5891 * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
5892 (gl_PREREQ_GETHRXTIME): ... not here.
5894 2009-10-18 Bruno Haible <bruno@clisp.org>
5896 Avoid symlink attack in localcharset module.
5897 * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
5898 (O_NOFOLLOW): Define fallback.
5899 (get_charset_aliases): Don't open the file if it is a symbolic link.
5900 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
5902 (gl_FCNTL_H): Require it.
5903 * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
5904 * modules/localcharset (Files): Add m4/fcntl_h.m4.
5905 Reported by Fergal Glynn <fglynn@veracode.com>.
5907 2009-10-18 Bruno Haible <bruno@clisp.org>
5909 Implement nproc for mingw.
5910 * lib/nproc.c: Include <windows.h>
5911 (num_processors): On native Windows platforms, try GetSystemInfo.
5913 2009-10-18 Bruno Haible <bruno@clisp.org>
5915 Implement nproc for IRIX.
5916 * lib/nproc.c: Include <sys/sysmp.h>.
5917 (num_processors): On IRIX systems, try sysmp.
5918 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
5920 2009-10-18 Bruno Haible <bruno@clisp.org>
5922 Implement nproc for HP-UX.
5923 * lib/nproc.c: Include <sys/pstat.h>
5924 (num_processors): On HP-UX systems, try pstat_getdynamic.
5925 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
5928 2009-10-18 Giuseppe Scrivano <gscrivano@gnu.org>
5929 Bruno Haible <bruno@clisp.org>
5931 Implement nproc for NetBSD, OpenBSD.
5932 * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
5933 (ARRAY_SIZE): New macro.
5934 (num_processors): On BSD systems, try sysctl of HW_NCPU.
5935 * m4/nproc.m4: New file.
5936 * modules/nproc (Files): Add m4/nproc.m4.
5937 (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
5938 (Makefile.am): Instead, augment lib_SOURCES.
5940 2009-10-18 Bruno Haible <bruno@clisp.org>
5942 Fix recognition of sys/sysctl.h on OpenBSD 4.0.
5943 * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
5946 2009-10-16 Eric Blake <ebb9@byu.net>
5948 utimensat: new module
5949 * modules/utimensat: New file.
5950 * lib/utimensat.c (utimensat): Likewise.
5951 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5952 * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
5953 so we can work around Linux bugs.
5954 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
5955 * modules/sys_stat (Makefile.am): Substitute them.
5956 * lib/sys_stat.in.h (utimensat): Declare it.
5957 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5958 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5959 * modules/utimensat-tests: New test.
5960 * tests/test-utimensat.c: Likewise.
5962 utimens: let lutimens work on non-symlinks
5963 * lib/utimens.c (lutimens): Fall back to utimens rather than
5964 failing with ENOSYS, when file is not a symlink.
5965 (utimens): Reduce redirection.
5966 * tests/test-lutimens.h (test_lutimens): Update test to cover
5968 * tests/test-utimens.h (test_utimens): Update test to cover
5970 * tests/test-utimens.c (main): Update caller.
5972 utimens: cache whether utimensat syscall works
5973 * lib/utimens.c (utimensat_works_really): New cache variable.
5974 (fdutimens, lutimens): Use it to avoid failing syscall.
5976 test-stat-time, test-utimens: improve portability
5977 * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
5978 ext4 on alpha, and for cygwin.
5979 * tests/test-utimens-common.h: New file.
5980 (nap): Factor delays into single function.
5981 * tests/test-lutimens.h (test_lutimens): Use new header.
5982 * tests/test-futimens.h (test_futimens): Likewise.
5983 * tests/test-utimens.h (test_utimens): Likewise. Also, force NFS
5984 timestamps to occur from same machine, as was done previously for
5986 * modules/utimens-tests (Files): Ship new file.
5987 * modules/futimens-tests (Files): Likewise.
5988 Reported in part by Jim Meyering.
5990 sys_stat: sort replacement declarations
5991 * lib/sys_stat.in.h: Sort declarations.
5992 * lib/futimens.c (futimens): Fix typo.
5994 2009-10-15 Jim Meyering <meyering@redhat.com>
5996 don't let environment settings perturb build
5997 Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
5998 could cause a configure-time and/or build-time malfunction.
5999 Typically, a configure-time function-in-library test is performed
6004 prefix_saved_LIBS=$LIBS
6005 AC_SEARCH_LIBS([FUNC], [LIB_NAME],
6006 [test "$ac_cv_search_FUNC" = "none required" ||
6007 LIB_VAR=$ac_cv_search_FUNC])
6008 LIBS=$prefix_saved_LIBS
6010 However, in each of the files affected by this change, the LIB_VAR=
6011 initialization was omitted. Thus, when set in the environment, its
6012 value would propagate into generated Makefiles when FUNC is not found
6014 * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
6015 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
6016 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6018 2009-10-14 Eric Blake <ebb9@byu.net>
6020 fchdir: avoid infinite recursion in mingw
6021 * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
6024 test-stat-time: port to mingw
6025 * tests/test-stat-time.c (force_unlink): Return a value.
6026 (test_ctime) [W32]: Fix compilation error.
6027 (nap): Don't call usleep with too large an argument. Use
6029 * doc/pastposix-functions/usleep.texi (usleep): Document the
6032 2009-10-13 Jim Meyering <meyering@redhat.com>
6034 use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
6035 * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
6036 * modules/pipe-filter-ii: Likewise.
6037 * modules/sys_socket-tests: Likewise.
6038 * modules/tsearch-tests: Likewise.
6039 * Makefile (sc_prefer_ac_check_funcs_once): New rule.
6040 (check): Depend on it.
6042 2009-10-12 Eric Blake <ebb9@byu.net>
6044 utimens-tests: port to NFS file systems
6045 * tests/test-utimens.h (test_utimens): Refactor utimecmp
6046 comparisons to avoid spurious failures from timestamp drift
6047 between NFS machines.
6049 2009-10-12 Eric Blake <ebb9@byu.net>
6051 stat-time-tests: minor cleanups
6052 * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
6053 * tests/test-stat-time.c (nap): Separate assignment from call.
6054 Suggested by Paolo Bonzini and Bruno Haible.
6056 sys_stat: guarantee struct timespec
6057 * lib/sys_stat.in.h (includes): Always include <time.h>
6058 * modules/sys_stat (Depends-on): Add time.
6059 * tests/test-sys_stat.c: Guarantee struct timespec, as well as
6060 mode_t permission values.
6061 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
6062 get at subsecond timestamps.
6064 2009-10-10 Eric Blake <ebb9@byu.net>
6066 futimens: new module
6067 * modules/futimens: New file.
6068 * lib/futimens.c (futimens): Likewise.
6069 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
6070 * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
6071 we can work around Linux bugs.
6072 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
6073 * modules/sys_stat (Makefile.am): Substitute them.
6074 * lib/sys_stat.in.h (futimens): Declare it.
6075 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6076 * doc/posix-functions/futimens.texi (futimens): Likewise.
6077 * modules/futimens-tests: New test.
6078 * tests/test-futimens.c: Likewise.
6080 utimens: introduce fdutimens
6081 * lib/utimens.h (fdutimens): New prototype.
6082 * lib/utimens.c (gl_futimens): Move guts...
6083 (fdutimens): ...to new interface.
6084 * tests/test-utimens.c (do_fdutimens): Use it.
6086 utimens: add UTIME_NOW and UTIME_OMIT support
6087 * lib/utimens.c (validate_timespec, update_timespec): New helper
6089 (gl_futimens, lutimens): Use them.
6090 * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
6092 (Link): Mention resulting library dependency.
6093 * modules/utimecmp (Link): Likewise.
6094 * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
6095 (Makefile.am): Pick up library dependency.
6096 * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
6098 * tests/test-sys_stat.c: Test the definitions.
6099 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
6100 * NEWS: Document library dependency.
6102 utimecmp: support symlink timestamps
6103 * lib/utimecmp.c (utimecmp): Use new interface. Skip effort of
6104 hashing when possible. Use pathconf when available.
6105 (SYSCALL_RESOLUTION): Recognize tighter resolution.
6106 * modules/utimecmp (Depends-on): Add lstat.
6108 utimens: add lutimens interface
6109 * lib/utimens.c (lutimens): New function.
6110 * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
6111 * lib/utimens.h (lutimens): Declare new interface.
6112 * tests/test-utimens.c (main): Enhance test.
6113 * tests/test-lutimens.h (test_lutimens): New file.
6114 * modules/utimens-tests (Files): Distribute it.
6115 (Depends-on): Add symlink.
6116 (configure.ac): Check for usleep.
6118 utimens: validate futimens usage
6119 * lib/utimens.c (gl_futimens): Require valid fd up front, using
6120 fewer syscalls on failure later on. Avoid compiler warning on
6122 * modules/utimens (Depends-on): Add dup2.
6125 * modules/utimens-tests: New test.
6126 * tests/test-utimens.h: New file.
6127 * tests/test-futimens.h: Likewise.
6128 * tests/test-utimens.c: Likewise.
6130 doc: mention timestamp portability issues
6131 * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
6133 * doc/posix-functions/utime.texi (utime): Likewise.
6134 * doc/posix-functions/utimes.texi (utimes): Likewise.
6135 * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
6137 * doc/posix-functions/futimens.texi (futimens): Mention utimens
6139 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6140 Mention weakness with symlink timestamps.
6141 * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
6142 to utimensat/futimens instead.
6143 * doc/gnulib.texi (Glibc sys/time.h): Include new file.
6145 test-dup2: enhance test
6146 * tests/test-dup2.c (main): Also check AT_FDCWD.
6148 test-stat-time: avoid more spurious failures
6149 * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
6150 xfs; and avoid race if the two timestamps cross quantization edge.
6152 relocatable: prefer 'file system' over 'filesystem'
6153 * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
6154 (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
6155 * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
6156 * doc/relocatable.texi (Enabling Relocatability): Likewise.
6157 * lib/relocatable.c (compute_curr_prefix): Likewise.
6159 2009-10-10 Jim Meyering <meyering@redhat.com>
6161 stat-time-tests: check for the usleep function
6162 * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
6164 2009-10-10 Bruno Haible <bruno@clisp.org>
6166 * modules/xnanosleep: Put the Link section after the Include section.
6168 2009-10-09 Eric Blake <ebb9@byu.net>
6170 dup2: work around FreeBSD 6.1 bug
6171 * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
6172 * doc/posix-functions/dup2.texi (dup2): Document it.
6173 Reported by Nelson H. F. Beebe and Jim Meyering.
6175 test-stat-time: port to buggy NFS clients
6176 * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
6177 (test_ctime): Also skip test if mtime and ctime are skewed.
6179 maint: prefer 'file system' over 'filesystem'
6180 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
6181 * doc/posix-functions/lstat.texi (lstat): Likewise.
6182 * lib/file-has-acl.c (file_has_acl): Likewise.
6183 * lib/fwriteerror.c [TEST]: Likewise.
6184 * tests/test-areadlink.h (test_areadlink): Likewise.
6185 * tests/test-areadlinkat-with-size.c (main): Likewise.
6186 * tests/test-areadlinkat.c (main): Likewise.
6187 * tests/test-canonicalize-lgpl.c (main): Likewise.
6188 * tests/test-canonicalize.c (main): Likewise.
6189 * tests/test-fstatat.c (main): Likewise.
6190 * tests/test-linkat.c (main): Likewise.
6191 * tests/test-lstat.h (test_lstat_func): Likewise.
6192 * tests/test-mkdir.h (test_mkdir): Likewise.
6193 * tests/test-readlink.h (test_readlink): Likewise.
6194 * tests/test-remove.c (main): Likewise.
6195 * tests/test-rename.h (test_rename): Likewise.
6196 * tests/test-renameat.c (main): Likewise.
6197 * tests/test-rmdir.h (test_rmdir_func): Likewise.
6198 * tests/test-symlink.h (test_symlink): Likewise.
6199 * tests/test-symlinkat.c (main): Likewise.
6200 * tests/test-unlink.h (test_unlink_func): Likewise.
6201 * tests/test-unlinkat.c (main): Likewise.
6203 maint: make realtime library usage explicit
6204 * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
6205 * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
6206 * modules/settime (Link): Likewise.
6207 * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
6209 test-stat-time: speed up execution
6210 * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
6212 (nap): New helper function.
6213 (prepare_test): Use it to reduce sleep time.
6214 (test_mtime, test_ctime, test_birthtime): Allow for subsecond
6216 * modules/stat-time-tests (configure.ac): Check for usleep.
6218 2009-10-09 Jim Meyering <meyering@redhat.com>
6220 selinux-h: always use getfilecon wrappers
6221 * lib/getfilecon.c: New file.
6222 * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
6223 [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
6224 [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
6225 (fgetfilecon): Provide a stub.
6226 * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
6227 AC_SUBST SELINUX_SELINUX_H, since now we're generating that
6228 file unconditionally.
6229 When <selinux/selinux.h> is found, arrange to use wrappers.
6230 * modules/selinux-h (Files): Add getfilecon.c.
6231 (Makefile.am): Substitute include-next-related bits
6232 into the now-always-generated selinux/selinux.h file.
6233 * doc/glibc-functions/lgetfilecon.texi: New file.
6234 * doc/glibc-functions/fgetfilecon.texi: New file.
6235 * doc/glibc-functions/getfilecon.texi: New file.
6236 * doc/glibc-functions/getfilecon-desc.texi: New file.
6237 * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
6238 which to pull in the new files.
6239 * MODULES.html.sh (Misc): Add selinux-h.
6241 2009-10-08 Jim Meyering <meyering@redhat.com>
6243 unistd: fix comment typo
6244 * lib/unistd.in.h (euidaccess): Fix a comment typo.
6246 2009-10-08 Eric Blake <ebb9@byu.net>
6248 areadlink: use SIZE_MAX consistently
6249 * modules/areadlink (Depends-on): Add stdint.
6250 * modules/areadlink-with-size (Depends-on): Likewise.
6251 * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
6252 gives NULL; drop sys/types, since unistd gives size_t; and add
6253 stdint for SIZE_MAX.
6254 (SIZE_MAX): Rely on headers.
6255 * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
6257 * lib/areadlink.c (includes): Drop sys/types, and add stdint.
6258 (SIZE_MAX): Likewise.
6259 (INITIAL_BUF_SIZE): Turn into enum.
6260 * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
6262 2009-10-08 Jim Meyering <meyering@redhat.com>
6264 areadlinkat: avoid compilation failure
6265 * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
6266 Fix typo in comment.
6268 2009-10-07 Eric Blake <ebb9@byu.net>
6270 areadlinkat-with-size: new module
6271 * modules/areadlinkat-with-size: New module.
6272 * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
6273 * lib/areadlink.h (areadlinkat): Declare it.
6274 * MODULES.html.sh (File system functions): Mention it.
6275 * modules/areadlinkat-with-size-tests: New test.
6276 * tests/test-areadlinkat-with-size.c: New file.
6278 xreadlinkat: new module
6279 * modules/xreadlinkat: New module.
6280 * lib/xreadlinkat.c (xreadlinkat): New file.
6281 * lib/xreadlink.h (xreadlinkat): Declare it.
6282 * MODULES.html.sh (File system functions): Mention it.
6284 areadlinkat: new module
6285 * lib/at-func.c (FUNC_FAIL): New define.
6286 (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
6287 * modules/areadlinkat: New module.
6288 * lib/linkat.c (areadlinkat): Move...
6289 * lib/areadlinkat.c (areadlinkat): ...to new file.
6290 * lib/areadlink.h (areadlinkat): Declare it.
6291 * modules/linkat (Depends-on): Add areadlinkat.
6292 * MODULES.html.sh (File system functions): Mention it.
6293 * modules/areadlinkat-tests: New test.
6294 * tests/test-areadlinkat.c: New file.
6296 areadlink, areadlink-with-size: add tests
6297 * modules/areadlink-tests: New test.
6298 * modules/areadlink-with-size-tests: Likewise.
6299 * tests/test-areadlink.h: New file.
6300 * tests/test-areadlink.c: Likewise.
6301 * tests/test-areadlink-with-size.c: Likewise.
6303 maint: minor cleanups
6304 * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
6305 _UNUSED_PARAMETER_ instead.
6306 * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
6307 * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
6308 * modules/linkat-tests (Files): Distribute test-link.h.
6310 openat, utimens: whitespace cleanup
6311 * lib/openat.c: Prefer space throughout, rather than mix of 8
6313 * lib/at-func.c: Likewise.
6314 * lib/utimens.c: Likewise.
6316 openat: avoid using wrong fd
6317 * lib/openat.c (openat_permissive): Reject user's fd if saving the
6318 working directory chooses same fd.
6319 * lib/at-func.c (AT_FUNC_NAME): Likewise.
6321 mkdir, mkdirat: fix cygwin 1.5.x bug
6322 * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
6323 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
6324 * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
6326 (gl_PREREQ_MKDIR): Delete unused macro.
6327 * modules/mkdir (Files): Track file rename.
6328 (configure.ac): Update macro name.
6329 * modules/openat (Depends-on): Add mkdir.
6330 * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
6332 mkdir, mkdirat: add tests
6333 * modules/mkdir-tests: New test.
6334 * tests/test-mkdir.h: New file.
6335 * tests/test-mkdir.c: Likewise.
6336 * tests/test-mkdirat.c: Likewise.
6337 * modules/openat-tests (Files): Add new files.
6338 (Makefile.am): Run new test.
6340 2009-10-06 Eric Blake <ebb9@byu.net>
6342 doc: tweak *at function documentation
6343 * doc/posix-functions/faccessat.texi (faccessat): Mention
6344 known issue with replacement.
6345 * doc/posix-functions/fchdir.texi (fchdir): Likewise.
6346 * doc/posix-functions/linkat.texi (linkat): Likewise.
6347 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
6348 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
6349 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
6350 * doc/posix-functions/renameat.texi (renameat): Likewise.
6351 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
6353 openat: fix GNU/Hurd bug in unlinkat
6354 * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
6356 * doc/posix-functions/unlink.texi (unlink): Document this.
6357 * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
6359 fdopendir: fix GNU/Hurd bug
6360 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
6361 allowing non-directory fds.
6362 * lib/fdopendir.c (rpl_fdopendir): Work around it.
6363 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
6364 * modules/dirent (Makefile.am): Substitute it.
6365 * lib/dirent.in.h (fdopendir): Declare replacement.
6366 * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
6367 * tests/test-fdopendir.c (main): Test something other than
6368 /dev/null, since on Hurd that behaves like a directory.
6370 test-symlink: port to GNU/Hurd
6371 * tests/test-symlink.h (test_symlink): Relax expected errno.
6373 doc: tweak more cygwin information
6374 * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
6375 now compatible with glibc.
6376 * doc/posix-functions/getopt.texi (getopt): Likewise.
6378 getopt-gnu: add another test
6379 * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
6380 guarantee behavior relied on by m4.
6381 * tests/test-getopt.c (main): Use it.
6382 * modules/getopt-posix-tests (Depends-on): Add setenv.
6383 See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
6385 getopt: fix compilation on darwin
6386 * lib/getopt.in.h (includes): Leave breadcrumbs during system
6388 * lib/unistd.in.h (getopt): Use them to avoid recursive include.
6389 Reported by Ludovic Courtès.
6391 2009-10-06 Bruno Haible <bruno@clisp.org>
6393 * modules/size_max (Description): Discourage its use.
6394 Reported by Simon Josefsson.
6396 2009-10-06 Jim Meyering <meyering@redhat.com>
6398 linkat: avoid compilation failure
6399 * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
6401 2009-10-05 Eric Blake <ebb9@byu.net>
6403 linkat: support Linux 2.6.17
6404 * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
6405 linkat on Linux, but allow cache variable override.
6406 * lib/linkat.c (rpl_linkat): Define override.
6407 * modules/linkat (Depends-on): Add symlinkat.
6408 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
6409 * modules/unistd (Makefile.am): Substitute it.
6410 * lib/unistd.in.h (linkat): Declare replacement.
6411 Reported by Pádraig Brady.
6413 quotearg: port test to systems with C.UTF-8 locale
6414 * tests/test-quotearg.c (struct result_strings): Add another
6415 member, differentiating between C.ASCII and C.UTF-8 handling.
6416 (compare_strings): Add parameter.
6417 (main): Adjust all callers.
6419 getopt: avoid clash with FreeBSD _getopt_internal
6420 * lib/getopt.in.h (_getopt_internal): Override the name.
6421 * lib/getopt_int.h (includes): Pick up any overrides.
6422 Reported by Reuben Thomas.
6424 hash: allow C89 compilation
6425 * lib/hash.c (check_tuning): Move declaration before statement.
6426 Reported by Reuben Thomas.
6428 2009-10-05 Karl Berry <karl@gnu.org>
6430 * doc/gnulib.texi: @include execvpe.texi, missing for several days.
6432 2009-10-04 Paolo Bonzini <bonzini@gnu.org>
6433 Bruno Haible <bruno@clisp.org>
6435 * lib/uname.c (uname): Use a table-driven algorithm to compute
6436 Windows NT versions.
6438 2009-10-04 Bruno Haible <bruno@clisp.org>
6440 * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
6441 program_invocation_short_name.
6442 * modules/progname (configure.ac): Test for presence of
6443 program_invocation_short_name.
6444 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
6446 2009-10-04 Bruno Haible <bruno@clisp.org>
6448 * lib/progname.c (set_program_name): Fix comment.
6449 Reported by Jim Meyering.
6451 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
6452 Bruno Haible <bruno@clisp.org>
6454 * lib/uname.c: Include <string.h>.
6455 (uname): Do only one call to GetVersionEx in the common case.
6457 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
6458 Bruno Haible <bruno@clisp.org>
6460 * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
6461 PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
6462 (uname): Add support for Windows CE and various non-x86 CPU types.
6464 2009-10-03 Bruno Haible <bruno@clisp.org>
6466 * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
6467 invocation to tests/configure.ac.
6468 Reported by Ian Beckwith <ianb@erislabs.net>.
6470 2009-10-02 Eric Blake <ebb9@byu.net>
6472 fchdir: avoid compiler warning
6473 * lib/fchdir.c (canonicalize_file_name)
6474 [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
6476 test-open: support mingw errno values
6477 * tests/test-open.h (test_open): Relax test.
6478 * tests/test-fopen.h (test_fopen): Likewise.
6479 * tests/test-openat-safer.c (main): Likewise.
6481 open: fix opening directory on mingw
6482 * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
6484 test-open: on GNU/Hurd, /dev/null is a directory
6485 * tests/test-fopen.h (main): Rename...
6486 (test_fopen): ...to this. Use a guaranteed non-directory when
6487 confirming open behavior on trailing slash.
6488 * tests/test-openat-safer.c (main): Likewise.
6489 * tests/test-open.h (main): Likewise....
6490 (test_open): ...to this.
6491 * tests/test-fopen.c (main): Adjust caller.
6492 * tests/test-fopen-safer.c (main): Likewise.
6493 * tests/test-open.c (main): Likewise.
6494 * tests/test-fcntl-safer.c (main): Likewise.
6495 Reported by Samuel Thibault.
6497 rename, fchdir: don't ignore chdir failure
6498 * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
6499 * lib/rename.c (rpl_rename) [W32]: Likewise.
6500 (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
6501 an empty destination directory if source cannot be renamed,
6502 although there is still possibility for failure.
6503 * doc/posix-functions/rename.texi (rename): Document the race.
6504 Reported by Jim Meyering.
6506 maint: cleanup whitespace in recent commits
6507 * lib/rename.c (rpl_rename): Remove tabs.
6508 * tests/test-link.h (test_link): Likewise.
6509 * lib/fchdir.c (get_name): Likewise.
6510 Reported by Jim Meyering.
6512 2009-10-02 Ben Pfaff <blp@gnu.org>
6514 relocatable-prog-wrapper: Add missing dependency on
6516 * modules/relocatable-prog-wrapper: Add dependency.
6517 Reported by Ian Beckwith <ianb@erislabs.net>.
6519 2009-10-02 Eric Blake <ebb9@byu.net>
6521 renameat: fix Solaris bugs
6522 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
6524 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
6525 * modules/stdio (Makefile.am): Substitute it.
6526 * lib/stdio.in.h (renameat): Declare replacement.
6527 * lib/renameat.c (rpl_renameat): Implement fix.
6529 renameat: new module
6530 * modules/renameat: New file.
6531 * lib/renameat.c (renameat): Likewise.
6532 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
6533 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
6534 * modules/stdio (Makefile.am): Substitute them.
6535 * lib/stdio.in.h (renameat): Declare it.
6536 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6537 * doc/posix-functions/renameat.texi (renameat): Likewise.
6538 * modules/renameat-tests: New test.
6539 * tests/test-renameat.c: Likewise.
6541 rename: fix mingw bugs
6542 * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
6543 directory overwrite bugs.
6545 rename: fix another cygwin 1.5 bug
6546 * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
6548 * lib/rename.c (rpl_rename): Don't penalize NetBSD with
6549 unnecessary cygwin workarounds. Also work around bug with moving
6550 full directory onto an empty one.
6551 * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
6553 rename-dest-slash: merge into rename module
6554 * modules/rename-dest-slash (Status): Mark obsolete.
6555 (Depends-on): Add rename.
6556 (Files): Let rename do it all.
6557 * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
6558 subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
6559 * m4/rename-dest-slash.m4: ...so this file can be deleted.
6560 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
6561 * lib/rename.c (rpl_rename): Update comments.
6563 rename: fix cygwin 1.5.x bugs
6564 * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
6565 * lib/rename.c (rpl_rename): Work around them.
6566 * modules/rename (Depends-on): Add same-inode.
6568 rename: fix Solaris 10 bug
6569 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
6570 * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
6573 rename: fix Solaris 9 bug
6574 * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
6575 on non-directory. Avoid calling exit.
6576 * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
6578 * modules/rename-tests (Depends-on): Drop lstat.
6579 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
6580 (gl_PREREQ_RENAME): Delete unused macro.
6582 rename-dest-slash: fix NetBSD bug
6583 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
6585 * modules/rename-dest-slash (Depends-on): Add same-inode.
6587 rename-tests: new test, exposes several platform bugs
6588 * modules/rename-tests: New file.
6589 * tests/test-rename.h: Likewise.
6590 * tests/test-rename.c: Likewise.
6591 * doc/posix-functions/rename.texi (rename): Improve documentation,
6592 including bugs that will eventually be fixed in gnulib.
6594 2009-10-02 Paolo Bonzini <bonzini@gnu.org>
6596 * lib/uname.c: Include <stdlib.h>
6597 (uname): Assume version info is available.
6599 2009-10-02 Jim Meyering <meyering@redhat.com>
6601 gnu-web-doc-update: correct --help output
6602 * build-aux/gnu-web-doc-update: Make --help output relevant.
6604 gnu-web-doc-update: add standard options
6605 * build-aux/gnu-web-doc-update: Add --help, --version, etc.
6607 gnu-web-doc-update: New module.
6608 Use this script to automatically update the on-line web documentation
6609 for your GNU project at http://www.gnu.org/software/$pkg/manual/
6610 * modules/gnu-web-doc-update: New file, from coreutils.
6611 * build-aux/gnu-web-doc-update: New script.
6613 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
6615 link: LoadLibrary is not needed.
6616 * lib/link.c: Use GetModuleHandle.
6618 2009-10-01 Eric Blake <ebb9@byu.net>
6620 getopt: bump serial number
6621 * m4/getopt.m4: Increment serial number, to account for 2009-09-24
6624 tests: tighten link, rmdir, and remove tests
6625 * tests/test-link.h (includes): No need to use <config.h> here.
6626 Clean up if directory hard link was created, otherwise test for
6628 * tests/test-linkat.c (main): Simplify.
6629 * tests/test-remove.c (main): Enhance test for trailing '.'.
6630 * tests/test-rmdir.h (test_rmdir_func): Likewise.
6632 2009-10-01 Jim Meyering <meyering@redhat.com>
6634 maint.mk: requiring "make major" was annoying, for a "minor" release.
6635 What is intended is "stable", to contrast with alpha and beta,
6636 so require "make stable", not "make major".
6637 * build-aux/announce-gen (%valid_release_types): s/major/stable/.
6638 (get_tool_versions): Likewise.
6639 * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
6641 2009-09-30 Ben Pfaff <blp@gnu.org>
6643 Fix broken build of replacement for Windows tmpfile().
6644 * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
6645 flags argument added along with the 'mkostemp' module.
6647 2009-09-28 Bruno Haible <bruno@clisp.org>
6649 Avoid identifier clash with POSIX function 'remove' defined as a macro.
6650 * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
6652 (gl_list_remove): Update.
6653 * lib/gl_list.c (gl_list_remove): Update.
6654 * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
6656 (gl_oset_remove): Update.
6657 * lib/gl_list.c (gl_oset_remove): Update.
6658 Reported by Eric Blake.
6660 2009-09-28 Eric Blake <ebb9@byu.net>
6662 doc: mention yet more cygwin 1.7 status
6663 * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
6665 * doc/glibc-functions/execvpe.texi (execvpe): New file.
6666 * doc/gnulib.texi (Glibc unistd.h): Mention it.
6668 argp: fix test failure
6669 * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
6670 that are not upper-case. Pass correct range to tolower.
6672 2009-09-27 Jim Meyering <meyering@redhat.com>
6674 test-yesno: work around sparc-dash here-document infelicity
6675 Without this change, the literal \177 byte in a here document
6676 would make dash 0.5.5.1-3 access uninitialized memory.
6677 * tests/test-yesno.sh: Don't put the \177 byte in the here document.
6678 Instead, use a marker, "@", and filter through tr to create the desired
6679 contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
6681 2009-09-27 Bruno Haible <bruno@clisp.org>
6683 Disable untested support for new flavours of ACLs on AIX.
6684 * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
6686 * lib/set-mode-acl.c (qset_acl): Likewise.
6688 2008-12-07 Bruno Haible <bruno@clisp.org>
6690 Add support for new flavours of ACLs on AIX. (Untested.)
6691 * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
6692 (file_has_acl): Add support for newer AIX.
6693 * lib/set-mode-acl.c (qset_acl): Likewise.
6694 * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
6695 Rainer Tammer <tammer@tammer.net>.
6697 2009-09-26 Eric Blake <ebb9@byu.net>
6699 argp: fix compilation of getopt
6700 * lib/getopt.in.h (includes): Use different guard than glibc.
6701 Reported by Sergey Poznyakoff.
6703 doc: mention more cygwin 1.7 status
6704 * doc/posix-functions/access.texi (access): Mention cygwin 1.5
6706 * doc/posix-functions/execl.texi (execl): Likewise.
6707 * doc/posix-functions/execle.texi (execle): Likewise.
6708 * doc/posix-functions/execlp.texi (execlp): Likewise.
6709 * doc/posix-functions/execv.texi (execv): Likewise.
6710 * doc/posix-functions/execve.texi (execve): Likewise.
6711 * doc/posix-functions/execvp.texi (execvp): Likewise.
6712 * doc/glibc-functions/canonicalize_file_name.texi
6713 (canonicalize_file_name): Cygwin 1.7 now provides this.
6714 * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
6715 * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
6716 on AT_SYMLINK_NOFOLLOW.
6718 2009-09-24 Eric Blake <ebb9@byu.net>
6720 test-linkat: make test more robust
6721 * tests/test-linkat.c (main): Avoid collision with EEXIST.
6723 getopt: fix inclusion guards for cygwin
6724 * modules/getopt-posix (Depends-on): Add include-next.
6725 (Makefile.am): Substitute more items in replacement header.
6726 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
6728 * lib/getopt.in.h (includes): Use split inclusion guard, and
6729 prefer <getopt.h> over include <unistd.h> when one is present.
6730 (option): Also override name of 'struct option'.
6732 same-inode: revert prior change; it is not yet ready
6733 * NEWS: Undo mention of this change.
6734 * lib/same-inode.h (same-inode.h): Undo tri-state change.
6735 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
6736 * lib/cycle-check.c (cycle_check): Likewise.
6737 * lib/same.c (same_name): Likewise.
6738 * lib/at-func2.c (at_func2): Likewise.
6740 2009-09-23 Eric Blake <ebb9@byu.net>
6743 * modules/linkat: New file.
6744 * lib/at-func2.c (at_func2): Likewise.
6745 * lib/linkat.c (linkat): Likewise.
6746 * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
6747 * lib/openat-priv.h (at_func2): Add declaration.
6748 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
6749 * modules/unistd (Makefile.am): Substitute them.
6750 * lib/unistd.in.h (linkat): Declare it.
6751 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6752 * doc/posix-functions/linkat.texi (linkat): Likewise.
6753 * doc/posix-functions/link.texi (link): Tweak wording.
6754 * tests/test-link.c (main): Move guts...
6755 * tests/test-link.h (test_link): ...into new file.
6756 * modules/linkat-tests: New test.
6757 * tests/test-linkat.c: Likewise.
6758 * modules/link-tests (Files): Ship new file.
6759 (Depends-on): Add stdbool.
6761 dirname: add library-safe mdir_name
6762 * lib/dirname.h (mdir_name): New prototype.
6763 * lib/dirname.c (dir_name): Move guts...
6764 (mdir_name): ...to new function that avoids xalloc_die.
6766 fchdir: another mingw fix
6767 * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
6768 * lib/fchdir.c (get_name): New helper method; skips canonicalize
6769 on mingw (where it has not yet been ported), and make it optional
6771 (_gl_register_fd): Use it.
6773 same-inode: make SAME_INODE tri-state, to port to mingw
6774 * NEWS: Mention this change.
6775 * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
6776 st_ino always being 0.
6777 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
6778 * lib/cycle-check.c (cycle_check): Likewise.
6779 * lib/same.c (same_name): Likewise.
6781 lstat: avoid mingw compilation error
6782 * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
6783 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
6785 * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
6787 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
6788 the checks for lstat.
6789 (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
6791 link: fix test failure on Solaris 9
6792 * lib/link.c (rpl_link): Don't assume link will catch bogus
6793 trailing slash on source.
6795 test-symlinkat: enhance test
6796 * tests/test-readlink.c (main): Move guts...
6797 * tests/test-readlink.h (test_readlink): ...into new file.
6798 * tests/test-symlink.c (main): Move guts...
6799 * tests/test-symlink.h (test_symlink): ...into new file.
6800 * tests/test-symlinkat.c (main): Use new files for further
6802 (do_symlink, do_readlink): New helper functions.
6803 * modules/symlink-tests (Files): Ship new file.
6804 (Depends-on): Add stdbool.
6805 * modules/readlink-tests (Files): Ship new file.
6806 (Depends-on): Add stdbool.
6807 * modules/symlinkat-tests (Files): Use new files.
6809 2009-09-23 Eric Blake <ebb9@byu.net>
6811 readlink: document portability issue with symlink length
6812 * doc/posix-functions/lstat.texi (lstat): Mention that some file
6813 systems have bogus st_size on symlinks, and mention the
6814 areadlink-with-size module.
6815 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
6816 * doc/posix-functions/readlink.texi (readlink): Mention the
6817 areadlink module, and ERANGE failure.
6818 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
6819 * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
6821 readlink: fix Solaris 9 bug with trailing slash
6822 * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
6823 * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
6824 * doc/posix-functions/readlink.texi (readlink): Document this.
6825 * modules/readlink-tests: New test.
6826 * tests/test-readlink.c: Likewise.
6828 readlink: fix cygwin 1.5.x bug with return type
6829 * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
6830 * lib/unistd.in.h (readlink): Use ssize_t.
6831 * lib/readlink.c (readlink): Likewise.
6832 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6833 * modules/unistd (Makefile.am): Substitute it.
6834 * lib/unistd.in.h (readlink): Declare replacement.
6835 * doc/posix-functions/readlink.texi (readlink): Document this.
6837 symlink: use throughout gnulib
6838 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
6839 * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
6840 symlink is not used.
6841 * modules/symlinkat (Depends-on): Add symlink.
6842 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
6843 * modules/canonicalize-tests (Depends-on): Likewise.
6844 * modules/lstat-tests (Depends-on): Likewise.
6845 * modules/openat-tests (Depends-on): Likewise.
6846 * modules/remove-tests (Depends-on): Likewise.
6847 * modules/rmdir-tests (Depends-on): Likewise.
6848 * modules/unlink-tests (Depends-on): Likewise.
6849 * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
6850 * tests/test-canonicalize.c (symlink): Likewise.
6851 * tests/test-fstatat.c (symlink): Likewise.
6852 * tests/test-lstat.c (symlink): Likewise.
6853 * tests/test-remove.c (symlink): Likewise.
6854 * tests/test-rmdir.c (symlink): Likewise.
6855 * tests/test-unlink.c (symlink): Likewise.
6856 * tests/test-unlinkat.c (symlink): Likewise.
6858 symlink: new module, for Solaris 9 bug
6859 * modules/symlink: New file.
6860 * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
6861 * lib/symlink.c: Likewise.
6862 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
6863 * modules/unistd (Makefile.am): Substitute them.
6864 * lib/unistd.in.h (symlink): Declare replacement.
6865 * MODULES.html.sh (File system functions): Mention it.
6866 * doc/posix-functions/symlink.texi (symlink): Likewise.
6867 * modules/symlink-tests: New test.
6868 * tests/test-symlink.c: Likewise.
6870 2009-09-23 Bruno Haible <bruno@clisp.org>
6872 * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
6874 Test case: gnulib-tool --import --with-tests atexit inttypes.
6875 Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
6877 2009-09-23 Bruno Haible <bruno@clisp.org>
6879 * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
6880 subcommand, not in a subshell.
6882 2009-09-22 Eric Blake <ebb9@byu.net>
6884 unistd: sort replacement declarations
6885 * lib/unistd.in.h: Sort declarations.
6887 open, openat: minor optimization
6888 * lib/open.c (open): If open succeeded, len is non-zero.
6889 * lib/openat.c (rpl_openat): Likewise.
6891 link-follow: ensure correct result
6892 * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
6893 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
6894 distinguish between possible failures.
6896 2009-09-21 Eric Blake <ebb9@byu.net>
6898 fts: avoid compiler warning
6899 * lib/fts.c (dirent_inode_sort_may_be_useful)
6900 (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
6902 2009-09-19 Bruno Haible <bruno@clisp.org>
6904 * lib/progreloc.c (canonicalize_file_name): New declaration.
6906 2009-09-19 Eric Blake <ebb9@byu.net>
6909 * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
6911 openat: fix openat bugs on Solaris 9
6912 * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
6913 * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
6914 * modules/openat (Depends-on): Add open.
6915 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
6916 * modules/fcntl-h (Makefile.am): Substitute it.
6917 * lib/fcntl.in.h (openat): Declare replacement.
6918 * doc/posix-functions/openat.texi (openat): Document this.
6920 openat: move fstatat and unlinkat into correct files
6921 * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
6923 * lib/openat.c (fstatat, unlinkat): Move...
6924 * lib/fstatat.c (fstatat): ...into correct files.
6925 * lib/unlinkat.c (unlinkat): Likewise.
6927 openat: fix unlinkat bugs on Solaris 9
6928 * lib/unlinkat.c (unlinkat): New file.
6929 * modules/openat (Depends-on): Add unlink.
6930 (Files): Distribute it.
6931 * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
6932 trailing slash behavior is broken.
6933 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6934 * modules/unistd (Makefile.am): Substitute it.
6935 * lib/unistd.in.h (unlinkat): Declare replacement.
6936 * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
6938 openat: fix fstatat bugs on Solaris 9
6939 * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
6941 * doc/posix-functions/fstatat.texi (fstatat): Document this.
6943 test-unlinkat: enhance test, to expose Solaris 9 bug
6944 * tests/test-unlink.c (main): Factor guts...
6945 * tests/test-unlink.h (test_rmdir_func): ...into new file.
6946 * tests/test-rmdir.h (test_rmdir_func): Add parameter.
6947 * tests/test-rmdir.c (main): Adjust caller.
6948 * tests/test-unlinkat.c (main): Likewise. Add unlink tests.
6949 (unlinker): New helper function.
6950 (rmdirat): Enhance check.
6951 * modules/rmdir-tests (Depends-on): Add stdbool.
6952 * modules/unlink-tests (Depends-on): Likewise.
6953 (Files): Add test-unlink.h.
6954 * modules/openat-tests (Files): Likewise.
6955 (Depends-on): Add unlinkdir.
6957 test-fstatat: new test, to expose Solaris 9 bugs
6958 * tests/test-stat.c (main): Factor guts...
6959 * tests/test-stat.h (test_stat_func): ...into new file.
6960 * tests/test-lstat.c (main): Factor guts...
6961 * tests/test-lstat.h (test_lstat_func): ...into new file.
6962 * tests/test-fstatat.c: New file.
6963 * modules/stat-tests (Files): Add test-stat.h.
6964 * modules/lstat-tests (Files): Add test-lstat.h.
6965 (Depends-on): Add stdbool.
6966 * modules/openat-tests (Depends-on): Add pathmax.
6967 (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
6968 (Makefile.am): Run new test.
6970 remove: new module, for mingw and Solaris 9 bugs
6971 * modules/remove: New file.
6972 * lib/remove.c: Likewise.
6973 * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
6974 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
6975 * modules/stdio (Makefile.am): Use them.
6976 * lib/stdio.in.h (remove): Declare replacement.
6977 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6978 * doc/posix-functions/remove.texi (remove): Likewise.
6979 * modules/remove-tests: New test.
6980 * tests/test-remove.c: Likewise.
6982 unlink: new module, for Solaris 9 bug
6983 * modules/unlink: New file.
6984 * lib/unlink.c: Likewise.
6985 * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6986 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
6987 * modules/unistd (Makefile.am): Use them.
6988 * lib/unistd.in.h (stat): Declare replacement.
6989 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6990 * doc/posix-functions/unlink.texi (unlink): Likewise.
6991 * modules/unlink-tests: New test.
6992 * tests/test-unlink.c: Likewise.
6994 lstat: fix Solaris 9 bug
6995 * lib/lstat.c (lstat): Also check for trailing slash on
6996 non-symlink, non-directories. Use stat module to simplify logic.
6997 * doc/posix-functions/lstat.texi (lstat): Document it.
6998 * modules/lstat-tests (Depends-on): Add errno, same-inode.
6999 (configure.ac): Check for symlink.
7000 * tests/test-lstat.c (main): Add more tests.
7002 stat: add as dependency to other modules
7003 * modules/chown (Depends-on): Add stat.
7004 * modules/euidaccess (Depends-on): Likewise.
7005 * modules/fchdir (Depends-on): Likewise.
7006 * modules/isdir (Depends-on): Likewise.
7007 * modules/link (Depends-on): Likewise.
7008 * modules/lstat (Depends-on): Likewise.
7009 * modules/mkdir-p (Depends-on): Likewise.
7010 * modules/modechange (Depends-on): Likewise.
7011 * modules/open (Depends-on): Likewise.
7012 * modules/readlink (Depends-on): Likewise.
7013 * modules/same (Depends-on): Likewise.
7015 stat: fix Solaris 9 bug
7016 * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
7018 * lib/stat.c (rpl_stat): Work around it.
7019 * doc/posix-functions/stat.texi (stat): Update documentation.
7021 stat: new module, for mingw bug
7022 * modules/stat: New file.
7023 * lib/stat.c: Likewise.
7024 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7025 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7026 * modules/sys_stat (Makefile.am): Use them.
7027 * lib/sys_stat.in.h (stat): Declare replacement.
7028 * lib/openat.c (fstatat): Deal with lstat and stat being function
7030 * modules/openat (Depends-on): Add inline.
7031 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7032 * doc/posix-functions/stat.texi (stat): Likewise.
7033 * modules/stat-tests: New test.
7034 * tests/test-stat.c: Likewise.
7036 2009-09-19 Jim Meyering <meyering@redhat.com>
7038 syntax-check: detect unnecessary inclusion of canonicalize.h
7039 * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
7041 2009-09-19 Eric Blake <ebb9@byu.net>
7043 canonicalize-lgpl: adjust clients to use correct header
7044 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
7045 (gl_CANONICALIZE_LGPL): Use correct shell quoting.
7046 * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
7047 * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
7048 * lib/progreloc.c (includes): Likewise.
7050 2009-09-19 Jim Meyering <meyering@redhat.com>
7052 test-posixtm.c: correct a comment
7053 * tests/test-posixtm.c: Correct first-line comment.
7054 Spotted by Eric Blake.
7056 2009-09-16 Jim Meyering <meyering@redhat.com>
7058 posixtm-tests: make T const-correct; add a test case
7059 * tests/test-posixtm.c (T): Declare const.
7060 Add a test for -(2^31+1).
7061 Remove useless can-succeed-only-in-2002 test.
7063 posixtm-tests: adjust the sole failing test
7064 * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
7065 expected output matches what mktime now produces. Cross-checked via
7066 erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
7068 posixtm: move #ifdef'd tests into a new module
7069 * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to...
7070 * tests/test-posixtm.c: ... this new file.
7071 * modules/posixtm-tests: New module.
7073 2009-09-19 Eric Blake <ebb9@byu.net>
7075 openat: simplify use of at-func.c
7076 * lib/at-func.c (includes): Include prerequisites here, to
7077 simplify requirements on client files.
7078 * lib/openat-priv.h: Add double-inclusion guard.
7079 * lib/faccessat.c (includes): Simplify.
7080 * lib/fchmodat.c (includes): Likewise.
7081 * lib/fchownat.c (includes): Likewise.
7082 * lib/mkdirat.c (includes): Likewise.
7083 * lib/mkfifoat.c (includes): Likewise.
7084 * lib/symlinkat.c (includes): Likewise.
7086 openat: allow return of fd 0
7087 * modules/chdir-long (Depends-on): Relax openat-safer to openat.
7088 * modules/save-cwd (Depends-on): Replace fcntl-safer with
7090 * lib/chdir-long.c (includes): Replace "fcntl--.h" with
7091 <fcntl.h>; this module does not leak fds.
7092 * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
7093 must be allowed to return 0, leaving openat_safer to add the
7095 (openat_permissive): Avoid writing to just-opened fd 2 if
7096 restoring the current directory fails.
7097 * lib/openat-die.c (openat_restore_fail): Add comment.
7098 * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
7099 (save_cwd): Guarantee safe fd, but without use of open_safer.
7100 * tests/test-openat.c: New test.
7101 * modules/openat-tests (Files, Makefile.am): Distribute and build
7104 relocatable-prog-wrapper: fix build
7105 * modules/relocatable-prog-wrapper (Files): Update name of
7106 canonicalize m4 file, broken on 2009-09-17.
7107 Reported by emad hajjar <aleppos@hotmail.com>.
7109 2009-09-19 Bruno Haible <bruno@clisp.org>
7111 * lib/safe-alloc.h: Use the standard header with GPL copyright.
7112 * lib/safe-alloc.c: Likewise.
7113 Reported by Ian Beckwith <ianb@erislabs.net>.
7115 2009-09-18 Bruno Haible <bruno@clisp.org>
7117 * gnulib-tool: Add advice to "cannot find configure.ac" error message.
7118 Reported by <erobles@sensacd.com.mx>.
7120 2009-09-17 Eric Blake <ebb9@byu.net>
7122 canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
7123 * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
7124 slashes when checking if last component is missing.
7125 * tests/test-canonicalize.c (main): Test this.
7127 canonicalize, canonicalize-lgpl: honor // if distinct from /
7128 * modules/canonicalize (Files): Add double-slash-root.m4.
7129 * modules/canonicalize-lgpl (Files): Likewise.
7130 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
7131 (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
7132 * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
7133 fallback definition.
7134 (canonicalize_filename_mode): Use it to protect //.
7135 * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
7136 (__realpath): Likewise.
7137 * tests/test-canonicalize.c (main): Test this.
7138 * tests/test-canonicalize-lgpl.c (main): Likewise.
7139 * modules/canonicalize-tests (Depends-on): Add same-inode.
7140 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
7142 canonicalize-lgpl: fix glibc bug with trailing slash
7143 * m4/canonicalize-lgpl.m4: Move contents...
7144 * m4/canonicalize.m4: ...here.
7145 (gl_CANONICALIZE_LGPL): Factor realpath check...
7146 (gl_FUNC_REALPATH_WORKS): ...into new macro. Enhance to catch
7147 glibc 2.3.5 bug, fixed 2005-04-27.
7148 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
7149 (gl_PREREQ_CANONICALIZE_LGPL): Inline...
7150 (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
7151 * modules/canonicalize-lgpl (Files): Manage file rename.
7152 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
7153 * modules/stdlib (Makefile.am): Substitute witness.
7154 * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
7156 * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
7157 replacement is required.
7158 * lib/canonicalize.c (canonicalize_file_name): Likewise.
7159 * doc/glibc-functions/canonicalize_file_name.texi
7160 (canonicalize_file_name): Document this.
7161 * doc/posix-functions/realpath.texi (realpath): Likewise.
7163 canonicalize-lgpl: reject non-directory with trailing slash
7164 * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
7165 * tests/test-canonicalize-lgpl.c (main): Enhance test. This
7166 catches failures in glibc 2.3.5.
7167 * tests/test-canonicalize.c (main): Likewise.
7169 canonicalize-lgpl: use native realpath if it works
7170 * lib/canonicalize-lgpl.c (realpath): Guard with
7171 FUNC_REALPATH_WORKS.
7172 * lib/stdlib.in.h (realpath): Make declaration optional based on
7174 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
7175 native realpath works.
7176 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
7177 * modules/stdlib (Makefile.am): Substitute witness.
7179 canonicalize, canonicalize-lgpl: use <stdlib.h>
7180 * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
7181 (Include): Mention <stdlib.h>.
7182 (configure.ac): Mention functions we provide.
7183 * modules/canonicalize (configure.ac): Likewise.
7184 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
7185 realpath if canonicalize_file_name is missing.
7186 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
7187 * modules/stdlib (Makefile.am): Substitute witnesses.
7188 * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
7189 * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
7190 * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
7191 * NEWS: Document this.
7192 * doc/glibc-functions/canonicalize_file_name.texi
7193 (canonicalize_file_name): Likewise.
7194 * doc/posix-functions/realpath.texi (realpath): Likewise.
7195 * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
7197 test-canonicalize: consolidate into single C program
7198 * tests/test-canonicalize.sh: Delete; move setup into...
7199 * tests/test-canonicalize.c (main): ...the program, making it
7200 easier to run in debugger. Add some tests.
7201 * modules/canonicalize-tests (Files): Remove unused file.
7202 (Depends-on): Add progname.
7203 (configure.ac, Makefile.am): Simplify.
7205 test-canonicalize-lgpl: consolidate into single C program
7206 * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
7207 * tests/test-canonicalize-lgpl.c (main): ...the program, making it
7208 easier to run in debugger. Add some tests.
7209 * modules/canonicalize-lgpl-tests (Files): Remove unused file.
7210 (configure.ac, Makefile.am): Simplify.
7212 canonicalize: avoid resolvepath
7213 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
7215 * lib/canonicalize.c (includes): Simplify.
7216 (canonicalize_file_name): Drop resolvepath implementation.
7217 * modules/canonicalize (Depends-on): Drop filenamecat.
7219 canonicalize: don't lose errno
7220 * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
7223 canonicalize: simplify errno handling
7224 * lib/canonicalize.c (__set_errno): Delete macro, and use direct
7227 canonicalize, canonicalize-lgpl: update module dependencies
7228 * modules/canonicalize (Depends-on): Add extensions, lstat,
7230 (Files): Drop pathmax.h.
7231 (configure.ac): Adjust macro name.
7232 * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
7233 lstat, stdlib, sys_stat.
7234 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
7235 (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
7237 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
7238 (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
7239 (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
7240 * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
7241 declaration, if available.
7242 * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
7243 we can rely on the readlink module.
7244 (MAXSYMLINKS): Also consult SYMLOOP_MAX.
7245 (includes): Use <unistd.h> unconditionally.
7247 2009-09-17 Eric Blake <ebb9@byu.net>
7249 maint: make Include sections of modules consistent
7250 * modules/alloca: Use only header name; no need to list #include.
7251 * modules/alloca-opt: Likewise.
7252 * modules/arpa_inet: Likewise.
7253 * modules/canon-host: Likewise.
7254 * modules/configmake: Likewise.
7255 * modules/dirent: Likewise.
7256 * modules/eealloc: Likewise.
7257 * modules/environ: Likewise.
7258 * modules/fchdir: Likewise.
7259 * modules/fcntl: Likewise.
7260 * modules/fcntl-h: Likewise.
7261 * modules/gethrxtime: Likewise.
7262 * modules/gettime: Likewise.
7263 * modules/ignore-value: Likewise.
7264 * modules/inet_ntop: Likewise.
7265 * modules/inet_pton: Likewise.
7266 * modules/inttypes: Likewise.
7267 * modules/isnand-nolibm: Likewise.
7268 * modules/isnanf-nolibm: Likewise.
7269 * modules/mbchar: Likewise.
7270 * modules/mbfile: Likewise.
7271 * modules/mbiter: Likewise.
7272 * modules/mbuiter: Likewise.
7273 * modules/netdb: Likewise.
7274 * modules/netinet_in: Likewise.
7275 * modules/nproc: Likewise.
7276 * modules/pagealign_alloc: Likewise.
7277 * modules/poll: Likewise.
7278 * modules/printf-frexp: Likewise.
7279 * modules/pthread: Likewise.
7280 * modules/putenv: Likewise.
7281 * modules/random_r: Likewise.
7282 * modules/relocatable-prog: Likewise.
7283 * modules/search: Likewise.
7284 * modules/select: Likewise.
7285 * modules/selinux-h: Likewise.
7286 * modules/settime: Likewise.
7287 * modules/signal: Likewise.
7288 * modules/size_max: Likewise.
7289 * modules/socklen: Likewise.
7290 * modules/ssize_t: Likewise.
7291 * modules/stdarg: Likewise.
7292 * modules/stdbool: Likewise.
7293 * modules/stddef: Likewise.
7294 * modules/stdint: Likewise.
7295 * modules/stdio: Likewise.
7296 * modules/stdlib: Likewise.
7297 * modules/string: Likewise.
7298 * modules/strings: Likewise.
7299 * modules/sys_file: Likewise.
7300 * modules/sys_ioctl: Likewise.
7301 * modules/sys_select: Likewise.
7302 * modules/sys_socket: Likewise.
7303 * modules/sys_stat: Likewise.
7304 * modules/sys_time: Likewise.
7305 * modules/sys_times: Likewise.
7306 * modules/sys_utsname: Likewise.
7307 * modules/sys_wait: Likewise.
7308 * modules/sysexits: Likewise.
7309 * modules/time: Likewise.
7310 * modules/times: Likewise.
7311 * modules/tmpfile: Likewise.
7312 * modules/trim: Likewise.
7313 * modules/unistd: Likewise.
7314 * modules/wchar: Likewise.
7315 * modules/wctype: Likewise.
7317 2009-09-17 Bruno Haible <bruno@clisp.org>
7319 Make getdate.y compile on QNX and NetBSD 5 / i386.
7320 * m4/getdate.m4 (gl_GETDATE): Conditionally define
7321 TIME_T_FITS_IN_LONG_INT.
7322 * lib/getdate.y (long_time_t): New type.
7323 (relative_time): Change type of 'seconds' field to long_time_t.
7324 (get_date): Update types of local variables. Check against overflow
7325 during conversion from long_time_t to time_t.
7326 Reported by Matt Kraai <kraai@ftbfs.org>
7327 and Hasso Tepper <hasso@netbsd.org>.
7329 2009-09-17 Bruno Haible <bruno@clisp.org>
7331 * modules/COPYING: Update copyright years.
7332 * modules/README: Likeiwse.
7333 * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
7334 Reported by Ian Beckwith <ianb@erislabs.net>.
7336 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
7338 * users.txt: Update references for gnuit package.
7340 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
7342 * m4/getdelim.m4: Fix typo in copyright line.
7344 2009-09-17 Bruno Haible <bruno@clisp.org>
7346 * lib/atoll.c: Use the standard header with GPL copyright.
7347 * lib/argz.in.h: Likewise.
7348 * lib/glob.c: Likewise.
7349 * lib/glob-libc.h: Likewise.
7350 * lib/random_r.c: Likewise.
7351 * lib/siglist.h: Likewise.
7352 * lib/strsignal.c: Likewise.
7353 Reported by Ian Beckwith <ianb@erislabs.net>.
7355 2009-09-17 Eric Blake <ebb9@byu.net>
7357 rmdir: ensure correct dependency order
7358 * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
7360 2009-09-17 Bruno Haible <bruno@clisp.org>
7362 Disable assertion that fails on NetBSD 5 / i386.
7363 * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
7364 Reported by Sam Steingold <sds@gnu.org>
7365 and Hasso Tepper <hasso@netbsd.org>.
7367 2009-09-16 Eric Blake <ebb9@byu.net>
7369 unlinkdir: port to mingw
7370 * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
7371 on which no one can unlink a directory.
7373 stdlib: sort witness names
7374 * modules/stdlib (Makefile.am): Sort replacements.
7375 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
7376 * lib/stdlib.in.h: Likewise.
7378 parse-duration-tests: avoid link failure
7379 * modules/parse-duration-tests (test_parse_duration_LDADD): Add
7381 Reported by Tom G. Christensen.
7383 openat-tests: ensure unlinkat behaves like rmdir
7384 * tests/test-rmdir.c (main): Factor guts...
7385 * tests/test-rmdir.h (test_rmdir_func): ...into new file.
7386 * modules/rmdir-tests (Files): Ship new file.
7387 * modules/openat-tests: New test.
7388 * tests/test-unlinkat.c: Likewise.
7390 rmdir-errno: mark obsolete, it is unsafe for cross-compilation
7391 * modules/rmdir-errno (Status, Notice): Now obsolete.
7393 rmdir: work around cygwin 1.5.x and mingw bugs
7394 * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
7395 * lib/rmdir.c (rmdir): Work around it.
7396 * modules/rmdir (Status, Notice): No longer obsolete.
7397 (Files): Add dos.m4.
7398 (Depends-on): Add unistd.
7399 (configure.ac): Set witnesses.
7400 (License): Relax to LGPLv2+.
7401 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
7402 * modules/unistd (Makefile.am): Substitute witnesses.
7403 * lib/unistd.in.h (rmdir): Declare replacement.
7404 * doc/posix-functions/rmdir.texi (rmdir): Document this.
7405 * modules/rmdir-tests: New tests.
7406 * tests/test-rmdir.c: Likewise.
7408 2009-09-15 Eric Blake <ebb9@byu.net>
7410 fchdir: improve use of replacement functions
7411 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
7412 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
7413 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
7415 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
7416 * modules/sys_stat (Makefile.am): Substitute correct witness.
7417 * modules/dirent (Makefile.am): Likewise.
7418 * modules/unistd (Makefile.am): Likewise.
7419 * lib/dirent.in.h (opendir, closedir): Use better witnesses.
7420 * lib/unistd.in.h (dup): Likewise.
7421 * lib/sys_stat.in.h (fstat): Likewise.
7423 maint: ignore gnulib-tool temp files
7424 * .gitignore: Ignore files created during gnulib-tool --test.
7426 2009-09-13 Jim Meyering <meyering@redhat.com>
7428 posixtm: don't reject a time that specify "60" as the number of seconds
7429 * lib/posixtm.c (posixtime): The code to reject invalid dates
7430 would also reject a time specified with the .60 suffix.
7431 But POSIX allows that, in order to accommodate leap seconds.
7433 (main): Adjust tests accordingly.
7434 * modules/posixtm (Depends-on): Add stpcpy.
7436 2009-09-11 Jim Meyering <meyering@redhat.com>
7438 announce-gen: include [$release_type] in emitted Subject:
7439 * build-aux/announce-gen (get_tool_versions): Include [$release_type],
7440 e.g., [stable] in the emitted Subject: line.
7442 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7444 Remove obsolete macros from several modules.
7445 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
7446 obsolete Autoconf macros with their modern counterparts.
7447 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
7448 * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
7449 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
7450 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
7451 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
7452 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7453 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
7454 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7455 * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7456 * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
7457 * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7458 * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7459 * m4/select.m4 (gl_FUNC_SELECT): Likewise.
7460 * m4/sockets.m4 (gl_SOCKETS): Likewise.
7461 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
7462 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
7463 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
7464 * m4/time_r.m4 (gl_TIME_R): Likewise.
7465 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7466 * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
7467 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
7469 Fix copyright header in build-aux scripts.
7470 * build-aux/git-version-gen: Fix copyright header to match GPLv3
7472 * build-aux/ncftpput-ftp: Likewise.
7473 * build-aux/update-copyright: Likewise.
7475 2009-09-09 Eric Blake <ebb9@byu.net>
7477 test-link: allow Linux choice of errno
7478 * tests/test-link.c (main): Relax test for alternate error.
7480 strndup: fix improper m4 caching
7481 * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
7482 inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
7483 (gl_PREREQ_STRNDUP): Delete.
7484 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
7485 * modules/string (Makefile.am): Substitute it.
7486 * lib/string.in.h (strndup): Modernize prototype.
7488 getcwd: port to mingw
7489 * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
7490 different from the POSIX assumptions made throughout the getcwd
7491 module; fortunately, the mingw getcwd does not need replacement.
7492 (gl_FUNC_GETCWD_NULL): Skip test on mingw.
7493 * modules/getcwd-tests: New test.
7494 * tests/test-getcwd.c: Likewise.
7496 link: fix platform bugs
7497 * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
7498 * lib/link.c (link): Work around them. Fix related mingw bug.
7499 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
7500 * modules/unistd (Makefile.am): Substitute it.
7501 * lib/unistd.in.h (link): Declare replacement.
7502 * doc/posix-functions/link.texi (link): Document this.
7503 * modules/link (Depends-on): Add strdup-posix, sys_stat.
7505 test-link: consolidate into single C program, test more cases
7506 * tests/test-link.sh: Delete.
7507 * tests/test-link.c: Test more error conditions. Exposes bugs on
7508 at least Cygwin and Solaris.
7509 * modules/link-tests (Files): Remove unused file.
7510 (Depends-on): Add errno, sys_stat.
7511 (Makefile.am): Simplify.
7513 2009-09-08 Bruno Haible <bruno@clisp.org>
7515 Work around towlower, towupper bug on mingw.
7516 * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
7517 * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
7518 * doc/posix-functions/towlower.texi: Mention the mingw bug.
7519 * doc/posix-functions/towupper.texi: Likewise.
7520 Reported by Eric Blake.
7522 2009-09-08 Jim Meyering <meyering@redhat.com>
7524 build: don't try to run autoheader if we don't use it
7525 * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
7526 is not used in configure.ac.
7528 2009-09-08 Eric Blake <ebb9@byu.net>
7530 euidaccess: fix compilation error
7531 * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
7533 rawmemchr: relax license
7534 * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
7536 Reported by Jim Meyering.
7538 mkfifoat: new module
7539 * modules/mkfifoat: New file.
7540 * lib/mkfifoat.c: Likewise.
7541 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
7542 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7543 * modules/sys_stat (Makefile.am): Use them.
7544 * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
7545 * MODULES.html.sh (File system functions): Mention module.
7546 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
7547 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
7548 * modules/mkfifoat-tests: New test.
7549 * tests/test-mkfifoat.c: Likewise.
7551 strchrnul: relax license
7552 * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
7554 Reported by Jim Meyering.
7556 2009-09-08 Eric Blake <ebb9@byu.net>
7558 fstatat: fix compilation on Solaris
7559 * lib/fstatat.c (includes): Add fcntl.h.
7560 Reported by Pádraig Brady.
7562 2009-09-07 Eric Blake <ebb9@byu.net>
7564 rename: modernize replacement
7565 * modules/rename (Depends-on): Add stdio.
7566 (configure.ac): Declare witness.
7567 * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
7568 stdio take care of replacement.
7569 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
7570 * modules/stdio (Makefile.am): Substitute them.
7571 * lib/stdio.in.h (rename): Declare replacement.
7572 * lib/rename.c (includes): Allow cross-compilation to non-windows
7574 * doc/posix-functions/rename.texi (rename): Improve
7577 stdio: sort witness names
7578 * modules/stdio (Makefile.am): Sort replacements.
7579 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
7580 * lib/stdio.in.h: Likewise.
7582 getcwd: minor cleanups
7583 * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
7584 (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
7586 openat: provide more convenience names
7587 * modules/faccessat (configure.ac): Add C witness.
7588 * lib/unistd.in.h (readlinkat): Fix typo.
7589 * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
7590 convenience wrappers.
7591 * top/maint.mk (sc_prohibit_openat_without_use): Allow these
7592 wrappers in syntax checks.
7594 2009-09-06 Eric Blake <ebb9@byu.net>
7596 doc: fix comments in recent patches
7597 * lib/faccessat.c: Mention correct function.
7598 * lib/fchmodat.c: Likewise.
7599 * lib/fchownat.c: Likewise.
7600 * lib/symlinkat.c: Likewise.
7601 * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
7604 faccessat, symlinkat: continue cleanup of previous patch
7605 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
7606 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
7607 * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
7608 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
7609 * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
7610 * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
7613 2009-09-06 Bruno Haible <bruno@clisp.org>
7615 * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
7616 (fstatat): Declare if GNULIB_FSTATAT is set.
7617 (mkdirat): Declare if GNULIB_MKDIRAT is set.
7618 * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
7619 (unlinkat): Declare if GNULIB_UNLINKAT is set.
7620 * modules/fcntl-h (Files): Remove m4/openat.m4.
7621 * modules/sys_stat (Files): Remove m4/openat.m4.
7622 (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
7623 GNULIB_MKDIRAT instead of GNULIB_OPENAT.
7624 * modules/unistd (Files): Remove m4/openat.m4.
7625 (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
7627 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
7628 HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
7629 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
7630 GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
7631 HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
7633 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
7634 GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
7635 Don't require gl_OPENAT_DEFAULTS.
7636 * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
7637 gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
7638 GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
7639 (gl_OPENAT_DEFAULTS): Remove macro.
7641 2009-09-06 Bruno Haible <bruno@clisp.org>
7643 * modules/openat (configure.ac): Remove unneeded witness.
7645 2009-09-06 Bruno Haible <bruno@clisp.org>
7647 Set errno to ENOSYS when a function is entirely unsupported.
7648 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
7650 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
7651 * modules/chown (Depends-on): Remove errno.
7653 2009-09-06 Bruno Haible <bruno@clisp.org>
7655 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
7657 2009-09-06 Bruno Haible <bruno@clisp.org>
7659 * lib/sys_stat.in.h: Fix preprocessor command indentation.
7661 2009-09-06 Ben Pfaff <blp@gnu.org>
7662 Bruno Haible <bruno@clisp.org>
7664 Work around a glibc bug in strtok_r.
7665 * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
7666 Undefine if UNDEFINE_STRTOK_R is set.
7667 * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
7668 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7669 REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
7670 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
7671 * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
7673 * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
7675 2009-09-06 Sergey Poznyakoff <gray@gnu.org.ua>
7678 * lib/exclude.c: Include wctype.h
7680 2009-09-06 Akim Demaille <demaille@gostai.com>
7682 bootstrap: improve error message
7683 * build-aux/bootstrap (find_tool): Upon failure, report the list
7685 Honor the initial value of the envvar.
7687 2009-09-05 Eric Blake <ebb9@byu.net>
7689 symlinkat: new module
7690 * modules/symlinkat: New file.
7691 * lib/symlinkat.c: Likewise.
7692 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
7693 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
7694 * modules/unistd (Makefile.am): Use them.
7695 * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
7696 (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
7697 * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
7698 * MODULES.html.sh (File system functions): Mention module.
7699 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
7700 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7701 * modules/symlinkat-tests: New test.
7702 * tests/test-symlinkat.c: Likewise.
7704 test-openat-safer: add more checks
7705 * tests/test-openat-safer.c (main): Check more code paths.
7707 2009-09-05 Jim Meyering <meyering@redhat.com>
7709 syntax-check: detect unnecessary inclusion of openat.h
7710 * top/maint.mk (sc_prohibit_openat_without_use): New rule.
7712 2009-09-05 Bruno Haible <bruno@clisp.org>
7714 Support towlower, towupper.
7715 * doc/posix-functions/towlower.texi: Mention module wctype.
7716 * doc/posix-functions/towupper.texi: Likewise.
7717 * lib/wctype.in.h (towlower, towupper): New functions.
7718 * tests/test-wctype.c: Include stdio.h, stdlib.h.
7719 (ASSERT): New macro.
7721 (main): Test also towlower, towupper. Test WEOF argument.
7722 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
7724 2009-09-05 Bruno Haible <bruno@clisp.org>
7726 Fix conversion behaviour when the input is invalid.
7727 * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
7728 mark occurring in first pass of indirect conversion.
7729 * tests/test-striconveh.c (main): Test conversion of invalid ASCII
7731 Found by clang's static analyzer.
7733 2009-09-05 Bruno Haible <bruno@clisp.org>
7735 * tests/test-striconveh.c (main): Test indirect conversion on platforms
7736 where direct conversion is possible.
7738 2009-09-04 Eric Blake <ebb9@byu.net>
7740 openat: fail with ENOENT on empty name
7741 * lib/openat-proc.c (openat_proc_name): Special-case the empty
7744 link-follow: fix logic bug in prior patch
7745 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
7746 reversed sense of yes and no in prior patch. Avoid confusing
7747 compilation failure with desired semantics.
7749 link-follow: accomodate mingw and cross-compilation
7750 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
7751 (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this. Change
7752 cross-compilation results to -1, to make linkat easier to
7753 implement when cross-compiling. Trivially support mingw.
7754 * modules/link-follow (configure.ac): Call new name.
7755 * NEWS: Mention this.
7757 2009-09-03 Eric Blake <ebb9@byu.net>
7759 faccessat: compile replacement
7760 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
7763 fts: fix compilation error
7764 * lib/fts.c (includes): Re-add "openat.h", for
7765 openat_needs_fchdir.
7767 faccessat: new module
7768 * modules/faccessat: New file.
7769 * lib/faccessat.c: Likewise.
7770 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
7771 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7772 * modules/unistd (Makefile.am): Use it.
7773 * lib/unistd.in.h (faccessat): Declare it.
7774 (F_OK, X_OK, W_OK, R_OK): Provide definitions.
7775 * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
7776 * MODULES.html.sh (File system functions): Mention it.
7777 * doc/posix-functions/faccessat.texi (faccessat): Likewise.
7778 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
7780 euidaccess: prefer POSIX over non-standard implementation
7781 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
7782 * lib/euidaccess.c (euidaccess): Use it if available.
7784 openat: make template easier to use
7785 * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
7786 AT_FUNC_F2 to be undefined.
7787 (VALIDATE_FLAG): New macro; use it to reject bad flags.
7788 (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
7789 * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
7790 * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
7791 * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
7793 * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
7794 * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
7795 [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
7798 openat: declare in POSIX headers
7799 * NEWS: Mention this.
7800 * modules/openat (configure.ac): Declare witnesses.
7801 (Depends-on): Add fcntl-h, sys_stat, unistd.
7802 (Include): Mention correct headers.
7803 * modules/fcntl-h (Depends-on): Add link-warning.
7804 (Files): Add openat.m4.
7805 (Makefile.am): Substitute witnesses.
7806 * modules/sys_stat (Files, Makefile.am): Likewise.
7807 * modules/unistd (Files, Makefile.am): Likewise.
7808 * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
7809 (gl_OPENAT_DEFAULTS): New macro.
7810 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
7811 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
7812 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
7813 (SYS_STAT_H): Remove unused variable.
7814 * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
7815 * lib/fcntl--.h (includes): Remove unneeded header.
7816 * lib/openat-safer.c (includes): Likewise.
7817 * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
7818 (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
7819 appropriate headers.
7820 (__OPENAT_PREFIX): Delete.
7821 * lib/fcntl.in.h (openat): Provide declaration.
7822 (AT_FDCWD): Fix Solaris bug.
7823 (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
7824 * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
7825 * lib/fchmodat.c (includes): Adjust to find declaration.
7826 * lib/fchownat.c (includes): Likewise.
7827 * lib/mkdirat.c (includes): Likewise.
7828 * lib/fstatat.c (includes): Likewise. Ensure original fstatat is
7831 2009-09-02 Eric Blake <ebb9@byu.net>
7833 errno: use consistently
7834 * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
7835 * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
7836 * lib/canonicalize.c (ELOOP): Likewise.
7837 * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
7838 * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
7839 * lib/lchown.c (EOPNOTSUPP): Likewise.
7840 * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
7841 * lib/savewd.c (ESTALE): Likewise.
7842 * lib/settime.c (ENOSYS): Likewise.
7843 * lib/utimens.c (ENOSYS): Likewise.
7844 * lib/xgethostname.c (ENAMETOOLONG): Likewise.
7845 * lib/chdir-safer.c (ELOOP): Likewise.
7846 (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
7847 * modules/c-stack (Depends-on): Add errno.
7848 * modules/canonicalize (Depends-on): Likewise.
7849 * modules/chdir-safer (Depends-on): Likewise.
7850 * modules/fdopendir (Depends-on): Likewise.
7851 * modules/inet_ntop (Depends-on): Likewise.
7852 * modules/inet_pton (Depends-on): Likewise.
7853 * modules/lchown (Depends-on): Likewise.
7854 * modules/openat (Depends-on): Likewise.
7855 * modules/savewd (Depends-on): Likewise.
7856 * modules/settime (Depends-on): Likewise.
7857 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
7859 fts: avoid leaking fds
7860 * modules/fts (Depends-on): Add cloexec.
7861 * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
7864 fts: make directory fds more robust
7865 * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
7866 (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
7868 backupfile, chdir-long, fts, savedir: make safer
7869 * lib/backupfile.c (includes): Use "dirent--.h", since
7870 numbered_backup can write to stderr during readdir.
7871 * lib/savedir.c (includes): Likewise.
7872 * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
7873 emulation can write to stderr on failure.
7874 * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
7875 * lib/getcwd.c: Document why opendir_safer is unused.
7876 * lib/glob.c: Likewise.
7877 * lib/scandir.c: Likewise.
7878 * lib/openat-proc.c: Likewise, for open_safer.
7879 * modules/backupfile (Depends-on): Add dirent-safer.
7880 * modules/savedir (Depends-on): Likewise.
7881 * modules/fts (Depends-on): Add dirent-safer and openat-safer.
7882 * modules/chdir-long (Depends-on): Add openat-safer.
7884 openat-safer: new module
7885 * modules/openat-safer: New file.
7886 * lib/openat-safer.c: Likewise.
7887 * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
7888 * lib/fcntl-safer.h (openat_safer): Declare.
7889 * lib/fcntl--.h (openat): Override.
7890 * MODULES.html.sh (File descriptor based I/O): Mention it.
7891 * lib/openat.h: Add double-inclusion guards.
7892 * lib/openat.c (includes): Only include "fcntl-safer.h", not
7893 "fcntl--.h", so we can implement openat.
7894 * modules/openat-safer-tests: New test.
7895 * tests/test-openat-safer.c: New file.
7897 dirent-safer: new module
7898 * modules/dirent-safer: New file.
7899 * lib/dirent--.h: Likewise.
7900 * lib/dirent-safer.h: Likewise.
7901 * lib/opendir-safer.c: Likewise.
7902 * m4/dirent-safer.m4: Likewise.
7903 * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
7904 * modules/dirent-safer-tests: New test.
7905 * tests/test-dirent-safer.c: New file.
7906 * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
7908 fdopendir: optimize on mingw
7909 * lib/unistd.in.h (_gl_directory_name): New prototype.
7910 * lib/fchdir.c (_gl_directory_name): Implement it.
7911 (fchdir): Use it to simplify implementation.
7912 * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
7913 fchdir, when available, to avoid calling [f]chdir().
7915 fdopendir: split into its own module
7916 * lib/openat.c (fdopendir): Move...
7917 * lib/fdopendir.c: ...into new file.
7918 * modules/fdopendir: New module.
7919 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
7920 * modules/openat (Depends-on): Add fdopendir.
7921 * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
7923 * modules/savedir (Depends-on): Only need fdopendir, not full
7925 * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
7926 * lib/openat.h (fdopendir): Drop prototype.
7927 * lib/dirent.in.h (fdopendir): Provide prototype.
7928 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
7929 * modules/dirent (Makefile.am): Substitute them.
7930 * MODULES.html.sh (File system functions): Mention it.
7931 * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
7932 * modules/fdopendir-tests: New file.
7933 * tests/test-fdopendir.c: Likewise.
7935 fchdir: use more consistent macro convention
7936 * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
7937 * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
7938 REPLACE_FCHDIR, rather than relying on config.h macros.
7939 * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
7940 inside a single make-time REPLACE_FCHDIR block, rather than using
7941 the config.h FCHDIR_REPLACEMENT.
7942 * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
7943 AC_SUBST'd, also AC_DEFINE it. Don't define FCHDIR_REPLACEMENT.
7944 Manage fstat replacement.
7945 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
7947 * modules/sys_stat (Files): Add m4/unistd_h.m4.
7948 (Makefile.am): Substitute REPLACE_FCHDIR.
7949 * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
7951 * lib/dup-safer.c (dup_safer): Likewise.
7952 * lib/dup2.c (rpl_dup2): Likewise.
7953 * lib/dup3.c (rpl_dup3): Likewise.
7954 * lib/open.c (rpl_open): Likewise.
7956 fchdir: simplify error handling, and support dup3
7957 * modules/fchdir (Depends-on): Use strdup-posix, not strdup. Add
7958 stdbool, malloc-posix, realloc-posix.
7959 * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
7960 (ensure_dirs_slot): Return false on allocation failure.
7962 (_gl_register_dup): New function.
7963 (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
7964 (_gl_register_fd): Close fd on allocation failure.
7965 * lib/fcntl.in.h (_gl_register_fd): Update signature.
7966 * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
7968 (rpl_dup2_fchdir): Delete prototype.
7969 * lib/open.c (open): Update caller.
7970 * lib/dup2.c (dup2): Track fchdir metadata.
7971 * lib/dup3.c (dup3): Likewise.
7972 * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
7973 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
7975 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7977 * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
7978 AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
7979 don't pass arguments to AC_OUTPUT.
7981 2009-09-02 Bruno Haible <bruno@clisp.org>
7983 * modules/mkdtemp (License): Relicense under LGPLv2+.
7984 Reported by Paolo Bonzini.
7986 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7988 Replace uses of obsolete autoconf macros in Jim's modules.
7989 The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
7990 AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
7991 can evoke a warning from autoconf when run with -Wobsolete
7992 enabled. They were declared obsolete for good reasons (see
7993 the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
7994 recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
7995 should not continue using the deprecated macros.
7996 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
7997 obsolete Autoconf macros with modern counterparts.
7998 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7999 * m4/dos.m4 (gl_AC_DOS): Likewise.
8000 * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
8001 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
8002 * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
8003 * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
8004 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
8005 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
8006 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
8007 * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
8008 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
8010 * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
8011 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
8012 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
8013 * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
8014 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
8015 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
8017 2009-09-01 Eric Blake <ebb9@byu.net>
8019 fchdir: fix off-by-one bug in previous patch
8020 * lib/fchdir.c (rpl_fstat): Use correct bounds.
8021 (_gl_unregister_fd): Delete useless if.
8023 2009-09-01 Daniel P. Berrange <berrange@redhat.com>
8025 maint.mk: sort the list of syntax-check rules
8026 * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
8027 easier to get a sense of progress when the rules are run sequentially
8028 and take a long time.
8030 2009-09-01 Simon Josefsson <simon@josefsson.org>
8032 * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
8033 * modules/netinet_in: Likewise.
8034 * modules/sys_file: Likewise.
8035 * modules/sys_ioctl: Likewise.
8036 * modules/sys_select: Likewise.
8037 * modules/sys_socket: Likewise.
8038 * modules/sys_stat: Likewise.
8039 * modules/sys_time: Likewise.
8040 * modules/sys_times: Likewise.
8041 * modules/sys_utsname: Likewise.
8042 * modules/sys_wait: Likewise.
8044 2009-09-01 Jim Meyering <meyering@redhat.com>
8046 fts: help ensure that return values are not ignored
8047 * lib/fts_.h (__GNUC_PREREQ): Define.
8048 (__attribute_warn_unused_result__): Define.
8049 (fts_children, fts_close, fts_open, fts_read): Declare with
8050 __attribute_warn_unused_result__.
8052 fts: fts_close now fails also when closing a dir file descriptor fails
8053 * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
8054 and propagate to caller, along with errno.
8056 announce-gen: correct formatting in --help output
8057 * build-aux/announce-gen (usage): Move the one-line description in
8058 --help output "up", to where it belongs, just after Usage:.
8060 2009-08-31 Eric Blake <ebb9@byu.net>
8062 fchdir: port to mingw
8063 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
8064 * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
8065 opened, then use a substitute.
8066 * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
8068 * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
8069 (_gl_register_fd): No need to check stat if open already filters
8071 (fchdir): Fix error condition to match POSIX.
8072 * modules/fchdir (Depends-on): Add sys_stat.
8073 * doc/posix-functions/open.texi (open): Document the limitation.
8074 * modules/fchdir-tests: New file.
8075 * tests/test-fchdir.c: Likewise.
8077 canonicalize: allow cross-testing from cygwin to mingw
8078 * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
8079 (Makefile.am): Pass it through TESTS_ENVIRONMENT.
8080 * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
8082 * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
8083 target does not support symlinks.
8084 * tests/test-canonicalize-lgpl.sh: Likewise.
8086 chown: avoid compilation warning on mingw
8087 * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
8088 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
8090 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
8091 * modules/chown (Depends-on): Add errno.
8093 2009-08-31 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
8095 * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
8098 2009-08-31 Jim Meyering <meyering@redhat.com>
8100 canonicalize: remove useless initialization
8101 * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
8102 initialization of local, "end".
8104 2009-08-30 Bruno Haible <bruno@clisp.org>
8106 Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
8107 * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
8110 2009-08-30 Bruno Haible <bruno@clisp.org>
8112 * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
8113 /usr/xpg4/bin/tr when it exists.
8114 * tests/test-pipe-filter-gi1.sh: Likewise.
8116 2009-08-30 Bruno Haible <bruno@clisp.org>
8118 Work around deficient /usr/bin/id program on Solaris.
8119 * tests/test-file-has-acl.sh (ID): New variable.
8120 * tests/test-set-mode-acl.sh (ID): Likewise.
8121 * tests/test-copy-acl.sh (ID): Likewise.
8122 * tests/test-copy-file.sh (ID): Likewise.
8124 2009-08-30 Bruno Haible <bruno@clisp.org>
8126 New module 'xstriconveh'.
8127 * lib/xstriconveh.h: New file.
8128 * lib/xstriconveh.c: New file.
8129 * modules/xstriconveh: New file.
8131 2009-08-30 Bruno Haible <bruno@clisp.org>
8133 Make it easier to use mem_cd_iconveh.
8134 * lib/striconveh.h (iconveh_t): New type.
8135 (iconveh_open, iconveh_close): New declarations.
8136 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
8137 with a single 'const iconveh_t *' argument.
8138 * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
8139 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
8140 with a single 'const iconveh_t *' argument.
8141 (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
8142 * tests/test-striconveh.c (main): Update.
8143 * NEWS: Mention the change.
8145 2009-08-30 Bruno Haible <bruno@clisp.org>
8147 * doc/posix-functions/iconv_open.texi: Mention indirect conversion
8150 2009-08-30 Bruno Haible <bruno@clisp.org>
8152 Work around iconv_open problem on Solaris.
8153 * lib/iconv_open-solaris.gperf: New file.
8154 * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
8155 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
8156 * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
8157 (Makefile.am): Add rule for iconv_open-solaris.h. Augment
8158 BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
8159 * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
8161 2009-08-29 Jim Meyering <meyering@redhat.com>
8163 maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
8164 * top/maint.mk (cvs-check): Remove target; it was just an alias
8165 to the better-named vc-diff-check.
8166 (maintainer-distcheck): Remove rule. It was used only from
8167 the (alpha/beta/major) target, and all of its commands but one
8168 were coreutils-specific.
8169 (vc-dist): Remove rule.
8170 (alpha beta major): Run "$(MAKE) distcheck" explicitly.
8171 Run vc-diff-check, not vc-dist.
8172 Run $(MAKE) dist with XZ_OPT=-9ev. Note spelling, with "-".
8174 2009-08-27 Bruno Haible <bruno@clisp.org>
8176 * tests/test-bitrotate.c (main): Remove test that uses a shift count
8179 2009-08-27 Bruno Haible <bruno@clisp.org>
8181 * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
8183 * doc/func.texi: Document the SunPRO C bug.
8185 2009-08-27 Bruno Haible <bruno@clisp.org>
8187 Fix link error on Solaris.
8188 * tests/test-parse-duration.c (xstrdup): Remove function.
8190 2009-08-26 Pádraig Brady <P@draigbrady.com>
8192 ignore-value: handle pointer types, too
8193 * lib/ignore-value.h (__attribute__): Remove definition.
8194 (ignore_value): Remove use of "__attribute__ ((unused))" in favor
8195 of a more concise and more-often effective "(void) i" statement.
8196 (ignore_ptr): New function to suppress warnings from functions that
8197 return pointers, and to make it explicit that one function doesn't
8200 2009-08-25 Bruno Haible <bruno@clisp.org>
8202 dup2: work around a Linux bug.
8203 * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
8204 * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
8205 * doc/posix-functions/dup2.texi: Mention the Linux bug.
8206 Reported by Simon Josefsson.
8208 2009-08-25 Jim Meyering <meyering@redhat.com>
8210 libguestfs uses gnulib
8211 * users.txt: Add libguestfs.
8213 2009-08-24 Eric Blake <ebb9@byu.net>
8215 dup2, pipe2: fix some recent test failures on cygwin 1.5.x
8216 * lib/pipe2.c (includes): Add binary-io.h.
8217 * lib/dup2.c (rpl_dup2): Correct buggy errno value.
8219 2009-08-24 Bruno Haible <bruno@clisp.org>
8221 Tolerate declared but missing accept4 syscall.
8222 * lib/accept4.c (accept4): Invoke original accept4 function first, if
8224 * lib/sys_socket.in.h (accept4): If the function is already present,
8226 * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
8227 * modules/accept4 (Makefile.am): Compile accept4.c always.
8228 Reported by Paolo Bonzini and Eric Blake.
8230 2009-08-23 Bruno Haible <bruno@clisp.org>
8232 New module 'accept4'.
8233 * lib/sys_socket.in.h (accept4): New declaration.
8234 * lib/accept4.c: New file.
8235 * m4/accept4.m4: New file.
8236 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
8237 GNULIB_ACCEPT4, HAVE_ACCEPT4.
8238 * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
8240 * modules/accept4: New file.
8241 * doc/glibc-functions/accept4.texi: Mention the new module.
8243 2009-08-24 Jim Meyering <meyering@redhat.com>
8245 progname: also set global program_invocation_name, when possible
8246 Before this change, a libtool-enabled program that calls glibc's
8247 error function would report the program name as
8248 "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
8249 * modules/progname (configure.ac): Check for a declaration of
8250 program_invocation_name.
8251 * lib/progname.c: Include <errno.h>.
8252 (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
8253 Set program_invocation_name.
8255 2009-08-23 Bruno Haible <bruno@clisp.org>
8257 * lib/dup3.c: Include <string.h>.
8259 2009-08-23 Bruno Haible <bruno@clisp.org>
8261 * lib/dup3.c (dup3): Test only once whether the system actually exists.
8262 * lib/pipe2.c (pipe2): Likewise.
8263 Suggested by Eric Blake.
8265 2009-08-23 Bruno Haible <bruno@clisp.org>
8267 Tolerate declared but missing dup3 syscall.
8268 * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
8269 * lib/unistd.in.h (dup3): If the function is already present,
8271 * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
8272 * modules/dup3 (Makefile.am): Compile dup3.c always.
8273 Reported by Paolo Bonzini.
8275 2009-08-23 Bruno Haible <bruno@clisp.org>
8277 Tolerate declared but missing pipe2 syscall.
8278 * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
8280 * lib/unistd.in.h (pipe2): If the function is already present,
8282 * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
8283 * modules/pipe2 (Makefile.am): Compile pipe2.c always.
8284 Reported by Paolo Bonzini.
8286 2009-08-23 Bruno Haible <bruno@clisp.org>
8288 * lib/pipe2.c (pipe2): Move #ifs inside function.
8290 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
8292 quotearg: document limitations of quote_these_too
8293 * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
8294 those limitations are created.
8295 * lib/quotearg.h (set_char_quoting): Document that digits and
8296 letters that are special after backslash are not permitted.
8297 (quotearg_char): Cross-reference set_char_quoting documentation.
8299 2009-08-23 Joel E. Denny <jdenny@clemson.edu>
8301 quotearg: implement custom_quoting_style
8302 * lib/quotearg.c: (struct quoting_options): Add left_quote and
8304 (set_custom_quoting): New public function.
8305 (quotearg_buffer_restyled): Add left_quote and right_quote
8306 arguments, handle them very much like locale quoting, and update
8308 (quotearg_n_custom): New public function.
8309 (quotearg_n_custom_mem): New public function.
8310 (quotearg_custom): New public function.
8311 (quotearg_custom_mem): New public function.
8312 * lib/quotearg.h: Prototype and document new public functions.
8313 (enum quoting_style): For escape_quoting_style and
8314 clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
8315 ignored even though they're otherwise like c_quoting_style.
8316 Add custom_quoting_style member and document with comparison to
8317 clocale_quoting_style.
8318 * tests/test-quotearg.c (custom_quotes): New array.
8319 (custom_results): New array.
8320 (main): Extend to test custom quoting.
8322 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
8324 quotearg: fix right quote escaping when it's in quote_these_too
8325 * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
8326 quote, be sure to prepend only one backslash.
8327 * tests/test-quotearg.c (use_quote_double_quotes): New function.
8330 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
8332 quotearg-tests: test escaping of embedded locale quotes
8333 * tests/test-quotearg.c (struct result_strings): Add member for
8335 (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
8336 (inputs): Add new input.
8337 (results_g): Add expected results.
8338 (flag_results): Likewise.
8339 (locale_results): Likewise.
8340 (compare_strings): Check those.
8342 2009-08-23 Bruno Haible <bruno@clisp.org>
8344 Tests for module 'dup3'.
8345 * modules/dup3-tests: New file.
8346 * tests/test-dup3.c: New file.
8349 * lib/unistd.in.h (dup3): New declaration.
8350 * lib/dup3.c: New file.
8351 * m4/dup3.m4: New file.
8352 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
8354 * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
8355 * modules/dup3: New file.
8356 * doc/glibc-functions/dup3.texi: Mention the new module.
8358 2009-08-23 Bruno Haible <bruno@clisp.org>
8360 Tweak the dup2 test.
8361 * tests/test-dup2.c (main): Create the test file empty. Verify that an
8362 out-of-range fd yields EBADF. Verify that after writing to /dev/null,
8363 the test file is still empty. Fix argument order of lseek.
8365 2009-08-23 Bruno Haible <bruno@clisp.org>
8367 Avoid test link errors when the modules getopt-gnu, gettext are used.
8368 * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
8369 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8371 2009-08-23 Bruno Haible <bruno@clisp.org>
8373 Fix getdtablesize() on mingw.
8374 * lib/getdtablesize.c (getdtablesize): Implement differently.
8375 * lib/unistd.in.h (getdtablesize): Improve comment.
8377 2009-08-23 Bruno Haible <bruno@clisp.org>
8379 New module 'mkostemp'.
8380 Based on Ulrich Drepper's 2007-08-10 change in glibc.
8381 * lib/stdlib.in.h (mksotemp): New declaration.
8382 * lib/mkostemp.c: New file, from glibc with modifications.
8383 * lib/tempname.h (GT_FILE): Remove outdated comment.
8384 (gen_tempname): Add flags argument.
8385 * lib/tempname.c (__GT_BIGFILE): Remove macro.
8386 (__GT_FILE): Map to 1.
8387 (small_open, large_open): Remove macros.
8388 (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
8389 * lib/mkstemp.c (mkstemp): Update.
8390 * lib/mkdtemp.c (mkdtemp): Likewise.
8391 * m4/mkostemp.m4: New file.
8392 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
8394 * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
8396 * modules/mkostemp: New file, based on modules/mkstemp.
8397 * doc/glibc-functions/mkostemp.texi: Mention the new module.
8398 * NEWS: Mention the change.
8400 2009-08-23 Bruno Haible <bruno@clisp.org>
8402 * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
8403 Reported by Eric Blake.
8405 2009-08-23 Bruno Haible <bruno@clisp.org>
8407 * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
8408 Reported by Eric Blake.
8410 2009-08-23 Bruno Haible <bruno@clisp.org>
8412 * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
8413 * modules/pipe2 (Depends-on): Likewise.
8415 2009-08-23 Eric Blake <ebb9@byu.net>
8417 fcntl-h: add O_TTY_INIT support
8418 * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
8419 * tests/test-fcntl-h.c (o): Test it.
8420 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
8422 fcntl-h: rename from fcntl, in preparation for fcntl(2)
8423 * modules/fcntl: Move <fcntl.h> header replacement...
8424 * modules/fcntl-h: ...to new name, so as not to collide with
8425 like-named function.
8426 * tests/test-fcntl.c: Rename...
8427 * tests/test-fcntl-h.c: ...to this. Test FD_CLOEXEC.
8428 * modules/fcntl-tests: Rename...
8429 * modules/fcntl-h-tests: ...to this. Update test file name.
8430 * modules/chdir-long (Depends-on): Update clients.
8431 * modules/chdir-safer (Depends-on): Likewise.
8432 * modules/fcntl-safer (Depends-on): Likewise.
8433 * modules/fts (Depends-on): Likewise.
8434 * modules/mkancesdirs (Depends-on): Likewise.
8435 * modules/mkdir-p (Depends-on): Likewise.
8436 * modules/open (Depends-on): Likewise.
8437 * modules/savewd (Depends-on): Likewise.
8438 * MODULES.html.sh (systems lacking POSIX:2008): Update name.
8439 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
8441 2009-08-22 Bruno Haible <bruno@clisp.org>
8443 * modules/binary-io (License): Relicense under LGPL.
8444 * modules/pipe2 (License): Likewise.
8446 2009-08-22 Bruno Haible <bruno@clisp.org>
8448 * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
8450 * lib/pipe-filter-gi.c (filter_init): Likewise.
8451 Reported by Eric Blake.
8453 2009-08-22 Bruno Haible <bruno@clisp.org>
8455 * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
8456 * modules/pipe (Depends-on): Add pipe2.
8458 2009-08-22 Bruno Haible <bruno@clisp.org>
8460 Tests for module 'pipe2'.
8461 * modules/pipe2-tests: New file.
8462 * tests/test-pipe2.c: New file.
8465 * lib/unistd.in.h (pipe2): New declaration.
8466 * lib/pipe2.c: New file.
8467 * m4/pipe2.m4: New file.
8468 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
8470 * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
8471 * modules/pipe2: New file.
8472 * doc/glibc-functions/pipe2.texi: Mention the new module.
8474 2009-08-22 Bruno Haible <bruno@clisp.org>
8476 Reference some new glibc functions.
8477 * doc/glibc-functions/accept4.texi: New file.
8478 * doc/glibc-functions/dup3.texi: New file.
8479 * doc/glibc-functions/mkostemp.texi: New file.
8480 * doc/glibc-functions/pipe2.texi: New file.
8481 * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
8482 (Glibc sys/socket.h): Refer to accept4.
8483 (Glibc unistd.h): Refer to dup3, pipe2.
8484 Reported by Eric Blake.
8486 2009-08-22 Jim Meyering <meyering@redhat.com>
8487 Bruno Haible <bruno@clisp.org>
8489 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
8490 This makes it so packages using automake-1.11's silent-rules option
8491 can print e.g., a single "GEN configmake.h" line, rather than
8492 the 30+ statements that perform the job. If you want to see the
8493 actual commands, you can still run "make V=1".
8494 * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
8495 so that make output is abbreviated when those variables are defined
8497 * modules/argz: Likewise.
8498 * modules/arpa_inet: Likewise.
8499 * modules/byteswap: Likewise.
8500 * modules/configmake: Likewise.
8501 * modules/dirent: Likewise.
8502 * modules/errno: Likewise.
8503 * modules/fcntl: Likewise.
8504 * modules/float: Likewise.
8505 * modules/fnmatch: Likewise.
8506 * modules/getopt-posix: Likewise.
8507 * modules/glob: Likewise.
8508 * modules/iconv_open: Likewise.
8509 * modules/inttypes: Likewise.
8510 * modules/localcharset: Likewise.
8511 * modules/locale: Likewise.
8512 * modules/math: Likewise.
8513 * modules/netdb: Likewise.
8514 * modules/netinet_in: Likewise.
8515 * modules/poll: Likewise.
8516 * modules/posix_spawnp-tests: Likewise.
8517 * modules/sched: Likewise.
8518 * modules/search: Likewise.
8519 * modules/selinux-h: Likewise.
8520 * modules/signal: Likewise.
8521 * modules/spawn: Likewise.
8522 * modules/stdarg: Likewise.
8523 * modules/stdbool: Likewise.
8524 * modules/stddef: Likewise.
8525 * modules/stdint: Likewise.
8526 * modules/stdio: Likewise.
8527 * modules/stdlib: Likewise.
8528 * modules/string: Likewise.
8529 * modules/strings: Likewise.
8530 * modules/sys_file: Likewise.
8531 * modules/sys_ioctl: Likewise.
8532 * modules/sys_select: Likewise.
8533 * modules/sys_socket: Likewise.
8534 * modules/sys_stat: Likewise.
8535 * modules/sys_time: Likewise.
8536 * modules/sys_times: Likewise.
8537 * modules/sys_utsname: Likewise.
8538 * modules/sys_wait: Likewise.
8539 * modules/sysexits: Likewise.
8540 * modules/time: Likewise.
8541 * modules/unistd: Likewise.
8542 * modules/wchar: Likewise.
8543 * modules/wctype: Likewise.
8545 2009-08-22 Jim Meyering <meyering@redhat.com>
8547 announce-gen: detect write failure
8548 * build-aux/announce-gen: Add Coda at end.
8549 Remove equivalent-but-more-verbose block at top.
8551 2009-08-19 Akim Demaille <demaille@gostai.com>
8553 bootstrap: --help to stdout.
8554 * bootstrap (usage): Don't send --help to stderr.
8555 Use a here doc instead of a long string.
8557 2009-08-21 Eric Blake <ebb9@byu.net>
8559 test-popen-safer: split from test-popen
8560 * tests/test-popen.c (main): Move...
8561 * tests/test-popen.h: ...into new file.
8562 * tests/test-popen-safer2.c: New file.
8563 * modules/popen-tests (Files): Add test-popen.h.
8564 * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
8565 Suggested by Bruno Haible.
8567 test-fcntl-safer: split from test-open
8568 * tests/test-open.c (main): Move...
8569 * tests/test-open.h: ...into new file.
8570 * tests/test-fcntl-safer.c: New file.
8571 * modules/open-tests (Files): Add test-open.h.
8572 * modules/fcntl-safer-tests: New file.
8573 Suggested by Bruno Haible.
8575 test-fopen-safer: split from test-fopen
8576 * tests/test-fopen.c (main): Move...
8577 * tests/test-fopen.h: ...into new file.
8578 * tests/test-fopen-safer.c: New file.
8579 * modules/fopen-tests (Files): Add test-fopen.h.
8580 * modules/fopen-safer-tests: New file.
8581 Suggested by Bruno Haible.
8583 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
8585 popen-safer: test O_CLOEXEC at run-time.
8586 * lib/popen-safer.c: Test O_CLOEXEC at run-time.
8588 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
8590 fcntl: move more flags to the header
8591 * lib/cloexec.c: Do not define FD_CLOEXEC here.
8592 * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
8593 * lib/fcntl.in.h: Do both things here.
8595 2009-08-21 Jim Meyering <meyering@redhat.com>
8597 consistently remove $@-t before redirecting to it
8598 * modules/argz: Remove $@-t and $@ before redirecting to the former.
8599 * modules/alloca-opt: Likewise.
8600 * modules/byteswap: Likewise.
8601 * modules/fnmatch: Likewise.
8602 * modules/getopt-posix: Likewise.
8603 * modules/glob: Likewise.
8604 * modules/poll: Likewise.
8605 * modules/posix_spawnp-tests: Likewise.
8606 * modules/sys_socket: Likewise.
8607 * modules/sysexits: Likewise.
8609 2009-08-21 Eric Blake <ebb9@byu.net>
8611 popen: simplify access to original popen
8612 * lib/popen.c (rpl_popen): No need to worry about popen being a
8614 Reported by Bruno Haible.
8616 2009-08-20 Eric Blake <ebb9@byu.net>
8618 build: avoid some compiler warnings
8619 * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
8620 * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
8622 (new_exclude_segment, excluded_file_pattern_p)
8623 (excluded_file_name_p): Reduce scope.
8624 * lib/vasnprintf.c (decimal_point_char): Avoid warning on
8625 old-style declaration.
8627 2009-08-20 Simon Josefsson <simon@josefsson.org>
8629 * tests/test-exclude1.sh: Handle Windows EOL.
8630 * tests/test-exclude2.sh: Likewise.
8631 * tests/test-exclude3.sh: Likewise.
8632 * tests/test-exclude4.sh: Likewise.
8633 * tests/test-exclude5.sh: Likewise.
8634 * tests/test-exclude6.sh: Likewise.
8635 * tests/test-exclude7.sh: Likewise.
8637 2009-08-19 Akim Demaille <demaille@gostai.com>
8639 bootstrap: find sha1sum when named gsha1sum.
8640 * bootstrap (find_tool): New.
8644 2009-08-20 Jim Meyering <meyering@redhat.com>
8646 maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
8647 * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
8648 expression that converts "." in a file name to "\." in the resulting
8649 regexp. Start with a dummy statement, so that prior shell variable
8650 definitions are expanded portably. Reported by Simon Josefsson.
8652 2009-08-20 Paolo Bonzini <bonzini@gnu.org>
8654 Fix polling for writeability of a screen buffer.
8655 * lib/poll.c: Distinguish input and screen buffers for the
8656 Win32 implementation.
8657 * lib/select.c: Likewise.
8659 2009-08-19 Eric Blake <ebb9@byu.net>
8661 popen-safer: prevent popen from clobbering std descriptors
8662 * modules/popen-safer: New file.
8663 * lib/popen-safer.c: Likewise.
8664 * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
8665 * lib/stdio--.h (popen): Provide override.
8666 * lib/stdio-safer.h (popen_safer): Provide declaration.
8667 * tests/test-popen.c (includes): Partially test this.
8668 * modules/popen-safer-tests: New file, for more tests.
8669 * tests/test-popen-safer.c: Likewise.
8670 * MODULES.html.sh (file stream based Input/Output): Mention it.
8672 tests: test some of the *-safer modules
8673 * modules/fopen-safer (Depends-on): Add fopen.
8674 * modules/fcntl-safer (Depends-on): Add fcntl.
8675 * modules/stdlib-safer (Depends-on): Add stdlib.
8676 (configure.ac): Set indicator.
8677 * modules/unistd-safer (configure.ac): Likewise.
8678 * modules/tmpfile-safer (configure.ac): Likewise.
8679 (Depends-on): Add tmpfile.
8680 * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
8682 * tests/test-fopen.c (includes): Test safer versions when they are
8684 * tests/test-open.c (includes): Likewise.
8686 popen: fix cygwin 1.5 bug when stdin closed
8687 * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
8688 * modules/popen: New file.
8689 * modules/popen-tests: Likewise.
8690 * tests/test-popen.c: Likewise.
8691 * m4/popen.m4: Likewise.
8692 * lib/popen.c: Likewise.
8693 * lib/stdio.in.h (popen): New declaration.
8694 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
8695 * modules/stdio (Makefile.am): Likewise.
8696 * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
8698 2009-08-17 Joel E. Denny <jdenny@clemson.edu>
8700 maint.mk: give full control over update-copyright exclusions
8701 * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
8702 ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
8703 (update-copyright): Don't force inclusion of top-level
8704 ChangeLog. Don't force exclusion of all COPYING files, but make
8705 them the default exclusion instead.
8707 2009-08-16 Bruno Haible <bruno@clisp.org>
8709 Fix test failures on Solaris 10.
8710 * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
8711 tests when Solaris iconv() is used.
8712 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
8713 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
8714 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
8715 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
8716 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
8718 2009-08-16 Bruno Haible <bruno@clisp.org>
8720 Fix test failures on Solaris 10.
8721 * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
8722 'tr' program and pass it as first argument.
8723 * tests/test-pipe-filter-gi1.sh: Likewise.
8724 * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
8725 program as first argument.
8726 * tests/test-pipe-filter-gi1.c (main): Likewise.
8728 2009-08-16 Eric Blake <ebb9@byu.net>
8730 fpurge: fix previous commits
8731 * modules/fpurge (Makefile.am): Make replacement conditional,
8732 partially reverting 2007-04-29 change; missed in previous
8734 * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
8737 2009-08-16 Bruno Haible <bruno@clisp.org>
8739 Clarify fpurge's effect on the file position.
8740 * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
8741 * tests/test-fpurge.c (main): Make a second pass for checking the file
8744 2009-08-16 Bruno Haible <bruno@clisp.org>
8746 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
8747 declaration of fpurge is missing.
8748 * tests/test-fpurge.c (main): Check that the file has not more contents
8749 than expected. Close the file before removing it.
8751 2009-08-15 Eric Blake <ebb9@byu.net>
8753 fpurge: don't wrap working cygwin implementation
8754 * lib/fpurge.c (fpurge): Fix comment typo.
8755 * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
8756 1.7 to avoid replacement.
8757 * tests/test-fpurge.c (main): Enhance test.
8759 2009-08-15 Eric Blake <ebb9@byu.net>
8760 and Jim Meyering <meyering@redhat.com>
8762 test-update-copyright: skip if perl is insufficient
8763 * tests/test-update-copyright.sh: Failure to run maintainer tool
8764 should not cause testsuite failure on cygwin 1.5.
8766 2009-08-14 Eric Blake <ebb9@byu.net>
8768 doc: mention more functions added in cygwin 1.7.0
8769 * doc/posix-headers/limits.texi (limits.h): Update for recent
8771 * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
8772 * doc/posix-functions/wordexp.texi (wordexp): Likewise.
8773 * doc/posix-functions/wordfree.texi (wordfree): Likewise.
8774 * doc/posix-functions/setlocale.texi (setlocale): Likewise.
8775 * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
8777 2009-08-14 Eric Blake <ebb9@byu.net>
8779 maint.mk: simplify update-copyright rule
8780 * top/maint.mk (update-copyright-local): Delete, and document how
8781 to do it in cfg.mk instead.
8782 (update-copyright-exclude-regexp): Delete, and document how to do
8783 it in .x-update-copyright instead.
8784 (update-copyright): Simplify, thanks to VC_LIST_EXCEPT. Don't
8787 2009-08-14 Bruno Haible <bruno@clisp.org>
8789 * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
8791 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
8793 maint.mk: support update-copyright-env
8794 * top/maint.mk (update-copyright-env): Define place-holder.
8795 (update-copyright): Expand $(update-copyright-env) before
8796 invoking update-copyright.
8798 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
8800 update-copyright: implement forced reformatting
8801 * build-aux/update-copyright: Implement and document
8802 UPDATE_COPYRIGHT_FORCE.
8803 * tests/test-update-copyright.sh: Test it.
8805 2009-08-14 Eric Blake <ebb9@byu.net>
8806 and Bruno Haible <bruno@clisp.org>
8808 stddef: fix NetBSD 5.0 NULL bug, rather than working around it
8809 * tests/test-locale.c: Revert previous patch related to NULL.
8810 * tests/test-stdio.c: Likewise.
8811 * tests/test-stdlib.c: Likewise.
8812 * tests/test-string.c: Likewise.
8813 * tests/test-unistd.c: Likewise.
8814 * modules/time-tests (Depends-on): Add verify.
8815 * modules/wchar-tests (Depends-on): Likewise.
8816 * tests/test-time.c: Test for NULL compliance.
8817 * tests/test-wchar.c: Likewise.
8818 * modules/locale (Depends-on): Add stddef.
8819 * modules/stdio (Depends-on): Likewise.
8820 * modules/stdlib (Depends-on): Likewise.
8821 * modules/string (Depends-on): Likewise.
8822 * modules/time (Depends-on): Likewise.
8823 * modules/unistd (Depends-on): Likewise.
8824 * modules/wchar (Depends-on): Likewise.
8825 * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
8826 * lib/stdlib.in.h (includes): Likewise.
8827 * lib/string.in.h (includes): Likewise.
8828 * lib/time.in.h (includes): Likewise.
8829 * lib/unistd.in.h (includes): Likewise.
8830 * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
8832 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8833 * m4/stddef_h.m4: New file.
8834 * modules/stddef: Likewise.
8835 * lib/stddef.in.h: Likewise.
8836 * modules/stddef-tests: Likewise.
8837 * tests/test-stddef.c: Likewise.
8838 * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
8839 * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
8840 * doc/posix-headers/locale.texi (locale.h): Likewise.
8841 * doc/posix-headers/stdio.texi (stdio.h): Likewise.
8842 * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8843 * doc/posix-headers/string.texi (string.h): Likewise.
8844 * doc/posix-headers/time.texi (time.h): Likewise.
8845 * doc/posix-headers/unistd.texi (unistd.h): Likewise.
8846 * doc/posix-headers/wchar.texi (wchar.h): Likewise.
8848 2009-08-14 Eric Blake <ebb9@byu.net>
8850 doc: improve git diff of texinfo files
8851 * .gitattributes: Add rule for *.texi files, with hint on how to
8853 Copied from m4, and based on a report by Bruno Haible.
8855 2009-08-14 Bruno Haible <bruno@clisp.org>
8857 Disable multithread support by default on Cygwin 1.5.x for real.
8858 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
8860 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
8862 update-copyright: much ado about intervals
8863 * build-aux/update-copyright: Implement and document
8864 UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
8865 of copyright year intervals.
8866 Also, document UPDATE_COPYRIGHT_YEAR.
8867 * tests/test-update-copyright.sh: Test it.
8869 update-copyright: convert 2-digit to 4-digit years
8870 * build-aux/update-copyright: Implement and document.
8871 * tests/test-update-copyright.sh: Update.
8873 2009-08-14 Jim Meyering <meyering@redhat.com>
8875 test-exclude: avoid coreutils "make check" failure
8876 * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
8877 just as in test-argmatch.c.
8879 2009-08-13 Eric Blake <ebb9@byu.net>
8881 test-dup2: fix bad assumption
8882 * tests/test-dup2.c (main): Tolerate leaked fds from environment.
8883 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
8885 test-version-etc: fix CRLF portability issue
8886 * tests/test-version-etc.sh: Use tr, not sed, as not all sed
8888 * tests/test-argp-version-etc-1.sh: Likewise.
8890 getopt: update client modules
8891 * modules/argp (Depends-on): Use getopt-gnu.
8892 * modules/git-merge-changelog (Depends-on): Likewise.
8893 * modules/long-options (Depends-on): Likewise.
8894 * modules/xstrtol (Depends-on): Likewise.
8896 2009-08-13 Simon Josefsson <simon@josefsson.org>
8898 * tests/test-version-etc.sh: Don't fail on different
8899 project/version. Don't fail on CRLF differences. Rewrite to use
8900 multiple -e instead of multiple sed forks, suggested by Eric Blake
8902 * tests/test-argp-version-etc-1.sh: Likewise.
8904 2009-08-13 Simon Josefsson <simon@josefsson.org>
8906 * tests/test-version-etc.sh: Don't fail on different
8909 2009-08-12 Bruno Haible <bruno@clisp.org>
8911 Tests for modules 'getopt-posix', 'getopt-gnu'.
8912 * modules/getopt-posix-tests: New file.
8913 * tests/test-getopt.c: New file.
8914 * tests/test-getopt.h: New file.
8915 * tests/test-getopt_long.h: New file.
8917 New modules 'getopt-posix', 'getopt-gnu'.
8918 * modules/getopt-gnu: New file, renamed from modules/getopt.
8919 * modules/getopt-posix: New file.
8920 * modules/getopt: Turn into an obsolete alias for getopt-gnu.
8921 * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
8922 (gl_GETOPT): Remove macro.
8923 (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
8924 Disable the test against BSD systems that declare optreset. Test
8925 against mingw bug. Test against lack of support of optional arguments
8927 * doc/glibc-headers/getopt.texi: Update module name and list of
8929 * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
8930 'getopt-gnu' and more portability problems.
8931 * NEWS: Mention the changes.
8933 2009-08-12 Bruno Haible <bruno@clisp.org>
8935 Ensure that optarg etc. get declared by <unistd.h>.
8936 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
8937 AC_USE_SYSTEM_EXTENSIONS.
8938 * modules/getopt (Depends-on): Add 'extensions'.
8940 2009-08-12 Bruno Haible <bruno@clisp.org>
8942 Avoid test link errors.
8943 * modules/pipe-filter-ii-tests (Makefile.am): Define
8944 test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
8945 * modules/pipe-filter-gi-tests (Makefile.am): Define
8946 test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
8947 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8949 2009-08-12 Bruno Haible <bruno@clisp.org>
8951 * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
8952 gl_GETOPT_SUBSTITUTE before.
8953 (gl_GETOPT): Use it.
8954 * m4/argp.m4 (gl_ARGP): Update.
8955 Reported by Sergey Poznyakoff.
8957 * m4/getopt.m4: Reorder macros.
8958 (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
8959 (gl_GETOPT_SUBSTITUTE): Remove macro.
8961 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
8963 Minor improvement in gitlog-to-changelog
8965 * build-aux/gitlog-to-changelog: New option `--format' makes
8966 output format string configurable.
8968 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
8970 Optimize exclude: use hash tables for non-wildcard patterns.
8972 * lib/exclude.c: Include hash.h and mbuiter.h
8973 (struct exclude_pattern, exclude_segment): New data types.
8974 (struct exclude): Rewrite.
8975 (fnmatch_pattern_has_wildcards): New function.
8976 (new_exclude_segment, free_exclude_segment): New functions.
8977 (excluded_file_pattern_p, excluded_file_name_p): New functions.
8978 (excluded_file_name, add_exclude): Rewrite using new struct exclude.
8979 * lib/exclude.h (is_fnmatch_pattern): New prototype.
8980 * modules/exclude: Depend on hash and mbuiter.
8982 * modules/exclude-tests: New file.
8983 * tests/test-exclude.c: New file.
8984 * tests/test-exclude1.sh: New file.
8985 * tests/test-exclude2.sh: New file.
8986 * tests/test-exclude3.sh: New file.
8987 * tests/test-exclude4.sh: New file.
8988 * tests/test-exclude5.sh: New file.
8989 * tests/test-exclude6.sh: New file.
8990 * tests/test-exclude7.sh: New file.
8992 2009-08-12 Bruno Haible <bruno@clisp.org>
8994 Ensure that getopt() gets declared by <unistd.h>.
8995 * lib/unistd.in.h: Conditionally include getopt.h.
8996 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
8997 Set GNULIB_UNISTD_H_GETOPT.
8998 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8999 GNULIB_UNISTD_H_GETOPT.
9000 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
9002 2009-08-12 Bruno Haible <bruno@clisp.org>
9005 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
9006 gl_replace_getopt instead of GETOPT_H.
9008 2009-08-12 Bruno Haible <bruno@clisp.org>
9010 * m4/getopt.m4: Add comments.
9012 2009-08-12 Bruno Haible <bruno@clisp.org>
9014 Disable multithread support by default on Cygwin 1.5.x.
9015 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
9016 set gl_use_threads=no if not specified otherwise.
9018 2009-08-11 Bruno Haible <bruno@clisp.org>
9020 Avoid compilation error on NetBSD 5.0.
9021 * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
9022 * tests/test-stdio.c: Likewise.
9023 * tests/test-stdlib.c: Likewise.
9024 * tests/test-string.c: Likewise.
9025 * tests/test-unistd.c: Likewise.
9026 Reported by Greg Troxel <gdt@ir.bbn.com>
9027 at <https://savannah.gnu.org/support/?106973>.
9029 2009-08-11 Bruno Haible <bruno@clisp.org>
9031 * modules/dup2-tests (Depends-on): Remove close.
9033 Undo 2009-07-19 commit.
9034 * modules/acl-tests (Depends-on): Remove close.
9035 * modules/binary-io-tests (Depends-on): Likewise.
9036 * modules/closein-tests (Depends-on): Likewise.
9037 * modules/flock-tests (Depends-on): Likewise.
9038 * modules/fsync-tests (Depends-on): Likewise.
9039 * modules/lseek-tests (Depends-on): Likewise.
9040 * modules/pipe-tests (Depends-on): Likewise.
9041 * modules/posix_spawn-tests (Depends-on): Likewise.
9042 * modules/posix_spawnp-tests (Depends-on): Likewise.
9043 * modules/stat-time-tests (Depends-on): Likewise.
9044 * modules/yesno-tests (Depends-on): Likewise.
9046 2009-08-10 Bruno Haible <bruno@clisp.org>
9048 * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
9050 2009-08-10 Bruno Haible <bruno@clisp.org>
9053 * lib/write.c (rpl_write): Cast result of _get_osfhandle.
9055 2009-08-10 Bruno Haible <bruno@clisp.org>
9057 Don't optimize AC_LIBOBJs, as they may appear in different contexts.
9058 * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
9059 not only the first time.
9060 * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
9061 * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
9062 * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
9063 is 1, not only the the first time.
9065 2009-08-10 Bruno Haible <bruno@clisp.org>
9067 Make it possible to use module 'gethostname' without module 'close'.
9068 * lib/unistd.in.h (close): Evoke a link error only if
9069 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
9070 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9071 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
9072 * modules/unistd (Makefile.am): Substitute
9073 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
9074 * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
9075 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
9076 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
9077 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
9078 * modules/sys_ioctl (Makefile.am): Substitute
9079 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
9080 * modules/socket (configure.ac): On native Windows, set
9081 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
9082 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
9083 Reported by Sam Steingold <sds@gnu.org>.
9085 2009-08-10 Bruno Haible <bruno@clisp.org>
9087 * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
9088 * modules/ioctl (configure.ac): Likewise.
9090 2009-08-10 Bruno Haible <bruno@clisp.org>
9092 Avoid collision between gnulib wrapper and libintl wrapper.
9093 * lib/stdio-write.c (printf): Don't define if a printf wrapper is
9094 already defined in intl/printf.c.
9095 (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
9096 (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
9098 2009-08-09 Bruno Haible <bruno@clisp.org>
9100 Make <sys/select.h> really self-contained, also on Solaris 10.
9101 * lib/sys_select.in.h: Include <string.h>.
9102 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
9104 * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
9105 * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
9106 Reported by Jim Meyering.
9108 2009-08-09 Bruno Haible <bruno@clisp.org>
9110 Avoid warnings from 'aclocal' that are due to a use of macro name
9111 AM_XGETTEXT_OPTION that is not defined in automake.
9112 * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
9114 * modules/error (configure.ac): Likewise.
9115 * modules/propername (configure.ac): Likewise.
9116 * modules/vasprintf (configure.ac): Likewise.
9117 * modules/verror (configure.ac): Likewise.
9118 * modules/xprintf (configure.ac): Likewise.
9119 * modules/xvasprintf (configure.ac): Likewise.
9121 2009-08-08 Bruno Haible <bruno@clisp.org>
9123 Avoid compilation error in C++ mode.
9124 * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
9125 Reported by Sam Steingold <sds@gnu.org>.
9127 2009-08-08 Bruno Haible <bruno@clisp.org>
9129 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
9130 for the various Unix platforms.
9131 * doc/posix-headers/limits.texi: Update platforms list regarding
9133 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9135 2009-08-07 Jim Meyering <meyering@redhat.com>
9137 selinux-at: fix typo in a comment
9138 * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
9139 Spotted by Paolo Bonzini.
9141 selinux-at: remove redundant m4 code, add documentation
9142 * modules/selinux-at (configure.ac): Remove redundant code.
9143 LIB_SELINUX is already set via the dependent module, selinux-h.
9144 (Include): Add quotes around selinux-at.h.
9145 * lib/selinux-at.h: Add documentation.
9146 Reported by Bruno Haible in
9147 http://marc.info/?l=gnulib-bug&m=124958988300749
9149 2009-08-07 Bruno Haible <bruno@clisp.org>
9151 Avoid link error on MacOS X 10.3 and 10.4.
9152 * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
9154 * lib/argp-pv.c (argp_program_version): Likewise.
9155 Reported by Simon Josefsson.
9157 2009-08-07 Simon Josefsson <simon@josefsson.org>
9159 * tests/test-version-etc.sh: Use $EXEEXT.
9161 2009-08-06 Joel E. Denny <jdenny@clemson.edu>
9163 update-copyright: update documentation to point to maint.mk
9164 * build-aux/update-copyright: Here.
9166 2009-08-06 Jim Meyering <meyering@redhat.com>
9168 maint.mk: support update-copyright-local
9169 * top/maint.mk (update-copyright-local): Define place-holder.
9170 (update-copyright): Depend on $(update-copyright-local).
9172 2009-08-06 Jim Meyering <meyering@redhat.com>
9174 selinux-at: new module
9175 Initially written for coreutils, this module will soon be
9176 used by findutils, too.
9177 * MODULES.html.sh [Misc]: Add selinux-at.
9178 * lib/selinux-at.h: New file, from coreutils.
9179 * lib/selinux-at.c: Likewise.
9180 * modules/selinux-at: Likewise.
9181 (License): Change from LGPL to GPL, since it depends
9182 on the GPL'd openat module.
9185 * README: Remove references to cogito.
9186 Remove cvs-repo-updating instructions from 2007.
9187 Don't imply that CVS is better if you have limited disk space.
9189 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
9191 update-copyright: support C-style comments
9192 * build-aux/update-copyright: Implement and document.
9193 * tests/test-update-copyright.sh: Test.
9195 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
9197 update-copyright: support omitted "(C)"
9198 * build-aux/update-copyright: Implement and document. Also,
9199 allow variable whitespace before "(C)".
9200 * tests/test-update-copyright.sh: Test.
9202 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
9204 update-copyright: don't trip on non-FSF copyright statements
9205 * build-aux/update-copyright: Fix so that the first correctly
9206 formatted FSF copyright statement is recognized no matter what
9207 appears before it. Update documentation.
9208 * tests/test-update-copyright.sh: Test that.
9210 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
9212 update-copyright: clean up code a little
9213 * build-aux/update-copyright: Append "_re" to the name of any
9214 variable holding a regular expression.
9215 Replace "old" and "new" with "stmt" in variable names.
9216 Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
9218 Format code more consistently.
9220 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
9222 update-copyright-tests: improve portability
9223 * tests/test-update-copyright.sh: Use cmp if diff cannot handle
9224 -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
9226 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
9228 update-copyright: support @copyright{} and ©
9229 * build-aux/update-copyright: Implement and document.
9230 * tests/test-update-copyright.sh: Test.
9232 2009-08-04 Jim Meyering <meyering@redhat.com>
9234 update-copyright-tests: correctly test EOL=\r\n handling
9235 * tests/test-update-copyright.sh: Put \r at the end of some lines
9236 for the dos-eol tests. Based on a patch by Joel E. Denny.
9238 maint.mk: make update-copyright exclusion list more configurable
9239 * top/maint.mk (update-copyright): Default to excluding COPYING,
9240 but allow an override, in case someone does want to update that file.
9242 maint.mk: don't update copyright date in COPYING
9243 * top/maint.mk (update-copyright): Exclude COPYING.
9245 maint.mk: add a copyright-updating rule
9246 * top/maint.mk (update-copyright): New rule.
9247 Derived from coreutils/Makefile.am.
9249 update-copyright: rename some variables
9250 * build-aux/update-copyright: Rename a few variables for clarity.
9251 Tweak syntax. List Joel E. Denny as coauthor.
9253 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
9255 update-copyright: fix bug for 2-digit last year and add tests
9256 * build-aux/update-copyright: Fix bug.
9257 Use UPDATE_COPYRIGHT_YEAR from environment as current year if
9259 * modules/update-copyright-tests: New
9260 * tests/test-update-copyright.sh: New.
9262 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
9264 update-copyright: handle leading tabs in line prefix
9265 * build-aux/update-copyright: Count leading tabs as 8 spaces
9266 when computing margin. This helps with the formatting of
9267 ChangeLogs, for example.
9268 Fix documentation a little.
9270 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
9272 update-copyright: support EOL=\r\n
9273 * build-aux/update-copyright: Implement that.
9275 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
9277 update-copyright: automatically format copyright statements
9278 * build-aux/update-copyright: Implement that.
9279 Also, be a little more predictable and safer by always failing
9280 when the full copyright format is not perfectly recognized as an
9281 unbroken whole. Discussed at
9282 <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
9283 Rewrite documentation.
9285 2009-08-03 Bruno Haible <bruno@clisp.org>
9287 * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
9289 2009-08-02 Bruno Haible <bruno@clisp.org>
9291 Tests for module 'uname'.
9292 * modules/uname-tests: New file.
9293 * tests/test-uname.c: New file.
9296 * lib/uname.c: New file.
9297 * m4/uname.m4: New file.
9298 * modules/uname: New file.
9299 * doc/posix-functions/uname.texi: Mention the new module.
9301 2009-08-02 Bruno Haible <bruno@clisp.org>
9303 Tests for module 'sys_utsname'.
9304 * modules/sys_utsname-tests: New file.
9305 * tests/test-sys_utsname.c: New file.
9307 New module 'sys_utsname'.
9308 * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
9309 * m4/sys_utsname_h.m4: New file.
9310 * modules/sys_utsname: New file.
9311 * doc/posix-headers/sys_utsname.texi: Mention the new module.
9313 2009-08-02 Bruno Haible <bruno@clisp.org>
9315 Implicitly initialize the sockets library.
9316 * lib/gethostname.c: Include sockets.h.
9317 (rpl_gethostname): Invoke gl_sockets_startup.
9318 * lib/socket.c: Include sockets.h.
9319 (rpl_socket): Invoke gl_sockets_startup.
9320 * modules/gethostname (Depends-on): Add sockets.
9321 * modules/socket (Depends-on): Likewise.
9322 * tests/test-poll.c: Don't include sockets.h.
9323 (main): Don't invoke gl_sockets_startup.
9324 * tests/test-select.c: Don't include sockets.h.
9325 (main): Don't invoke gl_sockets_startup.
9327 2009-08-02 Bruno Haible <bruno@clisp.org>
9329 Allow multiple calls to gl_sockets_startup.
9330 * lib/sockets.c (initialized_sockets_version): New variable.
9331 (gl_sockets_startup): Do nothing if already called for this or a higher
9333 (gl_sockets_cleanup): Reset initialized_sockets_version.
9335 2009-08-03 Simon Josefsson <simon@josefsson.org>
9337 * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
9338 different project/version.
9340 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
9341 Bruno Haible <bruno@clisp.org>
9343 Tests for module 'pipe-filter-gi'.
9344 * modules/pipe-filter-gi-tests: New file.
9345 * tests/test-pipe-filter-gi1.sh: New file.
9346 * tests/test-pipe-filter-gi1.c: New file.
9347 * tests/test-pipe-filter-gi2.sh: New file.
9348 * tests/test-pipe-filter-gi2-main.c: New file.
9349 * tests/test-pipe-filter-gi2-child.c: New file.
9351 New module 'pipe-filter-gi'.
9352 * lib/pipe-filter-gi.c: New file.
9353 * modules/pipe-filter-gi: New file.
9355 2009-08-02 Bruno Haible <bruno@clisp.org>
9356 Paolo Bonzini <bonzini@gnu.org>
9358 Tests for module 'pipe-filter-ii'.
9359 * modules/pipe-filter-ii-tests: New file.
9360 * tests/test-pipe-filter-ii1.sh: New file.
9361 * tests/test-pipe-filter-ii1.c: New file.
9362 * tests/test-pipe-filter-ii2.sh: New file.
9363 * tests/test-pipe-filter-ii2-main.c: New file.
9364 * tests/test-pipe-filter-ii2-child.c: New file.
9366 New module 'pipe-filter-ii'.
9367 * lib/pipe-filter.h: New file.
9368 * lib/pipe-filter-ii.c: New file.
9369 * lib/pipe-filter-aux.h: New file.
9370 * modules/pipe-filter-ii: New file.
9372 2009-08-02 Simon Josefsson <simon@josefsson.org>
9374 * lib/gc-libgcrypt.c: Change copyright to FSF.
9375 * lib/gc-gnulib.c: Likewise.
9377 2009-08-02 Martin Lambers <marlam@marlam.de> (tiny change)
9379 * lib/gethostname.c: Include limits.h.
9381 2009-08-02 Simon Josefsson <simon@josefsson.org>
9382 Bruno Haible <bruno@clisp.org>
9384 Ensure HOST_NAME_MAX as part of the gethostname module.
9385 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
9386 define also HOST_NAME_MAX.
9387 * tests/test-gethostname.c: Include <limits.h>.
9388 (main): Check also HOST_NAME_MAX.
9389 * doc/posix-headers/limits.texi: Document the mingw problem.
9391 2009-08-02 Bruno Haible <bruno@clisp.org>
9393 * lib/gethostname.c (gethostname): Fix handling of large len argument.
9396 2009-03-31 Simon Josefsson <simon@josefsson.org>
9398 * lib/gethostname.c: Add Windows wrapper.
9399 * m4/gethostname.m4: Look for gethostname in -lws2_32.
9400 * modules/gethostname: Depend on sys_socket & errno, for also
9401 added lib/w32sock.h. Add GETHOSTNAME_LIB link directive.
9402 * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
9404 2009-07-31 Jim Meyering <meyering@redhat.com>
9406 getloadavg: fix symbol name in comment
9407 * lib/getloadavg.c: Correct a typo I introduced when adding
9408 comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
9409 Matt Kraai spotted the problem.
9411 2009-07-29 Matt Kraai <mkraai@beckman.com>
9413 getloadavg: check whether n_name is a pointer, for QNX 6.4.1
9414 * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
9415 code also if ! defined N_NAME_POINTER.
9416 * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
9417 This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
9418 but the n_name member is a 12-byte array.
9420 2009-07-29 Joel E. Denny <jdenny@clemson.edu>
9422 update-copyright: generalize comment handling
9423 * build-aux/update-copyright: Handle copyright statements
9424 within more comment styles.
9426 Report any file with an external copyright holder or parse failure.
9428 2009-07-29 Jim Meyering <meyering@redhat.com>
9430 mktime: correct setting of REPLACE_MKTIME
9431 * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
9433 update-copyright: new module
9434 * modules/update-copyright: New file.
9435 * build-aux/update-copyright: New file.
9436 * MODULES.html.sh (maint+release support): Add update-copyright.
9438 2009-07-27 Bruno Haible <bruno@clisp.org>
9440 Fix compilation error when <ctime> is used and mktime is replaced.
9441 * lib/time.in.h (mktime): New declaration.
9442 * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
9443 REPLACE_MKTIME instead of defining mktime in config.h.
9444 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
9445 * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
9446 Reported by Ross McFarland <rwmcfa1@neces.com>.
9448 2009-07-27 Bruno Haible <bruno@clisp.org>
9450 * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
9451 Reported by Matt Kraai <mkraai@beckman.com>.
9453 2009-07-25 Jim Meyering <meyering@redhat.com>
9455 maint.mk: avoid warnings about missing files
9456 * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
9457 diagnostic when .prev-version does not exist.
9458 (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
9459 (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
9461 Suggestions from Simon Josefsson.
9463 2009-07-25 Bruno Haible <bruno@clisp.org>
9465 * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
9466 defined as macros. Needed on QNX 6.4.1.
9467 Reported by Matt Kraai <mkraai@beckman.com>.
9469 2009-07-23 Jim Meyering <meyering@redhat.com>
9471 maint.mk: invoke "make dist" with a working value of XZ_OPT
9472 * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
9474 2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change)
9476 Make fseeko.c compile on QNX.
9477 * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
9479 2009-07-22 Peter Simons <simons@cryp.to>
9481 C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
9482 * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
9483 * lib/md4.h: Likewise.
9484 * lib/md5.h: Likewise.
9485 * lib/sha1.h: Likewise.
9486 * lib/sha256.h: Likewise.
9487 * lib/sha512.h: Likewise.
9489 tests-sha1: don't assign literal string to 'char *' variable
9490 * tests/test-sha1.c (main): Declare locals with "const" to match
9491 attributes of the right hand side.
9493 2009-07-21 Eric Blake <ebb9@byu.net>
9495 dup2: fix more mingw problems
9496 * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
9498 * doc/posix-functions/dup2.texi (dup2): Document the bug.
9499 * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
9500 * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
9501 (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
9504 2009-07-21 Jim Meyering <meyering@redhat.com>
9506 vc-list-files: avoid failure when /bin/sh is dash
9507 * build-aux/vc-list-files: Avoid a shell portability problem with dash.
9508 On some Debian based systems, /bin/sh is a symlink to dash, and running
9509 this command would omit the "/" following each 'tests' prefix:
9510 dash -x build-aux/vc-list-files -C . tests
9511 That is because bash and dash work differently:
9512 $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
9516 2009-07-21 Eric Blake <ebb9@byu.net>
9518 dup2-tests: test previous patch
9519 * modules/dup2-tests: New file.
9520 * tests/test-dup2.c: Likewise.
9521 * tests/test-open.c (main): Avoid unspecified behavior.
9522 * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
9525 dup2: work around mingw and cygwin 1.5 bug
9526 * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
9527 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9528 * modules/unistd (Makefile.am): Substitute it.
9529 * lib/unistd.in.h (dup2): Declare the replacement.
9530 * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
9531 * doc/posix-functions/dup2.texi (dup2): Document the bugs.
9532 * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
9533 * modules/execute (Depends-on): Add dup2.
9534 * modules/fseterr (Depends-on): Likewise.
9535 * modules/pipe (Depends-on): Likewise.
9536 * modules/posix_spawn-internal (Depends-on): Likewise.
9538 2009-07-21 Bruno Haible <bruno@clisp.org>
9540 * modules/.gitattributes: New file.
9542 2009-07-20 Bruno Haible <bruno@clisp.org>
9544 * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
9547 2009-07-20 Eric Blake <ebb9@byu.net>
9549 test-pipe: make a bit more robust.
9550 * tests/test-pipe.c (myerr): Allow error messages regardless of
9551 what we do to stderr.
9552 (test_pipe): Rearrange to avoid deadlock.
9553 (child_main): Try a larger read, to ensure we avoided deadlock.
9554 * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
9555 * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
9558 2009-07-19 Jim Meyering <meyering@redhat.com>
9560 fts: avoid false-positive cycle-detection
9561 * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
9562 for each new command line argument.
9564 2009-07-19 Bruno Haible <bruno@clisp.org>
9566 Fix build error on mingw with the modules sys_select and unistd.
9567 * modules/acl-tests (Depends-on): Add close.
9568 * modules/binary-io-tests (Depends-on): Likewise.
9569 * modules/closein-tests (Depends-on): Likewise.
9570 * modules/flock-tests (Depends-on): Likewise.
9571 * modules/fsync-tests (Depends-on): Likewise.
9572 * modules/lseek-tests (Depends-on): Likewise.
9573 * modules/pipe-tests (Depends-on): Likewise.
9574 * modules/posix_spawn-tests (Depends-on): Likewise.
9575 * modules/posix_spawnp-tests (Depends-on): Likewise.
9576 * modules/stat-time-tests (Depends-on): Likewise.
9577 * modules/yesno-tests (Depends-on): Likewise.
9579 2009-07-19 Bruno Haible <bruno@clisp.org>
9582 * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
9583 macros, not at the compiler macros.
9584 * lib/pipe.c: Likewise.
9585 * lib/execute.c: Likewise.
9586 * lib/spawni.c: Likewise.
9588 2009-07-19 Bruno Haible <bruno@clisp.org>
9590 Fix handling of closed stdin/stdout/stderr on mingw.
9591 * lib/w32spawn.h: Include unistd.h.
9592 (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
9593 file descriptor with O_NOINHERIT flag.
9594 (fd_safer_noinherit): New function, based on fd-safer.c.
9595 (dup_safer_noinherit): New function, based on dup-safer.c.
9596 (undup_safer_noinherit): New function.
9597 * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
9598 dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
9599 * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
9600 instead of fd_safer.
9601 * tests/test-pipe.c: Include <windows.h>.
9602 (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
9604 * tests/test-pipe.c (child_main, parent_main): New functions, extracted
9606 (test_pipe): Pass an extra argument for disambiguation.
9607 (main): Invoke parent_main or child_main.
9609 * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
9612 2009-07-18 Eric Blake <ebb9@byu.net>
9614 test-pipe: fix mingw build
9615 * tests/test-pipe.c (main): Avoid fcntl on mingw.
9617 2009-07-18 Bruno Haible <bruno@clisp.org>
9619 * modules/pipe-tests (Makefile.am): Fix typo.
9621 2009-07-18 Eric Blake <ebb9@byu.net>
9623 error: fix mingw build
9624 * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
9625 Reported by Bruno Haible.
9627 error: avoid undefined use of stdout
9628 * lib/error.c (error, error_at_line): Check that fd 1 is open
9629 before flushing stdout. Avoids a crash on cygwin when libsigsegv
9630 is handling faults and the close_stdout module wants to report the
9631 detection of closed stdout as an error.
9633 2009-07-17 Eric Blake <ebb9@byu.net>
9635 pipe: be robust in face of closed fds
9636 * lib/pipe.c (create_pipe): Closed standard descriptors in parent
9637 should cause child to misbehave.
9638 * modules/pipe-tests: New module.
9639 * tests/test-pipe.c: New file.
9640 * tests/test-pipe.sh: New file.
9641 Reported by Akim Demaille.
9643 2009-07-14 Bruno Haible <bruno@clisp.org>
9645 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
9646 Reported by anonymous kc.
9648 2009-07-07 Jim Meyering <meyering@redhat.com>
9650 maint.mk: don't look for translatable strings in *.m4 or *.mk
9651 * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
9652 when searching for translatable strings.
9654 2009-07-05 Jim Meyering <meyering@redhat.com>
9656 remove superfluous parentheses in STREQ definition
9657 * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
9658 * lib/getugroups.c (STREQ): Likewise.
9659 * lib/fnmatch.c (STREQ): Likewise.
9660 Spotted by Bruno Haible.
9662 2009-07-04 Jim Meyering <meyering@redhat.com>
9664 argv-iter: new module
9665 * MODULES.html.sh: Add argv-iter.
9666 * lib/argv-iter.c, lib/argv-iter.h: New files.
9667 * modules/argv-iter: New file.
9668 * modules/argv-iter-tests: New file.
9669 * tests/test-argv-iter.c: Test it.
9671 2009-07-04 Bruno Haible <bruno@clisp.org>
9674 * lib/git-merge-changelog.c (compute_mapping): In the case where file1
9675 contains more exact copies of a given entry than file2, leave the extra
9676 copies unpaired rather than aborting.
9677 Reported by Eric Blake.
9679 2009-07-02 Bruno Haible <bruno@clisp.org>
9681 Speedup git-merge-changelog for git cherry-pick.
9682 * lib/git-merge-changelog.c (struct entries_mapping): New type.
9683 (entries_mapping_get): New function, extracted from compute_mapping.
9684 (entries_mapping_reverse_get): New function.
9685 (compute_mapping): Add a 'full' argument. Return the result in a
9686 'struct entries_mapping'.
9687 (main): Update. Access the mappings through entries_mapping_get.
9688 Reported by Eric Blake.
9690 2009-07-02 Bruno Haible <bruno@clisp.org>
9692 * lib/git-merge-changelog.c (compute_mapping): Fix determination of
9695 2009-07-02 Bruno Haible <bruno@clisp.org>
9697 Speed up approximate search for matching ChangeLog entries.
9698 * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
9699 argument. Call fstrcmp_bounded instead of fstrcmp.
9700 (compute_mapping, try_split_merged_entry, main): Update callers.
9702 2009-07-02 Bruno Haible <bruno@clisp.org>
9704 * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
9706 2009-06-30 Bruno Haible <bruno@clisp.org>
9708 Reduce the number of uc_is_cased calls.
9709 * lib/unicase.h (casing_suffix_context_t): Add
9710 'first_char_except_ignorable' field.
9711 * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
9712 (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
9713 * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
9715 * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
9716 case-ignorable characters.
9717 * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
9718 * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
9719 * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
9720 * modules/unicase/u16-suffix-context (Depends-on): Likewise.
9721 * modules/unicase/u32-suffix-context (Depends-on): Likewise.
9723 2009-06-30 Bruno Haible <bruno@clisp.org>
9725 Tests for module 'unicase/ignorable'.
9726 * modules/unicase/ignorable-tests: New file.
9727 * tests/unicase/test-ignorable.c: New file, generated by
9730 Tests for module 'unicase/cased'.
9731 * modules/unicase/cased-tests: New file.
9732 * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
9733 * tests/unicase/test-predicate-part1.h: New file, derived from
9734 tests/unictype/test-predicate-part1.h.
9735 * tests/unicase/test-predicate-part2.h: New file, same as
9736 tests/unictype/test-predicate-part2.h.
9738 Fix evaluation of "Before C" condition of FINAL_SIGMA.
9739 * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
9740 (output_casing_properties): New function.
9742 * lib/unicase/cased.h: New file, generated by gen-uni-tables.
9743 * lib/unicase/cased.c: Include unictype/bitmap.h.
9744 (uc_is_cased): Define through a bitmap lookup.
9745 * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
9746 * lib/unicase/ignorable.c: Include unictype/bitmap.h.
9747 (uc_is_case_ignorable): Define through a bitmap lookup.
9748 * modules/unicase/cased (Files): Add lib/unicase/cased.h,
9749 lib/unictype/bitmap.h.
9750 (Depends-on): Add inline. Clean up.
9751 * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
9752 lib/unictype/bitmap.h.
9753 (Depends-on): Add inline. Clean up.
9754 * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
9756 * tests/unicase/test-u16-tolower.c (main): Likewise.
9757 * tests/unicase/test-u32-tolower.c (main): Likewise.
9759 2009-06-30 Bruno Haible <bruno@clisp.org>
9761 * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
9762 * lib/unicase/u16-casemap.c: Likewise.
9763 * lib/unicase/u32-casemap.c: Likewise.
9765 2009-06-29 Bruno Haible <bruno@clisp.org>
9767 Define u32_casefold as a wrapper around u32_ct_casefold.
9768 * lib/unicase/u32-casefold.c: Update.
9769 * modules/unicase/u32-casefold (Depends-on): Add
9770 unicase/u32-ct-casefold, unicase/empty-prefix-context,
9771 unicase/empty-suffix-context. Clean up.
9773 Define u16_casefold as a wrapper around u16_ct_casefold.
9774 * lib/unicase/u16-casefold.c: Update.
9775 * modules/unicase/u16-casefold (Depends-on): Add
9776 unicase/u16-ct-casefold, unicase/empty-prefix-context,
9777 unicase/empty-suffix-context. Clean up.
9779 Define u8_casefold as a wrapper around u8_ct_casefold.
9780 * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
9781 * lib/unicase/u8-casefold.c: Update.
9782 * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
9783 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9785 Define u32_totitle as a wrapper around u32_ct_totitle.
9786 * lib/unicase/u32-totitle.c: Update.
9787 * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
9788 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9790 Define u16_totitle as a wrapper around u16_ct_totitle.
9791 * lib/unicase/u16-totitle.c: Update.
9792 * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
9793 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9795 Define u8_totitle as a wrapper around u8_ct_totitle.
9796 * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
9798 (FUNC): Delegate to U_CT_TOTITLE.
9799 * lib/unicase/u8-totitle.c: Update.
9800 * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
9801 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9803 * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
9805 * modules/unicase/u32-tolower (Depends-on): Add
9806 unicase/empty-prefix-context, unicase/empty-suffix-context.
9808 * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
9810 * modules/unicase/u16-tolower (Depends-on): Add
9811 unicase/empty-prefix-context, unicase/empty-suffix-context.
9813 * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
9814 * modules/unicase/u8-tolower (Depends-on): Add
9815 unicase/empty-prefix-context, unicase/empty-suffix-context.
9817 * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
9819 * modules/unicase/u32-toupper (Depends-on): Add
9820 unicase/empty-prefix-context, unicase/empty-suffix-context.
9822 * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
9824 * modules/unicase/u16-toupper (Depends-on): Add
9825 unicase/empty-prefix-context, unicase/empty-suffix-context.
9827 * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
9828 * modules/unicase/u8-toupper (Depends-on): Add
9829 unicase/empty-prefix-context, unicase/empty-suffix-context.
9831 New module 'unicase/u32-ct-casefold'.
9832 * lib/unicase/u32-ct-casefold.c: New file.
9833 * modules/unicase/u32-ct-casefold: New file.
9835 New module 'unicase/u16-ct-casefold'.
9836 * lib/unicase/u16-ct-casefold.c: New file.
9837 * modules/unicase/u16-ct-casefold: New file.
9839 New module 'unicase/u8-ct-casefold'.
9840 * lib/unicase/u8-ct-casefold.c: New file.
9841 * lib/unicase/u-ct-casefold.h: New file, derived from
9842 lib/unicase/u-casefold.h.
9843 * modules/unicase/u8-ct-casefold: New file.
9845 New module 'unicase/u32-ct-totitle'.
9846 * lib/unicase/u32-ct-totitle.c: New file.
9847 * modules/unicase/u32-ct-totitle: New file.
9849 New module 'unicase/u16-ct-totitle'.
9850 * lib/unicase/u16-ct-totitle.c: New file.
9851 * modules/unicase/u16-ct-totitle: New file.
9853 New module 'unicase/u8-ct-totitle'.
9854 * lib/unicase/u8-ct-totitle.c: New file.
9855 * lib/unicase/u-ct-totitle.h: New file, derived from
9856 lib/unicase/u-totitle.h.
9857 * modules/unicase/u8-ct-totitle: New file.
9859 New module 'unicase/u32-ct-tolower'.
9860 * lib/unicase/u32-ct-tolower.c: New file.
9861 * modules/unicase/u32-ct-tolower: New file.
9863 New module 'unicase/u16-ct-tolower'.
9864 * lib/unicase/u16-ct-tolower.c: New file.
9865 * modules/unicase/u16-ct-tolower: New file.
9867 New module 'unicase/u8-ct-tolower'.
9868 * lib/unicase/u8-ct-tolower.c: New file.
9869 * modules/unicase/u8-ct-tolower: New file.
9871 New module 'unicase/u32-ct-toupper'.
9872 * lib/unicase/u32-ct-toupper.c: New file.
9873 * modules/unicase/u32-ct-toupper: New file.
9875 New module 'unicase/u16-ct-toupper'.
9876 * lib/unicase/u16-ct-toupper.c: New file.
9877 * modules/unicase/u16-ct-toupper: New file.
9879 New module 'unicase/u8-ct-toupper'.
9880 * lib/unicase/u8-ct-toupper.c: New file.
9881 * modules/unicase/u8-ct-toupper: New file.
9883 Add context arguments to u*_casemap functions.
9884 * lib/unicase/unicasemap.h: Include unicase.h.
9885 (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
9886 suffix_context arguments.
9887 * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
9889 (FUNC): Add prefix_context and suffix_context arguments. Use
9890 uc_is_cased and uc_is_case_ignorable.
9891 * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
9892 * lib/unicase/u16-casemap.c: Likewise.
9893 * lib/unicase/u32-casemap.c: Likewise.
9894 * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
9895 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9896 * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
9897 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9898 * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
9899 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9901 New module 'unicase/u32-suffix-context'.
9902 * lib/unicase/u32-suffix-context.c: New file.
9903 * modules/unicase/u32-suffix-context: New file.
9905 New module 'unicase/u16-suffix-context'.
9906 * lib/unicase/u16-suffix-context.c: New file.
9907 * modules/unicase/u16-suffix-context: New file.
9909 New module 'unicase/u8-suffix-context'.
9910 * lib/unicase/u8-suffix-context.c: New file.
9911 * lib/unicase/u-suffix-context.h: New file.
9912 * modules/unicase/u8-suffix-context: New file.
9914 New module 'unicase/empty-suffix-context'.
9915 * lib/unicase/empty-suffix-context.c: New file.
9916 * modules/unicase/empty-suffix-context: New file.
9918 New module 'unicase/u32-prefix-context'.
9919 * lib/unicase/u32-prefix-context.c: New file.
9920 * modules/unicase/u32-prefix-context: New file.
9922 New module 'unicase/u16-prefix-context'.
9923 * lib/unicase/u16-prefix-context.c: New file.
9924 * modules/unicase/u16-prefix-context: New file.
9926 New module 'unicase/u8-prefix-context'.
9927 * lib/unicase/u8-prefix-context.c: New file.
9928 * lib/unicase/u-prefix-context.h: New file.
9929 * lib/unicase/context.h: New file.
9930 * modules/unicase/u8-prefix-context: New file.
9932 New module 'unicase/empty-prefix-context'.
9933 * lib/unicase/empty-prefix-context.c: New file.
9934 * modules/unicase/empty-prefix-context: New file.
9936 New module 'unicase/ignorable'.
9937 * lib/unicase/ignorable.c: New file.
9938 * modules/unicase/ignorable: New file.
9940 New module 'unicase/cased'.
9941 * lib/unicase/caseprop.h: New file.
9942 * lib/unicase/cased.c: New file.
9943 * modules/unicase/cased: New file.
9945 New functions for case mapping of substrings.
9946 * lib/unicase.h (casing_prefix_context_t): New type.
9947 (unicase_empty_prefix_context): New variable.
9948 (u8_casing_prefix_context, u16_casing_prefix_context,
9949 u32_casing_prefix_context, u8_casing_prefixes_context,
9950 u16_casing_prefixes_context, u32_casing_prefixes_context): New
9952 (casing_suffix_context_t): New type.
9953 (unicase_empty_suffix_context): New variable.
9954 (u8_casing_suffix_context, u16_casing_suffix_context,
9955 u32_casing_suffix_context, u8_casing_suffixes_context,
9956 u16_casing_suffixes_context, u32_casing_suffixes_context,
9957 u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
9958 u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
9959 u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
9962 2009-06-28 Jim Meyering <meyering@redhat.com>
9964 boostrap: indent only with spaces
9965 * build-aux/bootstrap: Indent only with spaces, never TABs.
9967 bootstrap: split long lines
9968 * build-aux/bootstrap: Keep line length < 80.
9970 bootstrap: sync from coreutils
9971 * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
9972 just as autoreconf does. Verify a list of prerequisite
9973 package-name,version-number pairs if defined in bootstrap.conf.
9974 Refer to README-prereq, if prerequisites are not satisfied.
9976 2009-06-27 Eric Blake <ebb9@byu.net>
9978 tests: add test for bogus NULL definition
9979 * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
9980 * tests/test-stdlib.c: Likewise.
9981 * tests/test-string.c: Likewise.
9982 * tests/test-locale.c: Likewise.
9983 * tests/test-unistd.c: Likewise.
9984 * modules/stdio-tests (Depends-on): Add verify.
9985 * modules/stdlib-tests (Depends-on): Likewise.
9986 * modules/string-tests (Depends-on): Likewise.
9987 * modules/locale-tests (Depends-on): Likewise.
9988 * modules/unistd-tests (Depends-on): Likewise.
9990 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
9992 * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
9993 self-explaining comment.
9994 * m4/selinux-selinux-h: Update serial.
9995 (gl_LIBSELINUX): New macro, adding a warning for missing development
9996 packages to code extracted from...
9997 (gl_HEADERS_SELINUX_SELINUX_H): ... this one. Require gl_LIBSELINUX.
9998 Add warning for missing development packages here, too.
10000 2009-06-26 Paolo Bonzini <bonzini@gnu.org>
10002 * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
10004 2009-06-25 Eric Blake <ebb9@byu.net>
10006 version-etc: fix regression
10007 * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
10009 (version_etc): Use it, to catch bugs with trailing NULL.
10010 * lib/version-etc.c (version_etc_arn): Delete unused argument.
10011 (version_etc_va): Fix logic bug.
10012 * modules/version-etc-tests: Add test.
10013 * tests/test-version-etc.c: New file.
10014 * tests/test-version-etc.sh: Likewise.
10016 2009-06-25 Sam Steingold <sds@gnu.org>
10018 * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
10019 mbtowc declaration.
10021 2009-06-25 Eric Blake <ebb9@byu.net>
10023 fpurge: migrate into <stdio.h>
10024 * lib/fpurge.h: Delete...
10025 * lib/stdio.in.h (fpurge): ...and declare here, instead.
10026 * lib/fpurge.c (fpurge): Change declaring header.
10027 * modules/fpurge (Files): Drop deleted file.
10028 (Depends-on): Add stdio.
10029 (configure.ac): Set witness.
10030 * modules/stdio (Makefile.am): Support fpurge macros.
10031 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10032 * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
10033 * lib/fflush.c: Update client.
10034 * tests/test-fpurge.c: Likewise.
10035 * NEWS: Mention the change.
10037 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
10039 * lib/argp-version-etc.c (program_authors): Add const
10041 * lib/version-etc.c: Fix typos in the comments.
10042 * modules/argp-version-etc: Depends on version-etc.
10044 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
10046 argp-version-etc: new module.
10048 * lib/argp-version-etc.c: New file.
10049 * lib/argp-version-etc.h: New file.
10050 * modules/argp-version-etc: New file.
10051 * modules/argp-version-etc-tests: New file.
10052 * tests/test-argp-version-etc.c: New test.
10053 * tests/test-argp-version-etc-1.sh: New test.
10055 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
10057 Provide additional interfaces and documentation for version-etc
10060 * lib/version-etc.c (version_etc_arn, version_etc_ar): New
10062 * lib/version-etc.h (version_etc_arn, version_etc_ar): New
10065 2009-06-24 Bruno Haible <bruno@clisp.org>
10067 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
10068 HAVE_LIB${NAME} macro.
10069 Reported by Sam Steingold <sds@gnu.org>.
10071 2009-06-23 Simon Josefsson <simon@josefsson.org>
10073 * modules/hash-tests (test_hash_LDADD): Link to libintl when
10076 2009-06-21 Bruno Haible <bruno@clisp.org>
10078 Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
10080 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
10081 together with LIB${NAME}, LTLIB${NAME}.
10082 Reported by Sam Steingold <sds@gnu.org>.
10084 2009-06-20 Jim Meyering <meyering@redhat.com>
10086 tests: make sc_require_test_exit_idiom more generic
10087 * top/maint.mk (Exit_witness_file): New overridable variable.
10088 (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
10089 Relax test for /^Exit \$fail$$/ to just /^Exit ./.
10091 2009-06-19 Jim Meyering <meyering@redhat.com>
10093 hash: reverse order of src/dst parameters in an internal interface
10094 * lib/hash.c (transfer_entries): Reverse order of parameters to
10095 put DST before SRC. Adjust callers.
10097 tests: test-hash: avoid wholesale duplication
10098 * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
10099 Instead, use a loop and add a single conditional.
10101 tests: test-hash: allow seed selection via a command line argument
10102 * tests/test-hash.c (get_seed): New function.
10105 2009-06-19 Eric Blake <ebb9@byu.net>
10107 hash: avoid memory leak on allocation failure
10108 * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
10109 failure. Factor repeated algorithm...
10110 (transfer_entries): ...into new helper routine.
10111 (hash_delete): React to hash_rehash return value.
10113 hash: reduce memory pressure in hash_rehash no-op case
10114 * lib/hash.c (next_prime): Avoid overflow.
10115 (hash_initialize): Factor bucket size computation...
10116 (compute_bucket_size): ...into new helper function.
10117 (hash_rehash): Use new function and open coding to reduce memory
10118 pressure, and avoid a memory leak in USE_OBSTACK code.
10119 Reported by Jim Meyering.
10121 2009-06-18 Eric Blake <ebb9@byu.net>
10123 hash: make rotation more obvious
10124 * modules/hash (Depends-on): Add bitrotate and stdint.
10125 * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
10126 * lib/hash.c (headers): Drop limits.h. Add stdint.h.
10127 (SIZE_MAX): Rely on headers for definition.
10128 (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
10129 (raw_hasher): Use rotr_sz.
10130 Suggested by Jim Meyering.
10132 hash: fix memory leak in last patch
10133 * lib/hash.c (hash_rehash): Avoid memory leak.
10135 hash: avoid no-op rehashing
10136 * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
10138 hash: provide default callback functions
10139 * lib/hash.c (raw_hasher, raw_comparator): New functions.
10140 (hash_initialize): Use them as defaults.
10141 * tests/test-hash.c (main): Test this.
10143 hash: minor optimization
10144 * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
10146 (hash_initialize): Document this promise.
10147 (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
10148 * tests/test-hash.c (hash_compare_strings): Test this.
10150 2009-06-18 Bruno Haible <bruno@clisp.org>
10152 * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
10153 going to be replaced anyway.
10155 2009-06-18 Bruno Haible <bruno@clisp.org>
10157 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
10159 (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
10160 be replaced anyway.
10162 2009-06-18 Eric Blake <ebb9@byu.net>
10164 hash: check for resize before insertion
10165 * lib/hash.c (hash_insert): Check whether bucket usage exceeds
10166 threshold before insertion, so that a pathological hash_rehash
10167 that fills every bucket can still trigger another rehash.
10169 2009-06-18 Jim Meyering <meyering@redhat.com>
10171 hash-tests: add a loop around the small tests
10172 * tests/test-hash.c (main): Repeat small tests with selected
10173 small initial table sizes.
10175 2009-06-17 Eric Blake <ebb9@byu.net>
10177 hash: minor cleanups
10178 * lib/hash.h (hash_entry): Make opaque, by moving...
10179 * lib/hash.c (hash_entry): ...here.
10180 (hash_insert): Clarify restrictions on what can be inserted.
10181 (hash_get_next): Clarify when it is safe to remove an element
10183 (check_tuning): Skip verification when tuning is known safe.
10184 (hash_initialize): Clarify restrictions on tuning.
10186 2009-06-17 Jim Meyering <jim@meyering.net>
10187 and Eric Blake <ebb9@byu.net>
10189 hash-tests: new module
10190 * modules/hash-tests: New file.
10191 * tests/test-hash.c: New file.
10193 2009-06-17 Eric Blake <ebb9@byu.net>
10195 strstr-simple: document new module
10196 * MODULES.html.sh: Document new module.
10198 strstr, strcasestr: replace on platforms with broken memchr
10199 * modules/strstr: Split into...
10200 * modules/strstr-simple: ...new module that does not care about
10201 performance, but does care about glibc bug.
10202 * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
10203 (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
10204 if platform memchr is broken, per Debian bug 521737.
10205 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
10207 * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
10208 * doc/posix-functions/strstr.texi (strstr): Document the fix.
10209 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10210 * modules/mountlist (Depends-on): Add strstr-simple.
10211 * modules/gen-uni-tables (Depends-on): Likewise.
10212 * modules/argz (Depends-on): Add strstr.
10214 2009-06-17 Bruno Haible <bruno@clisp.org>
10216 * modules/posix_spawn-internal (Depends-on): Add errno.
10218 2009-06-17 Bruno Haible <bruno@clisp.org>
10220 Define missing ESTALE on Interix 3.5.
10221 * lib/errno.in.h (ESTALE): Assign a value if missing.
10222 * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
10223 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
10225 * doc/posix-headers/errno.texi: Mention the Interix bug.
10226 Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
10228 2009-06-15 Eric Blake <ebb9@byu.net>
10230 memchr, memchr2: add valgrind exception
10231 * lib/memchr.valgrind: New file.
10232 * lib/memchr2.valgrind: New file.
10233 * modules/memchr (Files): Distribute valgrind file.
10234 * modules/memchr2 (Files): Likewise.
10236 docs: memchr is no longer obsolete
10237 * MODULES.html.sh: Move memchr from obsolete to string.h section.
10238 * lib/string.in.h (memchr): Simplify logic.
10240 2009-06-14 Jim Meyering <meyering@redhat.com>
10242 link-follow: fix the "checking..." message to not mention trailing slash
10243 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
10244 never considered trailing slashes.
10246 2009-06-14 Bruno Haible <bruno@clisp.org>
10248 * m4/memchr.m4: Mention also the bug on IA-64.
10249 * doc/posix-functions/memchr.texi: Likewise.
10251 2009-06-12 Eric Blake <ebb9@byu.net>
10253 memchr: detect broken x86_64 and alpha implementations
10254 * modules/memchr-tests (Depends-on): Move mmap detection...
10255 * modules/memchr (Depends-on): ...here.
10256 (configure.ac): Set indicator.
10257 * lib/string.in.h (memchr): Declare replacement.
10258 * modules/string (Makefile.am): Trigger replacement.
10259 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
10260 * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
10262 * doc/posix-functions/memchr.texi (memchr): Document the bug.
10263 * modules/getpagesize (License): Relax license.
10265 2009-06-11 Bruno Haible <bruno@clisp.org>
10267 * lib/idpriv.h: Add more references.
10269 2009-06-08 Bruno Haible <bruno@clisp.org>
10271 Tests for module 'idpriv-droptemp'.
10272 * modules/idpriv-droptemp-tests: New file.
10273 * tests/test-idpriv-droptemp.sh: New file.
10274 * tests/test-idpriv-droptemp.su.sh: New file.
10275 * tests/test-idpriv-droptemp.c: New file.
10277 New module 'idpriv-droptemp'.
10278 * lib/idpriv-droptemp.c: New file.
10279 * modules/idpriv-droptemp: New file.
10281 2009-06-08 Bruno Haible <bruno@clisp.org>
10283 Tests for module 'idpriv-drop'.
10284 * modules/idpriv-drop-tests: New file.
10285 * tests/test-idpriv-drop.sh: New file.
10286 * tests/test-idpriv-drop.su.sh: New file.
10287 * tests/test-idpriv-drop.c: New file.
10289 New module 'idpriv-drop'.
10290 * lib/idpriv.h: New file.
10291 * lib-idpriv-drop.c: New file.
10292 * m4/idpriv.m4: New file.
10293 * modules/idpriv-drop: New file.
10295 2009-06-08 Bruno Haible <bruno@clisp.org>
10297 * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
10298 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10299 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10300 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10301 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10302 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10303 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10305 2009-06-08 Eric Blake <ebb9@byu.net>
10307 test-strstr: use memory fence, when possible
10308 * tests/test-strstr.c (main): Use memory fence, in order to be
10309 more likely to trigger Debian bug 521737.
10310 * modules/strstr-tests (Files): Pull in additional files.
10312 memchr: no longer obsolete, for wider field testing
10313 * modules/memchr (Status, Notice): Delete, this module is no
10315 * modules/vasnprintf (Depends-on): Add memchr.
10317 2009-06-07 Jim Meyering <meyering@redhat.com>
10319 hash: declare some functions with the warn_unused_result attribute
10320 * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
10322 2009-06-07 Bruno Haible <bruno@clisp.org>
10324 * tests/test-alignof.c: Don't test int64_t if it does not exist.
10325 Reported by Eric Blake.
10327 2009-06-06 Eric Blake <ebb9@byu.net>
10329 test-alignof: fix typo with long double
10330 * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
10333 2009-06-06 Neil Jerram <neil@ossau.uklinux.net> (tiny change)
10335 Escape non-texinfo { and }s.
10336 * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
10339 2009-06-04 Jim Meyering <meyering@redhat.com>
10341 gitlog-to-changelog: don't infloop on an empty commit log
10342 * build-aux/gitlog-to-changelog: Warn about an empty log message.
10343 Reported by Boris Petersen <transacid@centerim.org>.
10345 2009-06-03 Mike Frysinger <vapier@gentoo.org>
10347 version-etc: extend for packagers
10348 Add three new configure options, intended for packagers:
10349 --with-packager="packager name"
10350 --with-packager-version="packager-specific version"
10351 --with-packager-bug-reports="packager bug reporting"
10352 An example with coreutils:
10354 --with-packager=Gentoo \
10355 --with-packager-bug-report=http://bugs.gentoo.org/ \
10356 --with-packager-version="patchset 1.6"
10357 $ ./src/ls --version | head -n2
10358 ls (GNU coreutils) 7.1-dirty
10359 Packaged by Gentoo (patchset 1.6)
10360 Note that the bug reporting info via --help doesn't show up because
10361 coreutils uses its own custom emit_bug_reporting_address() implementation
10362 in src/system.h. If it didn't, it'd look like:
10363 $ ./src/ls --help | tail -n4
10364 Report bugs to <bug-coreutils@gnu.org>.
10365 Report Gentoo bugs to <http://bugs.gentoo.org/>.
10366 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
10367 General help using GNU software: <http://www.gnu.org/gethelp/>.
10368 * lib/version-etc.c: Print new information, if provided.
10369 * m4/version-etc.m4: New file.
10370 * modules/version-etc (Files): Add m4/version-etc.m4.
10371 (configure.ac): Add gl_VERSION_ETC.
10373 2009-05-31 Bruno Haible <bruno@clisp.org>
10375 * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
10377 * modules/alignof-tests (Dependencies): Add stdint.
10378 Reported by Eric Blake.
10380 2009-05-31 Bruno Haible <bruno@clisp.org>
10382 * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
10383 restriction due to compiler bugs.
10384 Reported by Eric Blake.
10386 2009-05-31 Simon Josefsson <simon@josefsson.org>
10387 Bruno Haible <bruno@clisp.org>
10389 Fix test-alignof failure.
10390 * lib/alignof.h (alignof_slot): New macro.
10391 (alignof_type): New macro, with the same semantics as the previous
10393 (alignof): Alias to alignof_slot.
10394 * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
10395 check that the results are usable as constant expressions.
10397 2009-05-31 Bruno Haible <bruno@clisp.org>
10399 * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
10400 * tests/test-memchr.c (main): Check that memchr does not read past the
10401 first occurrence of the byte.
10402 * tests/test-strstr.c (main): Update comment.
10403 Suggested by Eric Blake.
10405 2009-05-30 Bruno Haible <bruno@clisp.org>
10407 * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
10408 detail how to use dumpbin.
10409 Reported by David Byron <dbyron@dbyron.com>.
10411 2009-06-02 Simon Josefsson <simon@josefsson.org>
10413 * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
10415 2009-06-02 Simon Josefsson <simon@josefsson.org>
10417 * m4/manywarnings.m4: Add GCC 4.4 warnings.
10419 2009-05-28 Bruno Haible <bruno@clisp.org>
10421 * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
10424 2009-05-28 Simon Josefsson <simon@josefsson.org>
10426 * gnulib-tool (func_import): Transform license on build-aux/ files too.
10428 2009-05-27 Simon Josefsson <simon@josefsson.org>
10430 * gnulib-tool (sed_transform_main_lib_file)
10431 (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
10434 2009-05-26 Simon Josefsson <simon@josefsson.org>
10436 * tests/test-strstr.c: Add another self-test.
10437 * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
10438 strdup. Suggested by Eric Blake <ebb9@byu.net>.
10440 2009-05-23 Bruno Haible <bruno@clisp.org>
10442 * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
10445 2009-05-21 Bruno Haible <bruno@clisp.org>
10447 Simplify use of mode_t varargs.
10448 * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
10449 uses 'mode_t' or 'int'.
10450 * lib/openat.c (openat): Likewise.
10451 * lib/open-safer.c (open_safer): Likewise.
10452 * m4/mode_t.m4: New file.
10453 * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
10454 * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
10455 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
10456 * modules/open (Files): Add m4/mode_t.m4.
10457 * modules/openat (Files): Likewise.
10458 * modules/fcntl-safer (Files): Likewise.
10459 Suggested by Eric Blake.
10461 2009-05-21 Pádraig Brady <P@draigbrady.com>
10463 * doc/glibc-functions/fallocate.texi: New file.
10464 * doc/gnulib.texi: Include it.
10466 2009-05-21 Eric Blake <ebb9@byu.net>
10467 Bruno Haible <bruno@clisp.org>
10469 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
10471 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
10473 2009-05-21 Eric Blake <ebb9@byu.net>
10474 Bruno Haible <bruno@clisp.org>
10476 Second attempt to work around an AIX 5.3, 6.1 compiler bug with
10477 include_next. Fix of 2008-11-20 commit.
10478 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
10479 NEXT_AS_FIRST_DIRECTIVE_FOO_H.
10480 * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
10482 * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
10483 instead of NEXT_MATH_H.
10485 2009-05-21 Bruno Haible <bruno@clisp.org>
10487 Avoid redefinition warnings for SIZE_MAX.
10488 * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
10489 Reported by Simon Josefsson.
10491 2009-05-21 Bruno Haible <bruno@clisp.org>
10493 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
10496 2009-05-20 Bruno Haible <bruno@clisp.org>
10498 Make zeroptr.h work on mingw.
10499 * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
10501 * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
10502 * modules/memchr2-tests (configure.ac): Likewise.
10503 * modules/memcmp-tests (configure.ac): Likewise.
10504 * modules/memmem-tests (configure.ac): Likewise.
10505 * modules/memrchr-tests (configure.ac): Likewise.
10506 Reported by Simon Josefsson.
10508 2009-05-20 Simon Josefsson <simon@josefsson.org>
10510 * tests/test-glob.c: Include string.h for strcmp prototype.
10512 2009-05-20 Simon Josefsson <simon@josefsson.org>
10514 * modules/getdelim (Depends-on): Add explicit stdint, although it
10515 was implicitly already pulled in via realloc-posix.
10516 * lib/getdelim.c: Get SIZE_MAX from stdint.h.
10518 2009-05-20 Simon Josefsson <simon@josefsson.org>
10520 MinGW and IRIX does not have sa_family_t type. Reported by "Tom
10521 G. Christensen" <tgc@jupiterrise.com>.
10522 * m4/sys_socket_h.m4: Check for sa_family_t.
10523 * lib/sys_socket.in.h: Typedef sa_family_t when needed.
10524 * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
10525 * tests/test-sys_socket.c: Check that sa_family_t works.
10527 2009-05-18 Eric Blake <ebb9@byu.net>
10529 maint.mk: allow gnulib_dir in VPATH build
10530 * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
10532 2009-05-15 Jim Meyering <meyering@redhat.com>
10534 maint.mk: Give gnulib_dir a default definition.
10535 * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
10536 Thus, most packages no longer need to specify this variable in cfg.mk
10538 2009-05-14 Tom Prince <tom.prince@ualberta.net> (tiny change)
10540 rename.m4: fix typos that would make non-mingw cross-configure fail
10541 * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
10543 2009-05-13 Eric Blake <ebb9@byu.net>
10545 mmap-anon: avoid out-of-order autoconf expansion
10546 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
10547 SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
10548 * modules/memchr-tests (Depends-on): Add extensions.
10549 * modules/memchr2-tests (Depends-on): Add extensions.
10550 * modules/memcmp-tests (Depends-on): Add extensions.
10551 * modules/memmem-tests (Depends-on): Add extensions.
10552 * modules/memrchr-tests (Depends-on): Add extensions.
10554 2009-05-13 Bruno Haible <bruno@clisp.org>
10556 Make some tests ISO C 99 compliant.
10557 * tests/zerosize-ptr.h: New file.
10558 * tests/test-memchr.c: Include zerosize-ptr.h.
10559 (main): Use a zero-size object pointer instead of NULL.
10560 * tests/test-memchr2.c: Include zerosize-ptr.h.
10561 (main): Use a zero-size object pointer instead of NULL.
10562 * tests/test-memcmp.c: Include zerosize-ptr.h.
10563 (main): Use a zero-size object pointer instead of NULL.
10564 * tests/test-memmem.c: Include zerosize-ptr.h.
10565 (main): Use a zero-size object pointer instead of NULL.
10566 * tests/test-memrchr.c: Include zerosize-ptr.h.
10567 (main): Use a zero-size object pointer instead of NULL.
10568 * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
10570 (Depends-on): Add getpagesize.
10571 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10572 * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
10574 (Depends-on): Add getpagesize.
10575 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10576 * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
10578 (Depends-on): Add getpagesize.
10579 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10580 * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
10582 (Depends-on): Add getpagesize.
10583 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10584 * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
10586 (Depends-on): Add getpagesize.
10587 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10589 2009-05-12 Bruno Haible <bruno@clisp.org>
10591 Tests for module 'alignof'.
10592 * modules/alignof-tests: New file.
10593 * tests/test-alignof.c: New file.
10595 2009-05-12 Bruno Haible <bruno@clisp.org>
10598 * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
10599 vendor compilers that are always correct.
10601 2009-05-12 Bruno Haible <bruno@clisp.org>
10603 Make the MAP_ANONYMOUS detection work on HP-UX 11.
10604 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
10605 not whether its fully works.
10607 2009-05-12 Bruno Haible <bruno@clisp.org>
10609 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
10611 2009-05-12 Jim Meyering <meyering@redhat.com>
10613 * top/maint.mk: Adjust backslash alignment.
10615 2009-05-11 Simon Josefsson <simon@josefsson.org>
10617 * top/maint.mk: Make $(srcdir)/build-aux configurable.
10619 2009-05-11 Eric Blake <ebb9@byu.net>
10621 argp: avoid undefined behavior
10622 * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
10625 2009-05-08 Simon Josefsson <simon@josefsson.org>
10627 * tests/test-vc-list-files-git.sh: Do git config of user.email and
10628 user.name to prevent git commit from complaining.
10630 2009-05-10 Bruno Haible <bruno@clisp.org>
10632 * gnulib-tool (func_import, func_create_testdir, copy-file): Change
10633 sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
10634 it rewrites every file name only once.
10635 Reported by Simon Josefsson. Helped by Ralf Wildenhues.
10637 2009-05-08 Bruno Haible <bruno@clisp.org>
10639 * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
10642 2009-05-08 Simon Josefsson <simon@josefsson.org>
10644 * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
10645 sockaddr_storage test.
10647 2009-05-07 Simon Josefsson <simon@josefsson.org>
10649 * modules/sys_socket (Makefile.am): Substitute
10650 HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof.
10651 * m4/sys_socket_h.m4: Check for sockaddr_storage.
10652 * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
10653 * tests/test-sys_socket.c: Check sockaddr_storage.
10655 2009-05-08 Bruno Haible <bruno@clisp.org>
10657 New module 'alignof'.
10658 * lib/alignof.h: New file.
10659 * modules/alignof: New file.
10661 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
10662 Bruno Haible <bruno@clisp.org>
10664 Fix test-file-has-acl on FreeBSD.
10665 * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
10666 mask is implicitly added.
10667 * tests/test-file-has-acl.c: Include <signal.h>.
10668 (main): Terminate the test after 5 seconds.
10669 * modules/acl-tests (configure.ac): Check for alarm function.
10671 2009-05-04 Bruno Haible <bruno@clisp.org>
10673 Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
10674 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
10675 * modules/errno (configure.ac): Drop AC_REQUIRE.
10676 * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
10677 * modules/multiarch (configure.ac): Drop AC_REQUIRE.
10679 2009-05-04 Simon Josefsson <simon@josefsson.org>
10681 * modules/glob-tests: New module.
10682 * tests/test-glob.c: Add.
10684 2009-05-04 Simon Josefsson <simon@josefsson.org>
10686 * modules/fnmatch-tests: New module.
10687 * tests/test-fnmatch.c: Add.
10689 2009-05-04 Eric Blake <ebb9@byu.net>
10691 maint: make the new no-submodule-changes rule VPATH-safe
10692 * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
10694 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
10695 Bruno Haible <bruno@clisp.org>
10697 acl: Fix infinite loop on FreeBSD.
10698 * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
10699 of return value from acl_get_entry.
10700 * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
10703 2009-05-03 Bruno Haible <bruno@clisp.org>
10705 * lib/acl-internal.h (acl_entries): Clarify return value.
10706 * lib/acl_entries.c (acl_entries): Likewise.
10708 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
10710 Bug fix in acl module.
10711 * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
10713 2009-05-03 Bruno Haible <bruno@clisp.org>
10715 Create gperf-generated file in the source dir, not in the build dir.
10716 * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
10717 iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
10718 * modules/unicase/locale-language (unicase/locale-languages.h):
10720 * modules/unicase/special-casing (unicase/special-casing-table.h):
10722 * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
10723 * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
10724 * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
10725 Reported by Ralf Wildenhues.
10727 2009-05-03 Bruno Haible <bruno@clisp.org>
10729 * modules/fnmatch (Description, configure.ac): Taken from
10731 * modules/fnmatch-posix: Turn into a symbolic reference to the
10732 'fnmatch' module, and deprecate.
10733 * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
10735 2009-05-03 Bruno Haible <bruno@clisp.org>
10737 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
10738 gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
10739 Reported by Ralf Wildenhues.
10741 2009-05-04 Simon Josefsson <simon@josefsson.org>
10743 * m4/fnmatch.m4: Fix fnmatch re-define.
10745 2009-04-27 David Bartley <dtbartle@csclub.uwaterloo.ca>
10747 priv-set: new module and tests; adapt write-any-file
10748 * lib/priv-set.c: New file.
10749 * lib/priv-set.h: New file.
10750 * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
10751 * lib/write-any-file.c: Simplify by using priv-set module.
10752 * m4/priv-set.m4: New file.
10753 * modules/priv-set: New file.
10754 * modules/unlinkdir: Add dependency on priv-set module.
10755 * modules/write-any-file: Likewise.
10757 Tests for module 'priv-set'.
10758 * modules/priv-set-tests: New file.
10759 * tests/test-priv-set.c: New file.
10761 2009-05-03 Jim Meyering <meyering@redhat.com>
10762 Bruno Haible <bruno@clisp.org>
10764 * lib/propername.c (proper_name_utf8): Ignore no-op translations;
10765 use the converted UTF-8 variant of the name instead.
10767 2009-05-03 Jim Meyering <meyering@redhat.com>
10769 tests: tighten some getdate tests
10770 * tests/test-getdate.c (main): Tighten tests: require equality,
10771 not just greater than. Set TZ envvar to UTC0.
10773 2009-05-03 Giuseppe Scrivano <gscrivano@gnu.org>
10775 getdate: correctly interpret "next monday" when run on a Monday
10776 * lib/getdate.y (get_date): Correct the calculation of tm_mday so
10777 that e.g., "next tues" (when run on a tuesday) results in a date
10778 that is one week in the future, and not today's date.
10779 I.e., add a week when the wday is the same as the current one.
10780 Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
10781 and earlier by Martin Bernreuther and Jan Minář.
10782 * tests/test-getdate.c (main): Check that "next DAY" is always in
10783 the future and that "last DAY" is always in the past.
10785 2009-05-02 Jim Meyering <meyering@redhat.com>
10787 build: ensure that a release build fails when a submodule is unclean
10788 * top/maint.mk (no-submodule-changes): New rule.
10789 (alpha beta major): Depend on it.
10791 2009-05-02 Bruno Haible <bruno@clisp.org>
10793 Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
10794 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
10795 shell variable gl_fnmatch_required to detect which variant is
10797 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
10798 gl_FUNC_FNMATCH_POSIX.
10799 * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
10800 exclude fnmatch-posix.
10802 2009-05-02 Bruno Haible <bruno@clisp.org>
10804 Relicense mbsrtowcs and strnlen1 under LGPLv2+.
10805 * modules/mbsrtowcs (License): Change to LGPLv2+.
10806 * modules/strnlen1 (License): Likewise.
10807 Reported by Simon Josefsson.
10809 2009-05-02 Bruno Haible <bruno@clisp.org>
10811 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
10813 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
10814 gnulib-tool was called with option --source-base=lib.
10816 2009-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10818 Use automake *-local hooks without commands, for extensibility.
10819 * modules/localcharset (Makefile.am): Rename install-exec-local
10820 rule to install-exec-localcharset, and make it a prerequisite of
10821 install-exec-local. Likewise, rename the uninstall-local rule to
10822 uninstall-localcharset, and make it a prerequisite of the former.
10824 2009-05-01 Bruno Haible <bruno@clisp.org>
10826 * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
10827 * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
10828 set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
10829 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
10830 * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
10831 * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
10832 m4/locale-zh.m4, m4/codeset.m4.
10834 * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
10835 set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
10836 * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
10839 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
10840 REPLACE_WCRTOMB if mbstate_t must be replaced.
10841 * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
10842 Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
10844 2009-05-01 Bruno Haible <bruno@clisp.org>
10846 Avoid compiler warnings when redefining macros defined by <libintl.h>.
10847 * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
10848 dngettext, dcngettext, textdomain, bindtextdomain,
10849 bind_textdomain_codeset): Undefine before redefining.
10851 2009-04-30 Bruno Haible <bruno@clisp.org>
10853 Fix bug introduced on 2009-04-25.
10854 * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
10855 gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
10856 * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
10858 * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
10860 * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
10862 Reported by Elbert_Pol <elbert.pol@gmail.com>.
10864 2009-04-28 Bruno Haible <bruno@clisp.org>
10867 * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
10868 * lib/uninorm.h (u*_normxfrm): Fix description of return value.
10869 * lib/unicase.h (u*_casexfrm): Likewise.
10870 Reported by Paolo Bonzini.
10872 2009-04-28 Bruno Haible <bruno@clisp.org>
10874 Fix a compilation error.
10875 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
10876 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
10877 Reported by Jim Meyering.
10879 2009-04-27 Bruno Haible <bruno@clisp.org>
10881 New module 'libunistring'.
10882 * modules/libunistring: New file.
10883 * m4/libunistring.m4: New file.
10884 * MODULES.html.sh (Unicode string functions): Add it.
10886 2009-04-27 Eric Blake <ebb9@byu.net>
10888 maint.mk: allow package-specific header to provide <config.h>
10889 * top/maint.mk (sc_require_config_h): New variable.
10890 (sc_require_config_h, sc_require_config_h_first): Use it.
10892 2009-04-27 Simon Josefsson <simon@josefsson.org>
10894 * top/maint.mk (sc_avoid_if_before_free): Except
10895 useless-if-before-free script.
10897 2009-04-27 Eric Blake <ebb9@byu.net>
10899 maintainer-makefile: depend on all required helper scripts
10900 * modules/maintainer-makefile (Depends-on): Add vc-list-files and
10901 useless-if-before-free.
10902 * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
10903 version, rather than assuming gnulib checkout is available.
10904 Reported by Simen Josefsson.
10906 2009-04-26 Bruno Haible <bruno@clisp.org>
10908 Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
10909 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
10912 2009-04-26 Bruno Haible <bruno@clisp.org>
10914 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
10915 * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
10916 AC_LIB_HAVE_LINKFLAGS.
10918 2009-04-26 Bruno Haible <bruno@clisp.org>
10920 Simplify calling convention of u*_conv_from_encoding.
10921 * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
10922 u32_conv_from_encoding): Expect a resultbuf argument and return the
10923 result directly as a pointer.
10924 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
10925 * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
10926 * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
10927 * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
10928 * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
10929 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
10931 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
10932 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
10933 * lib/vasnprintf.c (VASNPRINTF): Update.
10934 * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
10935 * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
10936 * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
10937 * NEWS: Mention the change.
10939 2009-04-26 Bruno Haible <bruno@clisp.org>
10941 Simplify calling convention of u*_conv_to_encoding.
10942 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
10943 u32_conv_to_encoding): Expect a resultbuf argument and return the
10944 result directly as a pointer.
10945 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10946 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
10947 freeing scaled_offsets if mem_iconveha failed.
10948 * lib/unicase/u-casexfrm.h (FUNC): Update.
10949 * lib/uninorm/u-normxfrm.h (FUNC): Update.
10950 * lib/vasnprintf.c (VASNPRINTF): Update.
10951 * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
10952 * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
10953 * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
10954 * NEWS: Mention the change.
10956 2009-04-26 Bruno Haible <bruno@clisp.org>
10958 Avoid test failures on AIX and OSF/1.
10959 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
10961 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10962 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
10964 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
10965 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
10966 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
10967 * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
10968 * doc/posix-functions/malloc.texi: Document the portability problem
10969 related to malloc(0).
10971 2009-04-26 Bruno Haible <bruno@clisp.org>
10973 * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
10974 * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
10975 * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
10977 2009-04-25 Bruno Haible <bruno@clisp.org>
10979 Avoid link error when creating a namespace clean library.
10980 * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
10981 as macro with arguments if already defined as an alias.
10982 * lib/signbitf.c (gl_signbitf): Don't undefine.
10983 * lib/signbitd.c (gl_signbitd): Don't undefine.
10984 * lib/signbitl.c (gl_signbitl): Don't undefine.
10986 2009-04-25 Jim Meyering <meyering@redhat.com>
10988 vc-list-files: fix another quoting bug
10989 * build-aux/vc-list-files: Avoid sed backslash expansion
10990 of pathological directory names.
10992 2009-04-25 Eric Blake <ebb9@byu.net>
10994 vc-list-files: fix shell quoting error
10995 * build-aux/vc-list-files: Protect against $ in $dir. Normalize
10998 2009-04-25 Jim Meyering <meyering@redhat.com>
11000 vc-list-files: restore lost functionality with subdir argument
11001 * build-aux/vc-list-files: When given a non-"." sub-directory
11002 argument, substitute the $dir/ prefix back onto each resulting name.
11003 Otherwise, coreutils' root_tests check would fail.
11005 2009-04-24 Eric Blake <ebb9@byu.net>
11007 vc-list-files: ignore git symlinks
11008 * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
11009 than ls-files, to ignore git symlinks.
11011 maint.mk: import improvements from m4
11012 * top/maint.mk (VC-tag): Use signing key from cfg.mk.
11013 (move_if_change): Delete unused macro.
11014 (news-date-check, vc-diff-check): Support VPATH builds.
11015 (announcement): Likewise. Split --bootstrap-tools list...
11016 (boostrap-tools): ...into separate list, which can be overridden
11018 (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
11019 requiring dependency on useless-if-before-free module.
11020 (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
11021 Support VPATH builds.
11023 2009-04-24 Jim Meyering <meyering@redhat.com>
11025 maint.mk: remove coreutils-specific rules and variables
11026 * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
11027 (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
11028 (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
11030 maint.mk: remove obsolete rule
11031 * top/maint.mk (rel-check): Remove rule.
11032 (WGET, WGETFLAGS): Remove now-unused variables.
11034 2009-04-24 Simon Josefsson <simon@josefsson.org>
11036 * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
11039 * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
11040 '$(PATH_SEPARATOR)' instead of ':'.
11042 2009-04-24 Simon Josefsson <simon@josefsson.org>
11044 * lib/getopt1.c (main): Use 'const' for static array.
11046 2009-04-24 Simon Josefsson <simon@josefsson.org>
11048 * top/maint.mk: Sync with coreutils.
11049 * NEWS: Explain incompatibilities.
11051 2009-04-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11052 Bruno Haible <bruno@clisp.org>
11054 Fix cross-compilation results.
11055 * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
11056 statement, as third argument of AC_TRY_RUN.
11057 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11058 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
11060 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11061 * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
11063 * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11064 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
11065 * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
11067 2009-04-20 Bruno Haible <bruno@clisp.org>
11069 Avoid test failure on mingw.
11070 * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
11072 2009-04-20 Bruno Haible <bruno@clisp.org>
11074 Avoid compilation error on mingw.
11075 * modules/localename-tests (Depends-on): Add locale.
11077 2009-04-19 Bruno Haible <bruno@clisp.org>
11079 Support for building a shared library on Windows platforms.
11080 * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
11081 (main): Test the presence of UNINORM_NFC here.
11082 * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
11083 (main): Test the presence of UNINORM_NFD here.
11084 * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
11085 (main): Test the presence of UNINORM_NFKC here.
11086 * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
11087 (main): Test the presence of UNINORM_NFKD here.
11089 2009-04-19 Bruno Haible <bruno@clisp.org>
11091 Avoid a compiler warning.
11092 * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
11093 Change type of variable 'sequence'.
11095 2009-04-19 Bruno Haible <bruno@clisp.org>
11097 * modules/configmake (Makefile.am): When the contents of configmake.h
11098 does not change, arrange to preserve its modification time.
11100 2009-04-17 Simon Josefsson <simon@josefsson.org>
11102 * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
11105 2009-04-16 Jim Meyering <meyering@redhat.com>
11107 useless-if-before-free: improve conversion code
11108 * build-aux/useless-if-before-free: Adjust code-in-comment to match
11109 "...!= 0" as well as "...!= NULL". emacs has one of the former.
11111 2009-04-14 Bruno Haible <bruno@clisp.org>
11113 * modules/fcntl (Depends-on): Add extensions.
11114 * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
11116 2009-04-12 Ben Pfaff <blp@gnu.org>
11118 Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
11119 * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
11121 2009-03-20 Ben Pfaff <blp@gnu.org>
11123 Make rename replace existing destinations on Windows.
11124 * m4/rename.m4: Add test for Mingw.
11125 * lib/rename.c: Add rename replacement that uses MoveFileEx with
11126 MOVEFILE_REPLACE_EXISTING to replace existing destination files.
11127 * doc/posix-functions/rename.texi: Document.
11129 2009-04-10 Bruno Haible <bruno@clisp.org>
11131 New include file "iconveh.h".
11132 * lib/iconveh.h: New file, extracted from lib/striconveh.h.
11133 * lib/striconveh.h: Include it.
11134 (enum iconv_ilseq_handler): Remove definition.
11135 * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
11137 * lib/striconveha.c: Include striconveh.h.
11138 * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
11139 * modules/striconveh (Files): Add lib/iconveh.h.
11140 * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
11143 2009-04-10 Bruno Haible <bruno@clisp.org>
11145 * lib/uniconv.h: Update comment.
11147 2009-04-10 Bruno Haible <bruno@clisp.org>
11149 * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
11151 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
11152 * lib/unistr/u16-mbtouc-aux.c: Likewise.
11153 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
11154 * lib/unistr/u8-mbtouc.c: Inside libunistring, include
11155 "unistring-notinline.h", so that the function gets defined always.
11156 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
11157 * lib/unistr/u8-uctomb.c: Likewise.
11158 * lib/unistr/u16-mbtouc.c: Likewise.
11159 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
11160 * lib/unistr/u16-uctomb.c: Likewise.
11161 * lib/unistr/u32-mbtouc.c: Likewise.
11162 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
11163 * lib/unistr/u32-uctomb.c: Likewise.
11165 2009-04-10 Bruno Haible <bruno@clisp.org>
11167 Mark 'utime' obsolete.
11168 * modules/utime (Status, Notice): New sections.
11169 Suggested by Jim Meyering.
11171 Fix cross-compile guess for utime test.
11172 * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
11174 * doc/posix-functions/utime.texi: Give more precisions.
11175 Reported by Jan <ipif@ymail.com>.
11177 2009-04-09 Kamil Dudka <kdudka@redhat.com>
11179 filevercmp: correct today's change
11180 * lib/filevercmp.c: Also handle coreutils' test inputs.
11181 * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
11183 Fix regression in 'filevercmp' module. Thanks Sven Joachim
11185 * lib/filevercmp.c: Special handle for "", "." and "..".
11186 * tests/test-filevercmp.c: Enlarge the set suite.
11188 2009-04-07 Jim Meyering <meyering@redhat.com>
11190 useless-if-before-free: show how to remove braced useless free, too
11191 * build-aux/useless-if-before-free: still only in a comment, though.
11193 2009-04-07 Reuben Thomas <rrt@sc3d.org>
11195 maint.mk: import changes to syntax-check macros from coreutils
11196 * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
11197 Use them in the relevant macros.
11199 2009-04-06 Bruno Haible <bruno@clisp.org>
11201 Fix unportable use of bit-fields.
11202 * lib/unicase/special-casing.h (struct special_casing_rule): Change the
11203 bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
11204 AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
11206 2009-04-06 Bruno Haible <bruno@clisp.org>
11208 Avoid test failures on AIX and OSF/1.
11209 * tests/unicase/test-u8-casefold.c (check): Account for the possibility
11210 that malloc(0) = NULL.
11211 * tests/unicase/test-u8-tolower.c (check): Likewise.
11212 * tests/unicase/test-u8-totitle.c (check): Likewise.
11213 * tests/unicase/test-u8-toupper.c (check): Likewise.
11214 * tests/unicase/test-u16-casefold.c (check): Likewise.
11215 * tests/unicase/test-u16-tolower.c (check): Likewise.
11216 * tests/unicase/test-u16-totitle.c (check): Likewise.
11217 * tests/unicase/test-u16-toupper.c (check): Likewise.
11218 * tests/unicase/test-u32-casefold.c (check): Likewise.
11219 * tests/unicase/test-u32-tolower.c (check): Likewise.
11220 * tests/unicase/test-u32-totitle.c (check): Likewise.
11221 * tests/unicase/test-u32-toupper.c (check): Likewise.
11222 * tests/uninorm/test-u8-nfc.c (check): Likewise.
11223 * tests/uninorm/test-u8-nfd.c (check): Likewise.
11224 * tests/uninorm/test-u8-nfkc.c (check): Likewise.
11225 * tests/uninorm/test-u8-nfkd.c (check): Likewise.
11226 * tests/uninorm/test-u16-nfc.c (check): Likewise.
11227 * tests/uninorm/test-u16-nfd.c (check): Likewise.
11228 * tests/uninorm/test-u16-nfkc.c (check): Likewise.
11229 * tests/uninorm/test-u16-nfkd.c (check): Likewise.
11230 * tests/uninorm/test-u32-nfc.c (check): Likewise.
11231 * tests/uninorm/test-u32-nfd.c (check): Likewise.
11232 * tests/uninorm/test-u32-nfkc.c (check): Likewise.
11233 * tests/uninorm/test-u32-nfkd.c (check): Likewise.
11235 2009-04-05 Bruno Haible <bruno@clisp.org>
11237 Work around an autoconf limitation.
11238 * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
11239 comment line if it would be longer than 3 KB.
11241 2009-04-05 Bruno Haible <bruno@clisp.org>
11243 Avoid test failure with libiconv-1.13.
11244 * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
11245 of the expected test results.
11247 2009-04-05 Bruno Haible <bruno@clisp.org>
11249 * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
11250 noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
11251 that it should be installed.
11253 2009-04-05 Bruno Haible <bruno@clisp.org>
11255 * gnulib-tool: New option --copy-file.
11256 (func_usage): Document it.
11257 (func_dest_tmpfilename): Moved out of func_import.
11258 (func_add_file, func_update_file): New functions, extracted from
11260 (func_import): Update.
11262 2009-04-05 Karl Berry <karl@gnu.org>
11264 * README: prominently mention gnulib-tool.
11265 Rearrange sections so getting the code is near the top.
11267 2009-04-05 Bruno Haible <bruno@clisp.org>
11269 * lib/unicase.h: Mention u*_cmp2.
11270 * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
11271 * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
11272 * lib/unicase/ulc-casecmp.c: Likewise.
11273 * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
11274 * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
11275 * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
11277 * modules/unicase/ulc-casecmp (Depends-on): Likewise.
11278 * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
11280 * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
11283 * lib/uninorm.h: Mention u*_cmp2.
11284 * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
11285 * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
11286 * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
11287 * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
11288 * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
11290 * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
11292 * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
11295 New module 'unistr/u32-cmp2'.
11296 * lib/unistr/u32-cmp2.c: New file.
11297 * modules/unistr/u32-cmp2: New file.
11299 New module 'unistr/u16-cmp2'.
11300 * lib/unistr/u16-cmp2.c: New file.
11301 * modules/unistr/u16-cmp2: New file.
11303 New module 'unistr/u8-cmp2'.
11304 * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
11305 * lib/unistr/u8-cmp2.c: New file.
11306 * lib/unistr/u-cmp2.h: New file.
11307 * modules/unistr/u8-cmp2: New file.
11309 2009-04-05 Bruno Haible <bruno@clisp.org>
11311 * lib/unictype.h (uc_property_is_valid): New macro.
11312 * tests/unictype/test-pr_byname.c (main): Use it.
11314 * lib/unistr.h: Doc fixes.
11315 * lib/uniconv.h: Doc fixes.
11316 * lib/unictype.h: Doc fixes.
11318 2009-04-03 Paul Eggert <eggert@cs.ucla.edu>
11320 Port coreutils 7.2 to Solaris 8.
11322 * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
11323 * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
11324 for Solaris 8. This is a bit of a hack, as it means it's the
11325 caller's responsibility to add -lnsl if needed, but most likely it
11326 won't be needed since only getaddrinfo uses this and getaddrinfo
11327 isn't needed on Solaris 8.
11329 * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
11330 problem to Solaris 8 encountered with coreutils 7.2, which
11331 resulted in a message "fnmatch.c:292: warning: passing argument 4
11332 of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit
11333 at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
11335 2009-04-03 Simon Josefsson <simon@josefsson.org>
11337 * m4/ld-version-script.m4: Add FIXME comment.
11339 2009-04-02 Simon Josefsson <simon@josefsson.org>
11341 * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
11342 SOVERSION variable.
11344 2009-04-02 Bruno Haible <bruno@clisp.org>
11346 * Makefile (info, html, dvi, pdf): Combine the rules.
11347 Suggested by Jim Meyering.
11349 2009-04-01 Bruno Haible <bruno@clisp.org>
11351 * Makefile (info, html, dvi, pdf): New targets.
11352 Reported by Reuben Thomas <rrt@sc3d.org>.
11354 2009-04-01 Bruno Haible <bruno@clisp.org>
11356 * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
11357 can be put into PATH.
11358 Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
11360 2009-04-01 Bruno Haible <bruno@clisp.org>
11362 * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
11364 2009-04-01 Bruno Haible <bruno@clisp.org>
11366 Rename module 'visibility'.
11367 * modules/lib-symbol-visibility: Renamed from modules/visibility.
11368 * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
11369 * doc/gnulib.texi: Update.
11370 * MODULES.html.sh (Misc): Update.
11371 * NEWS: Mention the change.
11373 2009-04-01 Simon Josefsson <simon@josefsson.org>
11375 * modules/lib-msvc-compat: New module. Thanks to Bruno Haible
11376 <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
11377 Eric Blake <ebb9@byu.net> for review.
11378 * MODULES.html.sh: Add lib-msvc-compat.
11379 * doc/gnulib.texi: Link to new section.
11380 * m4/ld-output-def.m4: New file.
11381 * doc/ld-output-def.texi: New file.
11383 2009-04-01 Simon Josefsson <simon@josefsson.org>
11385 Rename ld-version-script to lib-symbol-versions. Suggested by
11386 Bruno Haible <bruno@clisp.org>.
11387 * modules/ld-version-script: Renamed to lib-symbol-versions.
11388 * doc/ld-version-script.texi: Fix module name.
11389 * MODULES.html.sh: Add lib-symbol-versions.
11391 2009-03-31 Simon Josefsson <simon@josefsson.org>
11393 * modules/u64-tests: New file.
11394 * tests/test-u64.c: New file.
11396 2009-03-04 Simon Josefsson <simon@josefsson.org>
11398 * MODULES.html.sh: Mention u64.
11399 * modules/u64: New module.
11400 * modules/crypto/sha512: Depend on u64 module instead of providing
11403 2009-03-27 Eric Blake <ebb9@byu.net>
11405 test-strerror: make debugging EAI_SYSTEM easier
11406 * modules/getaddrinfo-tests (Depends-on): Add strerror.
11407 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
11408 failure was EAI_SYSTEM.
11410 2009-03-25 Bruno Haible <bruno@clisp.org>
11412 Fix a problem with --enable-relocatable on Solaris 7.
11413 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
11416 2009-03-25 Eric Blake <ebb9@byu.net>
11418 test-sockets: avoid gcc warning
11419 * tests/test-sockets.c (main): Silence compiler warning.
11421 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
11423 New modules nproc, pthread, contributed by Glen Lenker.
11425 * MODULES.html.sh: Add pthread, nproc.
11426 * lib/nproc.c: New file.
11427 * lib/nproc.h: New file.
11428 * lib/pthread.in.h: New file.
11429 * m4/pthread.m4: New file.
11430 * modules/nproc: New file.
11431 * modules/pthread: New file.
11433 2009-03-24 Simon Josefsson <simon@josefsson.org>
11435 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
11438 2009-03-24 Kamil Dudka <kdudka@redhat.com>
11440 filevercmp: handle simple~ and numbered.~3~ backup suffixes
11441 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
11442 * tests/test-filevercmp.c: Add tests for backup suffixes.
11444 2009-03-24 Simon Josefsson <simon@josefsson.org>
11446 * modules/stdlib (Depends-on): Add stdint, needed when defining
11447 struct random_data on, for example, HP-UX 10.20. Reported by
11448 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11450 2009-03-24 Simon Josefsson <simon@josefsson.org>
11452 * lib/readline.c (readline): Call fflush on stdout after printing
11455 2009-03-20 Bruno Haible <bruno@clisp.org>
11457 Remove dependency from 'close' module to -lws2_32 on native Windows.
11458 * lib/close-hook.h: New file.
11459 * lib/close-hook.c: New file.
11460 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
11462 (_gl_close_fd_maybe_socket): Remove function.
11463 (rpl_close): Invoke execute_all_close_hooks instead of
11464 _gl_close_fd_maybe_socket.
11465 * lib/sockets.c: Include close-hook.h, w32sock.h.
11466 (close_fd_maybe_socket): New function, essentially from lib/close.c.
11467 (close_sockets_hook): New variable.
11468 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
11469 (gl_sockets_cleanup): Unregister it.
11470 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
11471 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
11472 * modules/close-hook: New file.
11473 * modules/close (Files): Remove lib/w32sock.h.
11474 (Depends-on): Add close-hook.
11475 (Link): Remove section.
11476 * modules/sockets (Files): Add lib/w32sock.h.
11477 (Depends-on): Add close-hook.
11478 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
11480 * NEWS: Mention that LIB_CLOSE is gone.
11482 2009-03-23 Eric Blake <ebb9@byu.net>
11484 signal-tests: test previous patch
11485 * tests/test-signal.c: New file.
11486 * modules/signal-tests: Likewise.
11488 signal.h: always support 'volatile sig_atomic_t'
11489 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
11490 (gl_SIGNAL_H_DEFAULTS): Add a default.
11491 * modules/signal (Makefile.am): Substitute if needed.
11492 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
11493 users can blindly add volatile.
11494 * doc/posix-headers/signal.texi (signal.h): Document it.
11495 Reported by Matthew Woehlke.
11497 2009-03-23 Jim Meyering <meyering@redhat.com>
11499 pathmax: PATH_MAX: use pathconf only when available
11500 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
11501 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
11502 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
11503 This avoids a link failure in a PSP cross-compilation environment
11504 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
11506 * lib/vasnprintf.c (divide): Fix typo in comment.
11508 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11510 * gnulib-tool (func_filter_filelist): Fix comment.
11512 2009-03-20 Bruno Haible <bruno@clisp.org>
11514 Make sockets.h self-contained.
11515 * lib/sockets.c: Include sockets.h first.
11516 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
11518 2009-03-19 Eric Blake <ebb9@byu.net>
11520 doc: mention more functions added in cygwin 1.7.0
11521 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
11523 * doc/posix-functions/log2f.texi: Likewise.
11525 2009-03-19 Jim Meyering <meyering@redhat.com>
11527 fsusage: avoid syntax error due to statement-before-declaration
11528 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
11529 after all declarations. Reported by Matthew Woehlke in
11530 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
11532 2009-03-18 Eric Blake <ebb9@byu.net>
11534 build-aux/compile: sync from automake
11535 * build-aux/compile: New file, from automake.
11536 * config/srclist.txt: Mention build-aux/compile.
11538 2009-03-17 Bruno Haible <bruno@clisp.org>
11540 * lib/git-merge-changelog.c: Fix typo in comment.
11541 Reported by Reuben Thomas <rrt@sc3d.org>.
11543 2009-03-17 Reuben Thomas <rrt@sc3d.org>
11545 * m4/regex.m4: update and improve help for
11546 --without-included-regex.
11548 2009-03-17 Simon Josefsson <simon@josefsson.org>
11550 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
11551 failure on missing include files.
11553 2009-03-17 Eric Blake <ebb9@byu.net>
11555 doc: mention more functions added in cygwin 1.7.0
11556 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
11558 * doc/posix-functions/fwscanf.texi: Likewise.
11559 * doc/posix-functions/swprintf.texi: Likewise.
11560 * doc/posix-functions/swscanf.texi: Likewise.
11561 * doc/posix-functions/vfwprintf.texi: Likewise.
11562 * doc/posix-functions/vfwscanf.texi: Likewise.
11563 * doc/posix-functions/vswprintf.texi: Likewise.
11564 * doc/posix-functions/vswscanf.texi: Likewise.
11565 * doc/posix-functions/vwprintf.texi: Likewise.
11566 * doc/posix-functions/vwscanf.texi: Likewise.
11567 * doc/posix-functions/wcscasecmp.texi: Likewise.
11568 * doc/posix-functions/wcsdup.texi: Likewise.
11569 * doc/posix-functions/wcsftime.texi: Likewise.
11570 * doc/posix-functions/wcsncasecmp.texi: Likewise.
11571 * doc/posix-functions/wprintf.texi: Likewise.
11572 * doc/posix-functions/wscanf.texi: Likewise.
11573 * doc/glibc-functions/gethostbyname2.texi: Likewise.
11575 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11577 maint.mk: really add $(AM_MAKEFLAGS)
11578 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
11579 was inadvertently omitted in the last commit.
11580 Spotted by Bruno Haible.
11582 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
11583 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
11584 $(AM_MAKEFLAGS)' rather than plain `make'.
11586 gnulib-tool: execute $MAKE not make
11587 * gnulib-tool: Default $MAKE to 'make'.
11588 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
11589 than make. Initialize $MAKE in the do-autobuild script.
11591 gnulib-tool: use $MAKE not make in generated files
11592 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
11593 make, in generated files. Initialize $MAKE in the do-autobuild
11596 * top/GNUmakefile (_have-git-version-gen): Fix typo.
11598 GNUmakefile: disable parallelism only for multiple, recursive targets
11599 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
11600 additions in the Makefile.
11601 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
11603 (.NOTPARALLEL): Only disable parallel builds if multiple targets
11604 are listed on the command line and at least one of them is
11605 listed in $(ALL_RECURSIVE_TARGETS).
11607 2009-03-14 Bruno Haible <bruno@clisp.org>
11609 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
11610 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
11611 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
11612 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
11613 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
11614 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
11615 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
11617 * modules/unistr/u8-strchr (Depends-on): Likewise.
11618 * modules/unistr/u8-strrchr (Depends-on): Likewise.
11619 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
11621 * modules/unistr/u16-strchr (Depends-on): Likewise.
11622 * modules/unistr/u16-strrchr (Depends-on): Likewise.
11624 2009-03-12 Bruno Haible <bruno@clisp.org>
11626 Work around select() bug on Interix 3.5.
11627 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
11628 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
11629 * m4/select.m4: New file.
11630 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
11631 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
11632 * modules/select (Files): Add m4/select.m4.
11633 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
11634 * modules/nanosleep (Depends-on): Add select.
11635 * modules/poll (Depends-on): Likewise.
11636 * doc/posix-functions/select.texi: Mention the Interix bug.
11637 Reported by Markus Duft <mduft@gentoo.org>.
11639 * lib/select.c: Renamed from lib/winsock-select.c.
11640 * modules/select (Files): Add lib/select.c, remove
11641 lib/winsock-select.c.
11642 (configure.ac): Update.
11644 2009-03-12 Jim Meyering <meyering@redhat.com>
11646 avoid gcc warnings about unused macro definitions
11647 * lib/readtokens.c (STREQ): Remove unused definition.
11648 * lib/xmalloc.c (SIZE_MAX): Likewise.
11649 * lib/openat-die.c (N_): Likewise.
11650 * lib/mountlist.c (SIZE_MAX): Remove definition.
11651 Instead, include <stdint.h>.
11652 * lib/readutmp.c: Likewise.
11653 * modules/readutmp (Depends-on): Add stdint.
11654 * modules/mountlist (Depends-on): Add stdint.
11655 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
11657 2009-03-10 Bruno Haible <bruno@clisp.org>
11659 Tests for module 'mbmemcasecoll'.
11660 * modules/mbmemcasecoll-tests: New file.
11661 * tests/test-mbmemcasecoll1.sh: New file.
11662 * tests/test-mbmemcasecoll2.sh: New file.
11663 * tests/test-mbmemcasecoll3.sh: New file.
11664 * tests/test-mbmemcasecoll.c: New file.
11666 New module 'mbmemcasecoll'.
11667 * lib/mbmemcasecoll.h: New file.
11668 * lib/mbmemcasecoll.c: New file.
11669 * modules/mbmemcasecoll: New file.
11671 * tests/test-mbmemcasecmp.h: New file, extracted from
11672 tests/test-mbmemcasecmp.c.
11673 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
11674 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
11676 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
11678 2009-03-09 Bruno Haible <bruno@clisp.org>
11680 Tests for module 'mbmemcasecmp'.
11681 * modules/mbmemcasecmp-tests: New file.
11682 * tests/test-mbmemcasecmp1.sh: New file.
11683 * tests/test-mbmemcasecmp2.sh: New file.
11684 * tests/test-mbmemcasecmp3.sh: New file.
11685 * tests/test-mbmemcasecmp.c: New file.
11687 New module 'mbmemcasecmp'.
11688 * lib/mbmemcasecmp.h: New file.
11689 * lib/mbmemcasecmp.c: New file.
11690 * modules/mbmemcasecmp: New file.
11692 2009-03-09 Bruno Haible <bruno@clisp.org>
11694 Tests for module 'unicase/ulc-casecoll'.
11695 * modules/unicase/ulc-casecoll-tests: New file.
11696 * tests/unicase/test-ulc-casecoll1.sh: New file.
11697 * tests/unicase/test-ulc-casecoll2.sh: New file.
11698 * tests/unicase/test-ulc-casecoll.c: New file.
11700 New module 'unicase/ulc-casecoll'.
11701 * lib/unicase.h (ulc_casecoll): New declaration.
11702 * lib/unicase/ulc-casecoll.c: New file.
11703 * modules/unicase/ulc-casecoll: New file.
11705 New module 'unicase/ulc-casexfrm'.
11706 * lib/unicase.h (ulc_casexfrm): New declaration.
11707 * lib/unicase/ulc-casexfrm.c: New file.
11708 * modules/unicase/ulc-casexfrm: New file.
11710 2009-03-09 Bruno Haible <bruno@clisp.org>
11712 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
11715 * m4/mbscasecmp.m4: Remove file.
11716 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
11717 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
11719 * m4/mbscasestr.m4: Remove file.
11720 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
11721 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
11723 * m4/mbschr.m4: Remove file.
11724 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
11725 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
11727 * m4/mbscspn.m4: Remove file.
11728 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
11729 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
11731 * m4/mbslen.m4: Remove file.
11732 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
11733 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
11735 * m4/mbsncasecmp.m4: Remove file.
11736 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
11737 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
11739 * m4/mbsnlen.m4: Remove file.
11740 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
11741 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
11743 * m4/mbspbrk.m4: Remove file.
11744 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
11745 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
11747 * m4/mbspcasecmp.m4: Remove file.
11748 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
11749 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
11751 * m4/mbsrchr.m4: Remove file.
11752 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
11753 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
11755 * m4/mbssep.m4: Remove file.
11756 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
11757 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
11759 * m4/mbsspn.m4: Remove file.
11760 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
11761 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
11763 * m4/mbsstr.m4: Remove file.
11764 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
11765 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
11767 * m4/mbstok_r.m4: Remove file.
11768 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
11769 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
11771 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
11773 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
11774 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
11776 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
11778 2009-03-08 Bruno Haible <bruno@clisp.org>
11780 Tests for module 'unicase/ulc-casecmp'.
11781 * modules/unicase/ulc-casecmp-tests: New file.
11782 * tests/unicase/test-ulc-casecmp1.sh: New file.
11783 * tests/unicase/test-ulc-casecmp2.sh: New file.
11784 * tests/unicase/test-ulc-casecmp.c: New file.
11786 New module 'unicase/ulc-casecmp'.
11787 * lib/unicase.h (ulc_casecmp): New declaration.
11788 * lib/unicase/ulc-casecmp.c: New file.
11789 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
11790 'const SRC_UNIT *'.
11791 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
11792 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
11793 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
11794 * modules/unicase/ulc-casecmp: New file.
11796 Tests for module 'unicase/u32-is-cased'.
11797 * modules/unicase/u32-is-cased-tests: New file.
11798 * tests/unicase/test-u32-is-cased.c: New file.
11800 Tests for module 'unicase/u16-is-cased'.
11801 * modules/unicase/u16-is-cased-tests: New file.
11802 * tests/unicase/test-u16-is-cased.c: New file.
11804 Tests for module 'unicase/u8-is-cased'.
11805 * modules/unicase/u8-is-cased-tests: New file.
11806 * tests/unicase/test-u8-is-cased.c: New file.
11807 * tests/unicase/test-is-cased.h: New file.
11809 New module 'unicase/u32-is-cased'.
11810 * lib/unicase/u32-is-cased.c: New file.
11811 * modules/unicase/u32-is-cased: New file.
11813 New module 'unicase/u16-is-cased'.
11814 * lib/unicase/u16-is-cased.c: New file.
11815 * modules/unicase/u16-is-cased: New file.
11817 New module 'unicase/u8-is-cased'.
11818 * lib/unicase/u8-is-cased.c: New file.
11819 * lib/unicase/u-is-cased.h: New file.
11820 * modules/unicase/u8-is-cased: New file.
11822 Tests for module 'unicase/u32-is-casefolded'.
11823 * modules/unicase/u32-is-casefolded-tests: New file.
11824 * tests/unicase/test-u32-is-casefolded.c: New file.
11826 Tests for module 'unicase/u16-is-casefolded'.
11827 * modules/unicase/u16-is-casefolded-tests: New file.
11828 * tests/unicase/test-u16-is-casefolded.c: New file.
11830 Tests for module 'unicase/u8-is-casefolded'.
11831 * modules/unicase/u8-is-casefolded-tests: New file.
11832 * tests/unicase/test-u8-is-casefolded.c: New file.
11833 * tests/unicase/test-is-casefolded.h: New file.
11835 New module 'unicase/u32-is-casefolded'.
11836 * lib/unicase/u32-is-casefolded.c: New file.
11837 * modules/unicase/u32-is-casefolded: New file.
11839 New module 'unicase/u16-is-casefolded'.
11840 * lib/unicase/u16-is-casefolded.c: New file.
11841 * modules/unicase/u16-is-casefolded: New file.
11843 New module 'unicase/u8-is-casefolded'.
11844 * lib/unicase/u8-is-casefolded.c: New file.
11845 * modules/unicase/u8-is-casefolded: New file.
11847 Tests for module 'unicase/u32-is-titlecase'.
11848 * modules/unicase/u32-is-titlecase-tests: New file.
11849 * tests/unicase/test-u32-is-titlecase.c: New file.
11851 Tests for module 'unicase/u16-is-titlecase'.
11852 * modules/unicase/u16-is-titlecase-tests: New file.
11853 * tests/unicase/test-u16-is-titlecase.c: New file.
11855 Tests for module 'unicase/u8-is-titlecase'.
11856 * modules/unicase/u8-is-titlecase-tests: New file.
11857 * tests/unicase/test-u8-is-titlecase.c: New file.
11858 * tests/unicase/test-is-titlecase.h: New file.
11860 New module 'unicase/u32-is-titlecase'.
11861 * lib/unicase/u32-is-titlecase.c: New file.
11862 * modules/unicase/u32-is-titlecase: New file.
11864 New module 'unicase/u16-is-titlecase'.
11865 * lib/unicase/u16-is-titlecase.c: New file.
11866 * modules/unicase/u16-is-titlecase: New file.
11868 New module 'unicase/u8-is-titlecase'.
11869 * lib/unicase/u8-is-titlecase.c: New file.
11870 * modules/unicase/u8-is-titlecase: New file.
11872 Tests for module 'unicase/u32-is-lowercase'.
11873 * modules/unicase/u32-is-lowercase-tests: New file.
11874 * tests/unicase/test-u32-is-lowercase.c: New file.
11876 Tests for module 'unicase/u16-is-lowercase'.
11877 * modules/unicase/u16-is-lowercase-tests: New file.
11878 * tests/unicase/test-u16-is-lowercase.c: New file.
11880 Tests for module 'unicase/u8-is-lowercase'.
11881 * modules/unicase/u8-is-lowercase-tests: New file.
11882 * tests/unicase/test-u8-is-lowercase.c: New file.
11883 * tests/unicase/test-is-lowercase.h: New file.
11885 New module 'unicase/u32-is-lowercase'.
11886 * lib/unicase/u32-is-lowercase.c: New file.
11887 * modules/unicase/u32-is-lowercase: New file.
11889 New module 'unicase/u16-is-lowercase'.
11890 * lib/unicase/u16-is-lowercase.c: New file.
11891 * modules/unicase/u16-is-lowercase: New file.
11893 New module 'unicase/u8-is-lowercase'.
11894 * lib/unicase/u8-is-lowercase.c: New file.
11895 * modules/unicase/u8-is-lowercase: New file.
11897 Tests for module 'unicase/u32-is-uppercase'.
11898 * modules/unicase/u32-is-uppercase-tests: New file.
11899 * tests/unicase/test-u32-is-uppercase.c: New file.
11901 Tests for module 'unicase/u16-is-uppercase'.
11902 * modules/unicase/u16-is-uppercase-tests: New file.
11903 * tests/unicase/test-u16-is-uppercase.c: New file.
11905 Tests for module 'unicase/u8-is-uppercase'.
11906 * modules/unicase/u8-is-uppercase-tests: New file.
11907 * tests/unicase/test-u8-is-uppercase.c: New file.
11908 * tests/unicase/test-is-uppercase.h: New file.
11910 New module 'unicase/u32-is-uppercase'.
11911 * lib/unicase/u32-is-uppercase.c: New file.
11912 * modules/unicase/u32-is-uppercase: New file.
11914 New module 'unicase/u16-is-uppercase'.
11915 * lib/unicase/u16-is-uppercase.c: New file.
11916 * modules/unicase/u16-is-uppercase: New file.
11918 New module 'unicase/u8-is-uppercase'.
11919 * lib/unicase/u8-is-uppercase.c: New file.
11920 * modules/unicase/u8-is-uppercase: New file.
11922 New module 'unicase/u32-is-invariant'.
11923 * lib/unicase/u32-is-invariant.c: New file.
11924 * modules/unicase/u32-is-invariant: New file.
11926 New module 'unicase/u16-is-invariant'.
11927 * lib/unicase/u16-is-invariant.c: New file.
11928 * modules/unicase/u16-is-invariant: New file.
11930 New module 'unicase/u8-is-invariant'.
11931 * lib/unicase/u8-is-invariant.c: New file.
11932 * lib/unicase/invariant.h: New file.
11933 * lib/unicase/u-is-invariant.h: New file.
11934 * modules/unicase/u8-is-invariant: New file.
11936 Tests for module 'unicase/u32-casecoll'.
11937 * modules/unicase/u32-casecoll-tests: New file.
11938 * tests/unicase/test-u32-casecoll.c: New file.
11940 Tests for module 'unicase/u16-casecoll'.
11941 * modules/unicase/u16-casecoll-tests: New file.
11942 * tests/unicase/test-u16-casecoll.c: New file.
11944 Tests for module 'unicase/u8-casecoll'.
11945 * modules/unicase/u8-casecoll-tests: New file.
11946 * tests/unicase/test-u8-casecoll.c: New file.
11948 New module 'unicase/u32-casecoll'.
11949 * lib/unicase/u32-casecoll.c: New file.
11950 * modules/unicase/u32-casecoll: New file.
11952 New module 'unicase/u16-casecoll'.
11953 * lib/unicase/u16-casecoll.c: New file.
11954 * modules/unicase/u16-casecoll: New file.
11956 New module 'unicase/u8-casecoll'.
11957 * lib/unicase/u8-casecoll.c: New file.
11958 * lib/unicase/u-casecoll.h: New file.
11959 * modules/unicase/u8-casecoll: New file.
11961 New module 'unicase/u32-casexfrm'.
11962 * lib/unicase/u32-casexfrm.c: New file.
11963 * modules/unicase/u32-casexfrm: New file.
11965 New module 'unicase/u16-casexfrm'.
11966 * lib/unicase/u16-casexfrm.c: New file.
11967 * modules/unicase/u16-casexfrm: New file.
11969 New module 'unicase/u8-casexfrm'.
11970 * lib/unicase/u8-casexfrm.c: New file.
11971 * lib/unicase/u-casexfrm.h: New file.
11972 * modules/unicase/u8-casexfrm: New file.
11974 Tests for module 'unicase/u32-casecmp'.
11975 * modules/unicase/u32-casecmp-tests: New file.
11976 * tests/unicase/test-u32-casecmp.c: New file.
11978 Tests for module 'unicase/u16-casecmp'.
11979 * modules/unicase/u16-casecmp-tests: New file.
11980 * tests/unicase/test-u16-casecmp.c: New file.
11982 Tests for module 'unicase/u8-casecmp'.
11983 * modules/unicase/u8-casecmp-tests: New file.
11984 * tests/unicase/test-u8-casecmp.c: New file.
11985 * tests/unicase/test-casecmp.h: New file.
11987 New module 'unicase/u32-casecmp'.
11988 * lib/unicase/u32-casecmp.c: New file.
11989 * modules/unicase/u32-casecmp: New file.
11991 New module 'unicase/u16-casecmp'.
11992 * lib/unicase/u16-casecmp.c: New file.
11993 * modules/unicase/u16-casecmp: New file.
11995 New module 'unicase/u8-casecmp'.
11996 * lib/unicase/u8-casecmp.c: New file.
11997 * lib/unicase/u-casecmp.h: New file.
11998 * modules/unicase/u8-casecmp: New file.
12000 Tests for module 'unicase/u32-casefold'.
12001 * modules/unicase/u32-casefold-tests: New file.
12002 * tests/unicase/test-u32-casefold.c: New file.
12004 Tests for module 'unicase/u16-casefold'.
12005 * modules/unicase/u16-casefold-tests: New file.
12006 * tests/unicase/test-u16-casefold.c: New file.
12008 Tests for module 'unicase/u8-casefold'.
12009 * modules/unicase/u8-casefold-tests: New file.
12010 * tests/unicase/test-u8-casefold.c: New file.
12012 New module 'unicase/u32-casefold'.
12013 * lib/unicase/u32-casefold.c: New file.
12014 * modules/unicase/u32-casefold: New file.
12016 New module 'unicase/u16-casefold'.
12017 * lib/unicase/u16-casefold.c: New file.
12018 * modules/unicase/u16-casefold: New file.
12020 New module 'unicase/u8-casefold'.
12021 * lib/unicase/u8-casefold.c: New file.
12022 * lib/unicase/u-casefold.h: New file.
12023 * modules/unicase/u8-casefold: New file.
12025 New module 'unicase/tocasefold'.
12026 * lib/unicase/casefold.h: New file.
12027 * lib/unicase/tocasefold.c: New file.
12028 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
12029 * modules/unicase/tocasefold: New file.
12031 Tests for module 'unicase/u32-totitle'.
12032 * modules/unicase/u32-totitle-tests: New file.
12033 * tests/unicase/test-u32-totitle.c: New file.
12035 Tests for module 'unicase/u16-totitle'.
12036 * modules/unicase/u16-totitle-tests: New file.
12037 * tests/unicase/test-u16-totitle.c: New file.
12039 Tests for module 'unicase/u8-totitle'.
12040 * modules/unicase/u8-totitle-tests: New file.
12041 * tests/unicase/test-u8-totitle.c: New file.
12043 New module 'unicase/u32-totitle'.
12044 * lib/unicase/u32-totitle.c: New file.
12045 * modules/unicase/u32-totitle: New file.
12047 New module 'unicase/u16-totitle'.
12048 * lib/unicase/u16-totitle.c: New file.
12049 * modules/unicase/u16-totitle: New file.
12051 New module 'unicase/u8-totitle'.
12052 * lib/unicase/u8-totitle.c: New file.
12053 * lib/unicase/u-totitle.h: New file.
12054 * modules/unicase/u8-totitle: New file.
12056 Tests for module 'unicase/u32-tolower'.
12057 * modules/unicase/u32-tolower-tests: New file.
12058 * tests/unicase/test-u32-tolower.c: New file.
12060 Tests for module 'unicase/u16-tolower'.
12061 * modules/unicase/u16-tolower-tests: New file.
12062 * tests/unicase/test-u16-tolower.c: New file.
12064 Tests for module 'unicase/u8-tolower'.
12065 * modules/unicase/u8-tolower-tests: New file.
12066 * tests/unicase/test-u8-tolower.c: New file.
12068 New module 'unicase/u32-tolower'.
12069 * lib/unicase/u32-tolower.c: New file.
12070 * modules/unicase/u32-tolower: New file.
12072 New module 'unicase/u16-tolower'.
12073 * lib/unicase/u16-tolower.c: New file.
12074 * modules/unicase/u16-tolower: New file.
12076 New module 'unicase/u8-tolower'.
12077 * lib/unicase/u8-tolower.c: New file.
12078 * modules/unicase/u8-tolower: New file.
12080 Tests for module 'unicase/u32-toupper'.
12081 * modules/unicase/u32-toupper-tests: New file.
12082 * tests/unicase/test-u32-toupper.c: New file.
12084 Tests for module 'unicase/u16-toupper'.
12085 * modules/unicase/u16-toupper-tests: New file.
12086 * tests/unicase/test-u16-toupper.c: New file.
12088 Tests for module 'unicase/u8-toupper'.
12089 * modules/unicase/u8-toupper-tests: New file.
12090 * tests/unicase/test-u8-toupper.c: New file.
12092 New module 'unicase/u32-toupper'.
12093 * lib/unicase/u32-toupper.c: New file.
12094 * modules/unicase/u32-toupper: New file.
12096 New module 'unicase/u16-toupper'.
12097 * lib/unicase/u16-toupper.c: New file.
12098 * modules/unicase/u16-toupper: New file.
12100 New module 'unicase/u8-toupper'.
12101 * lib/unicase/u8-toupper.c: New file.
12102 * modules/unicase/u8-toupper: New file.
12104 New module 'unicase/u32-casemap'.
12105 * lib/unicase/u32-casemap.c: New file.
12106 * modules/unicase/u32-casemap: New file.
12108 New module 'unicase/u16-casemap'.
12109 * lib/unicase/u16-casemap.c: New file.
12110 * modules/unicase/u16-casemap: New file.
12112 New module 'unicase/u8-casemap'.
12113 * lib/unicase/unicasemap.h: New file.
12114 * lib/unicase/u8-casemap.c: New file.
12115 * lib/unicase/u-casemap.h: New file.
12116 * modules/unicase/u8-casemap: New file.
12118 New module 'unicase/special-casing'.
12119 * lib/unicase/special-casing.h: New file.
12120 * lib/unicase/special-casing.c: New file.
12121 * lib/unicase/special-casing-table.gperf: New file, generated by
12123 * modules/unicase/special-casing: New file.
12125 Tests for module 'unicase/locale-language'.
12126 * modules/unicase/locale-language-tests: New file.
12127 * tests/unicase/test-locale-language.sh: New file.
12128 * tests/unicase/test-locale-language.c: New file.
12130 New module 'unicase/locale-language'.
12131 * lib/unicase/locale-language.c: New file.
12132 * lib/unicase/locale-languages.gperf: New file.
12133 * modules/unicase/locale-language: New file.
12135 Generate more tables for case conversion and case folding.
12136 * lib/gen-uni-tables.c (SCC_*): New enum items.
12137 (struct special_casing_rule): New type.
12138 (casing_rules, num_casing_rules, allocated_casing_rules): New
12140 (add_casing_rule, fill_casing_rules): New functions.
12141 (struct casefold_rule): New type.
12142 (casefolding_rules, num_casefolding_rules,
12143 allocated_casefolding_rules): New variables.
12144 (fill_casefolding_rules): New function.
12145 (unicode_casefold): New variable.
12146 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
12147 sort_casing_rules, output_casing_rules): New functions.
12148 (main): Accept to more arguments: SpecialCasing.txt and
12149 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
12150 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
12151 Output mapping for casefolding.
12153 * lib/unicase.h: Include stdbool.h, uninorm.h.
12154 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
12155 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
12156 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
12158 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
12160 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
12161 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
12163 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
12164 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
12165 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
12166 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
12168 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
12170 2009-03-08 Bruno Haible <bruno@clisp.org>
12172 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
12173 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
12174 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
12175 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
12177 2009-03-07 Bruno Haible <bruno@clisp.org>
12179 Adjust u*_normcmp, u*_normcoll API.
12180 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
12181 u16_normcoll, u32_normcoll): Change failure conventions.
12182 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
12183 errno and return -1.
12184 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
12186 2009-03-07 Bruno Haible <bruno@clisp.org>
12188 Tests for module 'uninorm/u32-normcoll'.
12189 * modules/uninorm/u32-normcoll-tests: New file.
12190 * tests/uninorm/test-u32-normcoll.c: New file.
12192 Tests for module 'uninorm/u16-normcoll'.
12193 * modules/uninorm/u16-normcoll-tests: New file.
12194 * tests/uninorm/test-u16-normcoll.c: New file.
12196 Tests for module 'uninorm/u8-normcoll'.
12197 * modules/uninorm/u8-normcoll-tests: New file.
12198 * tests/uninorm/test-u8-normcoll.c: New file.
12200 2009-03-07 Bruno Haible <bruno@clisp.org>
12202 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
12203 tests/uninorm/test-u32-normcmp.c.
12204 * tests/uninorm/test-u32-normcmp.c: Include it.
12205 (test_nonascii): New function, extracted from main. Add some more
12207 (main): Invoke test_ascii and test_nonascii.
12208 * modules/uninorm/u32-normcmp-tests (Files): Add
12209 tests/uninorm/test-u32-normcmp.h.
12210 (Depends-on): Remove uninorm/u32-normcmp.
12212 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
12213 tests/uninorm/test-u16-normcmp.c.
12214 * tests/uninorm/test-u16-normcmp.c: Include it.
12215 (test_nonascii): New function, extracted from main. Add some more
12217 (main): Invoke test_ascii and test_nonascii.
12218 * modules/uninorm/u16-normcmp-tests (Files): Add
12219 tests/uninorm/test-u16-normcmp.h.
12220 (Depends-on): Remove uninorm/u16-normcmp.
12222 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
12223 tests/uninorm/test-u8-normcmp.c.
12224 * tests/uninorm/test-u8-normcmp.c: Include it.
12225 (test_nonascii): New function, extracted from main. Add some more
12227 (main): Invoke test_ascii and test_nonascii.
12228 * modules/uninorm/u8-normcmp-tests (Files): Add
12229 tests/uninorm/test-u8-normcmp.h.
12230 (Depends-on): Remove uninorm/u8-normcmp.
12232 2009-03-07 Bruno Haible <bruno@clisp.org>
12234 New module 'uninorm/u32-normcoll'.
12235 * lib/uninorm/u32-normcoll.c: New file.
12236 * modules/uninorm/u32-normcoll: New file.
12238 New module 'uninorm/u16-normcoll'.
12239 * lib/uninorm/u16-normcoll.c: New file.
12240 * modules/uninorm/u16-normcoll: New file.
12242 New module 'uninorm/u8-normcoll'.
12243 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
12245 * lib/uninorm/u8-normcoll.c: New file.
12246 * lib/uninorm/u-normcoll.h: New file.
12247 * modules/uninorm/u8-normcoll: New file.
12249 New module 'uninorm/u32-normxfrm'.
12250 * lib/uninorm/u32-normxfrm.c: New file.
12251 * modules/uninorm/u32-normxfrm: New file.
12253 New module 'uninorm/u16-normxfrm'.
12254 * lib/uninorm/u16-normxfrm.c: New file.
12255 * modules/uninorm/u16-normxfrm: New file.
12257 New module 'uninorm/u8-normxfrm'.
12258 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
12260 * lib/uninorm/u8-normxfrm.c: New file.
12261 * lib/uninorm/u-normxfrm.h: New file.
12262 * modules/uninorm/u8-normxfrm: New file.
12264 2009-03-07 Bruno Haible <bruno@clisp.org>
12266 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
12267 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
12268 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
12270 2009-03-07 Bruno Haible <bruno@clisp.org>
12272 New module 'memxfrm'.
12273 * lib/memxfrm.h: New file.
12274 * lib/memxfrm.c: New file.
12275 * modules/memxfrm: New file.
12277 2009-03-07 Bruno Haible <bruno@clisp.org>
12279 New module 'memcmp2'.
12280 * lib/memcmp2.h: New file.
12281 * lib/memcmp2.c: New file.
12282 * modules/memcmp2: New file.
12284 2009-03-07 Bruno Haible <bruno@clisp.org>
12286 Tests for module 'uninorm/decomposing-form'.
12287 * modules/uninorm/decomposing-form-tests: New file.
12288 * tests/uninorm/test-decomposing-form.c: New file.
12290 New module 'uninorm/decomposing-form'.
12291 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
12292 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
12293 Add 'decomposing_variant' field.
12294 * lib/uninorm/decomposing-form.c: New file.
12295 * lib/uninorm/nfc.c (uninorm_nfc): Update.
12296 * lib/uninorm/nfd.c (uninorm_nfd): Update.
12297 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
12298 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
12299 * modules/uninorm/decomposing-form: New file.
12300 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
12301 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
12303 2009-03-07 Bruno Haible <bruno@clisp.org>
12305 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
12308 2009-03-06 Bruno Haible <bruno@clisp.org>
12310 Tests for module 'uninorm/u32-normcmp'.
12311 * tests/uninorm/test-u32-normcmp.c: New file.
12312 * modules/uninorm/u32-normcmp-tests: New file.
12314 Tests for module 'uninorm/u16-normcmp'.
12315 * tests/uninorm/test-u16-normcmp.c: New file.
12316 * modules/uninorm/u16-normcmp-tests: New file.
12318 Tests for module 'uninorm/u8-normcmp'.
12319 * tests/uninorm/test-u8-normcmp.c: New file.
12320 * modules/uninorm/u8-normcmp-tests: New file.
12322 New module 'uninorm/u32-normcmp'.
12323 * lib/uninorm/u32-normcmp.c: New file.
12324 * modules/uninorm/u32-normcmp: New file.
12326 New module 'uninorm/u16-normcmp'.
12327 * lib/uninorm/u16-normcmp.c: New file.
12328 * modules/uninorm/u16-normcmp: New file.
12330 New module 'uninorm/u8-normcmp'.
12331 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
12333 * lib/uninorm/u8-normcmp.c: New file.
12334 * lib/uninorm/u-normcmp.h: New file.
12335 * modules/uninorm/u8-normcmp: New file.
12337 2009-03-06 Bruno Haible <bruno@clisp.org>
12339 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
12340 Reported by Eric Blake.
12342 2009-03-06 Eric Blake <ebb9@byu.net>
12343 Bruno Haible <bruno@clisp.org>
12345 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
12346 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
12348 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
12349 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
12351 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
12353 2009-03-06 Eric Blake <ebb9@byu.net>
12355 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
12356 to avoid compiler warnings.
12357 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
12359 2009-03-05 Bruno Haible <bruno@clisp.org>
12361 * tests/test-ftell.c (main): Disable test beyond end of file on
12363 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
12365 2009-03-05 Kamil Dudka <kdudka@redhat.com>
12367 * lib/filevercmp.c: Move hidden files up in ordering.
12368 * tests/test-filevercmp.c: Add tests for hidden files.
12370 2009-03-04 Bruno Haible <bruno@clisp.org>
12372 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
12373 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
12375 Reported by Simon Josefsson.
12377 2009-03-03 Bruno Haible <bruno@clisp.org>
12379 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
12380 Reported by Simon Josefsson.
12382 * doc/ld-version-script.texi: Update node reference.
12384 2009-03-03 Bruno Haible <bruno@clisp.org>
12386 * modules/visibility (License): Change to 'unlimited'.
12387 Suggested by Simon Josefsson.
12389 2009-03-03 Jim Meyering <meyering@redhat.com>
12391 unlinkdir: cannot_unlink_dir may modify process state
12392 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
12393 it's neither thread-safe nor appropriate for use in a library.
12395 2009-03-03 Eric Blake <ebb9@byu.net>
12397 test-closein: silence test under Darwin
12398 * tests/test-closein.sh: Ignore stderr from cat, since we don't
12399 care if it dies from EPIPE or EBADF.
12401 2009-03-03 Bruno Haible <bruno@clisp.org>
12403 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
12405 * doc/visibility.texi: Fix @node and @section.
12407 2009-03-03 Simon Josefsson <simon@josefsson.org>
12409 * doc/gnulib.texi: Link to sections for ld version script and
12411 * doc/visibility.texi: Add @node and @section.
12412 * modules/ld-version-script: New module.
12413 * m4/ld-version-script.m4: New file.
12414 * doc/ld-version-script.texi: New file.
12416 2009-03-02 David Lutterkort <lutter@redhat.com>
12418 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
12419 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12421 2009-03-02 Bruno Haible <bruno@clisp.org>
12423 * doc/visibility.texi: Mention libtool's -export-symbols option.
12425 2009-03-02 Jim Meyering <meyering@redhat.com>
12427 announce-gen: new option: --no-print-checksums
12428 * build-aux/announce-gen (usage): Describe it.
12429 (print_checksums): Print a newline here, not in the [*] footnote.
12432 2009-03-01 Bruno Haible <bruno@clisp.org>
12434 Use socklen_t in the native Windows replacements prototypes.
12435 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
12437 * lib/getsockopt.c (rpl_getsockopt): Likewise.
12438 * lib/setsockopt.c (rpl_setsockopt): Likewise.
12439 * modules/getsockopt (Depends-on): Add socklen.
12440 * modules/setsockopt (Depends-on): Add socklen.
12442 2009-03-01 Bruno Haible <bruno@clisp.org>
12444 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
12447 2009-03-01 Eric Blake <ebb9@byu.net>
12448 Bruno Haible <bruno@clisp.org>
12450 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
12452 * lib/wait-process.c (wait_subprocess): Omit error message about
12453 deadly signal sent to the child of termsigp != NULL.
12455 2009-03-01 Eric Blake <ebb9@byu.net>
12457 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
12459 2009-03-01 Bruno Haible <bruno@clisp.org>
12461 Avoid a gcc warning.
12462 * tests/test-sched.c (b): Make global.
12463 Reported by Eric Blake.
12465 2009-01-19 Martin Lambers <marlam@marlam.de>
12467 Provide POSIX semantics for socket timeout options on W32.
12468 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
12469 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
12470 * modules/setsockopt: Depend on sys_time module for struct timeval.
12471 * modules/getsockopt: Depend on sys_time module for struct timeval.
12473 2009-03-01 Simon Josefsson <simon@josefsson.org>
12475 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
12476 __USE_GNU, for consistency with netdb.in.h.
12477 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12479 2009-03-01 Bruno Haible <bruno@clisp.org>
12481 More support for FreeMiNT.
12482 * lib/fseeko.c (rpl_fseeko): Complete last commit.
12483 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12485 2009-03-01 Bruno Haible <bruno@clisp.org>
12487 More support for FreeMiNT.
12488 * lib/fpurge.c (fpurge): Correct last commit.
12489 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12491 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12493 Fix unportable awk script in vc-list-files.
12494 * build-aux/vc-list-files: In the replacement awk script, use
12495 substr with a second argument of 1, not zero.
12496 Report by Simon Josefsson.
12498 2009-02-28 Bruno Haible <bruno@clisp.org>
12500 More support for FreeMiNT.
12501 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
12503 * lib/fwriting.c (fwriting): Likewise.
12504 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
12506 2009-02-28 Bruno Haible <bruno@clisp.org>
12508 * tests/test-freadseek.c (main): Disable test beyond end of file on
12510 * tests/test-ftello.c (main): Likewise.
12511 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
12513 2009-02-28 Bruno Haible <bruno@clisp.org>
12515 Add tentative support for FreeMiNT.
12516 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
12517 * lib/fpurge.c (fpurge): Likewise.
12518 * lib/freadable.c (freadable): Likewise.
12519 * lib/freading.c (freading): Likewise.
12520 * lib/freadptr.c (freadptr): Likewise.
12521 * lib/freadseek.c (freadptrinc): Likewise.
12522 * lib/fseeko.c (rpl_fseeko): Likewise.
12523 * lib/fseterr.c (fseterr): Likewise.
12524 * lib/fwritable.c (fwritable): Likewise.
12525 * lib/fwriting.c (fwriting): Likewise.
12526 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
12528 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12530 2009-02-28 Bruno Haible <bruno@clisp.org>
12532 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
12534 Reported by Jim Meyering.
12536 2009-02-28 Bruno Haible <bruno@clisp.org>
12538 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
12539 Mention the results of these tests on various platforms.
12540 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
12542 * doc/posix-functions/printf.texi: Likewise.
12543 * doc/posix-functions/snprintf.texi: Likewise.
12544 * doc/posix-functions/sprintf.texi: Likewise.
12545 * doc/posix-functions/vfprintf.texi: Likewise.
12546 * doc/posix-functions/vprintf.texi: Likewise.
12547 * doc/posix-functions/vsnprintf.texi: Likewise.
12548 * doc/posix-functions/vsprintf.texi: Likewise.
12549 * doc/glibc-functions/obstack_printf.texi: Likewise.
12550 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12552 2009-02-28 Bruno Haible <bruno@clisp.org>
12554 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
12555 Reported by Loïc Minier <lool@dooz.org>.
12557 2009-02-27 Bruno Haible <bruno@clisp.org>
12559 * gnulib-tool (func_import): Make the sed expression used to create the
12560 sed script for updating the .gitignore file POSIX compliant.
12561 Reported by Eric Blake.
12563 2009-02-27 Bruno Haible <bruno@clisp.org>
12565 * gnulib-tool (sed): Don't alias as "sed --posix".
12566 Reported by Eric Blake.
12568 2009-02-27 Bruno Haible <bruno@clisp.org>
12570 Avoid test link errors.
12571 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
12572 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
12573 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
12574 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
12575 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12577 2009-02-27 Bruno Haible <bruno@clisp.org>
12579 Avoid spurious "(cached)" in configure output.
12580 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
12581 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
12582 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
12583 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
12584 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
12585 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
12586 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
12587 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
12588 Reported by Eric Blake.
12590 2009-02-27 Eric Blake <ebb9@byu.net>
12592 printf: fix regression in previous patch
12593 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
12595 2009-02-27 Bruno Haible <bruno@clisp.org>
12597 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
12599 * lib/stdint.in.h: Likewise.
12600 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
12602 2009-02-27 Eric Blake <ebb9@byu.net>
12604 doc: mention more functions added in cygwin 1.7.0
12605 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
12607 * doc/posix-functions/open_wmemstream.texi: Likewise.
12608 * doc/posix-functions/wcsnlen.texi: Likewise.
12609 * doc/posix-functions/wcsnrtombs.texi: Likewise.
12610 * doc/posix-functions/wcstod.texi: Likewise.
12611 * doc/posix-functions/wcstof.texi: Likewise.
12612 * doc/posix-functions/wcstoimax.texi: Likewise.
12613 * doc/posix-functions/wcstok.texi: Likewise.
12614 * doc/posix-functions/wcstoumax.texi: Likewise.
12616 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
12617 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
12618 * doc/posix-functions/fprintf.texi: Update.
12619 * doc/posix-functions/printf.texi: Update.
12620 * doc/posix-functions/snprintf.texi: Update.
12621 * doc/posix-functions/sprintf.texi: Update.
12622 * doc/posix-functions/vfprintf.texi: Update.
12623 * doc/posix-functions/vprintf.texi: Update.
12624 * doc/posix-functions/vsnprintf.texi: Update.
12625 * doc/posix-functions/vsprintf.texi: Update.
12626 * doc/glibc-functions/obstack_printf.texi: Update.
12627 * doc/glibc-functions/obstack_vprintf.texi: Update.
12629 2009-02-26 Eric Blake <ebb9@byu.net>
12631 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
12632 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
12633 compilation bug by using runtime conversion.
12634 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12635 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
12636 * modules/ceill-tests (Files): Use nan.h.
12637 * modules/floorl-tests (Files): Likewise.
12638 * modules/frexpl-tests (Files): Likewise.
12639 * modules/isnanl-tests (Files): Likewise.
12640 * modules/ldexpl-tests (Files): Likewise.
12641 * modules/roundl-tests (Files): Likewise.
12642 * modules/truncl-tests (Files): Likewise.
12643 * tests/test-ceill.c (main): Use a working NaN.
12644 * tests/test-floorl.c (main): Likewise.
12645 * tests/test-frexpl.c (main): Likewise.
12646 * tests/test-isnan.c (test_long_double): Likewise.
12647 * tests/test-isnanl.h (main): Likewise.
12648 * tests/test-ldexpl.h (main): Likewise.
12649 * tests/test-roundl.h (main): Likewise.
12650 * tests/test-truncl.h (main): Likewise.
12651 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
12653 2009-02-26 Eric Blake <ebb9@byu.net>
12654 Bruno Haible <bruno@clisp.org>
12656 Work around a *printf bug with %ls on Solaris.
12657 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
12658 precision is specified, sprintf stops converting the wide string
12659 argument when the number of bytes that have been produced by this
12660 conversion equals or exceeds the precision.
12661 * doc/posix-functions/fprintf.texi: Update.
12662 * doc/posix-functions/printf.texi: Update.
12663 * doc/posix-functions/snprintf.texi: Update.
12664 * doc/posix-functions/sprintf.texi: Update.
12665 * doc/posix-functions/vfprintf.texi: Update.
12666 * doc/posix-functions/vprintf.texi: Update.
12667 * doc/posix-functions/vsnprintf.texi: Update.
12668 * doc/posix-functions/vsprintf.texi: Update.
12669 * doc/glibc-functions/obstack_printf.texi: Update.
12670 * doc/glibc-functions/obstack_vprintf.texi: Update.
12672 2009-02-26 Eric Blake <ebb9@byu.net>
12674 stdlib: favor compiler check of random.h
12675 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
12676 to avoid an ObjC random.h installed by Swarm.
12678 2009-02-26 Bruno Haible <bruno@clisp.org>
12680 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
12681 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
12682 Reported by Gary V. Vaughan <gary@gnu.org>.
12684 2009-02-26 Bruno Haible <bruno@clisp.org>
12686 Fix *printf behaviour regarding the %ls directive.
12687 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
12688 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
12689 NEED_PRINTF_DIRECTIVE_LS.
12690 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
12691 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
12692 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12693 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
12694 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
12695 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
12696 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
12697 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12698 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12699 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12700 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12701 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
12702 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12703 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12704 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12705 * doc/posix-functions/fprintf.texi: Update.
12706 * doc/posix-functions/printf.texi: Update.
12707 * doc/posix-functions/snprintf.texi: Update.
12708 * doc/posix-functions/sprintf.texi: Update.
12709 * doc/posix-functions/vfprintf.texi: Update.
12710 * doc/posix-functions/vprintf.texi: Update.
12711 * doc/posix-functions/vsnprintf.texi: Update.
12712 * doc/posix-functions/vsprintf.texi: Update.
12713 * doc/glibc-functions/obstack_printf.texi: Update.
12714 * doc/glibc-functions/obstack_vprintf.texi: Update.
12715 Reported by Eric Blake.
12717 2009-02-25 Bruno Haible <bruno@clisp.org>
12719 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
12721 Reported by Gary V. Vaughan <gary@gnu.org>.
12723 2009-02-25 Bruno Haible <bruno@clisp.org>
12725 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
12726 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
12727 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
12728 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
12729 Reported by Gary V. Vaughan <gary@gnu.org>.
12731 2009-02-25 Bruno Haible <bruno@clisp.org>
12733 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
12734 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
12735 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
12736 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
12737 Reported by Gary V. Vaughan <gary@gnu.org>.
12739 2009-02-25 Eric Blake <ebb9@byu.net>
12741 tests: skip fseek/ftell tests if ungetc is broken
12742 * m4/ungetc.m4: New file.
12743 * modules/fseek-tests: Split test, so ungetc dependency is
12744 separate from rest of test.
12745 * modules/fseeko-tests: Likewise.
12746 * modules/ftell-tests: Likewise.
12747 * modules/ftello-tests: Likewise.
12748 * tests/test-fseek.c (main): Isolate ungetc dependency.
12749 * tests/test-fseeko.c (main): Likewise.
12750 * tests/test-ftell.c (main): Likewise.
12751 * tests/test-ftello.c (main): Likewise.
12752 * tests/test-fseek2.sh: New file.
12753 * tests/test-fseeko2.sh: Likewise.
12754 * tests/test-ftell2.sh: Likewise.
12755 * tests/test-ftello2.sh: Likewise.
12757 2009-02-25 Ondřej Vašík <ovasik@redhat.com>
12759 test-getaddrinfo: fix usage of skip return code 77
12760 * tests/test-gettaddrinfo.c: Return skip code 77 only
12761 for first occurance of skip (4x77 is not 77)
12763 2009-02-25 Gary V. Vaughan <gary@gnu.org>
12765 strtod: avoid C99 decl-after-statement
12766 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
12768 2009-02-24 Eric Blake <ebb9@byu.net>
12770 strtod: detect HP-UX 11.31 bug
12771 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
12772 Reported by Gary V. Vaughan.
12774 2009-02-23 Bruno Haible <bruno@clisp.org>
12776 Fix invalid read past end of memory block.
12777 * lib/vasnprintf.c (DCHAR_SET): Define.
12778 (local_wcslen): Define only when needed.
12779 (local_strnlen, local_wcsnlen): New functions.
12780 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
12781 directives that involve a conversion ourselves.
12782 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
12783 wcsnlen, mbrtowc, wcrtomb.
12784 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
12785 * tests/test-vasprintf-posix.c (test_function): Likewise.
12786 * tests/test-snprintf-posix.h (test_function): Likewise.
12787 * tests/test-sprintf-posix.h (test_function): Likewise.
12788 Reported by Ben Pfaff <blp@cs.stanford.edu>.
12790 2009-02-22 Bruno Haible <bruno@clisp.org>
12792 Implement new clarified decomposition of Hangul syllables.
12793 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
12794 of type LTV, return only a pairwise decomposition.
12795 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
12797 * tests/uninorm/test-decomposition.c (main): Updated expected result.
12798 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
12799 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
12801 2009-02-22 Bruno Haible <bruno@clisp.org>
12803 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
12804 zero-length results and shrink excess allocated memory.
12805 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
12806 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
12807 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
12808 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
12809 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
12810 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
12811 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
12812 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
12813 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
12814 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
12815 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
12816 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
12818 2009-02-21 Bruno Haible <bruno@clisp.org>
12820 * doc/gnulib.texi: Include safe-alloc.texi earlier.
12821 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
12822 spaces after a period. Put a space between a macro name and its
12823 argument list. Trivial rewordings.
12824 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
12825 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
12826 (main): Return 0 explicitly.
12828 2009-02-21 Bruno Haible <bruno@clisp.org>
12830 Tests for module 'uninorm/filter'.
12831 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
12832 * modules/uninorm/filter-tests: New file.
12834 New module 'uninorm/filter'.
12835 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
12836 uninorm_filter_flush, uninorm_filter_free): New declarations.
12837 * lib/uninorm/uninorm-filter.c: New file.
12838 * modules/uninorm/filter: New file.
12840 2009-02-21 Bruno Haible <bruno@clisp.org>
12842 Tests for module 'uninorm/nfkc'.
12843 * tests/uninorm/test-nfkc.c: New file.
12844 * tests/uninorm/test-u8-nfkc.c: New file.
12845 * tests/uninorm/test-u16-nfkc.c: New file.
12846 * tests/uninorm/test-u32-nfkc.c: New file.
12847 * tests/uninorm/test-u32-nfkc-big.sh: New file.
12848 * tests/uninorm/test-u32-nfkc-big.c: New file.
12849 * modules/uninorm/nfkc-tests: New file.
12851 New module 'uninorm/nfkc'.
12852 * lib/uninorm/nfkc.c: New file.
12853 * modules/uninorm/nfkc: New file.
12855 Tests for module 'uninorm/nfkd'.
12856 * tests/uninorm/test-nfkd.c: New file.
12857 * tests/uninorm/test-u8-nfkd.c: New file.
12858 * tests/uninorm/test-u16-nfkd.c: New file.
12859 * tests/uninorm/test-u32-nfkd.c: New file.
12860 * tests/uninorm/test-u32-nfkd-big.sh: New file.
12861 * tests/uninorm/test-u32-nfkd-big.c: New file.
12862 * modules/uninorm/nfkd-tests: New file.
12864 New module 'uninorm/nfkd'.
12865 * lib/uninorm/nfkd.c: New file.
12866 * modules/uninorm/nfkd: New file.
12868 Tests for module 'uninorm/nfc'.
12869 * tests/uninorm/test-nfc.c: New file.
12870 * tests/uninorm/test-u8-nfc.c: New file.
12871 * tests/uninorm/test-u16-nfc.c: New file.
12872 * tests/uninorm/test-u32-nfc.c: New file.
12873 * tests/uninorm/test-u32-nfc-big.sh: New file.
12874 * tests/uninorm/test-u32-nfc-big.c: New file.
12875 * modules/uninorm/nfc-tests: New file.
12877 New module 'uninorm/nfc'.
12878 * lib/uninorm/nfc.c: New file.
12879 * modules/uninorm/nfc: New file.
12881 Tests for module 'uninorm/nfd'.
12882 * tests/uninorm/test-nfd.c: New file.
12883 * tests/uninorm/test-u8-nfd.c: New file.
12884 * tests/uninorm/test-u16-nfd.c: New file.
12885 * tests/uninorm/test-u32-nfd.c: New file.
12886 * tests/uninorm/test-u32-nfd-big.sh: New file.
12887 * tests/uninorm/test-u32-nfd-big.c: New file.
12888 * tests/uninorm/test-u32-normalize-big.h: New file.
12889 * tests/uninorm/test-u32-normalize-big.c: New file.
12890 * tests/uninorm/NormalizationTest.txt: New file, created from
12891 Unicode 5.1.0 NormalizationTest.txt.
12892 * modules/uninorm/nfd-tests: New file.
12894 New module 'uninorm/nfd'.
12895 * lib/uninorm/nfd.c: New file.
12896 * modules/uninorm/nfd: New file.
12898 New module 'uninorm/u32-normalize'.
12899 * lib/uninorm/u32-normalize.c: New file.
12900 * modules/uninorm/u32-normalize: New file.
12902 New module 'uninorm/u16-normalize'.
12903 * lib/uninorm/u16-normalize.c: New file.
12904 * modules/uninorm/u16-normalize: New file.
12906 New module 'uninorm/u8-normalize'.
12907 * lib/uninorm/u8-normalize.c: New file.
12908 * lib/uninorm/normalize-internal.h: New file.
12909 * lib/uninorm/u-normalize-internal.h: New file.
12910 * modules/uninorm/u8-normalize: New file.
12912 New module 'uninorm/decompose-internal'.
12913 * lib/uninorm/decompose-internal.c: New file.
12914 * modules/uninorm/decompose-internal: New file.
12916 Tests for module 'uninorm/composition'.
12917 * tests/uninorm/test-composition.c: New file.
12918 * modules/uninorm/composition-tests: New file.
12920 New module 'uninorm/composition'.
12921 * lib/uninorm/composition.c: New file.
12922 * lib/uninorm/composition-table.gperf: New file, generated by
12924 * modules/uninorm/composition: New file.
12926 Tests for module 'uninorm/compat-decomposition'.
12927 * tests/uninorm/test-compat-decomposition.c: New file.
12928 * modules/uninorm/compat-decomposition-tests: New file.
12930 New module 'uninorm/compat-decomposition'.
12931 * lib/uninorm/decompose-internal.h: New file.
12932 * lib/uninorm/compat-decomposition.c: New file.
12933 * modules/uninorm/compat-decomposition: New file.
12935 Tests for module 'uninorm/canonical-decomposition'.
12936 * tests/uninorm/test-canonical-decomposition.c: New file.
12937 * modules/uninorm/canonical-decomposition-tests: New file.
12939 New module 'uninorm/canonical-decomposition'.
12940 * lib/uninorm/canonical-decomposition.c: New file.
12941 * modules/uninorm/canonical-decomposition: New file.
12943 Tests for module 'uninorm/decomposition'.
12944 * tests/uninorm/test-decomposition.c: New file.
12945 * modules/uninorm/decomposition-tests: New file.
12947 New module 'uninorm/decomposition'.
12948 * lib/uninorm/decomposition.c: New file.
12949 * modules/uninorm/decomposition: New file.
12951 New module 'uninorm/decomposition-table'.
12952 * lib/uninorm/decomposition-table.h: New file.
12953 * lib/uninorm/decomposition-table.c: New file.
12954 * lib/uninorm/decomposition-table1.h: New file, generated by
12956 * lib/uninorm/decomposition-table2.h: New file, generated by
12958 * modules/uninorm/decomposition-table: New file.
12960 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
12961 (UC_DECOMP_*): New enumeration items.
12962 (get_decomposition): New function.
12963 (struct decomp_table): New type.
12964 (output_decomposition, output_decomposition_tables): New functions.
12965 (unicode_composition_exclusions): New variable.
12966 (fill_composition_exclusions, debug_output_composition_tables): New
12968 (main): Accept one more argument. Invoke fill_composition_exclusions.
12969 Output decomposition and composition tables.
12971 New module 'uninorm/base'.
12972 * lib/uninorm.h: New file.
12973 * lib/unictype.h: Update comment.
12974 * modules/uninorm/base: New file.
12976 2009-02-21 David Lutterkort <lutter@redhat.com>
12978 Tests for module 'safe-alloc'.
12979 * tests/test-safe-alloc.c: New file.
12980 * modules/safe-alloc-tests: New file.
12982 New module 'safe-alloc'.
12983 * lib/safe-alloc.h: New file.
12984 * lib/safe-alloc.c: New file.
12985 * m4/safe-alloc.m4: New file.
12986 * modules/safe-alloc: New file.
12987 * doc/safe-alloc.texi: New file.
12988 * doc/gnulib.texi: Include it.
12989 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
12992 2009-02-18 Bruno Haible <bruno@clisp.org>
12994 Fix link error on non-glibc systems.
12995 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
12997 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12999 2009-02-18 Jim Meyering <meyering@redhat.com>
13001 fts: avoid used-uninitialized error due to recent change
13002 * lib/fts.c (fts_read): Guard uses of the new member,
13003 parent->fts_n_dirs_remaining, since it's not relevant for
13004 the parent of a directory specified on the command-line.
13006 2009-02-17 James Youngman <jay@gnu.org>
13007 Bruno Haible <bruno@clisp.org>
13009 * m4/include_next.m4: Reformulate comment.
13011 2009-02-16 Jim Meyering <meyering@redhat.com>
13013 fts: add #if guards so that the fts_lgpl module still builds
13014 * lib/fts.c: Guard just-added hash-table-using parts with
13015 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
13016 Reported by Simon Josefsson.
13018 2009-02-15 Bruno Haible <bruno@clisp.org>
13020 * modules/array-mergesort-tests: New file.
13021 * tests/test-array-mergesort.c: New file.
13023 New module 'array-mergesort'.
13024 * modules/array-mergesort: New file.
13025 * lib/array-mergesort.h: New file.
13027 2009-02-15 Bruno Haible <bruno@clisp.org>
13029 Fix 2009-02-07 commit.
13030 * lib/gen-uni-tables.c (output_predicate, output_category,
13031 output_combclass, output_bidi_category, output_decimal_digit,
13032 output_digit, output_numeric, output_mirror, output_scripts,
13033 output_ident_category, output_simple_mapping): Fix format directives.
13034 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
13036 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
13038 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
13039 fixes are available from IBM.
13041 2009-02-13 Jim Meyering <meyering@redhat.com>
13043 fts: arrange not to stat non-directories in more cases
13044 This makes GNU find (when it doesn't need to stat each file)
13045 *much* more efficient at traversing reiserfs file systems.
13046 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
13047 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
13048 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
13049 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
13050 (leaf_optimization_applies): New function.
13051 (LCO_hash, LCO_compare): New helper functions.
13052 (link_count_optimize_ok): New function.
13053 (fts_stat): Initialize new member (if dir).
13054 (fts_read): Decrement parent's fts_n_dirs_remaining count if
13055 we've just stat'ed a directory. Skip the stat call when possible.
13057 Note this AFS-related exchange:
13058 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
13059 and note find's pioctl call in find/fstype.c.
13060 But that is necessary only if you want to enable the
13061 optimization for AFS, and for now, I don't.
13063 fts: move a function definition "up" (no semantic change)
13064 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
13065 "up" to precede upcoming use of a related function.
13067 2009-02-11 Jim Meyering <meyering@redhat.com>
13069 fts: correct internal computation of nlinks (optimization-related)
13070 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
13071 whether the current entry is a directory, so don't test it.
13073 2009-02-10 Bruno Haible <bruno@clisp.org>
13075 Tests for module 'uniwbrk/ulc-wordbreaks'.
13076 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
13077 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
13078 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
13080 Tests for module 'uniwbrk/u32-wordbreaks'.
13081 * modules/uniwbrk/u32-wordbreaks-tests: New file.
13082 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
13084 Tests for module 'uniwbrk/u16-wordbreaks'.
13085 * modules/uniwbrk/u16-wordbreaks-tests: New file.
13086 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
13088 Tests for module 'uniwbrk/u8-wordbreaks'.
13089 * modules/uniwbrk/u8-wordbreaks-tests: New file.
13090 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
13092 2009-02-10 Bruno Haible <bruno@clisp.org>
13094 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
13096 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
13097 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
13098 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
13100 2009-02-10 Simon Josefsson <simon@josefsson.org>
13102 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
13103 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
13105 2009-02-10 Bruno Haible <bruno@clisp.org>
13107 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
13108 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
13109 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
13110 * lib/unilbrk/u8-possible-linebreaks.c: Update.
13111 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
13112 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
13114 2009-02-09 Simon Josefsson <simon@josefsson.org>
13116 * lib/sockets.h (gl_fd_to_handle): New function.
13118 * tests/test-sockets.c: Call gl_fd_to_handle.
13120 2009-02-09 Bruno Haible <bruno@clisp.org>
13122 * doc/havelib.texi: Document the conventions on bi-arch systems.
13124 2009-02-08 Bruno Haible <bruno@clisp.org>
13126 Document the AC_LIB_LINKFLAGS macro.
13127 * doc/havelib.texi: New file, mostly written on 2005-05-24.
13128 * doc/gnulib.texi: Include it.
13130 2009-02-08 Bruno Haible <bruno@clisp.org>
13132 Fix wrong order of sections, compared to TOC.
13133 * doc/gnulib.texi: Include relocatable-maint.texi after the
13134 "Regular expressions" node, not before.
13136 2009-02-08 Bruno Haible <bruno@clisp.org>
13138 Tests for module 'unicase/totitle'.
13139 * modules/unicase/totitle-tests: New file.
13141 Tests for module 'unicase/tolower'.
13142 * modules/unicase/tolower-tests: New file.
13144 Tests for module 'unicase/toupper'.
13145 * modules/unicase/toupper-tests: New file.
13146 * tests/unicase/test-mapping-part1.h: New file.
13147 * tests/unicase/test-mapping-part2.h: New file.
13149 New module 'unicase/totitle'.
13150 * modules/unicase/totitle: New file.
13151 * lib/unicase/totitle.c: New file.
13153 New module 'unicase/tolower'.
13154 * modules/unicase/tolower: New file.
13155 * lib/unicase/tolower.c: New file.
13157 New module 'unicase/toupper'.
13158 * modules/unicase/toupper: New file.
13159 * lib/unicase/toupper.c: New file.
13160 * lib/unicase/simple-mapping.h: New file.
13162 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
13163 (mapping_table): New structure.
13164 (output_simple_mapping): New function.
13165 (main): Invoke output_simple_mapping_test and output_simple_mapping.
13166 * modules/gen-uni-tables (Description): Update.
13167 * lib/unicase/toupper.h: New file, automatically generated by
13169 * lib/unicase/tolower.h: New file, automatically generated by
13171 * lib/unicase/totitle.h: New file, automatically generated by
13173 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
13175 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
13177 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
13180 New module 'unicase/base'.
13181 * modules/unicase/base: New file.
13182 * lib/unicase.h: New file.
13184 2009-02-08 Bruno Haible <bruno@clisp.org>
13186 New module 'uniwbrk/ulc-wordbreaks'.
13187 * modules/uniwbrk/ulc-wordbreaks: New file.
13188 * lib/uniwbrk/ulc-wordbreaks.c: New file.
13190 New module 'uniwbrk/u32-wordbreaks'.
13191 * modules/uniwbrk/u32-wordbreaks: New file.
13192 * lib/uniwbrk/u32-wordbreaks.c: New file.
13194 New module 'uniwbrk/u16-wordbreaks'.
13195 * modules/uniwbrk/u16-wordbreaks: New file.
13196 * lib/uniwbrk/u16-wordbreaks.c: New file.
13198 New module 'uniwbrk/u8-wordbreaks'.
13199 * modules/uniwbrk/u8-wordbreaks: New file.
13200 * lib/uniwbrk/u8-wordbreaks.c: New file.
13201 * lib/uniwbrk/u-wordbreaks.h: New file.
13203 New module 'uniwbrk/table'.
13204 * modules/uniwbrk/table: New file.
13205 * lib/uniwbrk/wbrktable.h: New file.
13206 * lib/uniwbrk/wbrktable.c: New file.
13208 New module 'uniwbrk/wordbreak-property'.
13209 * modules/uniwbrk/wordbreak-property: New file.
13210 * lib/uniwbrk/wordbreak-property.c: New file.
13212 * lib/gen-uni-tables.c (WBP_*): New enum items.
13213 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
13214 (unicode_org_wbp): New variable.
13215 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
13217 (wbp_table): New structure.
13218 (output_wbp, output_wbrk_tables): New functions.
13219 (main): Accept additional argument. Invoke fill_org_wbp,
13220 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
13221 output_wbrk_tables.
13222 * modules/gen-uni-tables (Description): Update.
13223 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
13226 New module 'uniwbrk/base'.
13227 * modules/uniwbrk/base: New file.
13228 * lib/uniwbrk.h: New file.
13230 2009-02-08 Bruno Haible <bruno@clisp.org>
13232 Update to Unicode 5.1.0.
13233 * lib/gen-uni-tables.c (is_property_alphabetic): Include
13235 (is_property_default_ignorable_code_point): Don't include characters
13236 of category Cc or Cs and not-a-characters.
13237 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
13238 U+0D79, U+109E, U+109F, U+A60C.
13239 * lib/unictype/bidi_of.h: Regenerated.
13240 * lib/unictype/blocks.h: Regenerated.
13241 * lib/unictype/categ_C.h: Regenerated.
13242 * lib/unictype/categ_Cf.h: Regenerated.
13243 * lib/unictype/categ_Cn.h: Regenerated.
13244 * lib/unictype/categ_L.h: Regenerated.
13245 * lib/unictype/categ_Ll.h: Regenerated.
13246 * lib/unictype/categ_Lm.h: Regenerated.
13247 * lib/unictype/categ_Lo.h: Regenerated.
13248 * lib/unictype/categ_Lu.h: Regenerated.
13249 * lib/unictype/categ_M.h: Regenerated.
13250 * lib/unictype/categ_Mc.h: Regenerated.
13251 * lib/unictype/categ_Me.h: Regenerated.
13252 * lib/unictype/categ_Mn.h: Regenerated.
13253 * lib/unictype/categ_N.h: Regenerated.
13254 * lib/unictype/categ_Nd.h: Regenerated.
13255 * lib/unictype/categ_Nl.h: Regenerated.
13256 * lib/unictype/categ_No.h: Regenerated.
13257 * lib/unictype/categ_P.h: Regenerated.
13258 * lib/unictype/categ_Pd.h: Regenerated.
13259 * lib/unictype/categ_Pe.h: Regenerated.
13260 * lib/unictype/categ_Pf.h: Regenerated.
13261 * lib/unictype/categ_Pi.h: Regenerated.
13262 * lib/unictype/categ_Po.h: Regenerated.
13263 * lib/unictype/categ_Ps.h: Regenerated.
13264 * lib/unictype/categ_S.h: Regenerated.
13265 * lib/unictype/categ_Sk.h: Regenerated.
13266 * lib/unictype/categ_Sm.h: Regenerated.
13267 * lib/unictype/categ_So.h: Regenerated.
13268 * lib/unictype/categ_of.h: Regenerated.
13269 * lib/unictype/combining.h: Regenerated.
13270 * lib/unictype/ctype_alnum.h: Regenerated.
13271 * lib/unictype/ctype_alpha.h: Regenerated.
13272 * lib/unictype/ctype_graph.h: Regenerated.
13273 * lib/unictype/ctype_lower.h: Regenerated.
13274 * lib/unictype/ctype_print.h: Regenerated.
13275 * lib/unictype/ctype_punct.h: Regenerated.
13276 * lib/unictype/ctype_upper.h: Regenerated.
13277 * lib/unictype/decdigit.h: Regenerated.
13278 * lib/unictype/digit.h: Regenerated.
13279 * lib/unictype/mirror.h: Regenerated.
13280 * lib/unictype/numeric.h: Regenerated.
13281 * lib/unictype/pr_alphabetic.h: Regenerated.
13282 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
13283 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
13284 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
13285 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
13286 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
13287 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
13288 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
13289 * lib/unictype/pr_combining.h: Regenerated.
13290 * lib/unictype/pr_dash.h: Regenerated.
13291 * lib/unictype/pr_decimal_digit.h: Regenerated.
13292 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
13293 * lib/unictype/pr_deprecated.h: Regenerated.
13294 * lib/unictype/pr_diacritic.h: Regenerated.
13295 * lib/unictype/pr_extender.h: Regenerated.
13296 * lib/unictype/pr_format_control.h: Regenerated.
13297 * lib/unictype/pr_grapheme_base.h: Regenerated.
13298 * lib/unictype/pr_grapheme_extend.h: Regenerated.
13299 * lib/unictype/pr_grapheme_link.h: Regenerated.
13300 * lib/unictype/pr_id_continue.h: Regenerated.
13301 * lib/unictype/pr_id_start.h: Regenerated.
13302 * lib/unictype/pr_ideographic.h: Regenerated.
13303 * lib/unictype/pr_ignorable_control.h: Regenerated.
13304 * lib/unictype/pr_lowercase.h: Regenerated.
13305 * lib/unictype/pr_math.h: Regenerated.
13306 * lib/unictype/pr_numeric.h: Regenerated.
13307 * lib/unictype/pr_other_alphabetic.h: Regenerated.
13308 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
13309 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
13310 * lib/unictype/pr_other_id_continue.h: Regenerated.
13311 * lib/unictype/pr_other_lowercase.h: Regenerated.
13312 * lib/unictype/pr_other_math.h: Regenerated.
13313 * lib/unictype/pr_punctuation.h: Regenerated.
13314 * lib/unictype/pr_sentence_terminal.h: Regenerated.
13315 * lib/unictype/pr_soft_dotted.h: Regenerated.
13316 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
13317 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
13318 * lib/unictype/pr_unified_ideograph.h: Regenerated.
13319 * lib/unictype/pr_uppercase.h: Regenerated.
13320 * lib/unictype/pr_xid_continue.h: Regenerated.
13321 * lib/unictype/pr_xid_start.h: Regenerated.
13322 * lib/unictype/pr_zero_width.h: Regenerated.
13323 * lib/unictype/scripts.h: Regenerated.
13324 * lib/unictype/scripts_byname.gperf: Regenerated.
13325 * lib/unictype/sy_java_ident.h: Regenerated.
13326 * lib/unilbrk/lbrkprop1.h: Regenerated.
13327 * lib/unilbrk/lbrkprop2.h: Regenerated.
13328 * tests/unictype/test-categ_C.c: Regenerated.
13329 * tests/unictype/test-categ_Cf.c: Regenerated.
13330 * tests/unictype/test-categ_Cn.c: Regenerated.
13331 * tests/unictype/test-categ_L.c: Regenerated.
13332 * tests/unictype/test-categ_Ll.c: Regenerated.
13333 * tests/unictype/test-categ_Lm.c: Regenerated.
13334 * tests/unictype/test-categ_Lo.c: Regenerated.
13335 * tests/unictype/test-categ_Lu.c: Regenerated.
13336 * tests/unictype/test-categ_M.c: Regenerated.
13337 * tests/unictype/test-categ_Mc.c: Regenerated.
13338 * tests/unictype/test-categ_Me.c: Regenerated.
13339 * tests/unictype/test-categ_Mn.c: Regenerated.
13340 * tests/unictype/test-categ_N.c: Regenerated.
13341 * tests/unictype/test-categ_Nd.c: Regenerated.
13342 * tests/unictype/test-categ_Nl.c: Regenerated.
13343 * tests/unictype/test-categ_No.c: Regenerated.
13344 * tests/unictype/test-categ_P.c: Regenerated.
13345 * tests/unictype/test-categ_Pd.c: Regenerated.
13346 * tests/unictype/test-categ_Pe.c: Regenerated.
13347 * tests/unictype/test-categ_Pf.c: Regenerated.
13348 * tests/unictype/test-categ_Pi.c: Regenerated.
13349 * tests/unictype/test-categ_Po.c: Regenerated.
13350 * tests/unictype/test-categ_Ps.c: Regenerated.
13351 * tests/unictype/test-categ_S.c: Regenerated.
13352 * tests/unictype/test-categ_Sk.c: Regenerated.
13353 * tests/unictype/test-categ_Sm.c: Regenerated.
13354 * tests/unictype/test-categ_So.c: Regenerated.
13355 * tests/unictype/test-ctype_alnum.c: Regenerated.
13356 * tests/unictype/test-ctype_alpha.c: Regenerated.
13357 * tests/unictype/test-ctype_graph.c: Regenerated.
13358 * tests/unictype/test-ctype_lower.c: Regenerated.
13359 * tests/unictype/test-ctype_print.c: Regenerated.
13360 * tests/unictype/test-ctype_punct.c: Regenerated.
13361 * tests/unictype/test-ctype_upper.c: Regenerated.
13362 * tests/unictype/test-decdigit.h: Regenerated.
13363 * tests/unictype/test-digit.h: Regenerated.
13364 * tests/unictype/test-numeric.h: Regenerated.
13365 * tests/unictype/test-pr_alphabetic.c: Regenerated.
13366 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
13367 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
13368 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
13369 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
13370 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
13371 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
13372 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
13373 * tests/unictype/test-pr_combining.c: Regenerated.
13374 * tests/unictype/test-pr_dash.c: Regenerated.
13375 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
13376 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
13377 * tests/unictype/test-pr_deprecated.c: Regenerated.
13378 * tests/unictype/test-pr_diacritic.c: Regenerated.
13379 * tests/unictype/test-pr_extender.c: Regenerated.
13380 * tests/unictype/test-pr_format_control.c: Regenerated.
13381 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
13382 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
13383 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
13384 * tests/unictype/test-pr_id_continue.c: Regenerated.
13385 * tests/unictype/test-pr_id_start.c: Regenerated.
13386 * tests/unictype/test-pr_ideographic.c: Regenerated.
13387 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
13388 * tests/unictype/test-pr_lowercase.c: Regenerated.
13389 * tests/unictype/test-pr_math.c: Regenerated.
13390 * tests/unictype/test-pr_numeric.c: Regenerated.
13391 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
13392 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
13394 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
13395 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
13396 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
13397 * tests/unictype/test-pr_other_math.c: Regenerated.
13398 * tests/unictype/test-pr_punctuation.c: Regenerated.
13399 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
13400 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
13401 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
13402 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
13403 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
13404 * tests/unictype/test-pr_uppercase.c: Regenerated.
13405 * tests/unictype/test-pr_xid_continue.c: Regenerated.
13406 * tests/unictype/test-pr_xid_start.c: Regenerated.
13407 * tests/unictype/test-pr_zero_width.c: Regenerated.
13409 Update to Unicode 5.1.0.
13410 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
13411 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
13412 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
13413 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
13414 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
13415 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
13416 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
13417 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
13418 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
13419 (nonspacing_table_ind): Update.
13420 * tests/uniwidth/test-uc_width2.sh: Update expected result.
13422 Update to Unicode 5.1.0.
13423 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
13425 * lib/uniname/uniname.c (unicode_character_name,
13426 unicode_name_character): Add the range 0x1Fxxx to the code transform.
13427 * lib/uniname/uninames.h: Regenerated.
13428 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
13430 2009-02-07 Bruno Haible <bruno@clisp.org>
13432 Merge gen-ctype and gen-lbrk into a single program.
13433 * lib/gen-uni-tables.c: New file, incorporating
13434 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
13435 Add directory prefixes to the names of the generated files.
13436 * lib/unictype/gen-ctype.c: Remove file.
13437 * lib/unilbrk/gen-lbrk.c: Remove file.
13438 * modules/gen-uni-tables: New file.
13439 * modules/unictype/gen-ctype: Remove file.
13440 * modules/unilbrk/gen-lbrk: Remove file.
13442 2009-02-07 Bruno Haible <bruno@clisp.org>
13444 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
13446 New module 'unistr/u32-strcoll'.
13447 * modules/unistr/u32-strcoll: New file.
13448 * lib/unistr/u32-strcoll.c: New file.
13450 New module 'unistr/u16-strcoll'.
13451 * modules/unistr/u16-strcoll: New file.
13452 * lib/unistr/u16-strcoll.c: New file.
13454 New module 'unistr/u8-strcoll'.
13455 * modules/unistr/u8-strcoll: New file.
13456 * lib/unistr/u8-strcoll.c: New file.
13457 * lib/unistr/u-strcoll.h: New file.
13459 2009-02-07 Bruno Haible <bruno@clisp.org>
13461 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
13462 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
13463 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
13464 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
13465 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
13466 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
13468 2009-02-07 Bruno Haible <bruno@clisp.org>
13471 * lib/unictype/gen-ctype.c (output_predicate, output_category,
13472 output_combclass, output_bidi_category, output_decimal_digit,
13473 output_digit, output_numeric, output_mirror, output_scripts,
13474 output_ident_category): Use proper width specifier in format strings.
13476 2009-02-07 Bruno Haible <bruno@clisp.org>
13478 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
13481 2009-02-07 Jim Meyering <meyering@redhat.com>
13483 regex: avoid compilation failure with upcoming gcc-4.4
13484 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
13485 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
13486 "... error: integer overflow in preprocessor expression".
13488 2009-02-05 Ben Pfaff <blp@gnu.org>
13490 Fix link errors on Windows when close module is used.
13491 * modules/close: Add $(LIB_CLOSE) to Link section.
13492 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
13493 $(LIB_CLOSE) on Windows.
13495 2009-02-05 Jim Meyering <meyering@redhat.com>
13497 still avoid unused-parameter warnings, but do it cleanly
13498 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
13499 (get_fs_usage): Cast to void instead.
13500 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
13501 (dev_from_mount_options, read_file_system_list): Cast to void.
13502 Prompted by Bruno Haible.
13504 2009-02-04 Jim Meyering <meyering@redhat.com>
13506 fsusage.c: correct copyright year
13507 * lib/fsusage.c: Reflect year in which the change is pushed into
13509 avoid misc. warnings
13510 * lib/fsusage.c (UNUSED_PARAM): Define.
13511 (get_fs_usage): Mark parameter "disk" as unused.
13512 * lib/getugroups.c (getgrent): Use "void" in prototype.
13513 * lib/mountlist.c: Mark unused parameters.
13514 (read_file_system_list): Declare a local with "const".
13515 * lib/nanosleep.c (getnow): Declare static.
13516 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
13518 dirfd: set errno upon failure
13519 * lib/dirfd.c: Include <errno.h>.
13520 Set errno to ENOTSUP when returning -1.
13521 * modules/dirfd (Depends-on): Add errno.
13522 Suggested by John Kodis <kodis@comcast.net>.
13524 2009-02-01 Bruno Haible <bruno@clisp.org>
13526 Don't assume sizeof (long) >= sizeof (void *).
13527 * lib/memcmp.c: Include stdint.h.
13528 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
13529 srcp2 to 'const byte *'.
13530 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
13531 types to uintptr_t.
13532 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
13533 * modules/memcmp (Depends-on): Add stdint.
13534 Reported by Ozkan Sezer <sezeroz@gmail.com>.
13536 2009-01-30 Eric Blake <ebb9@byu.net>
13538 fix more require-before-expand issues
13539 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
13540 expand, AC_PROG_AWK.
13541 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
13543 2009-01-28 Eric Blake <ebb9@byu.net>
13545 version-etc: use consistent URL formatting
13546 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
13547 Improve formatting. Use fputs for string without %.
13549 2009-01-28 Jim Meyering <meyering@redhat.com>
13551 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
13552 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
13553 "underquoted definition of NAME" from autoconf-2.59.
13555 2009-01-28 Bruno Haible <bruno@clisp.org>
13557 * doc/gnulib.texi: Add "Obsolete modules" to index.
13559 2009-01-28 Jim Meyering <meyering@redhat.com>
13561 useless-if-before-free: recognize more variants
13562 * build-aux/useless-if-before-free: Also recognize e.g.,
13563 if (NULL != p) free (p);
13565 2009-01-27 Mark McLoughlin <markmc@redhat.com>
13567 test-getaddrinfo: skip (don't fail) this test when there's no network
13568 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
13569 on the presumption that it means you lack network access.
13571 2009-01-26 Jim Meyering <meyering@redhat.com>
13573 fflush: avoid warnings on modern systems
13574 * lib/fflush.c (rpl_fflush): Move declarations of locals,
13575 pos and result, into scopes where they're used.
13577 2009-01-26 Eric Blake <ebb9@byu.net>
13579 Silence warning reintroduced by recent extensions patch.
13580 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
13581 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
13584 Backport improved autoconf semantics of AC_DEFUN_ONCE.
13585 * m4/00gnulib.m4: New file.
13586 * gnulib-tool (func_get_filelist): Always use it.
13587 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
13588 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
13590 2009-01-25 Bruno Haible <bruno@clisp.org>
13592 Make test-quotearg work on MacOS X and AIX.
13593 * tests/test-quotearg.sh: New file.
13594 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
13595 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
13596 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
13597 include <libintl.h>.
13598 (fake_locale): Remove variable.
13599 (gettext, dgettext, dcgettext): Remove functions.
13600 (main): Instead of setting a fake locale, set a real locale. Call
13601 textdomain and bindtextdomain.
13602 * modules/quotearg-tests (Files): Add the new files.
13603 (Depends-on): Add gettext, setenv, unsetenv.
13604 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
13605 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
13606 Augment TESTS_ENVIRONMENT.
13608 2009-01-25 Bruno Haible <bruno@clisp.org>
13610 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
13611 fr_FR.ISO8859-1 locale on MacOS X.
13612 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
13613 ja_JP.eucJP locale on MacOS X.
13614 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
13615 zh_CN.GB18030 locale on MacOS X.
13617 2009-01-25 Bruno Haible <bruno@clisp.org>
13619 Avoid link errors on MacOS X 10.3.
13620 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
13621 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13623 2009-01-25 Bruno Haible <bruno@clisp.org>
13625 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
13626 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
13627 * modules/pipe (Files): Remove m4/posix_spawn.m4.
13628 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
13629 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
13630 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
13631 posix_spawnattr_init, posix_spawnattr_setsigmask,
13632 posix_spawnattr_setflags, posix_spawnattr_destroy.
13634 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
13635 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
13636 * modules/execute (Files): Remove m4/posix_spawn.m4.
13637 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
13638 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
13639 posix_spawnattr_init, posix_spawnattr_setsigmask,
13640 posix_spawnattr_setflags, posix_spawnattr_destroy.
13642 2009-01-25 Bruno Haible <bruno@clisp.org>
13644 * lib/glthread/threadlib.c: Include <stdlib.h>.
13646 2009-01-25 Bruno Haible <bruno@clisp.org>
13648 * lib/glthread/threadlib.c (dummy): New declaration.
13650 2009-01-25 Bruno Haible <bruno@clisp.org>
13652 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
13653 multibyte characters also for the GB18030 encoding. Don't crash when
13654 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
13656 2009-01-25 Bruno Haible <bruno@clisp.org>
13658 Avoid redefining 'struct random_data' on OSF/1 5.1.
13659 * lib/stdlib.in.h: Include <random.h> if it exists.
13660 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
13661 HAVE_RANDOM_H. Include <random.h> when testing whether
13662 'struct random_data' exists.
13663 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
13665 2009-01-25 Bruno Haible <bruno@clisp.org>
13667 Don't install charset.alias on MacOS X >= 10.3.
13668 * lib/localcharset.c (DARWIN7): New macro.
13669 (get_charset_aliases): Hardcode the result for Darwin7.
13670 * modules/localcharset (install-exec-local): Don't install
13671 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
13673 2009-01-25 Bruno Haible <bruno@clisp.org>
13675 Don't install charset.alias on mingw and Cygwin.
13676 * modules/localcharset (install-exec-local): Don't install
13677 charset.alias on mingw and Cygwin, if the file does not yet exist.
13678 The result for these platforms is hardcoded in localcharset.c.
13680 2009-01-25 Bruno Haible <bruno@clisp.org>
13682 Make it possible again to use AC_GNU_SOURCE together with gnulib.
13683 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
13684 before requiring AC_USE_SYSTEM_EXTENSIONS.
13686 2009-01-25 Jim Meyering <meyering@redhat.com>
13688 c-strtod: avoid warnings
13689 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
13690 "assignment discards qualifiers from pointer target type" warnings.
13692 2009-01-24 Bruno Haible <bruno@clisp.org>
13694 Add support for non-UTF-8 locales on MacOS X.
13695 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
13696 canonical encodings. For Darwin 7 and newer, don't map traditional
13697 encodings to UTF-8.
13698 Reported by Vincent Lefevre <vincent@vinc17.org>
13699 at <http://savannah.gnu.org/bugs/?25235>.
13701 2009-01-24 Bruno Haible <bruno@clisp.org>
13703 * doc/gnulib.texi (Obsolete modules): New section.
13704 Reported by Mike Frysinger <vapier@gentoo.org>.
13706 2009-01-24 Bruno Haible <bruno@clisp.org>
13708 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
13711 2009-01-24 Bruno Haible <bruno@clisp.org>
13713 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
13714 Reported by Eric Blake.
13716 2009-01-24 Bruno Haible <bruno@clisp.org>
13718 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
13719 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
13720 Reported by Gary V. Vaughan <gary@gnu.org>.
13722 2009-01-24 Bruno Haible <bruno@clisp.org>
13724 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
13726 2009-01-23 Bruno Haible <bruno@clisp.org>
13728 Make c-strtod, c-strtold usable in libraries.
13729 * lib/c-strtod.c: Include string.h instead of xalloc.h.
13730 (C_STRTOD): Call strdup instead of xstrdup.
13731 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
13732 * modules/c-strtold (Depends-on): Likewise.
13733 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
13734 * NEWS: Mention the change.
13735 Reported by Michael Gold <mgold@ncf.ca>.
13737 2009-01-23 Jim Meyering <meyering@redhat.com>
13739 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
13740 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
13741 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
13743 2009-01-23 Simon Josefsson <simon@josefsson.org>
13745 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
13747 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
13748 * modules/version-etc (Description): Update.
13750 2009-01-22 Bruno Haible <bruno@clisp.org>
13752 Cache the C locale object.
13753 * lib/c-strtod.c (c_locale_cache): New variable.
13754 (c_locale): New function.
13755 (C_STRTOD): Use it, and don't call freelocale.
13756 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
13757 Suggested by Paolo Bonzini.
13759 2009-01-21 Bruno Haible <bruno@clisp.org>
13761 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
13762 conditions other than overflow.
13764 2009-01-21 Bruno Haible <bruno@clisp.org>
13766 * lib/c-strtod.c: Include errno.h.
13767 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
13768 value from STRTOD_L and STRTOD.
13770 2009-01-21 Bruno Haible <bruno@clisp.org>
13771 and Jim Meyering <meyering@redhat.com>
13773 nanosleep: skip configure test (fail it) for apple universal builds
13774 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
13775 universal builds, assume that nanosleep does not work.
13776 * modules/nanosleep (Depends-on): Add multiarch.
13778 mktime: skip configure test (fail it) for apple universal builds
13779 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
13780 universal builds, assume that mktime does not work.
13781 * modules/mktime (Depends-on): Add multiarch.
13783 2009-01-21 Eric Blake <ebb9@byu.net>
13785 multiarch: avoid expand-before-require warning
13786 * modules/multiarch (configure.ac): Require, rather than expand,
13788 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
13789 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
13790 enforce that all clients require it. Partial reversion of
13793 error: avoid expand-before-require warning
13794 * modules/errno (configure.ac): Require, rather than expand,
13796 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
13797 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
13798 enforce that all clients require it.
13800 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
13801 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
13802 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
13803 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
13805 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
13808 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
13810 regex: do not depend on obsolete modules.
13811 * modules/regex: Remove memcmp and memmove.
13813 2009-01-20 Bruno Haible <bruno@clisp.org>
13815 Make the 'link' module link on Windows NT 4.
13816 * lib/link.c (_WIN32_WINNT): Don't define.
13817 (CreateHardLinkFuncType): New type.
13818 (CreateHardLinkFunc, initialized): New variables.
13819 (initialize): New function.
13820 (link): Invoke CreateHardLink indirectly through the function pointer.
13822 2009-01-20 Bruno Haible <bruno@clisp.org>
13824 Fix compilation failure on mingw.
13825 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
13827 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
13829 * doc/c-strtod.texi: Mention a couple of restrictions.
13831 2009-01-20 Jim Meyering <meyering@redhat.com>
13833 gettimeofday: move more declarations out of functions
13834 * lib/gettimeofday.c: Move extern declarations of tzset and
13835 gmtime out of containing functions. Prompted by Bruno Haible.
13837 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
13839 regex: do not depend on obsolete modules.
13840 * modules/regex: Remove memcmp and memmove.
13842 2009-01-19 Bruno Haible <bruno@clisp.org>
13844 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
13845 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
13846 gl_BIGENDIAN, not AC_C_BIGENDIAN.
13847 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
13848 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
13850 2009-01-19 Bruno Haible <bruno@clisp.org>
13852 * tests/test-link.c: Include <errno.h>.
13853 (main): Exit with code 77 when a hard link cannot be created due to
13855 * tests/test-link.sh: Skip test when a hard link cannot be created due
13856 to the file system.
13857 Suggested by Eric Blake.
13859 2009-01-19 Martin Lambers <marlam@marlam.de>
13861 * modules/link-tests: New file.
13862 * tests/test-link.sh: New file.
13863 * tests/test-link.c: New file.
13865 2009-01-19 Eric Blake <ebb9@byu.net>
13867 doc: mention another function added in cygwin 1.7.0
13868 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
13869 Another new function in cygwin 1.7.
13871 2009-01-19 Bruno Haible <bruno@clisp.org>
13873 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
13874 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
13875 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
13876 gl_BIGENDIAN, not AC_C_BIGENDIAN.
13877 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
13878 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
13879 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13880 * m4/md4.m4 (gl_MD4): Likewise.
13881 * m4/md5.m4 (gl_MD5): Likewise.
13882 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
13883 * m4/sha1.m4 (gl_SHA1): Likewise.
13884 * m4/sha256.m4 (gl_SHA256): Likewise.
13885 * m4/sha512.m4 (gl_SHA512): Likewise.
13887 2009-01-19 Bruno Haible <bruno@clisp.org>
13889 * modules/uniname/uniname-tests (Depends-on): Add progname.
13890 * tests/uniname/test-uninames.c: Include progname.h.
13891 (main): Call set_program_name.
13893 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
13894 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
13895 (main): Call set_program_name.
13897 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
13898 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
13899 (main): Call set_program_name.
13901 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
13902 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
13903 (main): Call set_program_name.
13905 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
13906 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
13907 (main): Call set_program_name.
13909 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
13910 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
13911 (main): Call set_program_name.
13913 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
13914 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
13915 (main): Call set_program_name.
13917 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
13918 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
13919 (main): Call set_program_name.
13921 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
13922 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
13923 (main): Call set_program_name.
13925 2009-01-19 Eric Blake <ebb9@byu.net>
13927 test-unistd: test previous patch
13928 * tests/test-unistd.c: Test *_FILENO macros.
13930 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
13931 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13932 Guarantee a definition.
13933 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
13934 * modules/unistd-safer (Depends-on): Add dependency on unistd.
13935 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
13936 * lib/dup-safer.c (STDERR_FILENO): Likewise.
13937 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13939 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
13940 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
13941 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13943 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
13944 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
13945 (STDERR_FILENO): Likewise.
13946 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
13947 (STDERR_FILENO): Likewise.
13948 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
13949 (STDERR_FILENO): Likewise.
13950 Reported by Elbert Pol.
13952 2009-01-19 Eric Blake <ebb9@byu.net>
13954 doc: mention more functions added in cygwin 1.7.0
13955 * doc/posix-functions/abort.texi (abort): Update wording related
13957 * doc/posix-functions/daylight.texi (daylight): Likewise.
13958 * doc/posix-functions/optarg.texi (optarg): Likewise.
13959 * doc/posix-functions/optarg.texi (opterr): Likewise.
13960 * doc/posix-functions/optarg.texi (optind): Likewise.
13961 * doc/posix-functions/optarg.texi (optopt): Likewise.
13962 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
13963 worked in 1.5.x, and was withdrawn in 1.7.
13964 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
13965 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
13967 * doc/posix-functions/perror.texi (perror): Likewise.
13968 * doc/posix-functions/printf.texi (printf): Likewise.
13969 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
13970 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
13971 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13972 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13973 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13974 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
13975 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
13977 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
13979 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
13981 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
13982 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
13984 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
13985 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
13986 * doc/posix-functions/confstr.texi (confstr): Likewise.
13987 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
13988 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
13989 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
13990 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
13991 * doc/posix-functions/fputws.texi (fputws): Likewise.
13992 * doc/posix-functions/fwide.texi (fwide): Likewise.
13993 * doc/posix-functions/getwc.texi (getwc): Likewise.
13994 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
13995 * doc/posix-functions/putwc.texi (putwc): Likewise.
13996 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
13997 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
13998 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
13999 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14000 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
14001 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
14002 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
14003 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
14004 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
14005 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
14006 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
14008 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
14010 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
14011 * lib/ioctl.c: Include <sys/ioctl.h>.
14013 2009-01-19 Simon Josefsson <simon@josefsson.org>
14015 * modules/getdate-tests (Depends-on): Add progname.
14016 * tests/test-getdate.c: Use progname module, to avoid link errors
14017 on non-glibc systems.
14019 2009-01-18 Simon Josefsson <simon@josefsson.org>
14021 * modules/filenamecat-tests (Depends-on): Add progname.
14022 * modules/fstrcmp-tests (Depends-on): Likewise.
14024 * tests/test-filenamecat.c: Use progname module, to avoid link
14025 errors on non-glibc systems.
14026 * tests/test-fstrcmp.c: Likewise.
14028 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
14030 gettimeofday: avoid warning: nested extern declaration of 'localtime'
14031 * lib/gettimeofday.c: Move extern declaration out of function.
14033 2009-01-18 Bruno Haible <bruno@clisp.org>
14035 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
14036 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
14037 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
14039 2009-01-18 Bruno Haible <bruno@clisp.org>
14041 * lib/strftime.c (MEMPCPY): Remove unused macro.
14042 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
14044 2009-01-18 Martin Lambers <marlam@marlam.de>
14047 * lib/unistd.in.h (link): New declaration.
14048 * lib/link.c: New file.
14049 * m4/link.m4: New file.
14050 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
14052 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
14053 * modules/link: New file.
14054 * doc/posix-functions/link.texi: Mention the new module.
14056 2009-01-18 Bruno Haible <bruno@clisp.org>
14058 * tests/test-avltree_list.c (main): Call set_program_name.
14059 * tests/test-avltree_oset.c (main): Likewise.
14060 * tests/test-obstack-printf.c: Include progname.h.
14061 (main): Call set_program_name.
14062 * tests/test-quotearg.c: Include progname.h.
14063 (main): Call set_program_name.
14064 * tests/test-xmemdup0.c: Include progname.h.
14065 (main): Call set_program_name.
14067 2009-01-18 Bruno Haible <bruno@clisp.org>
14069 New module 'alphasort'.
14070 * lib/dirent.in.h (alphasort): New declaration.
14071 * lib/alphasort.c: New file, from glibc with modifications.
14072 * m4/alphasort.m4: New file.
14073 * modules/alphasort: New file.
14074 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
14076 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
14078 * doc/posix-functions/alphasort.texi: Mention the new module and the
14079 portability problems.
14081 2009-01-18 Bruno Haible <bruno@clisp.org>
14083 New module 'scandir'.
14084 * lib/dirent.in.h (scandir): New declaration.
14085 * lib/scandir.c: New file, from glibc with modifications.
14086 * m4/scandir.m4: New file.
14087 * modules/scandir: New file.
14088 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
14090 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
14092 * doc/posix-functions/scandir.texi: Mention the new module and the
14093 portability problems.
14095 2009-01-17 Bruno Haible <bruno@clisp.org>
14097 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
14098 Update documentation.
14099 (func_remove_suffix): Escape all dots in the suffix. Update
14101 (func_filter_filelist): Update documentation.
14102 Reported by Ralf Wildenhues.
14104 2009-01-17 Bruno Haible <bruno@clisp.org>
14106 * modules/dprintf-posix-tests: New file.
14107 * tests/test-dprintf-posix.sh: New file.
14108 * tests/test-dprintf-posix.c: New file.
14110 New modules 'dprintf', 'dprintf-posix'.
14111 * lib/stdio.in.h (dprintf): New declaration.
14112 * lib/dprintf.c: New file.
14113 * m4/dprintf.m4: New file.
14114 * m4/dprintf-posix.m4: New file.
14115 * modules/dprintf: New file.
14116 * modules/dprintf-posix: New file.
14117 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
14118 HAVE_DPRINTF, REPLACE_DPRINTF.
14119 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
14120 HAVE_DPRINTF, REPLACE_DPRINTF.
14121 * doc/posix-functions/dprintf.texi: Mention the new modules.
14123 2009-01-17 Bruno Haible <bruno@clisp.org>
14125 * modules/vdprintf-posix-tests: New file.
14126 * tests/test-vdprintf-posix.sh: New file.
14127 * tests/test-vdprintf-posix.c: New file.
14129 New modules 'vdprintf', 'vdprintf-posix'.
14130 * lib/stdio.in.h (vdprintf): New declaration.
14131 * lib/vdprintf.c: New file.
14132 * m4/vdprintf.m4: New file.
14133 * m4/vdprintf-posix.m4: New file.
14134 * modules/vdprintf: New file.
14135 * modules/vdprintf-posix: New file.
14136 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
14137 HAVE_VDPRINTF, REPLACE_VDPRINTF.
14138 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
14139 HAVE_VDPRINTF, REPLACE_VDPRINTF.
14140 * doc/posix-functions/vdprintf.texi: Mention the new modules.
14142 2009-01-17 Bruno Haible <bruno@clisp.org>
14144 Fix replacement of fopen on mingw.
14145 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
14148 2009-01-17 Bruno Haible <bruno@clisp.org>
14150 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
14151 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
14153 2009-01-17 Bruno Haible <bruno@clisp.org>
14155 Avoid test-fflush2.sh failure on mingw.
14156 * tests/test-fflush2.c: Include binary-io.h.
14157 (main): Put standard input into binary mode.
14158 * modules/fflush-tests (Depends-on): Add binary-io.
14160 2009-01-17 Bruno Haible <bruno@clisp.org>
14162 * lib/wchar.in.h: In another particular situation, include only the
14163 system's <wchar.h> file.
14164 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
14165 Reported by Albert Chin-A-Young <china@thewrittenword.com>
14166 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
14168 2009-01-17 Bruno Haible <bruno@clisp.org>
14170 Support for stripping executables in --enable-relocatable.
14171 * build-aux/install-reloc: Expect one more argument, or an environment
14172 variable RELOC_STRIP_PROG. If set, strip the destination program and
14174 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
14176 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
14177 to set RELOCATABLE_STRIP.
14178 * NEWS: Mention the new Makefile requirement.
14180 2009-01-17 Bruno Haible <bruno@clisp.org>
14182 * build-aux/install-reloc: Remove debugging information left over by
14183 C compiler on MacOS X.
14185 2009-01-17 Bruno Haible <bruno@clisp.org>
14187 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
14188 * lib/progreloc.c (find_executable): Fix type of pointer passed to
14189 _NSGetExecutablePath.
14191 2009-01-16 Jim Meyering <meyering@redhat.com>
14193 strerror: avoid warnings about discarding "const"
14194 * lib/strerror.c (rpl_strerror): Instead of returning a const
14195 string from each and every "case", use a variable, and add a single
14196 cast after the switch.
14198 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
14200 * lib/arpa_inet.in.h: Add extern "C" block for C++.
14202 2009-01-16 Bruno Haible <bruno@clisp.org>
14204 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
14205 array initializer syntax that also works in C++ mode.
14206 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14208 2009-01-16 Jim Meyering <meyering@redhat.com>
14210 poll: suppress a warning
14211 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
14212 to ignore "...unsigned expression < 0 is always false" warnings.
14214 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
14216 poll: remove declarations of unused variables
14217 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
14218 sockbuf and optlen.
14220 2009-01-15 Bruno Haible <bruno@clisp.org>
14222 Make fflush-after-ungetc POSIX compliant on BSD systems.
14223 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
14224 (clear_ungetc_buffer): Implement also for other systems.
14225 (rpl_fflush): On glibc systems, invoke
14226 clear_ungetc_buffer_preserving_position. Otherwise, invoke
14227 clear_ungetc_buffer after fetching the stream's position, not before.
14229 2009-01-15 Bruno Haible <bruno@clisp.org>
14231 Make fflush-after-ungetc POSIX compliant on glibc systems.
14232 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
14234 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
14235 (rpl_fflush): On glibc systems, simply call the system's fflush
14236 function after clearing the ungetc buffer.
14237 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
14238 Instead, lseek only to the end of file, then use the system's fseeko
14239 for the rest. On glibc systems, reset the EOF indicator bit.
14241 2009-01-15 Jim Meyering <meyering@redhat.com>
14243 openmp.m4: revert quote-adding change, for portability to older autoconf
14244 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
14245 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
14246 Simon Josefsson noticed the problem when using autoconf-2.61.
14248 2009-01-15 Bruno Haible <bruno@clisp.org>
14250 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
14251 * tests/test-fflush2.c (ASSERT): Always fail.
14252 (main): Add two tests for fflush() after ungetc(), taking into account
14253 the Austin Group's clarification.
14254 Suggested by Eric Blake.
14256 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
14258 mktime.m4: remove K&R-style function prototypes
14259 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
14260 for the Sun C++ compiler.
14262 2009-01-14 Bruno Haible <bruno@clisp.org>
14264 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
14265 while including <wchar.h>.
14266 * lib/wchar.in.h: In two particular situations on HP-UX, include only
14267 the system's <wchar.h> file.
14268 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14270 2009-01-14 Bruno Haible <bruno@clisp.org>
14272 * m4/csharp.m4: Don't mention gettext on the serial number line.
14273 * m4/csharpexec.m4: Likewise.
14274 * m4/eaccess.m4: Likewise.
14275 * m4/javaexec.m4: Likewise.
14276 * m4/sig_atomic_t.m4: Likewise.
14277 * m4/tmpdir.m4: Likewise.
14278 * m4/intldir.m4: Bump gettext version.
14279 * m4/lib-ld.m4: Likewise.
14281 2009-01-14 Bruno Haible <bruno@clisp.org>
14283 * lib/progname.c (set_program_name): Add more comments.
14284 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
14286 2009-01-14 Simon Josefsson <simon@josefsson.org>
14288 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
14289 were sys/stat.h does not define it.
14291 2009-01-14 Jim Meyering <meyering@redhat.com>
14293 many *.m4 files: improve m4 quoting
14294 99% of this change was performed by running the following commands:
14295 git ls-files | grep '\.m4$' | xargs perl -pi \
14296 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
14297 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
14298 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
14299 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
14300 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
14301 The remainder were to add Copyright dates, increment serial numbers,
14302 undo some changes in comments, exclude m4/intl.m4, and add quotes
14303 around the "1" in ",1" where the unusual spacing prohibited the
14304 above regexps from doing the job. For more details, see
14305 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
14306 * m4/acl.m4: Modified.
14307 * m4/afs.m4: Likewise.
14308 * m4/alloca.m4: Likewise.
14309 * m4/argp.m4: Likewise.
14310 * m4/argz.m4: Likewise.
14311 * m4/atexit.m4: Likewise.
14312 * m4/bison-i18n.m4: Likewise.
14313 * m4/bison.m4: Likewise.
14314 * m4/byteswap.m4: Likewise.
14315 * m4/c-stack.m4: Likewise.
14316 * m4/c-strtod.m4: Likewise.
14317 * m4/calloc.m4: Likewise.
14318 * m4/canonicalize-lgpl.m4: Likewise.
14319 * m4/chown.m4: Likewise.
14320 * m4/clock_time.m4: Likewise.
14321 * m4/codeset.m4: Likewise.
14322 * m4/copy-file.m4: Likewise.
14323 * m4/csharp.m4: Likewise.
14324 * m4/csharpcomp.m4: Likewise.
14325 * m4/csharpexec.m4: Likewise.
14326 * m4/d-ino.m4: Likewise.
14327 * m4/d-type.m4: Likewise.
14328 * m4/dirfd.m4: Likewise.
14329 * m4/double-slash-root.m4: Likewise.
14330 * m4/eaccess.m4: Likewise.
14331 * m4/eealloc.m4: Likewise.
14332 * m4/environ.m4: Likewise.
14333 * m4/errno_h.m4: Likewise.
14334 * m4/euidaccess.m4: Likewise.
14335 * m4/execute.m4: Likewise.
14336 * m4/fatal-signal.m4: Likewise.
14337 * m4/fchdir.m4: Likewise.
14338 * m4/fcntl_h.m4: Likewise.
14339 * m4/fileblocks.m4: Likewise.
14340 * m4/filenamecat.m4: Likewise.
14341 * m4/findprog.m4: Likewise.
14342 * m4/flexmember.m4: Likewise.
14343 * m4/fnmatch.m4: Likewise.
14344 * m4/fopen.m4: Likewise.
14345 * m4/fpending.m4: Likewise.
14346 * m4/fprintf-posix.m4: Likewise.
14347 * m4/free.m4: Likewise.
14348 * m4/frexp.m4: Likewise.
14349 * m4/frexpl.m4: Likewise.
14350 * m4/fsusage.m4: Likewise.
14351 * m4/ftruncate.m4: Likewise.
14352 * m4/gc-camellia.m4: Likewise.
14353 * m4/gc-random.m4: Likewise.
14354 * m4/gc.m4: Likewise.
14355 * m4/getaddrinfo.m4: Likewise.
14356 * m4/getcwd-abort-bug.m4: Likewise.
14357 * m4/getcwd-path-max.m4: Likewise.
14358 * m4/getdate.m4: Likewise.
14359 * m4/getdomainname.m4: Likewise.
14360 * m4/getgroups.m4: Likewise.
14361 * m4/gethostname.m4: Likewise.
14362 * m4/gethrxtime.m4: Likewise.
14363 * m4/getline.m4: Likewise.
14364 * m4/getloadavg.m4: Likewise.
14365 * m4/getndelim2.m4: Likewise.
14366 * m4/getpass.m4: Likewise.
14367 * m4/gettext.m4: Likewise.
14368 * m4/gettime.m4: Likewise.
14369 * m4/gettimeofday.m4: Likewise.
14370 * m4/gnulib-common.m4: Likewise.
14371 * m4/group-member.m4: Likewise.
14372 * m4/host-os.m4: Likewise.
14373 * m4/iconv.m4: Likewise.
14374 * m4/iconv_open.m4: Likewise.
14375 * m4/inet_ntop.m4: Likewise.
14376 * m4/inet_pton.m4: Likewise.
14377 * m4/inline.m4: Likewise.
14378 * m4/intldir.m4: Likewise.
14379 * m4/intlmacosx.m4: Likewise.
14380 * m4/intmax.m4: Likewise.
14381 * m4/intmax_t.m4: Likewise.
14382 * m4/inttypes.m4: Likewise.
14383 * m4/inttypes_h.m4: Likewise.
14384 * m4/inttypes-pri.m4: Likewise.
14385 * m4/isapipe.m4: Likewise.
14386 * m4/isnand.m4: Likewise.
14387 * m4/isnanf.m4: Likewise.
14388 * m4/isnanl.m4: Likewise.
14389 * m4/javacomp.m4: Likewise.
14390 * m4/javaexec.m4: Likewise.
14391 * m4/jm-winsz1.m4: Likewise.
14392 * m4/jm-winsz2.m4: Likewise.
14393 * m4/lchown.m4: Likewise.
14394 * m4/lcmessage.m4: Likewise.
14395 * m4/ldexpl.m4: Likewise.
14396 * m4/lib-ld.m4: Likewise.
14397 * m4/lib-link.m4: Likewise.
14398 * m4/libsigsegv.m4: Likewise.
14399 * m4/link-follow.m4: Likewise.
14400 * m4/localcharset.m4: Likewise.
14401 * m4/locale-fr.m4: Likewise.
14402 * m4/locale-ja.m4: Likewise.
14403 * m4/locale-tr.m4: Likewise.
14404 * m4/locale-zh.m4: Likewise.
14405 * m4/lock.m4: Likewise.
14406 * m4/longlong.m4: Likewise.
14407 * m4/ls-mntd-fs.m4: Likewise.
14408 * m4/lstat.m4: Likewise.
14409 * m4/malloc.m4: Likewise.
14410 * m4/mathl.m4: Likewise.
14411 * m4/mbrtowc.m4: Likewise.
14412 * m4/mbstate_t.m4: Likewise.
14413 * m4/mbswidth.m4: Likewise.
14414 * m4/memchr.m4: Likewise.
14415 * m4/memcmp.m4: Likewise.
14416 * m4/memcpy.m4: Likewise.
14417 * m4/memmem.m4: Likewise.
14418 * m4/memmove.m4: Likewise.
14419 * m4/mempcpy.m4: Likewise.
14420 * m4/memrchr.m4: Likewise.
14421 * m4/memset.m4: Likewise.
14422 * m4/minmax.m4: Likewise.
14423 * m4/mkdir-slash.m4: Likewise.
14424 * m4/mkdtemp.m4: Likewise.
14425 * m4/mktime.m4: Likewise.
14426 * m4/mmap-anon.m4: Likewise.
14427 * m4/mountlist.m4: Likewise.
14428 * m4/nanosleep.m4: Likewise.
14429 * m4/nls.m4: Likewise.
14430 * m4/nocrash.m4: Likewise.
14431 * m4/open.m4: Likewise.
14432 * m4/openat.m4: Likewise.
14433 * m4/openmp.m4: Likewise.
14434 * m4/pathmax.m4: Likewise.
14435 * m4/perl.m4: Likewise.
14436 * m4/physmem.m4: Likewise.
14437 * m4/pipe.m4: Likewise.
14438 * m4/po.m4: Likewise.
14439 * m4/poll.m4: Likewise.
14440 * m4/posixtm.m4: Likewise.
14441 * m4/posixver.m4: Likewise.
14442 * m4/printf-frexp.m4: Likewise.
14443 * m4/printf-frexpl.m4: Likewise.
14444 * m4/printf-posix.m4: Likewise.
14445 * m4/printf-posix-rpl.m4: Likewise.
14446 * m4/printf.m4: Likewise.
14447 * m4/progtest.m4: Likewise.
14448 * m4/putenv.m4: Likewise.
14449 * m4/readline.m4: Likewise.
14450 * m4/readlink.m4: Likewise.
14451 * m4/readutmp.m4: Likewise.
14452 * m4/realloc.m4: Likewise.
14453 * m4/regex.m4: Likewise.
14454 * m4/relocatable.m4: Likewise.
14455 * m4/relocatable-lib.m4: Likewise.
14456 * m4/rename-dest-slash.m4: Likewise.
14457 * m4/rename.m4: Likewise.
14458 * m4/rmdir-errno.m4: Likewise.
14459 * m4/rmdir.m4: Likewise.
14460 * m4/roundf.m4: Likewise.
14461 * m4/roundl.m4: Likewise.
14462 * m4/rpmatch.m4: Likewise.
14463 * m4/save-cwd.m4: Likewise.
14464 * m4/selinux-selinux-h.m4: Likewise.
14465 * m4/setenv.m4: Likewise.
14466 * m4/settime.m4: Likewise.
14467 * m4/sig2str.m4: Likewise.
14468 * m4/sig_atomic_t.m4: Likewise.
14469 * m4/signalblocking.m4: Likewise.
14470 * m4/signbit.m4: Likewise.
14471 * m4/sigpipe.m4: Likewise.
14472 * m4/sockets.m4: Likewise.
14473 * m4/sockpfaf.m4: Likewise.
14474 * m4/st_dm_mode.m4: Likewise.
14475 * m4/stat-time.m4: Likewise.
14476 * m4/stdbool.m4: Likewise.
14477 * m4/stdint.m4: Likewise.
14478 * m4/stdint_h.m4: Likewise.
14479 * m4/stpcpy.m4: Likewise.
14480 * m4/stpncpy.m4: Likewise.
14481 * m4/strcase.m4: Likewise.
14482 * m4/strchrnul.m4: Likewise.
14483 * m4/strcspn.m4: Likewise.
14484 * m4/strdup.m4: Likewise.
14485 * m4/strftime.m4: Likewise.
14486 * m4/strndup.m4: Likewise.
14487 * m4/strnlen.m4: Likewise.
14488 * m4/strpbrk.m4: Likewise.
14489 * m4/strptime.m4: Likewise.
14490 * m4/strsep.m4: Likewise.
14491 * m4/strtod.m4: Likewise.
14492 * m4/strtoimax.m4: Likewise.
14493 * m4/strtok_r.m4: Likewise.
14494 * m4/strtol.m4: Likewise.
14495 * m4/strtoll.m4: Likewise.
14496 * m4/strtoul.m4: Likewise.
14497 * m4/strtoull.m4: Likewise.
14498 * m4/strtoumax.m4: Likewise.
14499 * m4/strverscmp.m4: Likewise.
14500 * m4/threadlib.m4: Likewise.
14501 * m4/timegm.m4: Likewise.
14502 * m4/tm_gmtoff.m4: Likewise.
14503 * m4/tmpdir.m4: Likewise.
14504 * m4/tmpfile.m4: Likewise.
14505 * m4/tzset.m4: Likewise.
14506 * m4/uintmax_t.m4: Likewise.
14507 * m4/unlinkdir.m4: Likewise.
14508 * m4/unlocked-io.m4: Likewise.
14509 * m4/uptime.m4: Likewise.
14510 * m4/userspec.m4: Likewise.
14511 * m4/utimbuf.m4: Likewise.
14512 * m4/utime.m4: Likewise.
14513 * m4/utimes-null.m4: Likewise.
14514 * m4/utimes.m4: Likewise.
14515 * m4/vararrays.m4: Likewise.
14516 * m4/vasnprintf.m4: Likewise.
14517 * m4/vfprintf-posix.m4: Likewise.
14518 * m4/vprintf-posix.m4: Likewise.
14519 * m4/wait-process.m4: Likewise.
14520 * m4/wchar_t.m4: Likewise.
14521 * m4/wint_t.m4: Likewise.
14522 * m4/write-any-file.m4: Likewise.
14523 * m4/yield.m4: Likewise.
14525 2009-01-13 Bruno Haible <bruno@clisp.org>
14527 Avoid test-copy-file.sh failures when ACL support insufficient.
14528 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
14530 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
14531 Reported by Jim Meyering.
14533 2009-01-13 Bruno Haible <bruno@clisp.org>
14535 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
14536 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
14537 * modules/unistdio/u8-printf-parse (Files): Likewise.
14538 * modules/unistdio/u32-printf-parse (Files): Likewise.
14539 * modules/unistdio/ulc-printf-parse (Files): Likewise.
14541 2009-01-13 Simon Josefsson <simon@josefsson.org>
14543 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
14544 and m4/inttypes_h.m4 too.
14546 2009-01-12 Eric Blake <ebb9@byu.net>
14548 tests: IRIX 6.2 cc can't compile -0.0 into .data
14549 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
14550 rather than at compile-time.
14551 * tests/test-floorl.c (minus_zero): Likewise.
14552 * tests/test-frexpl.c (minus_zero): Likewise.
14553 * tests/test-isnan.c (minus_zerol): Likewise.
14554 * tests/test-isnanl.h (minus_zero): Likewise.
14555 * tests/test-ldexpl.c (minus_zero): Likewise.
14556 * tests/test-roundl.c (minus_zero): Likewise.
14557 * tests/test-signbit.c (minus_zerol): Likewise.
14558 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
14559 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
14560 * tests/test-truncl.c (minus_zero): Likewise.
14561 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
14562 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
14563 Reported by Tom G. Christensen and Nelson H. F. Beebe.
14565 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
14567 regex: fix glibc bug 9697
14568 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
14571 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
14573 regex: fix glibc bug 697
14574 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
14575 being NULL also if there are no backreferences.
14577 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
14579 regex: merge glibc changes
14580 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
14581 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
14582 re_string_skip_chars, re_string_reconstruct): Likewise.
14583 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
14585 2009-01-07 Jim Meyering <meyering@redhat.com>
14587 poll: filter through cppi
14588 * lib/poll.c: Indent cpp directives to reflect nesting.
14590 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
14592 poll: don't return uninitialized
14593 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
14595 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
14597 avoid compile failure on AIX 6.1
14598 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
14599 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
14601 2009-01-04 Jim Meyering <meyering@redhat.com>
14603 remove duplicate inclusion of <stdio.h>
14604 * tests/test-fprintf-posix.c: Likewise.
14605 * tests/test-printf-posix.c: Likewise.
14606 * tests/test-snprintf-posix.c: Likewise.
14607 * tests/test-sprintf-posix.c: Likewise.
14608 * tests/test-vasprintf-posix.c: Likewise.
14609 * tests/test-vfprintf-posix.c: Likewise.
14610 * tests/test-vprintf-posix.c: Likewise.
14611 * tests/test-vsnprintf-posix.c: Likewise.
14612 * tests/test-vsprintf-posix.c: Likewise.
14614 2009-01-03 Jim Meyering <meyering@redhat.com>
14616 gnulib-tool: fix sed-based filtering
14617 * gnulib-tool (func_filter_filelist): Remove extra backslash
14618 in sed_fff_filter definition.
14620 2009-01-02 Jim Meyering <meyering@redhat.com>
14622 strftime: avoid compilation failure on Solaris 2.6
14623 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
14624 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
14625 Don't #define mbrlen or mbsinit, since now they're guaranteed to
14626 be available. Reported by Tom G. Christensen. Details in
14627 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
14629 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14630 Bruno Haible <bruno@clisp.org>
14632 Speed up gnulib-tool by doing more string processing through shell
14634 * gnulib-tool (fast_func_append): New variable.
14635 (func_remove_prefix, func_remove_suffix): New functions.
14636 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
14637 (func_filter_filelist): New function.
14638 (func_get_dependencies): Use func_remove_suffix instead of sed.
14639 (func_get_automake_snippet): Use func_filter_filelist instead of a
14640 subshell and sed invocation.
14642 2009-01-01 Bruno Haible <bruno@clisp.org>
14644 Fix a security bug.
14645 * gnulib-tool (func_import, import, update): Don't allow the characters
14646 '"', '$', '`', '\' in macro arguments that become part of commands that
14649 2009-01-01 Bruno Haible <bruno@clisp.org>
14651 * gnulib-tool (func_reset_sigpipe): Add more comments.
14653 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14655 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
14656 func_emit_tests_Makefile_am, func_import): Abort loops early if we
14657 already know the answer.
14659 2009-01-01 Jim Meyering <meyering@redhat.com>
14661 * lib/version-etc.c (version_etc_va): Update copyright year.
14663 2008-12-30 Bruno Haible <bruno@clisp.org>
14665 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
14666 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
14667 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
14669 2008-12-29 Eric Blake <ebb9@byu.net>
14671 multiarch: avoid autoconf AC_REQUIRE bug
14672 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
14673 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
14675 Reported by Bruno Haible, and analyzed in
14676 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
14678 2008-12-29 Bruno Haible <bruno@clisp.org>
14680 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
14681 files in subdirectories correctly.
14682 Reported by Ralf Wildenhues.
14684 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14686 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
14687 rather than 'join FILE -', for Solaris join.
14689 2008-12-29 Bruno Haible <bruno@clisp.org>
14691 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
14693 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
14694 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14695 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14696 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
14697 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14698 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
14699 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
14700 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
14701 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
14702 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
14703 * m4/nls.m4 (AM_NLS): Likewise.
14704 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
14705 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
14706 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
14707 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
14708 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
14709 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
14710 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
14711 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
14712 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
14713 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
14714 * m4/xsize.m4 (gl_XSIZE): Likewise.
14715 Suggested by Jim Meyering.
14717 2008-11-17 Bruce Korb <bkorb@gnu.org>
14719 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
14720 * lib/parse-duration.c: use a switch instead of cascading if's.
14722 2008-12-29 Eric Blake <ebb9@byu.net>
14724 wchar.h: supply WEOF on Irix 5.3
14725 * lib/wchar.in.h (wint_t): Also supply WEOF.
14726 * lib/wctype.in.h (wint_t): Likewise.
14727 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
14728 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
14729 Reported by Tom G. Christensen.
14731 2008-12-26 Bruno Haible <bruno@clisp.org>
14733 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
14736 2008-12-26 Bruno Haible <bruno@clisp.org>
14738 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
14740 2008-12-26 Bruno Haible <bruno@clisp.org>
14742 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
14743 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
14744 not __STDC_CONSTANT_MACROS.
14745 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
14747 2008-12-25 Bruno Haible <bruno@clisp.org>
14749 Add support for universal builds to vasnprintf.
14750 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
14751 universal builds, guess no.
14752 * modules/vasnprintf-posix (Depends-on): Add multiarch.
14753 * modules/vasprintf-posix (Depends-on): Likewise.
14754 * modules/fprintf-posix (Depends-on): Likewise.
14755 * modules/vfprintf-posix (Depends-on): Likewise.
14756 * modules/snprintf-posix (Depends-on): Likewise.
14757 * modules/vsnprintf-posix (Depends-on): Likewise.
14758 * modules/sprintf-posix (Depends-on): Likewise.
14759 * modules/vsprintf-posix (Depends-on): Likewise.
14760 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
14761 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14762 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14763 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14764 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14765 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14766 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14768 Add support for universal builds to <inttypes.h>.
14769 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
14770 _SCNu64_PREFIX): In Apple
14771 universal builds, define directly, using _LP64.
14772 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
14773 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
14774 * modules/inttypes (Depends-on): Add multiarch.
14775 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
14777 Add support for universal builds to <stdint.h>.
14778 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
14779 universal builds, define directly, using _LP64.
14780 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
14781 Apple universal builds, don't test for the size and suffix of ptrdiff_t
14783 * modules/stdint (Depends-on): Add multiarch.
14784 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
14786 New module 'multiarch'.
14787 * modules/multiarch: New file.
14788 * m4/multiarch.m4: New file.
14790 2008-12-25 Bruno Haible <bruno@clisp.org>
14792 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
14794 2008-12-25 Bruno Haible <bruno@clisp.org>
14796 * modules/btowc (License): Relicense under LGPLv2+.
14797 * modules/mbsinit (License): Likewise.
14798 * modules/mbrtowc (License): Likewise.
14799 * modules/wcrtomb (License): Likewise.
14800 * modules/streq (License): Likewise.
14801 Reported by David Lutterkort <lutter@redhat.com>.
14803 2008-12-23 Bruno Haible <bruno@clisp.org>
14805 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
14807 2008-12-23 Bruno Haible <bruno@clisp.org>
14809 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
14810 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
14811 GETADDRINFO_LIB, not in LIBS.
14812 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
14813 * modules/canon-host (Link): Likewise.
14814 * NEWS: Mention the change.
14815 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
14818 2008-12-22 Bruno Haible <bruno@clisp.org>
14820 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
14821 * doc/posix-functions/iswalpha_l.texi: Likewise.
14822 * doc/posix-functions/iswblank_l.texi: Likewise.
14823 * doc/posix-functions/iswcntrl_l.texi: Likewise.
14824 * doc/posix-functions/iswctype_l.texi: Likewise.
14825 * doc/posix-functions/iswdigit_l.texi: Likewise.
14826 * doc/posix-functions/iswgraph_l.texi: Likewise.
14827 * doc/posix-functions/iswlower_l.texi: Likewise.
14828 * doc/posix-functions/iswprint_l.texi: Likewise.
14829 * doc/posix-functions/iswpunct_l.texi: Likewise.
14830 * doc/posix-functions/iswspace_l.texi: Likewise.
14831 * doc/posix-functions/iswupper_l.texi: Likewise.
14832 * doc/posix-functions/iswxdigit_l.texi: Likewise.
14833 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
14834 * doc/posix-functions/open_wmemstream.texi: Likewise.
14835 * doc/posix-functions/swscanf.texi: Likewise.
14836 * doc/posix-functions/towctrans_l.texi: Likewise.
14837 * doc/posix-functions/towlower.texi: Likewise.
14838 * doc/posix-functions/towlower_l.texi: Likewise.
14839 * doc/posix-functions/towupper.texi: Likewise.
14840 * doc/posix-functions/towupper_l.texi: Likewise.
14841 * doc/posix-functions/vfwprintf.texi: Likewise.
14842 * doc/posix-functions/vfwscanf.texi: Likewise.
14843 * doc/posix-functions/vswscanf.texi: Likewise.
14844 * doc/posix-functions/vwprintf.texi: Likewise.
14845 * doc/posix-functions/vwscanf.texi: Likewise.
14846 * doc/posix-functions/wcpcpy.texi: Likewise.
14847 * doc/posix-functions/wcpncpy.texi: Likewise.
14848 * doc/posix-functions/wcscasecmp.texi: Likewise.
14849 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
14850 * doc/posix-functions/wcscoll_l.texi: Likewise.
14851 * doc/posix-functions/wcsdup.texi: Likewise.
14852 * doc/posix-functions/wcsncasecmp.texi: Likewise.
14853 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
14854 * doc/posix-functions/wcsnlen.texi: Likewise.
14855 * doc/posix-functions/wcsnrtombs.texi: Likewise.
14856 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
14857 * doc/posix-functions/wctrans_l.texi: Likewise.
14858 * doc/posix-functions/wctype_l.texi: Likewise.
14859 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
14860 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
14861 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
14862 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
14863 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
14864 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
14865 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
14866 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
14867 * doc/glibc-functions/wcschrnul.texi: Likewise.
14868 * doc/glibc-functions/wcsftime_l.texi: Likewise.
14869 * doc/glibc-functions/wcstod_l.texi: Likewise.
14870 * doc/glibc-functions/wcstof_l.texi: Likewise.
14871 * doc/glibc-functions/wcstol_l.texi: Likewise.
14872 * doc/glibc-functions/wcstold_l.texi: Likewise.
14873 * doc/glibc-functions/wcstoll_l.texi: Likewise.
14874 * doc/glibc-functions/wcstoq.texi: Likewise.
14875 * doc/glibc-functions/wcstoul_l.texi: Likewise.
14876 * doc/glibc-functions/wcstoull_l.texi: Likewise.
14877 * doc/glibc-functions/wcstouq.texi: Likewise.
14878 * doc/glibc-functions/wmempcpy.texi: Likewise.
14880 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
14881 Eric Blake <ebb9@byu.net>
14882 Paolo Bonzini <bonzini@gnu.org>
14883 Bruno Haible <bruno@clisp.org>
14885 Make c-stack work on Haiku.
14886 * lib/c-stack.c (SA_ONSTACK): Define fallback.
14887 (c_stack_action): Use SA_ONSTACK flag.
14889 2008-12-22 Bruno Haible <bruno@clisp.org>
14891 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
14893 2008-12-22 Bruno Haible <bruno@clisp.org>
14895 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
14896 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
14898 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
14900 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
14901 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
14902 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
14903 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
14905 2008-12-22 Bruno Haible <bruno@clisp.org>
14907 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
14910 2008-12-22 Eric Blake <ebb9@byu.net>
14912 Avoid gcc warnings on cygwin.
14913 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
14914 Avoid unused variable.
14915 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
14918 2008-12-22 Bruno Haible <bruno@clisp.org>
14920 Remove HAVE_MBRTOWC conditionals.
14921 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
14922 (mbscasecmp): Assume mbrtowc function.
14923 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
14924 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
14925 * lib/mbschr.c: Include mbuiter.h unconditionally.
14926 (mbschr): Assume mbrtowc function.
14927 * lib/mbscspn.c: Include mbuiter.h unconditionally.
14928 (mbscspn): Assume mbrtowc function.
14929 * lib/mbslen.c: Include mbuiter.h unconditionally.
14930 (mbslen): Assume mbrtowc function.
14931 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
14932 (mbsncasecmp): Assume mbrtowc function.
14933 * lib/mbsnlen.c: Include mbiter.h unconditionally.
14934 (mbsnlen): Assume mbrtowc function.
14935 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
14936 (mbspbrk): Assume mbrtowc function.
14937 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
14938 (mbspcasecmp): Assume mbrtowc function.
14939 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
14940 (mbsrchr): Assume mbrtowc function.
14941 * lib/mbssep.c: Include mbuiter.h unconditionally.
14942 (mbssep): Assume mbrtowc function.
14943 * lib/mbsspn.c: Include mbuiter.h unconditionally.
14944 (mbsspn): Assume mbrtowc function.
14945 * lib/mbsstr.c: Include mbuiter.h unconditionally.
14946 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
14947 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
14948 (mbstok_r): Assume mbrtowc function.
14949 * lib/propername.c: Include mbuiter.h unconditionally.
14950 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
14951 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
14952 (trim2): Assume mbrtowc function.
14953 * lib/mbswidth.c (mbsinit): Remove fallback definition.
14954 (mbsnwidth): Assume mbrtowc function.
14955 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
14956 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
14957 fallback definitions.
14958 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
14960 2008-12-22 Bruno Haible <bruno@clisp.org>
14962 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
14964 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
14966 * modules/regex: Request emulations for the mb*/wc* functions we need.
14967 * m4/regex.m4: Don't look for those functions here.
14968 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
14970 2008-12-22 Bruno Haible <bruno@clisp.org>
14972 * modules/fnmatch (Depends-on): Remove duplicated dependency.
14974 2008-12-21 Bruno Haible <bruno@clisp.org>
14976 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
14977 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
14978 (Include): Remove conditionalization.
14979 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
14980 (Include): Remove conditionalization.
14981 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
14982 (Include): Remove conditionalization.
14983 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
14984 * m4/mbfile.m4 (gl_MBFILE): Likewise.
14985 * NEWS: Mention the change.
14986 Reported by Alan Hourihane <alanh@fairlite.co.uk>
14987 via Sergey Poznyakoff <gray@gnu.org.ua>.
14989 2008-12-21 Bruno Haible <bruno@clisp.org>
14991 * MODULES.html.sh (Extended multibyte and wide character utilities
14992 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
14993 wcrtomb, wcsrtombs.
14994 (Support for systems lacking POSIX:2008): Add accept, bind, close,
14995 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
14996 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
14997 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
14999 2008-12-21 Bruno Haible <bruno@clisp.org>
15001 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
15003 2008-12-21 Bruno Haible <bruno@clisp.org>
15005 * modules/wcsnrtombs-tests: New file.
15006 * tests/test-wcsnrtombs1.sh: New file.
15007 * tests/test-wcsnrtombs2.sh: New file.
15008 * tests/test-wcsnrtombs3.sh: New file.
15009 * tests/test-wcsnrtombs4.sh: New file.
15010 * tests/test-wcsnrtombs.c: New file.
15012 New module 'wcsnrtombs'.
15013 * lib/wchar.in.h (wcsnrtombs): New declaration.
15014 * lib/wcsnrtombs.c: New file.
15015 * lib/wcsrtombs-state.c: New file.
15016 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
15017 (internal_state): Remove variable.
15018 * m4/wcsnrtombs.m4: New file.
15019 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
15021 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
15023 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
15025 * modules/wcsnrtombs: New file.
15026 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
15027 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
15029 2008-12-21 Bruno Haible <bruno@clisp.org>
15031 * modules/wcsrtombs-tests: New file.
15032 * tests/test-wcsrtombs1.sh: New file.
15033 * tests/test-wcsrtombs2.sh: New file.
15034 * tests/test-wcsrtombs3.sh: New file.
15035 * tests/test-wcsrtombs4.sh: New file.
15036 * tests/test-wcsrtombs.c: New file.
15038 New module 'wcsrtombs'.
15039 * lib/wchar.in.h (wcsrtombs): New declaration.
15040 * lib/wcsrtombs.c: New file.
15041 * m4/wcsrtombs.m4: New file.
15042 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
15043 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
15044 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
15045 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
15046 * modules/wcsrtombs: New file.
15047 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
15050 2008-12-21 Bruno Haible <bruno@clisp.org>
15052 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
15053 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
15054 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
15055 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
15057 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
15058 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
15059 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
15060 m4/locale-zh.m4, m4/codeset.m4.
15061 * doc/posix-functions/wcrtomb.texi: Document the bug.
15063 2008-12-21 Bruno Haible <bruno@clisp.org>
15065 Work around a btowc() bug on IRIX 6.5.
15066 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
15067 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
15068 REPLACE_WTOBC if not.
15069 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
15070 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
15071 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
15073 2008-12-21 Bruno Haible <bruno@clisp.org>
15075 * modules/wcrtomb-tests: New file.
15076 * tests/test-wcrtomb.sh: New file.
15077 * tests/test-wcrtomb.c: New file.
15079 New module 'wcrtomb'.
15080 * lib/wchar.in.h (wcrtomb): New declaration.
15081 * lib/wcrtomb.c: New file.
15082 * m4/wcrtomb.m4: New file.
15083 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
15085 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
15087 * modules/wcrtomb: New file.
15088 * doc/posix-functions/wcrtomb.texi: Mention the new module.
15090 2008-12-21 Bruno Haible <bruno@clisp.org>
15092 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
15093 * modules/mbsrtowcs (Files): Likewise.
15094 * modules/wctob (Files): Likewise.
15095 * modules/c-strcase-tests (Files): Likewise.
15096 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
15097 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
15098 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
15099 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
15100 * modules/vasnprintf-posix-tests (Files): Likewise.
15102 2008-12-21 William Pursell <bill.pursell@gmail.com>
15104 gitlog-to-changelog: pass all command-line arguments to git-log
15105 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
15106 it is sometimes convenient to filter the commits in various ways.
15107 gitlog-to-changelog only allows --since to specify a start date,
15108 but git-log itself supports many other filtering mechanisms.
15109 At the moment, I want to filter by branch name. Rather than
15110 adding a --branch option to gitlog-to-changelog, it seems more
15111 flexible to simply pass all options directly to git-log and let
15112 git do the work. Notice that this effectively makes --since a
15113 redundant option for gitlog-to-changelog, but removing it would
15114 require current usage to change since calls would then require
15115 an additional '--'.
15117 2008-12-21 Bruno Haible <bruno@clisp.org>
15119 * modules/mbsnrtowcs-tests: New file.
15120 * tests/test-mbsnrtowcs1.sh: New file.
15121 * tests/test-mbsnrtowcs2.sh: New file.
15122 * tests/test-mbsnrtowcs3.sh: New file.
15123 * tests/test-mbsnrtowcs4.sh: New file.
15124 * tests/test-mbsnrtowcs.c: New file.
15126 New module 'mbsnrtowcs'.
15127 * lib/wchar.in.h (mbsnrtowcs): New declaration.
15128 * lib/mbsnrtowcs.c: New file.
15129 * lib/mbsrtowcs-state.c: New file.
15130 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
15131 (internal_state): Remove variable.
15132 * m4/mbsnrtowcs.m4: New file.
15133 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
15135 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
15136 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
15137 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
15138 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
15139 * modules/mbsnrtowcs: New file.
15140 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
15141 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
15142 portability problem.
15144 2008-12-21 Bruno Haible <bruno@clisp.org>
15146 Work around mbsrtowcs bug.
15147 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
15148 (gl_FUNC_MBSRTOWCS): Invoke it.
15149 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
15151 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
15153 2008-12-21 Bruno Haible <bruno@clisp.org>
15155 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
15157 2008-12-21 Bruno Haible <bruno@clisp.org>
15159 Update doc for AIX.
15160 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
15161 16-bit wchar_t type.
15162 * doc/posix-functions/btowc.texi: Likewise.
15163 * doc/posix-functions/fgetwc.texi: Likewise.
15164 * doc/posix-functions/fgetws.texi: Likewise.
15165 * doc/posix-functions/fputwc.texi: Likewise.
15166 * doc/posix-functions/fputws.texi: Likewise.
15167 * doc/posix-functions/fwide.texi: Likewise.
15168 * doc/posix-functions/fwprintf.texi: Likewise.
15169 * doc/posix-functions/fwscanf.texi: Likewise.
15170 * doc/posix-functions/getwchar.texi: Likewise.
15171 * doc/posix-functions/getwc.texi: Likewise.
15172 * doc/posix-functions/iswalnum.texi: Likewise.
15173 * doc/posix-functions/iswalpha.texi: Likewise.
15174 * doc/posix-functions/iswblank.texi: Likewise.
15175 * doc/posix-functions/iswcntrl.texi: Likewise.
15176 * doc/posix-functions/iswctype.texi: Likewise.
15177 * doc/posix-functions/iswdigit.texi: Likewise.
15178 * doc/posix-functions/iswgraph.texi: Likewise.
15179 * doc/posix-functions/iswlower.texi: Likewise.
15180 * doc/posix-functions/iswprint.texi: Likewise.
15181 * doc/posix-functions/iswpunct.texi: Likewise.
15182 * doc/posix-functions/iswspace.texi: Likewise.
15183 * doc/posix-functions/iswupper.texi: Likewise.
15184 * doc/posix-functions/iswxdigit.texi: Likewise.
15185 * doc/posix-functions/mbrtowc.texi: Likewise.
15186 * doc/posix-functions/mbsrtowcs.texi: Likewise.
15187 * doc/posix-functions/mbstowcs.texi: Likewise.
15188 * doc/posix-functions/mbtowc.texi: Likewise.
15189 * doc/posix-functions/putwchar.texi: Likewise.
15190 * doc/posix-functions/putwc.texi: Likewise.
15191 * doc/posix-functions/swprintf.texi: Likewise.
15192 * doc/posix-functions/tolower.texi: Likewise.
15193 * doc/posix-functions/toupper.texi: Likewise.
15194 * doc/posix-functions/towctrans.texi: Likewise.
15195 * doc/posix-functions/ungetwc.texi: Likewise.
15196 * doc/posix-functions/vswprintf.texi: Likewise.
15197 * doc/posix-functions/wcrtomb.texi: Likewise.
15198 * doc/posix-functions/wcscat.texi: Likewise.
15199 * doc/posix-functions/wcschr.texi: Likewise.
15200 * doc/posix-functions/wcscmp.texi: Likewise.
15201 * doc/posix-functions/wcscoll.texi: Likewise.
15202 * doc/posix-functions/wcscpy.texi: Likewise.
15203 * doc/posix-functions/wcscspn.texi: Likewise.
15204 * doc/posix-functions/wcsftime.texi: Likewise.
15205 * doc/posix-functions/wcslen.texi: Likewise.
15206 * doc/posix-functions/wcsncat.texi: Likewise.
15207 * doc/posix-functions/wcsncmp.texi: Likewise.
15208 * doc/posix-functions/wcsncpy.texi: Likewise.
15209 * doc/posix-functions/wcspbrk.texi: Likewise.
15210 * doc/posix-functions/wcsrchr.texi: Likewise.
15211 * doc/posix-functions/wcsrtombs.texi: Likewise.
15212 * doc/posix-functions/wcsspn.texi: Likewise.
15213 * doc/posix-functions/wcsstr.texi: Likewise.
15214 * doc/posix-functions/wcstod.texi: Likewise.
15215 * doc/posix-functions/wcstof.texi: Likewise.
15216 * doc/posix-functions/wcstoimax.texi: Likewise.
15217 * doc/posix-functions/wcstok.texi: Likewise.
15218 * doc/posix-functions/wcstold.texi: Likewise.
15219 * doc/posix-functions/wcstoll.texi: Likewise.
15220 * doc/posix-functions/wcstol.texi: Likewise.
15221 * doc/posix-functions/wcstombs.texi: Likewise.
15222 * doc/posix-functions/wcstoull.texi: Likewise.
15223 * doc/posix-functions/wcstoul.texi: Likewise.
15224 * doc/posix-functions/wcstoumax.texi: Likewise.
15225 * doc/posix-functions/wcswidth.texi: Likewise.
15226 * doc/posix-functions/wcsxfrm.texi: Likewise.
15227 * doc/posix-functions/wctob.texi: Likewise.
15228 * doc/posix-functions/wctomb.texi: Likewise.
15229 * doc/posix-functions/wctrans.texi: Likewise.
15230 * doc/posix-functions/wctype.texi: Likewise.
15231 * doc/posix-functions/wcwidth.texi: Likewise.
15232 * doc/posix-functions/wmemchr.texi: Likewise.
15233 * doc/posix-functions/wmemcmp.texi: Likewise.
15234 * doc/posix-functions/wmemcpy.texi: Likewise.
15235 * doc/posix-functions/wmemmove.texi: Likewise.
15236 * doc/posix-functions/wmemset.texi: Likewise.
15237 * doc/posix-functions/wprintf.texi: Likewise.
15238 * doc/posix-functions/wscanf.texi: Likewise.
15240 2008-12-21 Bruno Haible <bruno@clisp.org>
15242 Update doc for HP-UX 11.11.
15243 * doc/posix-functions/btowc.texi: Clarify that the function is missing
15244 in HP-UX version 11.00, not in all versions of HP-UX 11.
15245 * doc/posix-functions/fwide.texi: Likewise.
15246 * doc/posix-functions/fwprintf.texi: Likewise.
15247 * doc/posix-functions/fwscanf.texi: Likewise.
15248 * doc/posix-functions/inet_ntop.texi: Likewise.
15249 * doc/posix-functions/inet_pton.texi: Likewise.
15250 * doc/posix-functions/mbrlen.texi: Likewise.
15251 * doc/posix-functions/mbrtowc.texi: Likewise.
15252 * doc/posix-functions/mbsinit.texi: Likewise.
15253 * doc/posix-functions/mbsrtowcs.texi: Likewise.
15254 * doc/posix-functions/swprintf.texi: Likewise.
15255 * doc/posix-functions/swscanf.texi: Likewise.
15256 * doc/posix-functions/towctrans.texi: Likewise.
15257 * doc/posix-functions/vfwprintf.texi: Likewise.
15258 * doc/posix-functions/vswprintf.texi: Likewise.
15259 * doc/posix-functions/vwprintf.texi: Likewise.
15260 * doc/posix-functions/wcrtomb.texi: Likewise.
15261 * doc/posix-functions/wcsrtombs.texi: Likewise.
15262 * doc/posix-functions/wcsstr.texi: Likewise.
15263 * doc/posix-functions/wctob.texi: Likewise.
15264 * doc/posix-functions/wctrans.texi: Likewise.
15265 * doc/posix-functions/wmemchr.texi: Likewise.
15266 * doc/posix-functions/wmemcmp.texi: Likewise.
15267 * doc/posix-functions/wmemcpy.texi: Likewise.
15268 * doc/posix-functions/wmemmove.texi: Likewise.
15269 * doc/posix-functions/wmemset.texi: Likewise.
15270 * doc/posix-functions/wprintf.texi: Likewise.
15271 * doc/posix-functions/wscanf.texi: Likewise.
15273 2008-12-21 Bruno Haible <bruno@clisp.org>
15275 Work around a portability problem.
15276 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
15277 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
15279 2008-12-20 Bruno Haible <bruno@clisp.org>
15281 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
15282 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
15283 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
15284 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
15285 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
15287 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
15288 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
15290 (GNULIB_defined_mbstate_t): New macro.
15291 (mbsinit): Redefine if REPLACE_MBSINIT is set.
15292 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
15293 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
15294 reuses the system's mbrtowc function but works around the bugs.
15295 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
15296 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
15298 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
15299 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
15300 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
15301 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
15302 REPLACE_MBSINIT if mbsinit needs to be overridden.
15303 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
15304 REPLACE_MBSINIT, REPLACE_MBRTOWC.
15305 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
15306 REPLACE_MBSINIT, REPLACE_MBRTOWC.
15307 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
15309 (Depends): Add mbsinit.
15310 * modules/mbsinit (Depends): Add mbrtowc.
15311 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
15313 2008-12-20 Bruno Haible <bruno@clisp.org>
15315 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
15316 so that there are no conversion errors on AIX.
15317 * tests/test-mbsrtowcs.c (main): LIkewise.
15319 2008-12-20 Bruno Haible <bruno@clisp.org>
15321 Work around wctob bug on Solaris <= 9.
15322 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
15323 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
15324 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
15325 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
15326 * modules/wctob (Files): Add m4/locale-fr.m4.
15327 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
15329 2008-12-20 Bruno Haible <bruno@clisp.org>
15331 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
15333 * tests/test-select-in.sh: Likewise.
15334 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15336 2008-12-20 Bruno Haible <bruno@clisp.org>
15338 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
15339 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
15342 2008-12-20 Bruno Haible <bruno@clisp.org>
15344 Ensure mbstate_t is defined on HP-UX 11.11.
15345 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
15346 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
15347 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
15348 AC_USE_SYSTEM_EXTENSIONS.
15349 * modules/fnmatch (Depends-on): Add extensions.
15350 * modules/mbrlen (Depends-on): Likewise.
15351 * modules/mbrtowc (Depends-on): Likewise.
15352 * modules/mbsinit (Depends-on): Likewise.
15353 * modules/mbsrtowcs (Depends-on): Likewise.
15354 * modules/mbswidth (Depends-on): Likewise.
15355 * modules/quotearg (Depends-on): Likewise.
15356 * modules/strftime (Depends-on): Likewise.
15358 2008-12-20 Bruno Haible <bruno@clisp.org>
15360 Ensure wctob is declared on IRIX 6.5.
15361 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
15362 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
15363 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
15364 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
15366 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
15368 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
15370 2008-12-19 Bruno Haible <bruno@clisp.org>
15372 * modules/mbsrtowcs-tests: New file.
15373 * tests/test-mbsrtowcs1.sh: New file.
15374 * tests/test-mbsrtowcs2.sh: New file.
15375 * tests/test-mbsrtowcs3.sh: New file.
15376 * tests/test-mbsrtowcs4.sh: New file.
15377 * tests/test-mbsrtowcs.c: New file.
15379 New module 'mbsrtowcs'.
15380 * lib/wchar.in.h (mbsrtowcs): New declaration.
15381 * lib/mbsrtowcs.c: New file.
15382 * m4/mbsrtowcs.m4: New file.
15383 * modules/mbsrtowcs: New file.
15384 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
15386 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
15388 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
15390 2008-12-19 Bruno Haible <bruno@clisp.org>
15392 New module 'mbrlen'.
15393 * lib/wchar.in.h (mbrlen): New declaration.
15394 * lib/mbrlen.c: New file.
15395 * m4/mbrlen.m4: New file.
15396 * modules/mbrlen: New file.
15397 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
15399 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
15401 * doc/posix-functions/mbrlen.texi: Document the new module.
15403 2008-12-19 Bruno Haible <bruno@clisp.org>
15405 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
15406 * modules/mbrtowc (Depends-on): Add verify.
15407 Suggested by Paul Eggert.
15409 2008-12-18 Bruno Haible <bruno@clisp.org>
15411 * modules/mbsinit-tests: New file.
15412 * tests/test-mbsinit.sh: New file.
15413 * tests/test-mbsinit.c: New file.
15415 2008-12-18 Bruno Haible <bruno@clisp.org>
15417 * modules/mbrtowc-tests: New file.
15418 * tests/test-mbrtowc1.sh: New file.
15419 * tests/test-mbrtowc2.sh: New file.
15420 * tests/test-mbrtowc3.sh: New file.
15421 * tests/test-mbrtowc4.sh: New file.
15422 * tests/test-mbrtowc.c: New file.
15424 New module 'mbrtowc'.
15425 * lib/wchar.in.h (mbstate_t): Override when the system does not have
15426 mbsinit and mbrtowc.
15427 (mbrtowc): New declaration.
15428 * lib/mbrtowc.c: New file.
15429 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
15430 * modules/mbrtowc: New file.
15431 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
15433 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
15435 * doc/posix-functions/mbrtowc.texi: Document the new module.
15437 2008-12-18 Bruno Haible <bruno@clisp.org>
15439 New module 'wctob'.
15440 * lib/wchar.in.h (wctob): New declaration.
15441 * lib/wctob.c: New file.
15442 * m4/wctob.m4: New file.
15443 * modules/wctob: New file.
15444 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
15446 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
15447 * doc/posix-functions/wctob.texi: Document the new module.
15449 2008-12-18 Bruno Haible <bruno@clisp.org>
15451 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
15452 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
15454 2008-12-18 Simon Josefsson <simon@josefsson.org>
15456 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
15457 G. Christensen" <tgc@jupiterrise.com>.
15459 * lib/flock.c: Need to include errno.h. Reported by "Tom
15460 G. Christensen" <tgc@jupiterrise.com>.
15462 * lib/flock.c: Need to include string.h. Reported by "Tom
15463 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
15466 2008-12-18 Bruno Haible <bruno@clisp.org>
15468 * m4/locale-ja.m4: New file, from GNU gettext.
15470 2008-12-17 Bruno Haible <bruno@clisp.org>
15472 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
15473 Suggested by Eric Blake.
15475 2008-12-17 Bruno Haible <bruno@clisp.org>
15477 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
15479 2008-12-17 Bruno Haible <bruno@clisp.org>
15481 * lib/mbsinit.c: Include verify.h. Verify an assumption.
15482 * modules/mbsinit (Depends-on): Add verify.
15483 Suggested by Paul Eggert.
15485 2008-12-17 Bruno Haible <bruno@clisp.org>
15487 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
15488 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
15490 * m4/mbiter.m4 (gl_MBITER): LIkewise.
15491 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
15492 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
15493 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
15494 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
15495 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
15496 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
15497 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
15498 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
15499 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
15500 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
15501 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
15502 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
15503 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
15504 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
15505 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15506 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
15507 * modules/trim (configure.ac): Likewise.
15509 2008-12-17 Bruno Haible <bruno@clisp.org>
15511 * modules/btowc-tests: New file.
15512 * tests/test-btowc1.sh: New file.
15513 * tests/test-btowc2.sh: New file.
15514 * tests/test-btowc.c: New file.
15516 New module 'btowc'.
15517 * lib/wchar.in.h (btowc): New declaration.
15518 * lib/btowc.c: New file.
15519 * m4/btowc.m4: New file.
15520 * modules/btowc: New file.
15521 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
15523 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
15524 * doc/posix-functions/btowc.texi: Document the new module.
15526 2008-12-17 Bruno Haible <bruno@clisp.org>
15528 New module 'mbsinit'.
15529 * lib/wchar.in.h (mbsinit): New declaration.
15530 * lib/mbsinit.c: New file.
15531 * m4/mbsinit.m4: New file.
15532 * modules/mbsinit: New file.
15533 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
15535 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
15537 * doc/posix-functions/mbsinit.texi: Document the new module.
15539 2008-12-16 Bruno Haible <bruno@clisp.org>
15541 * lib/unistd.in.h: Add comment.
15542 * tests/test-environ.c: Don't include <stdlib.h>.
15544 2008-12-16 Bruno Haible <bruno@clisp.org>
15546 * lib/parse-duration.h (parse_duration): Document return value
15548 * lib/parse-duration.c: Include specification header first. Add
15551 (parse_year_month_day, parse_hour_minute_second): Move side effects
15552 outside of strchr call.
15553 (parse_non_iso8601): Move side effects outside of isspace call.
15554 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
15557 2008-12-16 Bruno Haible <bruno@clisp.org>
15559 * tests/test-parse-duration.sh: Produce no output when the test
15562 2008-12-16 Bruno Haible <bruno@clisp.org>
15564 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
15567 2008-12-15 Bruno Haible <bruno@clisp.org>
15569 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
15570 * doc/glibc-functions/flistxattr.texi: Likewise.
15571 * doc/glibc-functions/fopencookie.texi: Likewise.
15572 * doc/glibc-functions/fremovexattr.texi: Likewise.
15573 * doc/glibc-functions/fsetxattr.texi: Likewise.
15574 * doc/glibc-functions/getxattr.texi: Likewise.
15575 * doc/glibc-functions/lgetxattr.texi: Likewise.
15576 * doc/glibc-functions/listxattr.texi: Likewise.
15577 * doc/glibc-functions/llistxattr.texi: Likewise.
15578 * doc/glibc-functions/lremovexattr.texi: Likewise.
15579 * doc/glibc-functions/lsetxattr.texi: Likewise.
15580 * doc/glibc-functions/removexattr.texi: Likewise.
15581 * doc/glibc-functions/setxattr.texi: Likewise.
15582 * doc/posix-functions/open_memstream.texi: Likewise.
15584 2008-12-15 Eric Blake <ebb9@byu.net>
15586 Update doc for cygwin 1.7.
15587 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
15589 * doc/posix-functions/fchmodat.texi: Likewise.
15590 * doc/posix-functions/fchownat.texi: Likewise.
15591 * doc/posix-functions/fdopendir.texi: Likewise.
15592 * doc/posix-functions/fmemopen.texi: Likewise.
15593 * doc/posix-functions/freeaddrinfo.texi: Likewise.
15594 * doc/posix-functions/fstatat.texi: Likewise.
15595 * doc/posix-functions/futimens.texi: Likewise.
15596 * doc/posix-functions/gai_strerror.texi: Likewise.
15597 * doc/posix-functions/getaddrinfo.texi: Likewise.
15598 * doc/posix-functions/getnameinfo.texi: Likewise.
15599 * doc/posix-functions/if_freenameindex.texi: Likewise.
15600 * doc/posix-functions/if_indextoname.texi: Likewise.
15601 * doc/posix-functions/if_nameindex.texi: Likewise.
15602 * doc/posix-functions/if_nametoindex.texi: Likewise.
15603 * doc/posix-functions/insque.texi: Likewise.
15604 * doc/posix-functions/linkat.texi: Likewise.
15605 * doc/posix-functions/llrint.texi: Likewise.
15606 * doc/posix-functions/llrintf.texi: Likewise.
15607 * doc/posix-functions/llrintl.texi: Likewise.
15608 * doc/posix-functions/lockf.texi: Likewise.
15609 * doc/posix-functions/lrintl.texi: Likewise.
15610 * doc/posix-functions/mkdirat.texi: Likewise.
15611 * doc/posix-functions/mkfifoat.texi: Likewise.
15612 * doc/posix-functions/mknodat.texi: Likewise.
15613 * doc/posix-functions/mq_close.texi: Likewise.
15614 * doc/posix-functions/mq_getattr.texi: Likewise.
15615 * doc/posix-functions/mq_notify.texi: Likewise.
15616 * doc/posix-functions/mq_open.texi: Likewise.
15617 * doc/posix-functions/mq_receive.texi: Likewise.
15618 * doc/posix-functions/mq_send.texi: Likewise.
15619 * doc/posix-functions/mq_setattr.texi: Likewise.
15620 * doc/posix-functions/mq_timedreceive.texi: Likewise.
15621 * doc/posix-functions/mq_timedsend.texi: Likewise.
15622 * doc/posix-functions/mq_unlink.texi: Likewise.
15623 * doc/posix-functions/open_memstream.texi: Likewise.
15624 * doc/posix-functions/openat.texi: Likewise.
15625 * doc/posix-functions/posix_fadvise.texi: Likewise.
15626 * doc/posix-functions/posix_fallocate.texi: Likewise.
15627 * doc/posix-functions/posix_madvise.texi: Likewise.
15628 * doc/posix-functions/posix_memalign.texi: Likewise.
15629 * doc/posix-functions/posix_openpt.texi: Likewise.
15630 * doc/posix-functions/readlinkat.texi: Likewise.
15631 * doc/posix-functions/remque.texi: Likewise.
15632 * doc/posix-functions/renameat.texi: Likewise.
15633 * doc/posix-functions/rintl.texi: Likewise.
15634 * doc/posix-functions/sem_unlink.texi: Likewise.
15635 * doc/posix-functions/shm_open.texi: Likewise.
15636 * doc/posix-functions/shm_unlink.texi: Likewise.
15637 * doc/posix-functions/signgam.texi: Likewise.
15638 * doc/posix-functions/sigset.texi: Likewise.
15639 * doc/posix-functions/stpcpy.texi: Likewise.
15640 * doc/posix-functions/stpncpy.texi: Likewise.
15641 * doc/posix-functions/strerror.texi: Likewise.
15642 * doc/posix-functions/strtod.texi: Likewise.
15643 * doc/posix-functions/symlinkat.texi: Likewise.
15644 * doc/posix-functions/unlinkat.texi: Likewise.
15645 * doc/posix-functions/utimensat.texi: Likewise.
15646 * doc/glibc-functions/bindresvport.texi: Likewise.
15647 * doc/glibc-functions/dn_expand.texi: Likewise.
15648 * doc/glibc-functions/exp10.texi: Likewise.
15649 * doc/glibc-functions/exp10f.texi: Likewise.
15650 * doc/glibc-functions/fgetxattr.texi: Likewise.
15651 * doc/glibc-functions/flistxattr.texi: Likewise.
15652 * doc/glibc-functions/fopencookie.texi: Likewise.
15653 * doc/glibc-functions/freeifaddrs.texi: Likewise.
15654 * doc/glibc-functions/fremovexattr.texi: Likewise.
15655 * doc/glibc-functions/fsetxattr.texi: Likewise.
15656 * doc/glibc-functions/getifaddrs.texi: Likewise.
15657 * doc/glibc-functions/getxattr.texi: Likewise.
15658 * doc/glibc-functions/lgetxattr.texi: Likewise.
15659 * doc/glibc-functions/listxattr.texi: Likewise.
15660 * doc/glibc-functions/llistxattr.texi: Likewise.
15661 * doc/glibc-functions/lremovexattr.texi: Likewise.
15662 * doc/glibc-functions/lsetxattr.texi: Likewise.
15663 * doc/glibc-functions/pow10.texi: Likewise.
15664 * doc/glibc-functions/pow10f.texi: Likewise.
15665 * doc/glibc-functions/rcmd_af.texi: Likewise.
15666 * doc/glibc-functions/removexattr.texi: Likewise.
15667 * doc/glibc-functions/res_init.texi: Likewise.
15668 * doc/glibc-functions/res_mkquery.texi: Likewise.
15669 * doc/glibc-functions/res_query.texi: Likewise.
15670 * doc/glibc-functions/res_querydomain.texi: Likewise.
15671 * doc/glibc-functions/res_send.texi: Likewise.
15672 * doc/glibc-functions/rresvport_af.texi: Likewise.
15673 * doc/glibc-functions/setxattr.texi: Likewise.
15674 * doc/glibc-functions/strcasestr.texi: Likewise.
15676 2008-12-15 Bruno Haible <bruno@clisp.org>
15678 Fix compilation error on OSF/1 4.0.
15679 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
15680 <sys/time.h>, simply delegate to the system header.
15681 Reported by Daniel Richard G. <oss@teragram.com>.
15683 2008-12-15 Bruno Haible <bruno@clisp.org>
15685 * doc/posix-functions/openat.texi: Mention the 'openat' module.
15686 * doc/posix-functions/fchmodat.texi: Likewise.
15687 * doc/posix-functions/fchownat.texi: Likewise.
15688 * doc/posix-functions/fdopendir.texi: Likewise.
15689 * doc/posix-functions/fstatat.texi: Likewise.
15690 * doc/posix-functions/mkdirat.texi: Likewise.
15691 * doc/posix-functions/unlinkat.texi: Likewise.
15693 2008-12-14 Bruno Haible <bruno@clisp.org>
15695 Update doc for POSIX:2008.
15696 * doc/posix-functions/faccessat.texi: New file.
15697 * doc/posix-functions/fchmodat.texi: New file.
15698 * doc/posix-functions/fchownat.texi: New file.
15699 * doc/posix-functions/fdopendir.texi: New file.
15700 * doc/posix-functions/fstatat.texi: New file.
15701 * doc/posix-functions/futimens.texi: New file.
15702 * doc/posix-functions/linkat.texi: New file.
15703 * doc/posix-functions/mkdirat.texi: New file.
15704 * doc/posix-functions/mkfifoat.texi: New file.
15705 * doc/posix-functions/mknodat.texi: New file.
15706 * doc/posix-functions/open_wmemstream.texi: New file.
15707 * doc/posix-functions/openat.texi: New file.
15708 * doc/posix-functions/psiginfo.texi: New file.
15709 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
15710 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
15711 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
15712 * doc/posix-functions/readlinkat.texi: New file.
15713 * doc/posix-functions/renameat.texi: New file.
15714 * doc/posix-functions/strerror_l.texi: New file.
15715 * doc/posix-functions/symlinkat.texi: New file.
15716 * doc/posix-functions/unlinkat.texi: New file.
15717 * doc/posix-functions/utimensat.texi: New file.
15718 * doc/gnulib.texi (Function Substitutes): Add these subsections.
15720 2008-12-14 Bruno Haible <bruno@clisp.org>
15722 Update doc for POSIX:2008.
15723 * doc/posix-functions/alphasort.texi: Renamed from
15724 doc/glibc-functions/alphasort.texi.
15725 * doc/posix-functions/dirfd.texi: Renamed from
15726 doc/glibc-functions/dirfd.texi.
15727 * doc/posix-functions/dprintf.texi: Renamed from
15728 doc/glibc-functions/dprintf.texi.
15729 * doc/posix-functions/duplocale.texi: Renamed from
15730 doc/glibc-functions/duplocale.texi.
15731 * doc/posix-functions/fexecve.texi: Renamed from
15732 doc/glibc-functions/fexecve.texi.
15733 * doc/posix-functions/fmemopen.texi: Renamed from
15734 doc/glibc-functions/fmemopen.texi.
15735 * doc/posix-functions/freelocale.texi: Renamed from
15736 doc/glibc-functions/freelocale.texi.
15737 * doc/posix-functions/getdate_err.texi: Renamed from
15738 doc/glibc-functions/getdate_err.texi.
15739 * doc/posix-functions/isalnum_l.texi: Renamed from
15740 doc/glibc-functions/isalnum_l.texi.
15741 * doc/posix-functions/isalpha_l.texi: Renamed from
15742 doc/glibc-functions/isalpha_l.texi.
15743 * doc/posix-functions/isblank_l.texi: Renamed from
15744 doc/glibc-functions/isblank_l.texi.
15745 * doc/posix-functions/iscntrl_l.texi: Renamed from
15746 doc/glibc-functions/iscntrl_l.texi.
15747 * doc/posix-functions/isdigit_l.texi: Renamed from
15748 doc/glibc-functions/isdigit_l.texi.
15749 * doc/posix-functions/isgraph_l.texi: Renamed from
15750 doc/glibc-functions/isgraph_l.texi.
15751 * doc/posix-functions/islower_l.texi: Renamed from
15752 doc/glibc-functions/islower_l.texi.
15753 * doc/posix-functions/isprint_l.texi: Renamed from
15754 doc/glibc-functions/isprint_l.texi.
15755 * doc/posix-functions/ispunct_l.texi: Renamed from
15756 doc/glibc-functions/ispunct_l.texi.
15757 * doc/posix-functions/isspace_l.texi: Renamed from
15758 doc/glibc-functions/isspace_l.texi.
15759 * doc/posix-functions/isupper_l.texi: Renamed from
15760 doc/glibc-functions/isupper_l.texi.
15761 * doc/posix-functions/iswalnum_l.texi: Renamed from
15762 doc/glibc-functions/iswalnum_l.texi.
15763 * doc/posix-functions/iswalpha_l.texi: Renamed from
15764 doc/glibc-functions/iswalpha_l.texi.
15765 * doc/posix-functions/iswblank_l.texi: Renamed from
15766 doc/glibc-functions/iswblank_l.texi.
15767 * doc/posix-functions/iswcntrl_l.texi: Renamed from
15768 doc/glibc-functions/iswcntrl_l.texi.
15769 * doc/posix-functions/iswctype_l.texi: Renamed from
15770 doc/glibc-functions/iswctype_l.texi.
15771 * doc/posix-functions/iswdigit_l.texi: Renamed from
15772 doc/glibc-functions/iswdigit_l.texi.
15773 * doc/posix-functions/iswgraph_l.texi: Renamed from
15774 doc/glibc-functions/iswgraph_l.texi.
15775 * doc/posix-functions/iswlower_l.texi: Renamed from
15776 doc/glibc-functions/iswlower_l.texi.
15777 * doc/posix-functions/iswprint_l.texi: Renamed from
15778 doc/glibc-functions/iswprint_l.texi.
15779 * doc/posix-functions/iswpunct_l.texi: Renamed from
15780 doc/glibc-functions/iswpunct_l.texi.
15781 * doc/posix-functions/iswspace_l.texi: Renamed from
15782 doc/glibc-functions/iswspace_l.texi.
15783 * doc/posix-functions/iswupper_l.texi: Renamed from
15784 doc/glibc-functions/iswupper_l.texi.
15785 * doc/posix-functions/iswxdigit_l.texi: Renamed from
15786 doc/glibc-functions/iswxdigit_l.texi.
15787 * doc/posix-functions/isxdigit_l.texi: Renamed from
15788 doc/glibc-functions/isxdigit_l.texi.
15789 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
15790 doc/glibc-functions/mbsnrtowcs.texi.
15791 * doc/posix-functions/mkdtemp.texi: Renamed from
15792 doc/glibc-functions/mkdtemp.texi.
15793 * doc/posix-functions/newlocale.texi: Renamed from
15794 doc/glibc-functions/newlocale.texi.
15795 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
15796 doc/glibc-functions/nl_langinfo_l.texi.
15797 * doc/posix-functions/open_memstream.texi: Renamed from
15798 doc/glibc-functions/open_memstream.texi.
15799 * doc/posix-functions/opterr.texi: Renamed from
15800 doc/glibc-functions/opterr.texi.
15801 * doc/posix-functions/optind.texi: Renamed from
15802 doc/glibc-functions/optind.texi.
15803 * doc/posix-functions/optopt.texi: Renamed from
15804 doc/glibc-functions/optopt.texi.
15805 * doc/posix-functions/psignal.texi: Renamed from
15806 doc/glibc-functions/psignal.texi.
15807 * doc/posix-functions/scandir.texi: Renamed from
15808 doc/glibc-functions/scandir.texi.
15809 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
15810 doc/glibc-functions/sched_get_priority_min.texi.
15811 * doc/posix-functions/signgam.texi: Renamed from
15812 doc/glibc-functions/signgam.texi.
15813 * doc/posix-functions/stpcpy.texi: Renamed from
15814 doc/glibc-functions/stpcpy.texi.
15815 * doc/posix-functions/stpncpy.texi: Renamed from
15816 doc/glibc-functions/stpncpy.texi.
15817 * doc/posix-functions/strcasecmp_l.texi: Renamed from
15818 doc/glibc-functions/strcasecmp_l.texi.
15819 * doc/posix-functions/strcoll_l.texi: Renamed from
15820 doc/glibc-functions/strcoll_l.texi.
15821 * doc/posix-functions/strfmon_l.texi: Renamed from
15822 doc/glibc-functions/strfmon_l.texi.
15823 * doc/posix-functions/strftime_l.texi: Renamed from
15824 doc/glibc-functions/strftime_l.texi.
15825 * doc/posix-functions/strncasecmp_l.texi: Renamed from
15826 doc/glibc-functions/strncasecmp_l.texi.
15827 * doc/posix-functions/strndup.texi: Renamed from
15828 doc/glibc-functions/strndup.texi.
15829 * doc/posix-functions/strnlen.texi: Renamed from
15830 doc/glibc-functions/strnlen.texi.
15831 * doc/posix-functions/strsignal.texi: Renamed from
15832 doc/glibc-functions/strsignal.texi.
15833 * doc/posix-functions/strxfrm_l.texi: Renamed from
15834 doc/glibc-functions/strxfrm_l.texi.
15835 * doc/posix-functions/timer_gettime.texi: Renamed from
15836 doc/glibc-functions/timer_gettime.texi.
15837 * doc/posix-functions/tolower_l.texi: Renamed from
15838 doc/glibc-functions/tolower_l.texi.
15839 * doc/posix-functions/toupper_l.texi: Renamed from
15840 doc/glibc-functions/toupper_l.texi.
15841 * doc/posix-functions/towctrans_l.texi: Renamed from
15842 doc/glibc-functions/towctrans_l.texi.
15843 * doc/posix-functions/towlower_l.texi: Renamed from
15844 doc/glibc-functions/towlower_l.texi.
15845 * doc/posix-functions/towupper_l.texi: Renamed from
15846 doc/glibc-functions/towupper_l.texi.
15847 * doc/posix-functions/uselocale.texi: Renamed from
15848 doc/glibc-functions/uselocale.texi.
15849 * doc/posix-functions/vdprintf.texi: Renamed from
15850 doc/glibc-functions/vdprintf.texi.
15851 * doc/posix-functions/wcpcpy.texi:
15852 Renamed from doc/glibc-functions/wcpcpy.texi.
15853 * doc/posix-functions/wcpncpy.texi: Renamed from
15854 doc/glibc-functions/wcpncpy.texi.
15855 * doc/posix-functions/wcscasecmp.texi: Renamed from
15856 doc/glibc-functions/wcscasecmp.texi.
15857 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
15858 doc/glibc-functions/wcscasecmp_l.texi.
15859 * doc/posix-functions/wcscoll_l.texi: Renamed from
15860 doc/glibc-functions/wcscoll_l.texi.
15861 * doc/posix-functions/wcsdup.texi: Renamed from
15862 doc/glibc-functions/wcsdup.texi.
15863 * doc/posix-functions/wcsncasecmp.texi: Renamed from
15864 doc/glibc-functions/wcsncasecmp.texi.
15865 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
15866 doc/glibc-functions/wcsncasecmp_l.texi.
15867 * doc/posix-functions/wcsnlen.texi: Renamed from
15868 doc/glibc-functions/wcsnlen.texi.
15869 * doc/posix-functions/wcsnrtombs.texi: Renamed from
15870 doc/glibc-functions/wcsnrtombs.texi.
15871 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
15872 doc/glibc-functions/wcsxfrm_l.texi.
15873 * doc/posix-functions/wctrans_l.texi: Renamed from
15874 doc/glibc-functions/wctrans_l.texi.
15875 * doc/posix-functions/wctype_l.texi: Renamed from
15876 doc/glibc-functions/wctype_l.texi.
15877 * doc/gnulib.texi (Function Substitutes): Add these subsections.
15878 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
15879 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
15880 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
15882 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
15885 2008-12-14 Bruno Haible <bruno@clisp.org>
15887 Update doc for POSIX:2008.
15888 * doc/posix-functions/*.texi: Update URL of POSIX specification.
15890 2008-12-14 Bruno Haible <bruno@clisp.org>
15892 Update doc for POSIX:2008.
15893 * doc/pastposix-functions/bcmp.texi: Renamed from
15894 doc/posix-functions/bcmp.texi.
15895 * doc/pastposix-functions/bcopy.texi: Renamed from
15896 doc/posix-functions/bcopy.texi.
15897 * doc/pastposix-functions/bsd_signal.texi: Renamed from
15898 doc/posix-functions/bsd_signal.texi.
15899 * doc/pastposix-functions/bzero.texi: Renamed from
15900 doc/posix-functions/bzero.texi.
15901 * doc/pastposix-functions/ecvt.texi: Renamed from
15902 doc/posix-functions/ecvt.texi.
15903 * doc/pastposix-functions/fcvt.texi: Renamed from
15904 doc/posix-functions/fcvt.texi.
15905 * doc/pastposix-functions/ftime.texi: Renamed from
15906 doc/posix-functions/ftime.texi.
15907 * doc/pastposix-functions/gcvt.texi: Renamed from
15908 doc/posix-functions/gcvt.texi.
15909 * doc/pastposix-functions/getcontext.texi: Renamed from
15910 doc/posix-functions/getcontext.texi.
15911 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
15912 doc/posix-functions/gethostbyaddr.texi.
15913 * doc/pastposix-functions/gethostbyname.texi: Renamed from
15914 doc/posix-functions/gethostbyname.texi.
15915 * doc/pastposix-functions/getwd.texi: Renamed from
15916 doc/posix-functions/getwd.texi.
15917 * doc/pastposix-functions/h_errno.texi: Renamed from
15918 doc/posix-functions/h_errno.texi.
15919 * doc/pastposix-functions/index.texi: Renamed from
15920 doc/posix-functions/index.texi.
15921 * doc/pastposix-functions/makecontext.texi: Renamed from
15922 doc/posix-functions/makecontext.texi.
15923 * doc/pastposix-functions/mktemp.texi: Renamed from
15924 doc/posix-functions/mktemp.texi.
15925 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
15926 doc/posix-functions/pthread_attr_getstackaddr.texi.
15927 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
15928 doc/posix-functions/pthread_attr_setstackaddr.texi.
15929 * doc/pastposix-functions/rindex.texi: Renamed from
15930 doc/posix-functions/rindex.texi.
15931 * doc/pastposix-functions/scalb.texi: Renamed from
15932 doc/posix-functions/scalb.texi.
15933 * doc/pastposix-functions/setcontext.texi: Renamed from
15934 doc/posix-functions/setcontext.texi.
15935 * doc/pastposix-functions/swapcontext.texi: Renamed from
15936 doc/posix-functions/swapcontext.texi.
15937 * doc/pastposix-functions/ualarm.texi: Renamed from
15938 doc/posix-functions/ualarm.texi.
15939 * doc/pastposix-functions/usleep.texi: Renamed from
15940 doc/posix-functions/usleep.texi.
15941 * doc/pastposix-functions/vfork.texi: Renamed from
15942 doc/posix-functions/vfork.texi.
15943 * doc/pastposix-functions/wcswcs.texi: Renamed from
15944 doc/posix-functions/wcswcs.texi.
15945 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
15946 (Function Substitutes): Update.
15948 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15950 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
15953 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15954 Bruno Haible <bruno@clisp.org>
15956 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
15958 2008-12-13 Bruno Haible <bruno@clisp.org>
15960 * modules/strtoull (Depends-on): Remove unistd.
15962 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15964 * modules/strtoull (Depends-on): Add stdlib.
15966 2008-12-11 Simon Josefsson <simon@josefsson.org>
15968 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
15970 2008-12-10 Jim Meyering <meyering@redhat.com>
15972 gl_ASSERT: don't say assertions are disabled when they're not
15973 * m4/assert.m4 (gl_ASSERT): Do not make configure report
15974 "checking whether to enable assertions... no", when they are in
15975 fact enabled. This is solely a bug in the output of configure.
15976 In spite of saying "no", NDEBUG was not defined in that case.
15977 Also, as noted by Eric Blake, leave assertions enabled upon
15978 --enable-assert=INVALID.
15980 2008-12-10 Bruno Haible <bruno@clisp.org>
15982 Change MODULES.html to refer to POSIX:2008 where possible.
15983 * MODULES.html.sh (POSIX2008_URL): New variable.
15984 (posix_headers): Remove sys/timeb, ucontext.
15985 (posix2001_headers): New variable.
15986 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
15987 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
15988 index, makecontext, mktemp, pthread_attr_getstackaddr,
15989 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
15990 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
15991 (posix2001_functions): New variable.
15992 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
15995 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15997 add missing include to parse-duration.c
15998 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
15999 * modules/parse-duration (Depends-on): Add xalloc.
16001 fix sed script reading maint.mk
16002 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
16003 (syntax-check-rules): Use it.
16005 2008-12-09 Bruno Haible <bruno@clisp.org>
16007 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
16008 MacOS X 10.4/PowerPC.
16009 Reported by Simon Josefsson.
16011 2008-12-08 Jim Meyering <meyering@redhat.com>
16013 work around mingw's lack of some S_IF definitions
16014 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
16015 Reported by Simon Josefsson.
16017 2008-12-08 Bruno Haible <bruno@clisp.org>
16019 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
16020 applied to variables. Needed on MacOS X 10.4/PowerPC.
16021 Reported by Simon Josefsson.
16023 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
16024 and Eric Blake <ebb9@byu.net>
16026 assert: honor --enable-assert
16027 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
16028 order to honor --enable-assert, rather than treating it as a
16029 synonym for --disable-assert.
16031 2008-12-08 Jim Meyering <meyering@redhat.com>
16033 * lib/posixtm.c: Remove now-useless declaration of mktime.
16035 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
16037 2008-12-07 Bruno Haible <bruno@clisp.org>
16039 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
16040 test_once): Mark functions as static.
16041 * tests/test-tls.c (test_tls): Likewise.
16043 2008-12-07 Bruno Haible <bruno@clisp.org>
16045 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
16046 iconv_register_autodetect.
16048 2008-12-07 Jim Meyering <meyering@redhat.com>
16050 posixtm.c: avoid a warning
16051 * lib/posixtm.c (posixtime): Don't initialize tm0.
16052 It's no longer needed to placate gcc4's -Wuninitialized,
16053 and the attempt to placate would elicit a new warning.
16055 unicodeio.c: mark unused parameters
16056 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
16057 (fallback_failure_callback): Likewise.
16059 2008-12-07 Bruno Haible <bruno@clisp.org>
16061 * gnulib-tool (func_create_testdir): When building the tests
16062 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
16063 Reported by Simon Josefsson.
16065 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16067 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
16069 2008-12-06 Bruno Haible <bruno@clisp.org>
16071 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
16072 Suggested by Eric Blake.
16074 2008-12-06 Bruno Haible <bruno@clisp.org>
16076 Fix a c-stack test failure on MacOS X.
16077 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
16078 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
16079 handler for SIGBUS as well.
16080 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
16081 install a signal handler for SIGBUS as well.
16082 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
16084 2008-12-06 Bruno Haible <bruno@clisp.org>
16086 Advocacy documentation.
16087 * doc/gnulib-intro.texi (Benefits): New section.
16088 * doc/gnulib.texi: Update.
16090 2008-12-06 Bruno Haible <bruno@clisp.org>
16092 Document the 'manywarnings' module.
16093 * doc/manywarnings.texi: New file.
16094 * doc/gnulib.texi: Include it.
16096 2008-12-05 Eric Blake <ebb9@byu.net>
16098 tests: silence some gcc warnings
16099 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
16100 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
16103 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16104 Bruno Haible <bruno@clisp.org>
16106 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
16108 2008-11-29 Jim Meyering <meyering@redhat.com>
16110 unicodeio.c: mark unused parameters
16111 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
16112 (fallback_failure_callback): Likewise.
16115 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
16116 (set_stat_type): Return S_IF*-valued "type" directly.
16117 Prompted by James Youngman's spotting a related bug.
16118 Confirmed by further testing through find.
16120 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
16121 * lib/fts.c (D_TYPE): Define.
16122 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
16123 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
16124 (s_ifmt_shift_bits): New function.
16125 (set_stat_type): New function.
16126 (fts_build): When not calling fts_stat, call set_stat_type
16127 to propagate dirent.d_type info to fts_read caller.
16128 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
16129 fts_statp->st_mode type information may be valid.
16131 2008-11-28 Simon Josefsson <simon@josefsson.org>
16133 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
16134 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
16137 2008-11-20 Bruno Haible <bruno@clisp.org>
16139 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
16140 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
16142 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
16143 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
16144 * modules/math (Makefile.am): Substitute
16145 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
16146 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16148 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
16149 Bruno Haible <bruno@clisp.org>
16151 * lib/stdint.in.h: Define all type macros so that their expansion is
16152 a single typedef'ed token. Fixes a compilation failure in Boost which
16153 does "using ::int8_t;".
16155 2008-11-18 Simon Josefsson <simon@josefsson.org>
16157 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
16158 gl_MANYWARN_ALL_GCC.
16159 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
16160 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
16161 * modules/manywarnings: New file.
16162 * MODULES.html.sh: Mention manywarnings module.
16164 2008-11-18 Bruno Haible <bruno@clisp.org>
16166 * doc/gnulib-tool.texi (Unit tests): New section.
16168 2008-11-18 Simon Josefsson <simon@josefsson.org>
16170 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
16171 paths like 'lib/po/foo.po'.
16173 2008-11-17 Simon Josefsson <simon@josefsson.org>
16175 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
16176 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
16178 2008-11-17 Simon Josefsson <simon@josefsson.org>
16180 * m4/warnings.m4: Use CPPFLAGS to really check whether the
16183 2008-11-17 Simon Josefsson <simon@josefsson.org>
16185 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
16187 2008-11-17 Bruce Korb <bkorb@gnu.org>
16189 * modules/parse-duration-tests: New file.
16190 * tests/test-parse-duration.sh: New file.
16191 * tests/test-parse-duration.c: New file.
16193 New module 'parse-duration'.
16194 * lib/parse-duration.h: New file.
16195 * lib/parse-duration.c: New file.
16196 * modules/parse-duration: New file.
16198 2008-11-17 Bruno Haible <bruno@clisp.org>
16200 * tests/test-select-out.sh: Comment out the first pipe test.
16201 Reported by Simon Josefsson.
16203 2008-11-17 Bruno Haible <bruno@clisp.org>
16205 * modules/getaddrinfo (Depends-on): Add servent, hostent.
16206 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
16209 2008-11-17 Bruno Haible <bruno@clisp.org>
16211 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
16212 -lnetwork and -lnet. Needed for Haiku and BeOS.
16214 2008-11-16 Bruno Haible <bruno@clisp.org>
16216 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
16218 2008-11-16 Bruno Haible <bruno@clisp.org>
16220 Avoid test failure on Haiku.
16221 * tests/test-fsync.c: Include <errno.h>.
16222 (main): Don't require that fsync (0) fails.
16224 2008-11-15 Bruno Haible <bruno@clisp.org>
16226 New module 'hostent'.
16227 * modules/hostent: New file.
16228 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
16230 2008-11-15 Bruno Haible <bruno@clisp.org>
16232 New module 'servent'.
16233 * modules/servent: New file.
16234 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
16236 2008-11-15 Bruno Haible <bruno@clisp.org>
16238 Avoid generating same test program with two different rules.
16239 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
16240 test-frexp to test-frexp-nolibm.
16241 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
16242 test-frexpl to test-frexpl-nolibm.
16244 2008-11-15 Bruno Haible <bruno@clisp.org>
16246 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
16249 2008-11-15 Bruno Haible <bruno@clisp.org>
16251 * lib/netdb.in.h: Activate the definitions also when the system's
16252 <netdb.h> has 'struct addrinfo'.
16253 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
16254 EAI_OVERFLOW or AI_NUMERICSERV.
16255 * doc/posix-headers/netdb.texi: Document the problem.
16257 2008-11-15 Bruno Haible <bruno@clisp.org>
16259 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
16261 Make the 'sched' module work on platforms where <sched.h> exists but
16262 is incomplete (such as Haiku).
16263 * lib/sched.in.h; Include the system's <sched.h> if it exists.
16264 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
16265 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
16266 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
16267 HAVE_STRUCT_SCHED_PARAM.
16268 * modules/sched (Depends-on): Add include_next.
16269 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
16270 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
16271 * doc/posix-headers/sched.texi: Document the issue.
16273 2008-11-13 Jim Meyering <meyering@redhat.com>
16275 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
16276 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
16277 test would fail due to the difference in the Report bugs to ...
16278 line. The expected address is empty, "<>", while the actual
16279 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
16281 2008-11-12 Bruno Haible <bruno@clisp.org>
16283 lstat: don't compile lstat.c on systems lacking lstat
16284 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
16285 which don't have lstat; this is handled by lib/sys_stat.in.h already.
16286 Reported by Daniel P. Berrange via Jim Meyering.
16288 2008-11-12 Jim Meyering <meyering@redhat.com>
16290 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
16292 2008-11-12 Simon Josefsson <simon@josefsson.org>
16294 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
16297 2008-11-12 Bruno Haible <bruno@clisp.org>
16299 * lib/unicodeio.c: Include unistr.h.
16300 (utf8_wctomb): Remove function.
16301 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
16303 2008-11-12 Simon Josefsson <simon@josefsson.org>
16305 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
16306 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
16308 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
16310 2008-11-12 Simon Josefsson <simon@josefsson.org>
16312 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
16313 * doc/gnulib.texi: Add section for warnings.
16315 2008-11-11 Bruno Haible <bruno@clisp.org>
16317 * lib/sockets.h: Add a comment.
16319 2008-11-11 Karl Berry <karl@gnu.org>
16321 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
16323 2008-11-11 Eric Blake <ebb9@byu.net>
16325 fdl.texi: avoid git symlinks
16326 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
16328 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
16330 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
16332 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
16334 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
16335 (gl_WARN_ADD): Substitute $2 if literal.
16337 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
16339 * m4/warning.m4: Remove.
16341 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
16343 * m4/warnings.m4: Almost complete rewrite. :-)
16345 2008-11-10 Simon Josefsson <simon@josefsson.org>
16347 * modules/warnings: New module.
16348 * m4/warnings.m4: New file.
16349 * MODULES.html.sh: Mention warnings module.
16350 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
16351 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16353 2008-11-10 Eric Blake <ebb9@byu.net>
16355 fdl.texi: make a symlink to the latest version
16356 * doc/standards.texi: Revert today's earlier change.
16357 * doc/fdl-1.2.texi: Rename from old fdl.texi...
16358 * doc/fdl.texi: ...and replace this with a symlink to the newer
16361 2008-11-10 Bruno Haible <bruno@clisp.org>
16363 * tests/test-select-fd.c (main): Accept the result file name as fourth
16365 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
16366 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
16368 2008-11-10 Bruno Haible <bruno@clisp.org>
16370 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
16371 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
16372 as autoconf-substituted macros.
16373 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
16374 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
16375 gl_NETDB_H_DEFAULTS. Set these variables.
16376 * modules/netdb (Makefile.am): Substitute these variables.
16378 2008-11-10 Eric Blake <ebb9@byu.net>
16380 standards.texi: include correct file for FDL 1.3
16381 * doc/standards.texi (GNU Free Documentation License): Change
16382 include file to pull in FDL 1.3, not 1.2.
16384 fdl.texi: revert accidental change to license
16385 * doc/fdl.texi: This is FDL 1.2, not 1.3.
16387 2008-11-10 Bruno Haible <bruno@clisp.org>
16389 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
16390 cross-compiling guesses also when the native compile gives no result.
16392 2008-11-10 Bruno Haible <bruno@clisp.org>
16394 * lib/spawni.c (__spawni): Force variable into the stack.
16396 2008-11-10 Bruno Haible <bruno@clisp.org>
16398 Add support for Haiku.
16399 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
16400 glibc and BeOS, but also on Haiku.
16401 * lib/fpurge.c (fpurge): Likewise.
16402 * lib/freadable.c (freadable): Likewise.
16403 * lib/freadahead.c (freadahead): Likewise.
16404 * lib/freading.c (freading): Likewise.
16405 * lib/freadptr.c (freadptr): Likewise.
16406 * lib/freadseek.c (freadptrinc): Likewise.
16407 * lib/fseeko.c (rpl_fseeko): Likewise.
16408 * lib/fseterr.c (fseterr): Likewise.
16409 * lib/fwritable.c (fwritable): Likewise.
16410 * lib/fwriting.c (fwriting): Likewise.
16411 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
16413 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
16415 * lib/config.charset: Treat Haiku like BeOS.
16417 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
16419 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
16420 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
16422 2008-11-08 Bruno Haible <bruno@clisp.org>
16424 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
16427 2008-11-08 Bruno Haible <bruno@clisp.org>
16429 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
16431 2008-11-08 Bruno Haible <bruno@clisp.org>
16433 * tests/test-select-fd.c: New file.
16434 * tests/test-select-in.sh: New file.
16435 * tests/test-select-out.sh: New file.
16436 * tests/test-select-stdin.c: New file.
16437 * modules/select-tests (Files): Add the new files.
16438 (Depends-on): Add gettimeofday.
16439 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
16440 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
16441 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
16443 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
16444 Bruno Haible <bruno@clisp.org>
16446 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
16448 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
16450 * build-aux/pmccabe2html: Added support for C++ source files.
16452 2008-11-05 Ben Pfaff <blp@gnu.org>
16454 Fix lib/close.c build on Windows.
16455 * modules/close (Files): Add lib/w32sock.h.
16457 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
16459 Accept Bison's NEWS format.
16460 * build-aux/announce-gen (print_news_deltas): Tweak
16463 2008-11-04 Bruno Haible <bruno@clisp.org>
16465 * modules/random_r (Maintainer): Add glibc.
16467 2008-11-04 Simon Josefsson <simon@josefsson.org>
16469 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
16470 by karl@freefriends.org (Karl Berry).
16471 * doc/alloca.texi: Likewise.
16472 * doc/c-ctype.texi: Likewise.
16473 * doc/c-strcase.texi: Likewise.
16474 * doc/c-strcaseeq.texi: Likewise.
16475 * doc/c-strcasestr.texi: Likewise.
16476 * doc/c-strstr.texi: Likewise.
16477 * doc/c-strtod.texi: Likewise.
16478 * doc/c-strtold.texi: Likewise.
16479 * doc/ctime.texi: Likewise.
16480 * doc/error.texi: Likewise.
16481 * doc/fdl.texi: Likewise.
16482 * doc/gcd.texi: Likewise.
16483 * doc/getdate.texi: Likewise.
16484 * doc/gnulib-intro.texi: Likewise.
16485 * doc/gnulib-tool.texi: Likewise.
16486 * doc/gnulib.texi: Likewise.
16487 * doc/inet_ntoa.texi: Likewise.
16488 * doc/maintain.texi: Likewise.
16489 * doc/make-stds.texi: Likewise.
16490 * doc/quote.texi: Likewise.
16491 * doc/regexprops-generic.texi: Likewise.
16492 * doc/standards.texi: Likewise.
16493 * doc/verify.texi: Likewise.
16494 * doc/visibility.texi: Likewise.
16495 * doc/gnulib.texi (GNU Free Documentation License): Include
16496 fdl-1.3.texi instead of fdl.texi.
16498 2008-11-04 Simon Josefsson <simon@josefsson.org>
16500 * doc/fdl-1.3.texi: New file, from
16501 <http://www.gnu.org/licenses/fdl-1.3.texi>.
16502 * modules/fdl-1.3: Add.
16503 * MODULES.html.sh: Add fdl-1.3.
16505 2008-11-03 Bruno Haible <bruno@clisp.org>
16507 Make determination of absolute name of header file work with AIX xlc.
16508 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
16509 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
16511 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
16512 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
16514 2008-11-03 Simon Josefsson <simon@josefsson.org>
16516 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
16517 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
16520 2008-11-02 Bruno Haible <bruno@clisp.org>
16522 Mark 'strpbrk' obsolete.
16523 * modules/strpbrk (Status, Notice): New sections.
16524 * modules/strtok_r (Depends-on): Add strpbrk.
16526 2008-11-02 Bruno Haible <bruno@clisp.org>
16528 Mark 'strdup' obsolete.
16529 * modules/strdup (Status, Notice): New sections.
16530 * modules/findprog (Depends-on): Add strdup.
16531 * modules/getaddrinfo (Depends-on): Likewise.
16532 * modules/localename (Depends-on): Likewise.
16533 * modules/relocatable-lib (Depends-on): Likewise.
16534 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
16535 * modules/relocatable-prog (Depends-on): Likewise.
16536 * modules/trim (Depends-on): Likewise.
16537 * modules/unictype/gen-ctype (Depends-on): Likewise.
16538 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
16540 2008-11-02 Bruno Haible <bruno@clisp.org>
16542 Mark 'strcspn' obsolete.
16543 * modules/strcspn (Status, Notice): New sections.
16545 2008-11-02 Bruno Haible <bruno@clisp.org>
16547 Mark 'rmdir' obsolete.
16548 * modules/rmdir (Status, Notice): New sections.
16549 * modules/clean-temp (Depends-on): Add rmdir.
16550 * modules/openat (Depends-on): Likewise.
16552 2008-11-02 Bruno Haible <bruno@clisp.org>
16554 Mark 'raise' obsolete.
16555 * modules/raise (Status, Notice): New sections.
16556 (Include): Specify <signal.h>.
16557 * modules/stdio (Depends-on): Add raise.
16558 * modules/write (Depends-on): Likewise.
16560 2008-11-02 Bruno Haible <bruno@clisp.org>
16562 Mark 'memset' obsolete.
16563 * modules/memset (Status, Notice): New sections.
16565 2008-11-02 Bruno Haible <bruno@clisp.org>
16567 Mark 'memmove' obsolete.
16568 * modules/memmove (Status, Notice): New sections.
16569 * modules/argp (Depends-on): Add memmove.
16570 * modules/argz (Depends-on): Likewise.
16571 * modules/canonicalize (Depends-on): Likewise.
16572 * modules/canonicalize-lgpl (Depends-on): Likewise.
16573 * modules/fts (Depends-on): Likewise.
16574 * modules/getcwd (Depends-on): Likewise.
16575 * modules/human (Depends-on): Likewise.
16576 * modules/regex (Depends-on): Likewise.
16577 * modules/striconveh (Depends-on): Likewise.
16578 * modules/trim (Depends-on): Likewise.
16579 * modules/unistr/u8-move (Depends-on): Likewise.
16580 * modules/unistr/u16-move (Depends-on): Likewise.
16581 * modules/unistr/u32-move (Depends-on): Likewise.
16583 2008-11-02 Bruno Haible <bruno@clisp.org>
16585 Mark 'memcpy' obsolete.
16586 * modules/memcpy (Status, Notice): New sections.
16588 2008-11-02 Bruno Haible <bruno@clisp.org>
16590 Mark 'memcmp' obsolete.
16591 * modules/memcmp (Status, Notice): New sections.
16592 * modules/argmatch (Depends-on): Add memchr.
16593 * modules/backupfile (Depends-on): Likewise.
16594 * modules/c-strcasestr (Depends-on): Likewise.
16595 * modules/crypto/des (Depends-on): Likewise.
16596 * modules/csharpcomp (Depends-on): Likewise.
16597 * modules/fnmatch (Depends-on): Likewise.
16598 * modules/git-merge-changelog (Depends-on): Likewise.
16599 * modules/isnand (Depends-on): Likewise.
16600 * modules/isnand-nolibm (Depends-on): Likewise.
16601 * modules/isnanf (Depends-on): Likewise.
16602 * modules/isnanf-nolibm (Depends-on): Likewise.
16603 * modules/isnanl (Depends-on): Likewise.
16604 * modules/isnanl-nolibm (Depends-on): Likewise.
16605 * modules/mbchar (Depends-on): Likewise.
16606 * modules/memcoll (Depends-on): Likewise.
16607 * modules/quotearg (Depends-on): Likewise.
16608 * modules/regex (Depends-on): Likewise.
16609 * modules/relocatable-prog (Depends-on): Likewise.
16610 * modules/same (Depends-on): Likewise.
16611 * modules/signbit (Depends-on): Likewise.
16612 * modules/strcasestr-simple (Depends-on): Likewise.
16613 * modules/unictype/gen-ctype (Depends-on): Likewise.
16614 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
16615 * modules/uniname/uniname (Depends-on): Likewise.
16616 * modules/unistr/u8-cmp (Depends-on): Likewise.
16618 2008-11-02 Bruno Haible <bruno@clisp.org>
16620 Mark 'memchr' obsolete.
16621 * modules/memchr (Status, Notice): New sections.
16622 * modules/argp (Depends-on): Add memchr.
16623 * modules/base64 (Depends-on): Likewise.
16624 * modules/c-strcasestr (Depends-on): Likewise.
16625 * modules/chdir-long (Depends-on): Likewise.
16626 * modules/fnmatch (Depends-on): Likewise.
16627 * modules/getsubopt (Depends-on): Likewise.
16628 * modules/git-merge-changelog (Depends-on): Likewise.
16629 * modules/glob (Depends-on): Likewise.
16630 * modules/strcasestr-simple (Depends-on): Likewise.
16631 * modules/strnlen (Depends-on): Likewise.
16633 2008-11-02 Bruno Haible <bruno@clisp.org>
16635 Mark 'atexit' obsolete.
16636 * modules/atexit (Status, Notice): New sections.
16637 * modules/chdir-long (Depends-on): Add atexit.
16638 * modules/wait-process (Depends-on): Likewise.
16640 2008-11-02 Bruno Haible <bruno@clisp.org>
16642 * gnulib-tool: New option --with-obsolete.
16643 (func_usage): Document it.
16644 (func_modules_transitive_closure): Drop obsolete dependencies if
16645 incobsolete is not true.
16646 (func_import): Read and save the incobsolete variable to the cache.
16648 2008-11-02 Bruno Haible <bruno@clisp.org>
16650 * modules/TEMPLATE-EXTENDED: New field 'Status'.
16651 * gnulib-tool: New option --extract-status.
16652 (func_usage): Document it.
16653 (sed_extract_prog): Recognize it.
16654 (func_get_status): New function.
16656 2008-10-30 Simon Josefsson <simon@josefsson.org>
16658 * modules/sockets (License): Change from LGPL to LGPLv2+.
16660 2008-10-28 Simon Josefsson <simon@josefsson.org>
16662 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
16664 2008-10-28 Simon Josefsson <simon@josefsson.org>
16666 * MODULES.html.sh (Support for systems lacking POSIX:2001):
16667 Mention times and sys_times.
16668 * modules/sys_times, modules/sys_times-tests: New modules.
16669 * modules/times, modules/times-tests: Likewise
16670 * m4/sys_times_h.m4: New file.
16671 * lib/sys_times.in.h: Likewise
16672 * lib/times.c: Likewise.
16673 * tests/test-sys_times.c: Likewise.
16674 * tests/test-times.c: Likewise.
16675 * doc/posix-headers/sys_times.texi: Update.
16676 * doc/posix-functions/times.texi: Update.
16678 2008-10-28 Jim Meyering <meyering@redhat.com>
16680 * modules/tempname (Depends-on): Add lstat.
16682 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
16684 2008-10-28 Simon Josefsson <simon@josefsson.org>
16686 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
16687 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
16688 using idiom used elsewhere in gnulib.
16690 2008-10-27 Jim Meyering <meyering@redhat.com>
16692 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
16694 2008-10-27 Simon Josefsson <simon@josefsson.org>
16696 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
16697 TESTS_ENVIRONMENT, for shell scripts that needs to call built
16699 * tests/test-argp-2.sh: Use $EXEEXT when needed.
16701 2008-10-27 Simon Josefsson <simon@josefsson.org>
16703 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
16705 2008-10-27 Bruno Haible <bruno@clisp.org>
16707 * tests/test-lstat.c: Include <stdio.h>.
16709 2008-10-27 Simon Josefsson <simon@josefsson.org>
16711 * modules/lstat-tests: New module.
16712 * tests/test-lstat.c: New file.
16714 2008-10-26 Jim Meyering <meyering@redhat.com>
16716 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
16718 2008-10-26 Simon Josefsson <simon@josefsson.org>
16719 Bruno Haible <bruno@clisp.org>
16721 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
16722 * modules/configmake (Include): Add a note that the include must come
16723 after all system headers.
16724 * lib/javaversion.c: Include configmake.h after all other includes.
16726 2008-10-26 Bruno Haible <bruno@clisp.org>
16728 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
16729 HAVE_STRUCT_RANDOM_DATA to 1.
16730 (gl_STDLIB_H): Simplify.
16732 2008-10-26 Simon Josefsson <simon@josefsson.org>
16734 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
16735 substitute HAVE_STRUCT_RANDOM_DATA.
16736 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
16738 * modules/stdlib (Makefile.am): Substitute
16739 HAVE_STRUCT_RANDOM_DATA.
16741 2008-10-26 Simon Josefsson <simon@josefsson.org>
16743 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
16744 * doc/gnulib-intro.texi (Copyright): Likewise.
16746 2008-10-26 Simon Josefsson <simon@josefsson.org>
16748 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
16751 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
16752 Bruno Haible <bruno@clisp.org>
16754 * lib/unistd.in.h: Include <winsock2.h>.
16755 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
16756 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
16757 Provide dummy declarations.
16758 (gethostname): Override.
16759 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
16760 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
16761 gl_PREREQ_SYS_H_WINSOCK2.
16762 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
16763 * doc/posix-functions/gethostname.texi: More details.
16765 2008-10-25 Bruno Haible <bruno@clisp.org>
16767 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
16768 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
16769 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
16771 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
16773 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
16774 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
16775 gl_UNISTD_H_DEFAULTS.
16777 2008-10-25 Eric Blake <ebb9@byu.net>
16779 signbit: avoid spurious compiler failure
16780 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
16781 declarations inside function.
16783 2008-10-24 Simon Josefsson <simon@josefsson.org>
16784 Bruno Haible <bruno@clisp.org>
16786 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
16787 * modules/random_r (Depends-on): Add stdint.
16789 2008-10-24 Bruno Haible <bruno@clisp.org>
16791 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
16793 * modules/strerror (License): Likewise.
16795 2008-10-24 Jim Meyering <meyering@redhat.com>
16797 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
16798 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
16800 2008-10-24 Eric Blake <ebb9@byu.net>
16802 getgroups: fix compilation when getgroups is available
16803 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
16804 but with <config.h> override of getgroups disabled.
16806 2008-10-24 Simon Josefsson <simon@josefsson.org>
16808 * doc/gnulib.texi (Header files): Add note about C++ problems.
16809 Explained by Bruno Haible <bruno@clisp.org>.
16811 2008-10-23 Bruno Haible <bruno@clisp.org>
16813 Define a dummy SA_NODEFER macro on Interix.
16814 * lib/signal.in.h (SA_NODEFER): Define fallback.
16815 Reported by Aleksey Cheusov <cheusov@tut.by> via
16816 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
16818 2008-10-23 Bruno Haible <bruno@clisp.org>
16820 * modules/freadahead (License): Change to LGPLv2+.
16821 Suggested by Simon Josefsson.
16823 2008-10-23 Jim Meyering <meyering@redhat.com>
16825 random_r: new module
16826 * modules/random_r: New file.
16827 * m4/random_r.m4: New file.
16828 * lib/random_r.c: New file, from glibc.
16829 * modules/random_r-tests: New file.
16830 * tests/test-random_r.c: New file.
16831 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
16833 (RAND_MAX): Define.
16834 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
16835 * modules/stdlib: Substitute them, too.
16836 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
16837 * doc/glibc-functions/initstate_r.texi: Mention the new module.
16838 * doc/glibc-functions/random_r.texi: Likewise.
16839 * doc/glibc-functions/setstate_r.texi: Likewise.
16840 * doc/glibc-functions/srandom_r.texi: Likewise.
16841 * config/srclist.txt: Mention it.
16843 2008-10-23 David Lutterkort <lutter@redhat.com>
16845 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
16848 2008-10-23 Jim Meyering <meyering@redhat.com>
16850 selinux-h: mark parameters of stub functions as intentionally unused
16851 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
16852 * lib/se-context.in.h: Likewise.
16854 2008-10-22 Simon Josefsson <simon@josefsson.org>
16856 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
16858 2008-10-22 Simon Josefsson <simon@josefsson.org>
16860 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
16862 2008-10-22 Eric Blake <ebb9@byu.net>
16864 glthread/thread: avoid compiler warning
16865 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
16866 Add unreachable abort to silence compiler.
16868 2008-10-22 Eric Blake <ebb9@byu.net>
16870 netdb: also supply struct addrinfo for cygwin 1.5.x
16871 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
16873 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
16875 * doc/posix-headers/netdb.texi (netdb.h): Document this.
16877 2008-10-22 Bruno Haible <bruno@clisp.org>
16879 * users.txt: Update entry about pspp.
16881 2008-10-21 Bruno Haible <bruno@clisp.org>
16884 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
16885 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
16888 * lib/ioctl.c (ioctl): Don't undefine.
16889 * lib/socket.c (socket): Don't undefine.
16891 Remove unused module indicator macros.
16892 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
16893 GNULIB_$1 as a C macro.
16895 * doc/posix-functions/close.texi: Undo last change.
16896 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
16899 2008-10-21 Bruno Haible <bruno@clisp.org>
16901 Add gethostname() declaration to <unistd.h>.
16902 * lib/unistd.in.h (gethostname): New declaration.
16903 * lib/gethostname.c: Include <unistd.h>.
16904 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
16905 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
16906 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
16907 and HAVE_GETHOSTNAME.
16908 * modules/gethostname (Depends-on): Add unistd.
16909 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16910 (Include): Specify <unistd.h>.
16911 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
16913 * tests/test-gethostname.c: Include <unistd.h> first.
16915 2008-10-21 Bruno Haible <bruno@clisp.org>
16917 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
16918 * modules/select-tests (Depends-on): Likewise.
16919 Reported by Simon Josefsson.
16921 2008-10-21 Simon Josefsson <simon@josefsson.org>
16923 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
16924 * lib/accept.c: New file, based on winsock.c.
16925 * lib/bind.c: New file, based on winsock.c.
16926 * lib/connect.c: New file, based on winsock.c.
16927 * lib/getpeername.c: New file, based on winsock.c.
16928 * lib/getsockname.c: New file, based on winsock.c.
16929 * lib/getsockopt.c: New file, based on winsock.c.
16930 * lib/ioctl.c: New file, based on winsock.c.
16931 * lib/listen.c: New file, based on winsock.c.
16932 * lib/recv.c: New file, based on winsock.c.
16933 * lib/recvfrom.c: New file, based on winsock.c.
16934 * lib/send.c: New file, based on winsock.c.
16935 * lib/sendto.c: New file, based on winsock.c.
16936 * lib/setsockopt.c: New file, based on winsock.c.
16937 * lib/shutdown.c: New file, based on winsock.c.
16938 * lib/socket.c: New file, based on winsock.c.
16939 * lib/w32sock.h: New file, based on winsock.c.
16940 * lib/winsock.c: Remove file.
16941 * modules/accept: Likewise.
16942 * modules/bind: Likewise.
16943 * modules/connect: Likewise.
16944 * modules/getpeername: Likewise.
16945 * modules/getsockname: Likewise.
16946 * modules/getsockopt: Likewise.
16947 * modules/ioctl: Likewise.
16948 * modules/listen: Likewise.
16949 * modules/recv: Likewise.
16950 * modules/recvfrom: Likewise.
16951 * modules/send: Likewise.
16952 * modules/sendto: Likewise.
16953 * modules/setsockopt: Likewise.
16954 * modules/shutdown: Likewise.
16955 * modules/socket: Use socket.c instead of winsock.c.
16956 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
16957 * doc/posix-functions/accept.texi: Doc fix.
16958 * doc/posix-functions/bind.texi: Doc fix.
16959 * doc/posix-functions/close.texi: Doc fix.
16960 * doc/posix-functions/connect.texi: Doc fix.
16961 * doc/posix-functions/getpeername.texi: Doc fix.
16962 * doc/posix-functions/getsockname.texi: Doc fix.
16963 * doc/posix-functions/getsockopt.texi: Doc fix.
16964 * doc/posix-functions/ioctl.texi: Doc fix.
16965 * doc/posix-functions/listen.texi: Doc fix.
16966 * doc/posix-functions/recv.texi: Doc fix.
16967 * doc/posix-functions/recvfrom.texi: Doc fix.
16968 * doc/posix-functions/send.texi: Doc fix.
16969 * doc/posix-functions/sendto.texi: Doc fix.
16970 * doc/posix-functions/setsockopt.texi: Doc fix.
16971 * doc/posix-functions/shutdown.texi: Doc fix.
16972 * doc/posix-functions/socket.texi: Doc fix.
16974 2008-10-20 Bruno Haible <bruno@clisp.org>
16976 Take into account the role of SIGABRT_COMPAT on Windows 2008.
16977 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
16978 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
16979 as an alias for SIGABRT.
16980 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
16981 (sigaction): Map it to SIGABRT.
16982 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
16984 2008-10-20 Bruno Haible <bruno@clisp.org>
16986 * lib/fts.c: Don't include lstat.h.
16987 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
16989 Move the lstat() declaration to <sys/stat.h>.
16990 * lib/lstat.h: Remove file.
16991 * lib/sys_stat.in.h: Add special invocation convention.
16992 (lstat): New declaration.
16993 * lib/lstat.c (orig_lstat): New function.
16994 (rpl_lstat): Use orig_lstat instead of lstat.
16995 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
16996 AC_C_INLINE. Set REPLACE_LSTAT.
16997 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
16999 * modules/lstat (Files): Remove lib/lstat.h.
17000 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
17001 (Include): Specify <sys/stat.h> instead of lstat.h.
17002 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
17004 * NEWS: Mention the change.
17006 2008-10-20 Bruno Haible <bruno@clisp.org>
17008 * modules/posix_spawn-tests: New file.
17009 * tests/test-posix_spawn3.c: New file.
17011 2008-10-20 Bruno Haible <bruno@clisp.org>
17013 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
17014 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
17015 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
17016 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
17017 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
17019 2008-10-20 Bruno Haible <bruno@clisp.org>
17021 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
17022 of posix_spawn on AIX 5.3.
17024 2008-10-20 Bruno Haible <bruno@clisp.org>
17026 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
17028 2008-10-20 Bruno Haible <bruno@clisp.org>
17030 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
17031 of AC_LANG_PROGRAM.
17033 2008-10-20 Simon Josefsson <simon@josefsson.org>
17035 * lib/netdb.in.h: Don't define GNU specific constants until they
17036 are supported or needed. Reported by Bruno Haible
17039 2008-10-20 Simon Josefsson <simon@josefsson.org>
17041 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
17043 2008-10-20 Simon Josefsson <simon@josefsson.org>
17045 * lib/getaddrinfo.h: Remove file.
17046 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
17047 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
17048 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
17049 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
17050 * modules/netdb: Substitute GNULIB_GETADDRINFO.
17051 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
17052 * tests/test-getaddrinfo.c: Likewise.
17053 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
17054 * NEWS: Mention change.
17056 2008-10-19 Bruno Haible <bruno@clisp.org>
17058 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
17060 2008-10-19 Bruno Haible <bruno@clisp.org>
17062 * lib/wait-process.c: Include simply <sys/wait.h>.
17063 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
17064 WIFSTOPPED): Remove fallback definitions.
17065 * modules/wait-process (Depends-on): Add sys_wait.
17067 New module 'sys_wait'.
17068 * modules/sys_wait: New file.
17069 * lib/sys_wait.in.h: New file, partially copied from
17070 lib/wait-process.c.
17071 * m4/sys_wait_h.m4: New file.
17072 * doc/posix-headers/sys_wait.texi: Mention the new module.
17074 2008-10-19 Bruno Haible <bruno@clisp.org>
17076 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
17078 2008-10-19 Bruno Haible <bruno@clisp.org>
17080 Assume that waitpid() fills an 'int' status, not a 'union wait'.
17081 * lib/wait-process.c (WAIT_T): Remove type.
17082 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
17083 (wait_subprocess): Update.
17085 2008-10-19 Bruno Haible <bruno@clisp.org>
17087 New module 'atoll'.
17088 * modules/atoll: New file.
17089 * lib/stdlib.in.h (atoll): New declaration.
17090 * lib/atoll.c: New file, from glibc with modifications.
17091 * m4/atoll.m4: New file.
17092 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
17094 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
17095 * doc/posix-functions/atoll.texi: Mention the new module.
17097 2008-10-19 Bruno Haible <bruno@clisp.org>
17099 Add strtoull() declaration to <stdlib.h>.
17100 * lib/stdlib.in.h (strtoull): New declaration.
17101 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
17103 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
17105 * modules/strtoull (Depends-on): Add stdlib.
17106 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17107 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
17110 2008-10-19 Bruno Haible <bruno@clisp.org>
17112 Add strtoll() declaration to <stdlib.h>.
17113 * lib/stdlib.in.h (strtoll): New declaration.
17114 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
17116 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
17118 * modules/strtoll (Depends-on): Add stdlib.
17119 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17120 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
17122 2008-10-19 Bruno Haible <bruno@clisp.org>
17124 * modules/bcopy (Depends-on): Add strings.
17125 (Include): Specify <strings.h>.
17127 2008-10-19 Bruno Haible <bruno@clisp.org>
17129 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
17131 2008-10-19 Bruno Haible <bruno@clisp.org>
17133 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
17134 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
17137 2008-10-19 Bruno Haible <bruno@clisp.org>
17139 * lib/atanl.c: Don't include isnanl.h.
17140 * lib/cosl.c: Likewise.
17141 * lib/ldexpl.c: Likewise.
17142 * lib/logl.c: Likewise.
17143 * lib/sinl.c: Likewise.
17144 * lib/sqrtl.c: Likewise.
17145 * lib/tanl.c: Likewise.
17147 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
17148 * lib/isnanf.h: Remove file.
17149 * lib/isnand.h: Remove file.
17150 * lib/isnanl.h: Remove file.
17151 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
17152 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
17154 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
17155 HAVE_ISNANF, don't define it as a C macro.
17156 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
17157 HAVE_ISNAND, don't define it as a C macro.
17158 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
17159 HAVE_ISNANL, don't define it as a C macro.
17160 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
17162 * modules/isnanf (Files): Remove lib/isnanf.h.
17163 (Depends-on): Add math.
17164 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17165 (Include): Specify <math.h> instead of isnanf.h.
17166 * modules/isnand (Files): Remove lib/isnand.h.
17167 (Depends-on): Add math.
17168 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17169 (Include): Specify <math.h> instead of isnand.h.
17170 * modules/isnanl (Files): Remove lib/isnanl.h.
17171 (Depends-on): Add math.
17172 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17173 (Include): Specify <math.h> instead of isnanl.h.
17174 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
17176 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
17177 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
17178 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
17179 * NEWS: Mention the change.
17181 2008-10-18 Bruno Haible <bruno@clisp.org>
17183 Add getusershell(), setusershell(), endusershell() declarations to
17185 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
17187 * lib/getusershell.c: Include unistd.h.
17188 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
17189 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
17191 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
17192 and HAVE_GETUSERSHELL.
17193 * modules/getusershell (Depends-on): Add unistd, extensions.
17194 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17195 (Include): Specify <unistd.h>.
17196 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
17199 2008-10-18 Bruno Haible <bruno@clisp.org>
17201 Add a getloadavg() declaration to <stdlib.h>.
17202 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
17203 getloadavg declaration.
17204 (getloadavg): New declaration.
17205 * lib/getloadavg.c: Include <stdlib.h> first.
17206 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
17207 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
17208 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
17209 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
17210 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
17211 * modules/getloadavg (Depends-on): Add stdlib, extensions.
17212 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17213 (Include): Specify <stdlib.h>.
17214 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
17215 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
17217 2008-10-18 Bruno Haible <bruno@clisp.org>
17219 * lib/dirchownmod.c: Don't include lchmod.h.
17221 Move the lchmod() declaration to <sys/stat.h>.
17222 * lib/lchmod.h: Remove file.
17223 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
17224 (lchmod): New declaration, moved here from lib/lchown.h.
17225 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
17226 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
17227 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
17229 * modules/lchmod (Files): Remove lib/lchmod.h.
17230 (Depends-on): Add sys_stat, extensions.
17231 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
17232 (Include): Specify <sys/stat.h> instead of lchmod.h.
17233 * modules/sys_stat (Depends-on): Add link-warning.
17234 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
17235 definition of GL_LINK_WARNING.
17236 * NEWS: Mention the change.
17238 2008-10-18 Bruno Haible <bruno@clisp.org>
17240 * lib/fchdir.c: Don't include dirfd.h.
17241 * lib/fts.c: Likewise.
17242 * lib/getcwd.c: Likewise.
17243 * lib/glob.c: Likewise.
17245 Move the dirfd() declaration to <dirent.h>.
17246 * lib/dirfd.h: Remove file.
17247 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
17248 (dirfd): New declaration.
17249 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
17250 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
17251 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
17253 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
17255 * modules/dirfd (Files): Remove lib/dirfd.h.
17256 (Depends-on): Add dirent, extensions.
17257 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
17258 (Include): Specify <dirent.h> instead of dirfd.h.
17259 * modules/dirent (Depends-on): Add link-warning.
17260 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
17261 definition of GL_LINK_WARNING.
17262 * NEWS: Mention the change.
17264 2008-10-18 Bruno Haible <bruno@clisp.org>
17266 Move the euidaccess() declaration to <unistd.h>.
17267 * lib/euidaccess.h: Remove file.
17268 * lib/unistd.in.h (euidaccess): New declaration.
17269 * lib/euidaccess.c: Don't include euidaccess.h.
17270 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
17271 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
17272 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
17273 and HAVE_EUIDACCESS.
17274 * modules/euidaccess (Files): Remove lib/euidaccess.h.
17275 (Depends-on): Add unistd.
17276 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17277 (Include): Specify <unistd.h> instead of euidaccess.h.
17278 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
17280 * NEWS: Mention the change.
17282 2008-10-18 Bruno Haible <bruno@clisp.org>
17284 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
17286 Move the getdomainname() declaration to <unistd.h>.
17287 * lib/getdomainname.h: Remove file.
17288 * lib/unistd.in.h (getdomainname): New declaration.
17289 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
17290 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
17291 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
17292 HAVE_GETDOMAINNAME.
17293 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17294 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
17295 * modules/getdomainname (Files): Remove lib/getdomainname.h.
17296 (Depends-on): Add unistd, extensions.
17297 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17298 (Includes): Specify <unistd.h> instead of getdomainname.h.
17299 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
17300 HAVE_GETDOMAINNAME.
17301 * NEWS: Mention the change.
17303 2008-10-18 Bruno Haible <bruno@clisp.org>
17305 * modules/dirent: New file.
17306 * m4/dirent_h.m4: New file.
17307 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
17308 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
17309 * modules/fchdir (Files): Remove lib/dirent.in.h.
17310 (Depends-on): Add dirent.
17311 (Makefile.am): Move rules to modules/dirent.
17312 * doc/posix-headers/dirent.texi: Mention the new module.
17314 2008-10-18 Bruno Haible <bruno@clisp.org>
17316 Avoid -Wunused-parameter warnings in public gnulib header files.
17317 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
17319 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
17321 2008-10-18 Bruno Haible <bruno@clisp.org>
17323 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
17324 * doc/glibc-functions/error.texi: Mention the module 'error'.
17325 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
17326 * doc/glibc-functions/getdomainname.texi: Mention the module
17328 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
17329 * doc/glibc-functions/getpagesize.texi: Mention the module
17331 * doc/glibc-functions/getusershell.texi: Mention the module
17333 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
17334 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
17335 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
17336 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
17337 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
17338 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
17339 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
17340 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
17341 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
17342 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
17343 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
17344 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
17345 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
17346 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
17348 2008-10-17 Bruno Haible <bruno@clisp.org>
17350 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
17351 HP-UX and IRIX, use -0.0L.
17352 * tests/test-ceill.c (minus_zero): Likewise.
17353 * tests/test-floorl.c (minus_zero): Likewise.
17354 * tests/test-frexpl.c (minus_zero): Likewise.
17355 * tests/test-isnan.c (minus_zerol): Likewise.
17356 * tests/test-isnanl.h (minus_zero): Likewise.
17357 * tests/test-ldexpl.c (minus_zero): Likewise.
17358 * tests/test-roundl.c (minus_zero): Likewise.
17359 * tests/test-signbit.c (minus_zerol): Likewise.
17360 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
17361 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
17362 * tests/test-truncl.c (minus_zero): Likewise.
17363 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
17364 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
17365 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
17366 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17368 2008-10-17 Bruno Haible <bruno@clisp.org>
17370 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
17371 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
17372 that it gets activated only for gcc >= 3.0.
17373 * lib/dirent.in.h: Likewise.
17374 * lib/errno.in.h: Likewise.
17375 * lib/fcntl.in.h: Likewise.
17376 * lib/float.in.h: Likewise.
17377 * lib/iconv.in.h: Likewise.
17378 * lib/inttypes.in.h: Likewise.
17379 * lib/locale.in.h: Likewise.
17380 * lib/math.in.h: Likewise.
17381 * lib/netdb.in.h: Likewise.
17382 * lib/netinet_in.in.h: Likewise.
17383 * lib/search.in.h: Likewise.
17384 * lib/signal.in.h: Likewise.
17385 * lib/spawn.in.h: Likewise.
17386 * lib/stdarg.in.h: Likewise.
17387 * lib/stdint.in.h: Likewise.
17388 * lib/stdio.in.h: Likewise.
17389 * lib/stdlib.in.h: Likewise.
17390 * lib/string.in.h: Likewise.
17391 * lib/strings.in.h: Likewise.
17392 * lib/sys_file.in.h: Likewise.
17393 * lib/sys_ioctl.in.h: Likewise.
17394 * lib/sys_select.in.h: Likewise.
17395 * lib/sys_socket.in.h: Likewise.
17396 * lib/sys_stat.in.h: Likewise.
17397 * lib/sys_time.in.h: Likewise.
17398 * lib/sysexits.in.h: Likewise.
17399 * lib/time.in.h: Likewise.
17400 * lib/unistd.in.h: Likewise.
17401 * lib/wchar.in.h: Likewise.
17402 * lib/wctype.in.h: Likewise.
17403 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
17405 2008-10-17 Jim Meyering <meyering@redhat.com>
17407 ignore-value: don't depend on inline module
17408 * modules/ignore-value (Depends-on): Remove 'inline'.
17409 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
17410 Suggestion from Bruno Haible.
17412 2008-10-17 Bruno Haible <bruno@clisp.org>
17414 New implementation of condition variables for Win32.
17415 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
17416 (gl_linked_waitqueue_t): New type.
17417 (gl_cond_t): Use it.
17418 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
17419 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
17420 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
17421 (glthread_cond_init_func, glthread_cond_wait_func,
17422 glthread_cond_timedwait_func, glthread_cond_signal_func,
17423 glthread_cond_broadcast_func, glthread_cond_destroy_func):
17424 Reimplemented on the basis of gl_linked_waitqueue_t.
17425 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
17427 (gl_rwlock_t): Update.
17428 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
17430 2008-10-17 Simon Josefsson <simon@josefsson.org>
17432 * modules/recvfrom (Depends-on): Add dependency on getpeername.
17433 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
17435 2008-10-17 Jim Meyering <meyering@redhat.com>
17437 ignore-value: new module
17438 * modules/ignore-value: New file.
17439 * lib/ignore-value.h: New file.
17440 * MODULES.html.sh (Compiler warning management): New section,
17441 just for this module. More to come.
17443 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
17445 open-safer.c: avoid 'signed and unsigned in conditional...' warning
17446 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
17447 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
17449 2008-10-16 Jim Meyering <meyering@redhat.com>
17451 openat-die.c: avoid 'no previous prototype' warning
17452 * lib/openat-die.c: Include "openat.h".
17453 Reported by Reuben Thomas <rrt@sc3d.org>.
17455 2008-10-16 Simon Josefsson <simon@josefsson.org>
17457 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
17458 * lib/netdb.in.h: Fix typo.
17459 Reported by Bruno Haible <bruno@clisp.org>
17461 * lib/netdb.in.h: Include sys/socket.h for platforms without
17462 netdb.h, to get structures like hostent on MinGW.
17463 * modules/netdb (Depends-on): Add sys_socket.
17465 2008-10-15 Simon Josefsson <simon@josefsson.org>
17467 * modules/netdb, modules/netdb-tests: New file.
17468 * m4/netdb_h.m4: New file.
17469 * lib/netdb.in.h: Add, currently just an empty file pending
17471 * tests/test-netdb.c: New file.
17472 * doc/posix-headers/netdb.texi: Mention that we replace it if
17474 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17477 2008-10-15 Simon Josefsson <simon@josefsson.org>
17479 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
17482 2008-10-13 Bruno Haible <bruno@clisp.org>
17484 * lib/glthread/cond.c (glthread_cond_wait_func,
17485 glthread_cond_timedwait_func): Add a comment.
17487 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
17489 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
17490 * tests/test-select.c: Likewise,
17492 2008-10-13 Bruno Haible <bruno@clisp.org>
17494 * lib/glthread/cond.c (glthread_cond_wait_func,
17495 glthread_cond_timedwait_func): Fix variable name.
17496 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
17498 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
17500 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
17501 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
17502 struct sockaddr.sa_len.
17503 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
17505 2008-10-13 Simon Josefsson <simon@josefsson.org>
17507 * build-aux/pmccabe2html: Add css and css_url parameters.
17509 2008-10-12 Bruno Haible <bruno@clisp.org>
17511 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
17513 Reported by Rainer Tammer <tammer@tammer.net>.
17515 2008-10-12 Bruno Haible <bruno@clisp.org>
17517 Use msvcrt aware primitives for creation/termination of Win32 threads.
17518 * lib/glthread/thread.c: Include <process.h>.
17519 (glthread_create_func): Use _beginthreadex instead of CreateThread.
17520 (wrapper_func): Update signature.
17521 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
17523 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
17524 Bruno Haible <bruno@clisp.org>
17526 Provide a Win32 implementation of the 'cond' module.
17527 * lib/glthread/cond.h [USE_WIN32]: New implementation.
17528 * lib/glthread/cond.c (glthread_cond_init_func,
17529 glthread_cond_wait_func, glthread_cond_timedwait_func,
17530 glthread_cond_signal_func, glthread_cond_broadcast_func,
17531 glthread_cond_destroy_func) [USE_WIN32]: New functions.
17532 * modules/cond (Dependencies): Add gettimeofday.
17534 2008-10-11 Bruno Haible <bruno@clisp.org>
17536 Make sleep work on older versions of mingw.
17537 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
17538 only whether it exists.
17539 * doc/posix-functions/sleep.texi: Mention the problem with older
17542 2008-10-11 Bruno Haible <bruno@clisp.org>
17544 New module 'shutdown'.
17545 * modules/shutdown: New file.
17546 * lib/sys_socket.in.h (shutdown): New declaration.
17547 * lib/winsock.c (shutdown): New function.
17548 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17550 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
17551 * doc/posix-functions/shutdown.texi: Document the new module.
17553 2008-10-11 Jim Meyering <meyering@redhat.com>
17555 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
17557 2008-10-11 Bruno Haible <bruno@clisp.org>
17559 New module 'fclose'.
17560 * modules/fclose: New file.
17561 * lib/stdio.in.h (fclose): New declaration.
17562 * lib/fclose.c: New file.
17563 * m4/fclose.m4: New file.
17564 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
17566 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
17567 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
17569 * modules/close (Depends-on): fclose.
17570 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
17572 2008-10-11 Bruno Haible <bruno@clisp.org>
17574 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
17575 set errno and don't call _close.
17577 2008-10-10 Bruno Haible <bruno@clisp.org>
17579 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
17580 ACL, not afterwards. Fixes test failure on Cygwin.
17582 2008-10-09 Ben Pfaff <blp@gnu.org>
17584 * build-aux/announce-gen: Fix gnulib version related part of usage
17585 message. Die with a useful error message if no tarballs are
17588 2008-10-10 Jim Meyering <meyering@redhat.com>
17590 bootstrap: use git's --depth=N option only if it's supported
17591 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
17592 recognize the --depth option. Reported by Pádraig Brady.
17594 2008-10-09 Bruno Haible <bruno@clisp.org>
17596 New module 'ioctl'.
17597 * modules/ioctl: New file.
17598 * lib/sys_socket.in.h (ioctl): Remove declaration.
17599 * lib/winsock.c: Include <sys/ioctl.h>.
17600 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
17601 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
17602 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
17603 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
17604 * doc/posix-functions/ioctl.texi: Mention the new module.
17606 2008-10-09 Bruno Haible <bruno@clisp.org>
17608 New module 'sys_ioctl'.
17609 * lib/sys_ioctl.in.h: New file.
17610 * m4/sys_ioctl_h.m4: New file.
17611 * modules/sys_ioctl: New file.
17612 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
17614 2008-10-09 Bruno Haible <bruno@clisp.org>
17616 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
17617 * lib/winsock.c: Include <stdarg.h>.
17618 (rpl_ioctl): Change to second argument 'int' and then varargs.
17620 2008-10-09 Bruno Haible <bruno@clisp.org>
17622 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
17623 when the sys_socket module is present and the system has <winsock2.h>.
17625 2008-10-09 Bruno Haible <bruno@clisp.org>
17627 * doc/posix-functions/close.texi: Mention module 'close' instead of
17628 module 'sys_socket'.
17630 2008-10-09 Bruno Haible <bruno@clisp.org>
17632 * doc/glibc-headers/sys_ioctl.texi: New file.
17633 * doc/gnulib.texi: Include it.
17635 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
17636 Bruno Haible <bruno@clisp.org>
17638 Combine the two replacements of 'close'.
17639 * lib/sys_socket.in.h (close): Define to a reminder to include
17641 (_gl_close_fd_maybe_socket): New declaration.
17642 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
17643 * lib/winsock.c (close): Remove undefinition.
17644 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
17645 needed for the gnulib module 'close'.
17646 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
17647 define to an error symbol or to a warning, if suitable.
17648 * lib/close.c: Include <sys/socket.h>.
17649 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
17650 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
17651 UNISTD_H_HAVE_WINSOCK2_H.
17652 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
17653 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17654 UNISTD_H_HAVE_WINSOCK2_H.
17655 * modules/sys_socket (Files): Add m4/unistd_h.m4.
17656 (configure.ac): Set a module indicator.
17657 (Makefile.am): Substitute GNULIB_CLOSE.
17658 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
17659 * modules/poll-tests (Depends-on): Add close.
17660 * modules/select-tests (Depends-on): Likewise.
17662 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
17663 Bruno Haible <bruno@clisp.org>
17665 New module 'close'.
17666 * modules/close: New file.
17667 * lib/unistd.in.h (close): Move declaration out of the
17668 FCHDIR_REPLACEMENT scope.
17669 (_gl_unregister_fd): New declaration.
17670 * lib/close.c: New file.
17671 * lib/fchdir.c (rpl_close): Remove function.
17672 * m4/close.m4: New file.
17673 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
17675 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
17677 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
17679 * modules/fchdir (Depends-on): Add close.
17681 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
17682 Bruno Haible <bruno@clisp.org>
17684 * lib/fcntl.in.h (open): Simplify conditionals.
17685 (_gl_register_fd): New declaration.
17686 * lib/fchdir.c (rpl_open): Remove function.
17687 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
17689 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
17690 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
17693 2008-10-09 Jim Meyering <meyering@redhat.com>
17695 GNUmakefile: use the more name-space-friendly "_version"
17696 * top/GNUmakefile (_dummy): Update.
17697 (_version): Rename from "version".
17699 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
17700 Bruno Haible <bruno@clisp.org>
17702 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
17704 (_gl_register_fd): New function, extracted from rpl_open.
17705 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
17706 (rpl_open, rpl_opendir): Use _gl_register_fd.
17708 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
17710 Fix organization of 'open' replacement.
17711 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
17712 (gl_FUNC_OPEN): Use it.
17713 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
17715 2008-10-08 Bruno Haible <bruno@clisp.org>
17717 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
17719 2008-10-08 Simon Josefsson <simon@josefsson.org>
17721 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
17722 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
17725 2008-10-08 Eric Blake <ebb9@byu.net>
17727 GNUmakefile: add 'make version' target
17728 * top/GNUmakefile (_curr-ver): Split version update rules...
17729 (version): ...into a target.
17731 2008-10-07 Bruno Haible <bruno@clisp.org>
17733 Use a more portable replacement expression for -0.0L.
17734 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
17735 instead of -0.0L. Fix m4 quotation.
17737 * tests/test-signbit.c: Include <float.h>.
17738 (minus_zero): New variable.
17739 (test_signbitl): Use minus_zero instead of -zero.
17740 * modules/signbit-tests (Depends-on): Add float.
17742 * tests/test-ceill.c: Include <float.h>.
17743 (zero): Remove variable.
17744 (minus_zero): New variable.
17745 (main): Use minus_zero instead of -zero.
17746 * modules/ceill-tests (Depends-on): Add float.
17748 * tests/test-floorl.c: Include <float.h>.
17749 (zero): Remove variable.
17750 (minus_zero): New variable.
17751 (main): Use minus_zero instead of -zero.
17752 * modules/floorl-tests (Depends-on): Add float.
17754 * tests/test-roundl.c: Include <float.h>.
17755 (zero): Remove variable.
17756 (minus_zero): New variable.
17757 (main): Use minus_zero instead of -zero.
17758 * modules/roundl-tests (Depends-on): Add float.
17760 * tests/test-truncl.c: Include <float.h>.
17761 (zero): Remove variable.
17762 (minus_zero): New variable.
17763 (main): Use minus_zero instead of -zero.
17764 * modules/truncl-tests (Depends-on): Add float.
17766 * tests/test-frexpl.c (zero): Remove variable.
17767 (minus_zero): New variable.
17768 (main): Use minus_zero instead of -zero.
17769 * modules/frexpl-tests (Depends-on): Add float.
17771 * tests/test-isnan.c (zerol): Remove variable.
17772 (minus_zerol): New variable.
17773 (test_long_double): Use minus_zerol instead of -zerol.
17774 * modules/isnan-tests (Depends-on): Add float.
17776 * tests/test-isnanl.h (zero): Remove variable.
17777 (minus_zero): New variable.
17778 (main): Use minus_zero instead of -zero.
17779 * modules/isnanl-nolibm-tests (Depends-on): Add float.
17780 * modules/isnanl-tests (Depends-on): Add float.
17782 * tests/test-ldexpl.c (zero): Remove variable.
17783 (minus_zero): New variable.
17784 (main): Use minus_zero instead of -zero.
17785 * modules/ldexpl-tests (Depends-on): Add float.
17787 * tests/test-snprintf-posix.h (zerol): Remove variable.
17788 (minus_zerol): New variable.
17789 (test_function): Use minus_zerol instead of -zerol.
17790 * modules/snprintf-posix-tests (Depends-on): Add float.
17791 * modules/vsnprintf-posix-tests (Depends-on): Add float.
17793 * tests/test-sprintf-posix.h (zerol): Remove variable.
17794 (minus_zerol): New variable.
17795 (test_function): Use minus_zerol instead of -zerol.
17796 * modules/sprintf-posix-tests (Depends-on): Add float.
17797 * modules/vsprintf-posix-tests (Depends-on): Add float.
17799 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
17800 (minus_zerol): New variable.
17801 (test_function): Use minus_zerol instead of -zerol.
17802 * modules/vasnprintf-posix-tests (Depends-on): Add float.
17804 * tests/test-vasprintf-posix.c (zerol): Remove variable.
17805 (minus_zerol): New variable.
17806 (test_function): Use minus_zerol instead of -zerol.
17807 * modules/vasprintf-posix-tests (Depends-on): Add float.
17809 2008-10-07 Simon Josefsson <simon@josefsson.org>
17811 * MODULES.html.sh (Support for building documentation): Mention
17812 pmccabe2html. Sort entries.
17814 Add pmccabe2html module, from gnupdf.
17815 * build-aux/pmccabe.css: New file.
17816 * build-aux/pmccabe2html: New file.
17817 * m4/pmccabe2html.m4: New file.
17818 * modules/pmccabe2html: New file.
17820 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
17823 * MODULES.html.sh: Add to list of modules.
17824 * lib/flock.c: flock implementation for Windows and Unix systems
17826 * doc/glibc-functions/flock.texi: Update documentation.
17827 * lib/sys_file.in.h: <sys/file.h> header file.
17828 * m4/flock.m4: M4 macros.
17829 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
17830 * modules/flock: flock module.
17831 * modules/flock-tests: flock tests module.
17832 * modules/sys_file: sys/file.h module.
17833 * tests/test-flock.c: test suite for flock.
17835 2008-10-06 Jim Meyering <meyering@redhat.com>
17837 bootstrap: check for LT_INIT more portably still ;-)
17838 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
17839 Spotted by Bruno Haible.
17841 2008-10-06 Eric Blake <ebb9@byu.net>
17843 test-signbit: avoid tripping Irix cc bug on -0.0L
17844 * tests/test-signbit.c (minus_zerol): Delete, and replace with
17845 '-zerol'. This may break on HP-UX/hppa, but at least makes the
17846 entire testsuite consistent and avoids an Irix 6.2 bug.
17848 2008-10-05 Bruno Haible <bruno@clisp.org>
17849 Jim Meyering <jim@meyering.net>
17851 Add an option for ignoring EPIPE during close_stdout.
17852 * lib/closeout.h: Include <stdbool.h>.
17853 (close_stdout_set_ignore_EPIPE): New declaration.
17854 * lib/closeout.c: Include <stdbool.h>.
17855 (ignore_EPIPE): New variable.
17856 (close_stdout_set_ignore_EPIPE): New function.
17857 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
17858 * lib/close-stream.c (close_stream): Mention the possible EPIPE
17860 * modules/closeout (Depends-on): Add stdbool.
17862 2008-10-05 Bruno Haible <bruno@clisp.org>
17864 * modules/accept: New file.
17865 * modules/bind: New file.
17866 * modules/connect: New file.
17867 * modules/getpeername: New file.
17868 * modules/getsockname: New file.
17869 * modules/getsockopt: New file.
17870 * modules/listen: New file.
17871 * modules/recv: New file.
17872 * modules/recvfrom: New file.
17873 * modules/send: New file.
17874 * modules/sendto: New file.
17875 * modules/setsockopt: New file.
17876 * modules/socket: New file.
17877 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
17878 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17879 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
17880 the particular module is requested. Add a link warning when the
17881 particular module is not requested.
17882 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
17883 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
17884 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
17885 the particular module is requested.
17886 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
17887 gl_SYS_SOCKET_H_DEFAULTS): New macros.
17888 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
17889 * modules/sys_socket (Depends-on): Add link-warning.
17890 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
17891 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
17892 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
17893 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
17895 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
17896 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
17897 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
17898 * doc/posix-functions/getpeername.texi: Mention the new module
17900 * doc/posix-functions/getsockname.texi: Mention the new module
17902 * doc/posix-functions/getsockopt.texi: Mention the new module
17904 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
17905 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
17906 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
17907 * doc/posix-functions/send.texi: Mention the new module 'send'.
17908 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
17909 * doc/posix-functions/setsockopt.texi: Mention the new module
17911 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
17912 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
17913 listen, connect, accept.
17914 * modules/select-tests (Depends-on): Likewise.
17916 2008-10-05 Bruno Haible <bruno@clisp.org>
17918 * lib/winsock.c (strerror): Remove unused #undef.
17919 (rpl_close): Remove unused local variable.
17921 * modules/sys_socket (Depends-on); Add errno.
17923 2008-10-05 Bruno Haible <bruno@clisp.org>
17925 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
17926 (select): Add a link warning when the 'select' module is not used.
17927 * modules/sys_select (Depends-on): Add link-warning.
17928 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
17929 Suggested by Paolo Bonzini.
17931 2008-10-05 Jim Meyering <meyering@redhat.com>
17933 bootstrap: check for LT_INIT more portably
17934 * build-aux/bootstrap: Avoid using grep -E, since it's not
17935 portable enough. Suggestion from Bruno Haible.
17937 2008-10-05 Bruno Haible <bruno@clisp.org>
17939 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
17940 as being fixed by gnulib.
17942 2008-10-05 Bruno Haible <bruno@clisp.org>
17944 * modules/select-tests: New file, mostly copied from
17945 modules/sys_select-tests.
17946 * tests/test-select.c: New file, mostly copied from
17947 tests/test-sys_select.c.
17948 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
17949 * modules/sys_select-tests (Depends-on): Remove all dependencies.
17950 (Makefile.am): Remove test_sys_select_LDADD.
17952 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
17953 to an undefined symbol, for an error message.
17954 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
17955 (gl_SYS_SELECT_H_DEFAULTS): New macro.
17956 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
17957 winsock-select.c here.
17958 * modules/sys_select (Files): Remove lib/winsock-select.c.
17959 (Depends-on): Remove alloca.
17960 (Makefile.am): Substitute GNULIB_SELECT.
17961 * modules/select: New file.
17962 * doc/posix-functions/select.texi: Update.
17964 2008-10-05 Bruno Haible <bruno@clisp.org>
17966 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
17967 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
17968 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
17969 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
17971 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17972 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17974 2008-10-05 Bruno Haible <bruno@clisp.org>
17976 * modules/getdtablesize-tests: New file.
17977 * tests/test-getdtablesize.c: New file.
17979 New module 'getdtablesize'.
17980 * lib/unistd.in.h (getdtablesize): New declaration.
17981 * lib/getdtablesize.c: New file.
17982 * m4/getdtablesize.m4: New file.
17983 * modules/getdtablesize: New file.
17984 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17985 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
17986 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
17987 HAVE_GETDTABLESIZE.
17988 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
17990 2008-10-05 Bruno Haible <bruno@clisp.org>
17992 * modules/sched (Makefile.am): Fix typo.
17993 Reported by Simon Josefsson.
17995 2008-10-05 Jim Meyering <meyering@redhat.com>
17997 bootstrap: check for LT_INIT, too
17998 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
17999 are deprecated. Suggestion from Ralf Wildenhues.
18001 2008-10-05 Bruno Haible <bruno@clisp.org>
18003 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
18004 overriding them by ours.
18005 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
18007 2008-10-05 Jim Meyering <meyering@redhat.com>
18009 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
18010 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
18011 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
18013 2008-10-04 Bruno Haible <bruno@clisp.org>
18015 * modules/dup2 (License): Change to LGPLv2+.
18016 * modules/sleep (License): Likewise.
18017 * modules/perror (License): Likewise.
18018 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
18020 * modules/signal (License): Likewise.
18021 * modules/sigprocmask (License): Likewise.
18022 * modules/raise (License): Change to LGPLv2+, with approval by Jim
18025 2008-10-04 Bruno Haible <bruno@clisp.org>
18027 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
18028 Reported by Rainer Tammer <tammer@tammer.net>.
18030 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
18031 Bruno Haible <bruno@clisp.org>
18033 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
18034 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
18035 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
18037 2008-10-03 Kamil Dudka <kdudka@redhat.com>
18039 filevercmp: new module
18040 * lib/filevercmp.h: New function filevercmp comparing version strings.
18041 * lib/filevercmp.c: Implementation of filevercmp function.
18042 * modules/filevercmp: Module metadata.
18043 * tests/test-filevercmp.c: Unit test for new module.
18044 * modules/filevercmp-tests: Unit test metadata.
18045 * MODULES.html.sh: Add filevercmp module.
18047 2008-10-03 Bruno Haible <bruno@clisp.org>
18049 * lib/c-ctype.h: Add comment.
18050 Reported by Jim Meyering.
18052 2008-10-02 Bruno Haible <bruno@clisp.org>
18054 * modules/posix_spawn-internal (Depends-on): Add 'open'.
18056 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
18058 * build-aux/bootstrap: Allow renaming bootstrap, and change the
18059 name of bootstrap.conf accordingly.
18061 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
18063 * build-aux/bootstrap: Install git-merge-changelog configuration
18064 items into .gitconfig if needed.
18066 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
18068 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
18069 git repository, and initialize/update it accordingly.
18071 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
18073 * modules/fsync-tests: New file.
18074 * tests/test-fsync.c: New file.
18076 New module 'fsync'.
18077 * lib/fsync.c: New file.
18078 * m4/fsync.m4: New file.
18079 * modules/fsync: New file.
18080 * lib/unistd.in.h (fsync): New declaration.
18081 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
18082 GNULIB_FSYNC and HAVE_FSYNC.
18083 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
18084 * MODULES.html.sh (posix_functions): Add fsync.
18085 * doc/posix-functions/fsync.texi: Mention the new module.
18087 2008-10-02 Jim Meyering <meyering@redhat.com>
18089 fts.c: sync with similar code from coreutils' remove.c
18090 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
18091 Guard also with "#if defined __linux__", since for now at least,
18092 this code is Linux-kernel-specific.
18094 2008-10-02 Jim Meyering <meyering@redhat.com>
18097 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
18098 Include <sys/vfs.h>, not <sys/statfs.h>.
18100 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
18101 Include <sys/vfs.h>, not <sys/statfs.h>.
18103 2008-10-01 Bruno Haible <bruno@clisp.org>
18105 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
18106 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
18107 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
18108 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
18109 * doc/posix-functions/posix_spawnp.texi: Likewise.
18110 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
18111 whether posix_spawn actually works.
18112 * m4/pipe.m4 (gl_PIPE): Likewise.
18113 * modules/execute (Files): Add m4/posix_spawn.m4.
18114 * modules/pipe (Files): Add m4/posix_spawn.m4.
18115 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
18117 2008-10-01 Jim Meyering <meyering@redhat.com>
18119 remove trailing spaces
18121 * lib/poll.c (poll): Likewise.
18122 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
18123 * lib/winsock.c (rpl_close): Likewise.
18124 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
18125 * modules/yield: Likewise.
18126 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
18127 * tests/test-sys_select.c (connect_to_socket): Likewise.
18129 fts.c: adjust a new interface to be more generally useful
18130 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
18131 (fts_build): Adjust caller.
18133 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18135 * modules/cond-tests: New file.
18136 * tests/test-cond.c: New file.
18138 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18139 Bruno Haible <bruno@clisp.org>
18141 * modules/cond (Dependencies): Add errno, time.
18142 * lib/glthread/cond.h: Include <time.h>.
18143 (gl_cond_define, gl_cond_define_initialized): Use the same definition
18146 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18147 Bruno Haible <bruno@clisp.org>
18149 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
18151 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18152 Bruno Haible <bruno@clisp.org>
18154 * modules/tls-tests (Depends-on): Add thread, yield.
18155 (configure.ac): Remove all checks.
18156 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
18157 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
18158 gl_thread_self): Remove definitions. Include glthread/thread.h and
18159 glthread/yield.h instead.
18160 (test_tls): Pass an additional NULL argument to gl_thread_join.
18162 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18163 Bruno Haible <bruno@clisp.org>
18165 * modules/lock-tests (Depends-on): Add thread, yield.
18166 (configure.ac): Remove all checks.
18167 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
18168 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
18169 gl_thread_self): Remove definitions. Include glthread/thread.h and
18170 glthread/yield.h instead.
18171 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
18172 additional NULL argument to gl_thread_join.
18174 2008-09-30 Bruno Haible <bruno@clisp.org>
18176 Fix the Win32 implementation of the 'thread' module.
18177 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
18179 (gl_thread_self): Invoke gl_thread_self_func.
18180 (gl_thread_self_func): New declaration.
18181 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
18182 (do_init_self_key, init_self_key): New functions.
18183 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
18184 Remove some fields.
18185 (running_threads, running_lock): Remove variables.
18186 (get_current_thread_handle): New function.
18187 (gl_thread_self_func, wrapper_func, glthread_create_func,
18188 glthread_join_func, gl_thread_exit_func): Largely rewritten and
18191 2008-09-30 Bruno Haible <bruno@clisp.org>
18193 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
18196 2008-09-30 Jim Meyering <meyering@redhat.com>
18198 fts.m4: correct the test for statfs.f_type
18199 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
18200 when checking for statfs.f_type.
18202 2008-09-15 Simon Josefsson <simon@josefsson.org>
18204 tests: avoid some compiler warnings
18205 * tests/test-memchr.c (main): Pass NULL indirectly.
18206 * tests/test-getdate.c (main): Remove unused variable 'ret'.
18208 2008-09-29 Ondřej Vašík <ovasik@redhat.com>
18210 getdate.y: disallow countable dayshifts like "4 yesterday ago"
18211 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
18212 exactly specified dayshifts.
18213 (dayshift): New rule.
18214 (rel): Add dayshift.
18215 (relative_time_table) [tomorrow, yesterday, today, now]:
18216 Use tDAY_SHIFT in place of tDAY_UNIT.
18217 * tests/test-getdate.c: Add tests for now-disallowed countable
18218 dayshifts, e.g., "4 yesterday ago".
18220 2008-09-29 Bruno Haible <bruno@clisp.org>
18222 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
18223 * tests/test-posix_spawn1.in.sh: Renamed from
18224 tests/test-posix_spawn.in.sh.
18225 * tests/test-posix_spawn2.c: New file.
18226 * tests/test-posix_spawn2.in.sh: New file.
18227 * modules/posix_spawnp-tests (Files): Update.
18228 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
18230 2008-09-29 Bruno Haible <bruno@clisp.org>
18232 Propagate effects of putenv/setenv/unsetenv to child processes.
18233 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
18234 * lib/pipe.c (create_pipe): Likewise.
18236 2008-09-29 Bruno Haible <bruno@clisp.org>
18238 Enable use of shell scripts as executables in mingw.
18239 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
18240 run the program as a shell script.
18241 * lib/pipe.c (create_pipe): Likewise.
18242 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
18245 2008-09-29 Eric Blake <ebb9@byu.net>
18247 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
18249 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
18251 * doc/posix-functions/accept.texi: Update mingw problems.
18252 * doc/posix-functions/bind.texi: Update mingw problems.
18253 * doc/posix-functions/close.texi: Update mingw problems.
18254 * doc/posix-functions/connect.texi: Update mingw problems.
18255 * doc/posix-functions/getpeername.texi: Update mingw problems.
18256 * doc/posix-functions/getsockname.texi: Update mingw problems.
18257 * doc/posix-functions/getsockopt.texi: Update mingw problems.
18258 * doc/posix-functions/ioctl.texi: Update mingw problems.
18259 * doc/posix-functions/listen.texi: Update mingw problems.
18260 * doc/posix-functions/recv.texi: Update mingw problems.
18261 * doc/posix-functions/recvfrom.texi: Update mingw problems.
18262 * doc/posix-functions/select.texi: Update mingw problems.
18263 * doc/posix-functions/send.texi: Update mingw problems.
18264 * doc/posix-functions/sendto.texi: Update mingw problems.
18265 * doc/posix-functions/setsockopt.texi: Update mingw problems.
18266 * doc/posix-functions/socket.texi: Update mingw problems.
18268 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
18269 Bruno Haible <bruno@clisp.org>
18271 * lib/sys_select.in.h: Include sys/time.h.
18272 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
18273 * modules/sys_select: Depend on sys_time.
18274 * tests/test-sys_select.c: Test that sys/select.h defines struct
18277 2008-09-29 Bruno Haible <bruno@clisp.org>
18279 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
18280 * lib/sys_select.in.h: Likewise.
18282 2008-09-29 Bruno Haible <bruno@clisp.org>
18284 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
18286 2008-09-29 Bruno Haible <bruno@clisp.org>
18288 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
18289 Set LIBSOCKET instead of augmenting LIBS.
18290 * modules/sockets (Link): New section.
18291 * modules/sockets-tests (test_sockets_LDADD): New variable.
18292 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
18293 * modules/poll-tests (test_poll_LDADD): New variable.
18294 * NEWS: Document the change.
18296 2008-09-29 Bruno Haible <bruno@clisp.org>
18298 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
18299 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
18300 ARPA_INET_H directly.
18301 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18303 2008-09-28 Bruno Haible <bruno@clisp.org>
18305 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
18306 from gl_HEADER_SYS_SOCKET.
18307 (gl_HEADER_SYS_SOCKET): Invoke it.
18308 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18310 2008-09-28 Bruno Haible <bruno@clisp.org>
18312 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
18313 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
18314 Needed on OSF/1 4.0.
18316 2008-09-28 Bruno Haible <bruno@clisp.org>
18318 Override open more carefully.
18319 * lib/open.c (orig_open): New function.
18320 (rpl_open): Use orig_open instead of open.
18321 * lib/fcntl.in.h: Add special invocation convention.
18322 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
18323 (gl_FUNC_OPEN): Invoke it.
18325 Override freopen more carefully.
18326 * lib/freopen.c (orig_freopen): New function.
18327 (rpl_freopen): Use orig_freopen instead of freopen.
18328 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
18329 (gl_FUNC_FREOPEN): Invoke it.
18331 Override fopen more carefully.
18332 * lib/fopen.c (orig_fopen): New function.
18333 (rpl_fopen): Use orig_fopen instead of fopen.
18334 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
18335 (gl_FUNC_FOPEN): Invoke it.
18336 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
18338 2008-09-28 Bruno Haible <bruno@clisp.org>
18340 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
18343 2008-09-28 Bruno Haible <bruno@clisp.org>
18345 * tests/test-sigaction.c (handler, main): Disable the check whether
18346 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
18347 glibc systems with LinuxThreads.
18349 2008-09-28 Bruno Haible <bruno@clisp.org>
18351 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
18353 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
18355 * lib/fcntl.in.h (open): Likewise.
18356 Reported by Rainer Tammer <tammer@tammer.net>.
18358 2008-09-28 Bruno Haible <bruno@clisp.org>
18360 * modules/posix_spawnp-tests: New file.
18361 * tests/test-posix_spawn.c: New file.
18362 * tests/test-posix_spawn.in.sh: New file.
18364 New module 'posix_spawnp'.
18365 * modules/posix_spawnp: New file.
18366 * lib/spawnp.c: New file, from GNU libc with modifications.
18367 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
18369 New module 'posix_spawn'.
18370 * modules/posix_spawn: New file.
18371 * lib/spawn.c: New file, from GNU libc with modifications.
18372 * doc/posix-functions/posix_spawn.texi: Mention the new module.
18374 New module 'posix_spawnattr_destroy'.
18375 * modules/posix_spawnattr_destroy: New file.
18376 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
18377 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
18380 New module 'posix_spawnattr_setsigmask'.
18381 * modules/posix_spawnattr_setsigmask: New file.
18382 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
18384 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
18387 New module 'posix_spawnattr_getsigmask'.
18388 * modules/posix_spawnattr_getsigmask: New file.
18389 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
18391 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
18394 New module 'posix_spawnattr_setsigdefault'.
18395 * modules/posix_spawnattr_setsigdefault: New file.
18396 * lib/spawnattr_setdefault.c: New file, from GNU libc with
18398 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
18401 New module 'posix_spawnattr_getsigdefault'.
18402 * modules/posix_spawnattr_getsigdefault: New file.
18403 * lib/spawnattr_getdefault.c: New file, from GNU libc with
18405 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
18408 New module 'posix_spawnattr_setschedpolicy'.
18409 * modules/posix_spawnattr_setschedpolicy: New file.
18410 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
18412 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
18415 New module 'posix_spawnattr_getschedpolicy'.
18416 * modules/posix_spawnattr_getschedpolicy: New file.
18417 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
18419 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
18422 New module 'posix_spawnattr_setschedparam'.
18423 * modules/posix_spawnattr_setschedparam: New file.
18424 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
18426 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
18429 New module 'posix_spawnattr_getschedparam'.
18430 * modules/posix_spawnattr_getschedparam: New file.
18431 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
18433 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
18436 New module 'posix_spawnattr_setpgroup'.
18437 * modules/posix_spawnattr_setpgroup: New file.
18438 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
18440 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
18443 New module 'posix_spawnattr_getpgroup'.
18444 * modules/posix_spawnattr_getpgroup: New file.
18445 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
18447 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
18450 New module 'posix_spawnattr_setflags'.
18451 * modules/posix_spawnattr_setflags: New file.
18452 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
18453 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
18456 New module 'posix_spawnattr_getflags'.
18457 * modules/posix_spawnattr_getflags: New file.
18458 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
18459 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
18462 New module 'posix_spawnattr_init'.
18463 * modules/posix_spawnattr_init: New file.
18464 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
18465 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
18468 New module 'posix_spawn_file_actions_destroy'.
18469 * modules/posix_spawn_file_actions_destroy: New file.
18470 * lib/spawn_faction_destroy.c: New file, from GNU libc with
18472 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
18475 New module 'posix_spawn_file_actions_addopen'.
18476 * modules/posix_spawn_file_actions_addopen: New file.
18477 * lib/spawn_faction_addopen.c: New file, from GNU libc with
18479 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
18482 New module 'posix_spawn_file_actions_adddup2'.
18483 * modules/posix_spawn_file_actions_adddup2: New file.
18484 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
18486 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
18489 New module 'posix_spawn_file_actions_addclose'.
18490 * modules/posix_spawn_file_actions_addclose: New file.
18491 * lib/spawn_faction_addclose.c: New file, from GNU libc with
18493 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
18496 New module 'posix_spawn_file_actions_init'.
18497 * modules/posix_spawn_file_actions_init: New file.
18498 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
18499 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
18502 New module 'posix_spawn-internal'.
18503 * modules/posix_spawn-internal: New file.
18504 * lib/spawn_int.h: New file, from GNU libc with modifications.
18505 * lib/spawni.c: New file, from GNU libc with modifications.
18506 * m4/posix_spawn.m4: New file.
18508 New module 'spawn'.
18509 * modules/spawn: New file.
18510 * lib/spawn.in.h: New file, from GNU libc with modifications.
18511 * m4/spawn_h.m4: New file.
18512 * doc/posix-headers/spawn.texi: Mention the new module.
18514 2008-09-28 Bruno Haible <bruno@clisp.org>
18516 * modules/sched-tests: New file.
18517 * tests/test-sched.c: New file.
18519 New module 'sched'.
18520 * modules/sched: New file.
18521 * lib/sched.in.h: New file.
18522 * m4/sched_h.m4: New file.
18523 * doc/posix-headers/sched.texi: Mention the new module.
18525 2008-09-27 Eric Blake <ebb9@byu.net>
18527 Fix previous patch, and tweak references to $0.
18528 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
18529 (func_version, func_gnulib_dir): Don't call this program
18531 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
18532 with using $0 in function.
18533 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
18534 (func_fatal_error): Reuse the name the user invoked us with.
18536 2008-09-27 Bruno Haible <bruno@clisp.org>
18538 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
18539 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
18540 (gl_ICONV_H): Not here.
18541 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
18542 instead of assigning ICONV_H directly.
18544 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
18545 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
18548 2008-09-27 Bruno Haible <bruno@clisp.org>
18550 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
18551 * modules/arpa_inet (Depends-on): Add link-warning.
18552 (Makefile.am): Insert the definition of GL_LINK-WARNING.
18553 * modules/unistd (Makefile.am): Likewise.
18555 2008-09-26 Bruno Haible <bruno@clisp.org>
18557 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
18559 (func_version): Essentially copied from gnulib-tool.
18560 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
18561 func_readlink): Copied from gnulib-tool.
18563 2008-09-26 Bruno Haible <bruno@clisp.org>
18565 * gnulib-tool (func_version): Change directory to $gnulib_dir before
18566 invoking git-version-gen.
18568 2008-09-26 Bruno Haible <bruno@clisp.org>
18570 * posix-modules: Update to directory names changed on 2008-01-19.
18571 Remove commas in output before splitting into words. No more need to
18572 avoid 'ftruncate' since 2007-02-19.
18574 2008-09-26 Bruno Haible <bruno@clisp.org>
18576 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
18578 2008-09-26 Bruno Haible <bruno@clisp.org>
18580 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
18581 * modules/fwriteerror (Depends-on): Add errno.
18583 2008-09-26 Bruno Haible <bruno@clisp.org>
18585 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
18586 * tests/test-vc-list-files-cvs.sh: Likewise.
18588 2008-09-26 Bruno Haible <bruno@clisp.org>
18590 * doc/posix-headers/sys_resource.texi: Reorder items.
18592 2008-09-26 Jim Meyering <meyering@redhat.com>
18594 fts: tweak inode comparison function
18595 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
18596 inode numbers, as documented.
18598 fts: sort dirent entries on inode number before traversing
18599 This avoids a quadratic, seek-related performance penalty when
18600 operating on a directory containing many entries (measurable at 10k;
18601 3.5 hours at 2 million entries with a cold cache) on certain types
18602 of file systems, including ext3 and ext4, but not tmpfs.
18603 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
18604 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
18605 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
18606 (fs_handles_readdir_ordered_dirents_efficiently): New function.
18607 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
18608 (fts_build): Set the stat.st_ino member from D_INO.
18609 If it is likely to be useful, sort dirent entries on inode number.
18611 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
18612 and the struct statfs.f_type member.
18613 * modules/fts (Depends-on): Add d-ino.
18615 2008-09-26 Bruno Haible <bruno@clisp.org>
18617 * modules/sigpipe-die (Depends-on): Add sigpipe.
18619 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
18620 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
18621 and GNULIB_STDIO_H_SIGPIPE are set.
18622 * lib/stdio-write.c: New file.
18623 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
18624 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
18625 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
18626 REPLACE_STDIO_WRITE_FUNCS.
18627 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
18628 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
18629 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
18630 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
18631 * modules/stdio (Files): Add lib/stdio-write.c.
18632 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
18633 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
18634 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
18635 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
18636 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
18637 REPLACE_FPRINTF_POSIX.
18638 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
18639 REPLACE_PRINTF_POSIX.
18640 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
18641 REPLACE_VFPRINTF_POSIX.
18642 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
18643 REPLACE_VPRINTF_POSIX.
18644 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
18646 * doc/posix-functions/fputc.texi: Likewise.
18647 * doc/posix-functions/fputs.texi: Likewise.
18648 * doc/posix-functions/fwrite.texi: Likewise.
18649 * doc/posix-functions/printf.texi: Likewise.
18650 * doc/posix-functions/putc.texi: Likewise.
18651 * doc/posix-functions/putchar.texi: Likewise.
18652 * doc/posix-functions/puts.texi: Likewise.
18653 * doc/posix-functions/vfprintf.texi: Likewise.
18654 * doc/posix-functions/vprintf.texi: Likewise.
18656 * modules/safe-write (Depends-on): Add write.
18658 * modules/sigpipe-tests: New file.
18659 * tests/test-sigpipe.c: New file.
18660 * tests/test-sigpipe.sh: New file.
18662 * modules/write: New file.
18663 * lib/unistd.in.h: Include <sys/types.h>.
18664 (write): New declaration.
18665 * lib/write.c: New file.
18666 * m4/write.m4: New file.
18667 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18668 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
18669 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
18670 GNULIB_WRITE, REPLACE_WRITE.
18671 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
18672 and the SIGPIPE issue.
18674 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
18675 (raise): New declaration.
18676 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
18677 (ext_signal): New function.
18678 (rpl_raise): New function.
18679 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
18680 GNULIB_SIGNAL_H_SIGPIPE.
18681 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
18682 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
18684 * modules/sigpipe: New file.
18685 * m4/sigpipe.m4: New file.
18687 2008-09-25 Derek Price <derek@ximbiot.com>
18688 Bruno Haible <bruno@clisp.org>
18690 * gnulib-tool (func_import): Report all license incompatibilities, not
18691 just the first one.
18693 2008-09-25 Bruno Haible <bruno@clisp.org>
18695 * gnulib-tool (func_import): When computing the edits, consider not
18696 only the Makefile.ams that exist but also those that will be generated.
18698 2008-09-25 Simon Josefsson <simon@josefsson.org>
18700 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
18701 fixes gnulib-tool --test warning about duplicate dependency.
18703 2008-09-25 Bruno Haible <bruno@clisp.org>
18705 * gnulib-tool: Don't ask the user to perform edits in the generated
18707 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
18708 apply to the Makefile.am being generated.
18709 (func_emit_tests_Makefile_am): Execute edits that apply to the
18710 Makefile.am being generated.
18711 (func_import): Setup list of Makefile.am edits before emitting the
18712 Makefile.ams, not at the end.
18713 (func_create_testdir): Update.
18714 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18716 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18718 * gnulib-tool (func_import): Store the --tests-base option in the
18719 comment in gnulib-cache.m4.
18721 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
18723 * NEWS: Document increased portability that sys_select now provides.
18725 * lib/sys_select.in.h: Install select wrapper.
18726 * lib/sys_socket.in.h: Use more descriptive name when there is no
18728 * lib/winsock-select.c: New.
18729 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
18730 Require gl_HEADER_SYS_SOCKET.
18731 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
18732 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
18733 * tests/test-sys_select.c: Add functional tests.
18735 2008-09-24 Eric Blake <ebb9@byu.net>
18737 open, fopen: close fd leak in last patch
18738 * lib/open.c (rpl_open): Close fd before returning error.
18739 * lib/fopen.c (rpl_fopen): Close fd before returning error.
18740 * doc/posix-functions/open.texi (open): Document that Irix also
18742 * doc/posix-functions/fopen.texi (fopen): Likewise.
18743 Reported by Paolo Bonzini.
18745 2008-09-24 Bruno Haible <bruno@clisp.org>
18747 Ensure that a filename ending in a slash cannot be used to access a
18749 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
18750 to check whether it's really a directory.
18751 * lib/fopen.c: Include fcntl.h, unistd.h.
18752 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
18754 * modules/fopen (Depends-on): Add unistd.
18755 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
18756 * tests/test-fopen.c (main): Likewise.
18757 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
18758 * doc/posix-functions/fopen.texi: Likewise.
18759 Reported by Eric Blake.
18761 2008-09-23 Eric Blake <ebb9@byu.net>
18763 c-stack: avoid compiler optimizations when provoking overflow
18764 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
18765 recursion harder to optimize, to ensure a stack overflow occurs.
18766 * tests/test-c-stack.c (recurse): Likewise.
18767 Borrowed from libsigsegv.
18769 c-stack: work around Irix sigaltstack bug
18770 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
18771 whether sigaltstack uses wrong end of stack_t (copied in part from
18773 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
18774 Irix bug, without requiring an over-allocation.
18775 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
18778 fopen: document mingw bug on directories
18779 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
18780 not allowing a stream visiting a directory, even though reading
18781 from such a stream is not portable.
18783 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
18785 * lib/poll.c: Rewrite.
18786 * modules/poll: Depend on alloca.
18788 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
18790 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
18791 instead define prototypes for a full set of wrappers. Ensure
18792 that Cygwin does not use the compatibility code, which is only
18794 * lib/winsock.c: New.
18795 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
18796 * modules/sys_socket: Add lib/winsock.c.
18798 * modules/poll-tests: Add errno and perror.
18799 * tests/test-poll.c: Use ioctl, not ioctlsocket.
18801 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
18803 * tests/test-poll.c: Downgrade minimum needed Winsock version.
18805 2008-09-23 Bruno Haible <bruno@clisp.org>
18807 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
18808 * doc/glibc-functions/*: Likewise.
18810 2008-09-23 Simon Josefsson <simon@josefsson.org>
18812 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
18815 2008-09-22 Eric Blake <ebb9@byu.net>
18816 Bruno Haible <bruno@clisp.org>
18818 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
18819 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
18820 supply %A but mishandle pseudo-NaN.
18821 Reported by Simon Josefsson.
18823 2008-09-21 Bruno Haible <bruno@clisp.org>
18825 * tests/test-lock.c (main): Tweak skip message.
18826 * tests/test-tls.c (main): Likewise.
18828 2008-09-21 Bruno Haible <bruno@clisp.org>
18830 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
18831 whether 'struct sigaction' has sa_sigaction here...
18832 (gl_PREREQ_SIG_HANDLER_H): ... not here.
18833 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
18835 2008-09-21 Bruno Haible <bruno@clisp.org>
18837 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
18839 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
18840 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
18842 (Support for obsolete systems lacking POSIX:2001): New section.
18843 (String handling <string.h>): Move strdup to the new section.
18844 Suggested by Simon Josefsson and Paolo Bonzini.
18846 2008-09-21 Bruno Haible <bruno@clisp.org>
18848 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
18849 exponents in %e and %g results on 'long double'. Needed for mingw's
18850 improved *printf functions.
18851 * tests/test-vasprintf-posix.c (test_function): Likewise.
18852 * tests/test-snprintf-posix.h (test_function): Likewise.
18853 * tests/test-sprintf-posix.h (test_function): Likewise.
18854 Reported by Eric Blake.
18856 2008-09-21 Bruno Haible <bruno@clisp.org>
18858 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
18859 * tests/test-sprintf-posix.h (test_function): Likewise.
18861 2008-09-21 Bruno Haible <bruno@clisp.org>
18863 * modules/getpass (Depends-on): Add strdup-posix.
18865 New module 'strdup-posix'.
18866 * modules/strdup-posix: New file.
18867 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
18868 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
18869 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18871 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
18872 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
18873 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18876 * modules/strdup (Depends-on): Remove malloc-posix.
18878 2008-09-20 Bruno Haible <bruno@clisp.org>
18880 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
18883 2008-09-20 Bruno Haible <bruno@clisp.org>
18885 Ensure that wint_t gets defined on IRIX 5.3.
18886 * lib/wchar.in.h (wint_t): Define if not defined by the system.
18887 * lib/wctype.in.h (wint_t): Likewise.
18888 (__wctype_wint_t): Remove type.
18889 (isw*): Use wint_t instead of __wctype_wint_t.
18890 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
18891 * modules/wchar (Files): Add m4/wint_t.m4.
18892 (Makefile.am): Substitute HAVE_WINT_T.
18893 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
18894 * tests/test-wctype.c: Check that wint_t is defined.
18895 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
18896 * doc/posix-headers/wctype.texi: Likewise.
18897 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18899 2008-09-18 Bruno Haible <bruno@clisp.org>
18901 * gnulib-tool (func_exit): Update comment.
18903 2008-09-18 Simon Josefsson <simon@josefsson.org>
18905 * modules/getaddrinfo (Depends-on): Remove strdup, this module
18906 assumes strdup exists and does not depend on strdup to return
18907 ENOMEM on out of memory conditions.
18909 2008-09-18 Bruno Haible <bruno@clisp.org>
18911 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
18912 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
18913 digits for the exponent.
18915 2008-09-18 Jim Meyering <meyering@redhat.com>
18916 Bruno Haible <bruno@clisp.org>
18918 * lib/vasnprintf.c (decimal_point_char): Define also if
18919 NEED_PRINTF_INFINITE_LONG_DOUBLE.
18921 2008-09-16 Bruno Haible <bruno@clisp.org>
18922 and Eric Blake <ebb9@byu.net>
18924 vasnprintf: support Irix 5.3
18925 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
18926 that mishandle long double infinity.
18927 Reported by Tom G. Christensen.
18929 2008-09-16 Bruno Haible <bruno@clisp.org>
18931 * doc/glibc-functions/scandir.texi: Mention the function is missing on
18933 * doc/glibc-functions/alphasort.texi: Likewise.
18934 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
18936 2008-09-16 Jim Meyering <meyering@redhat.com>
18938 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
18939 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
18940 a umask modification leak out of a subshell. Otherwise, the
18941 opensolaris /bin/sh would be accepted and thus cause unwarranted
18942 failures in the coreutils test suite.
18944 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
18946 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
18949 2008-09-16 Jim Meyering <meyering@redhat.com>
18951 avoid spurious test failure when library is built without ACL support
18952 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
18953 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
18954 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
18955 * tests/test-copy-acl.sh: Likewise.
18957 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18959 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
18960 based on character occurrence counts.
18962 2008-09-15 Eric Blake <ebb9@byu.net>
18964 tests: avoid some compiler warnings
18965 * tests/test-memchr.c (main): Pass NULL indirectly.
18966 * tests/test-closein.c (main): Avoid unused variable.
18968 2008-09-15 Bruno Haible <bruno@clisp.org>
18970 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
18971 are missing on OpenBSD 4.0 individually.
18972 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18974 2008-09-15 Bruno Haible <bruno@clisp.org>
18976 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
18977 * doc/posix-functions/strerror.texi: Mention also Cygwin.
18978 * doc/posix-functions/perror.texi: Likewise.
18979 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
18981 Reported by Eric Blake.
18983 * lib/errno.in.h: Use replacement values >= 2000.
18984 Reported by Eric Blake.
18986 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18988 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
18989 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
18991 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
18992 compareseq was aborted.
18994 2008-09-14 Bruno Haible <bruno@clisp.org>
18996 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
18998 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
18999 (fstrcmp_bounded): Simplify result computation accordingly.
19001 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19003 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
19004 (fstrcmp): Define in terms of fstrcmp_bounded.
19005 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
19006 lower_bound argument.
19007 Return quickly if the result is certainly < lower_bound.
19008 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
19010 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19012 * lib/diffseq.h (EARLY_ABORT): New macro.
19013 (compareseq): Change return type to bool. Return true when EARLY_ABORT
19016 2008-09-14 Bruno Haible <bruno@clisp.org>
19018 * modules/perror-tests: New file.
19019 * tests/test-perror.sh: New file.
19020 * tests/test-perror.c: New file.
19022 New module 'perror'.
19023 * lib/stdio.in.h (perror): New declaration.
19024 * lib/perror.c: New file.
19025 * m4/perror.m4: New file.
19026 * modules/perror: New file.
19027 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
19028 * doc/posix-functions/perror.texi: Mention the perror module.
19029 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
19031 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
19034 2008-09-14 Bruno Haible <bruno@clisp.org>
19036 * modules/stdio (Makefile.am): Reorder to match the order in
19038 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
19040 2008-09-13 Bruno Haible <bruno@clisp.org>
19042 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
19044 2008-09-13 Bruno Haible <bruno@clisp.org>
19046 Extend strerror to cover the added errno values.
19047 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
19048 (rpl_strerror): Provide error messages for the added errno values and
19049 for the WSA* values.
19050 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
19051 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
19053 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
19054 * modules/strerror (Depends-on): Add errno.
19055 * doc/posix-functions/strerror.texi: Document the change.
19056 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
19059 2008-09-13 Bruno Haible <bruno@clisp.org>
19061 * modules/EOVERFLOW: Remove file.
19062 * m4/eoverflow.m4: Remove file.
19063 * modules/EOVERFLOW-tests: Remove file.
19064 * tests/test-EOVERFLOW.c: Remove file.
19065 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
19066 * modules/ftell (Depends-on): Likewise.
19067 * modules/getdelim (Depends-on): Likewise.
19068 * modules/getugroups (Depends-on): Likewise.
19069 * modules/poll (Depends-on): Likewise.
19070 * modules/snprintf (Depends-on): Likewise.
19071 * modules/sprintf-posix (Depends-on): Likewise.
19072 * modules/vasnprintf (Depends-on): Likewise.
19073 * modules/vasprintf (Depends-on): Likewise.
19074 * modules/vfprintf-posix (Depends-on): Likewise.
19075 * modules/vsnprintf (Depends-on): Likewise.
19076 * modules/vsprintf-posix (Depends-on): Likewise.
19077 * modules/xvasprintf (Depends-on): Likewise.
19078 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19079 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
19080 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
19081 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
19082 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19083 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
19084 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
19085 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
19086 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19087 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
19088 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
19089 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
19090 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19091 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
19092 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
19093 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
19094 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19095 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
19096 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
19097 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
19098 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19099 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
19100 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
19101 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
19102 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
19103 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19104 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
19105 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
19106 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
19107 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
19108 * MODULES.html.sh: Remove EOVERFLOW.
19109 * NEWS: Mention the change.
19111 2008-09-13 Bruno Haible <bruno@clisp.org>
19113 * modules/errno-tests: New file.
19114 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
19116 * lib/errno.in.h: New file.
19117 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
19118 * modules/errno: New file.
19119 * doc/posix-headers/errno.texi: Update documentation.
19120 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
19122 2008-09-13 Bruno Haible <bruno@clisp.org>
19124 * tests/test-poll.c: Use #if for native Windows, rather than testing
19127 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19128 Bruno Haible <bruno@clisp.org>
19130 * lib/glob.c: Don't include <pwd.h> on native Windows.
19131 (WINDOWS32): New macro.
19132 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
19134 2008-09-13 Bruno Haible <bruno@clisp.org>
19136 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
19137 (ETIMEDOUT): Remove macro.
19138 (glthread_cond_timedwait_multithreaded): New declaration.
19139 (glthread_cond_timedwait): Use it.
19140 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
19141 (glthread_cond_timedwait_multithreaded): New function.
19143 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
19145 * modules/poll-tests: Do not check for io.h.
19146 * tests/test-poll.c: Check for __MSVCRT__ instead.
19148 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
19150 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
19151 * modules/poll-tests: Add inet_pton, stdbool, sockets.
19152 * tests/test-poll.c: Use them. Use _pipe on Windows.
19154 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
19156 * modules/poll-tests: New.
19157 * tests/test-poll.c: New.
19159 2008-09-12 Eric Blake <ebb9@byu.net>
19161 frexp: test for NetBSD failure on -0.0
19162 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
19163 not all, bugs from NetBSD 3.0 have been fixed.
19164 * doc/posix-functions/frexp.texi (frexp): Document bug.
19165 Reported by Thomas Klausner.
19167 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
19168 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
19170 Reported by Jonathan C. Patschke <jp@centtech.com>.
19172 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19174 * lib/glthread/cond.h: Use dummy implementation also if
19177 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19179 * modules/fnmatch-posix (License): Change to LGPLv2+.
19180 * modules/fnmatch-gnu (License): Likewise.
19182 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19184 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
19186 2008-09-11 Jim Meyering <meyering@redhat.com>
19188 * users.txt: Add gtk-vnc.
19190 2008-09-08 Simon Josefsson <simon@josefsson.org>
19192 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
19195 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
19196 required for 16-bit and 8-bit rotates.
19197 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
19198 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
19199 UINT8_MAX instead of hard-coded constants.
19200 Suggested by Paul Eggert.
19202 2008-09-07 Bruno Haible <bruno@clisp.org>
19204 * tests/test-striconveh.c (main): Check behaviour when converting from
19207 Make striconveh work better with stateful encodings.
19208 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
19209 that iconv does not increment the inptr when returning -1/EINVAL.
19211 2008-09-07 Bruno Haible <bruno@clisp.org>
19213 * build-aux/config.rpath: Update according to libtool-2.2.6.
19214 * build-aux/config.libpath: Likewise.
19216 2008-09-06 Bruno Haible <bruno@clisp.org>
19218 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
19219 * lib/freadptr.c (freadptr): Likewise.
19220 * lib/freadseek.c (freadptrinc): Likewise.
19221 Reported by Simon Josefsson.
19223 2008-09-06 Bruno Haible <bruno@clisp.org>
19225 * modules/freadptr (License): Change to LGPLv2+.
19226 * modules/freadseek (License): Likewise.
19227 Suggested by Eric Blake.
19229 * modules/memchr2 (License): Change to LGPLv2+.
19230 Approved by Eric Blake.
19232 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19233 Bruno Haible <bruno@clisp.org>
19235 Make gnulib-tool work with native 'sed' on AIX.
19236 * gnulib-tool (sed_noop): New variable.
19237 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
19238 func_add_or_update, func_create_testdir): Use it to initialize sed
19240 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19242 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
19243 Bruno Haible <bruno@clisp.org>
19245 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
19246 also works after #include directives.
19248 2008-09-04 Ondřej Vašík <ovasik@redhat.com>
19250 getdate.y: reject an out-of-range timezone value
19251 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
19252 the range [-24...+24]. When specified with only one or two digits,
19253 * tests/test-getdate.c: Tests for the fix.
19254 * doc/getdate.texi: Document this change.
19256 2008-09-03 Bruno Haible <bruno@clisp.org>
19258 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
19260 2008-09-02 Simon Josefsson <simon@josefsson.org>
19262 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
19263 <bruce.korb@gmail.com> with ideas from Ben Pfaff
19264 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
19265 Blake <ebb9@byu.net>.
19267 * tests/test-bitrotate.c: Add more test vectors.
19269 2008-09-02 Eric Blake <ebb9@byu.net>
19271 vasnprintf-posix: handle large precision via %.*d
19272 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
19273 when handling it ourselves.
19274 * tests/test-vasnprintf-posix.c (test_function): Add test.
19275 * tests/test-snprintf-posix.h (test_function): Likewise.
19276 * tests/test-sprintf-posix.h (test_function): Likewise.
19277 * tests/test-vasprintf-posix.c (test_function): Likewise.
19278 Reported by Alain Guibert.
19280 2008-09-01 Eric Blake <ebb9@byu.net>
19282 c-stack: make configure-time check more robust
19283 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
19284 successful sigaction call.
19285 Reported by Tom G. Christensen.
19287 2008-09-01 Bruno Haible <bruno@clisp.org>
19289 New module 'findprog-lgpl'.
19290 * modules/findprog-lgpl: New file.
19291 * lib/findprog-lgpl.c: New file.
19292 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
19293 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
19294 to decide whether to use strdup or xstrdup, concatenated_filename or
19295 xconcatenated_filename.
19297 2008-09-01 Bruno Haible <bruno@clisp.org>
19299 Split module 'concat-filename' into 'concat-filename' (LGPL) and
19300 'xconcat-filename' (GPL).
19301 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
19302 (License): Change to LGPLv2+.
19303 * modules/xconcat-filename: New file.
19304 * lib/concat-filename.h (concatenated_filename): Change specification.
19305 (xconcatenated_filename): New declaration.
19306 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
19307 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
19309 * lib/xconcat-filename.c: New file.
19310 * NEWS: Mention the change.
19311 * lib/findprog.c: Include concat-filename.h, not filename.h.
19312 (find_in_path): Use xconcatenated_filename instead of
19313 concatenated_filename.
19314 * lib/javacomp.c: Include concat-filename.h, not filename.h.
19315 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
19316 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
19317 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
19318 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
19319 instead of concatenated_filename.
19320 * lib/javaexec.c: Include concat-filename.h, not filename.h.
19321 (execute_java_class): Use xconcatenated_filename instead of
19322 concatenated_filename.
19323 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
19324 * modules/javacomp (Depends-on): Likewise.
19325 * modules/javaexec (Depends-on): Likewise.
19327 2008-09-01 Bruno Haible <bruno@clisp.org>
19329 Split module 'filename' into 'filename' and 'concat-filename'.
19330 * modules/filename: Keep only lib/filename.h.
19331 (License): Change to LGPLv2+.
19332 * modules/concat-filename: New file, extracted from modules/filename.
19333 * lib/filename.h (concatenated_filename): Remove declaration.
19334 * lib/concat-filename.h: New file, extracted from lib/filename.h.
19335 * lib/concat-filename.c: Include concat-filename.h.
19336 * NEWS: Mention the change.
19338 2008-09-01 Simon Josefsson <simon@josefsson.org>
19340 * lib/bitrotate.h (rotl8, rotr8): Add.
19342 * modules/bitrotate (configure.ac): Need
19343 AC_REQUIRE([AC_C_INLINE]).
19344 (Description): Mention stdint.h. Reported by Bruno Haible
19347 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
19348 Paolo Bonzini <bonzini@gnu.org>.
19350 2008-08-31 Bruno Haible <bruno@clisp.org>
19352 Assume Solaris specific bi-arch conventions on Solaris systems.
19353 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
19354 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
19355 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
19356 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
19357 like acl_libdirstem.
19358 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
19360 * NEWS: Mention the change.
19361 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
19363 2008-08-31 Jim Meyering <meyering@redhat.com>
19365 * lib/strftime.h: Add comments describing the two added arguments.
19367 remove duplicate #include directives
19368 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
19369 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
19371 2008-08-31 Bruno Haible <bruno@clisp.org>
19373 New module 'sigpipe-die'.
19374 * modules/sigpipe-die: New file.
19375 * lib/sigpipe-die.h: New file.
19376 * lib/sigpipe-die.c: New file.
19377 * MODULES.html.sh (Signal handling): Add sigpipe-die.
19379 2008-08-31 Bruno Haible <bruno@clisp.org>
19381 Don't override previously installed signal handlers.
19382 * lib/fatal-signal.c (saved_sigactions): New variable.
19383 (uninstall_handlers): Reset the signal to the saved handler, not
19384 to SIG_DFL (except when ignored).
19385 (install_handlers): Save the previous handlers.
19387 2008-08-30 Bruno Haible <bruno@clisp.org>
19389 * gnulib-tool (func_reset_sigpipe): New function.
19390 (func_get_automake_snippet, func_modules_transitive_closure,
19391 func_import): Invoke it before a join command that reads from stdin,
19392 to avoid "echo: write error: Broken pipe" error messages on stderr.
19393 Reported by Sam Steingold <sds@gnu.org>.
19395 2008-08-30 Bruno Haible <bruno@clisp.org>
19397 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
19398 Code copied from m4/open.m4.
19399 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
19400 access and the filename ends in a slash. Code copied from lib/open.c.
19401 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
19402 * tests/test-fopen.c (main): Check against bug with trailing slash.
19404 2008-08-29 Bruno Haible <bruno@clisp.org>
19406 Avoid some "gcc -pedantic" warnings.
19407 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
19408 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
19409 * lib/dirent.in.h: Likewise.
19410 * lib/fcntl.in.h: Likewise.
19411 * lib/float.in.h: Likewise.
19412 * lib/iconv.in.h: Likewise.
19413 * lib/inttypes.in.h: Likewise.
19414 * lib/locale.in.h: Likewise.
19415 * lib/math.in.h: Likewise.
19416 * lib/netinet_in.in.h: Likewise.
19417 * lib/search.in.h: Likewise.
19418 * lib/signal.in.h: Likewise.
19419 * lib/stdarg.in.h: Likewise.
19420 * lib/stdint.in.h: Likewise.
19421 * lib/stdio.in.h: Likewise.
19422 * lib/stdlib.in.h: Likewise.
19423 * lib/string.in.h: Likewise.
19424 * lib/strings.in.h: Likewise.
19425 * lib/sys_select.in.h: Likewise.
19426 * lib/sys_socket.in.h: Likewise.
19427 * lib/sys_stat.in.h: Likewise.
19428 * lib/sys_time.in.h: Likewise.
19429 * lib/sysexits.in.h: Likewise.
19430 * lib/time.in.h: Likewise.
19431 * lib/unistd.in.h: Likewise.
19432 * lib/wchar.in.h: Likewise.
19433 * lib/wctype.in.h: Likewise.
19434 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
19435 * modules/fchdir (Makefile.am): Likewise.
19436 * modules/fcntl (Makefile.am): Likewise.
19437 * modules/float (Makefile.am): Likewise.
19438 * modules/iconv_open (Makefile.am): Likewise.
19439 * modules/inttypes (Makefile.am): Likewise.
19440 * modules/locale (Makefile.am): Likewise.
19441 * modules/math (Makefile.am): Likewise.
19442 * modules/netinet_in (Makefile.am): Likewise.
19443 * modules/search (Makefile.am): Likewise.
19444 * modules/signal (Makefile.am): Likewise.
19445 * modules/stdarg (Makefile.am): Likewise.
19446 * modules/stdint (Makefile.am): Likewise.
19447 * modules/stdio (Makefile.am): Likewise.
19448 * modules/stdlib (Makefile.am): Likewise.
19449 * modules/string (Makefile.am): Likewise.
19450 * modules/strings (Makefile.am): Likewise.
19451 * modules/sys_select (Makefile.am): Likewise.
19452 * modules/sys_socket (Makefile.am): Likewise.
19453 * modules/sys_stat (Makefile.am): Likewise.
19454 * modules/sys_time (Makefile.am): Likewise.
19455 * modules/sysexits (Makefile.am): Likewise.
19456 * modules/time (Makefile.am): Likewise.
19457 * modules/unistd (Makefile.am): Likewise.
19458 * modules/wchar (Makefile.am): Likewise.
19459 * modules/wctype (Makefile.am): Likewise.
19460 Reported by Reuben Thomas <rrt@sc3d.org>.
19462 2008-08-29 Bruno Haible <bruno@clisp.org>
19464 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
19467 2008-08-29 Simon Josefsson <simon@josefsson.org>
19469 * MODULES.html.sh (Misc): Add bitrotate.
19471 * modules/bitrotate: New file.
19473 * lib/bitrotate.h: New file.
19475 * modules/bitrotate-tests: New file.
19477 * tests/test-bitrotate.c: New file.
19479 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
19480 on the bitrotate module.
19482 * lib/arctwo.c: Use new bitrotate module.
19484 2008-08-29 Jim Meyering <meyering@redhat.com>
19486 bootstrap: merge changes from coreutils
19487 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
19488 of copied files. Remove a kludge, now that this is fixed.
19489 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
19490 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
19491 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
19493 2008-08-29 Bruno Haible <bruno@clisp.org>
19495 * MODULES.html.sh: Remove --cvs-urls option.
19497 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
19499 maint.mk: adjust to file name change
19500 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
19502 2008-08-28 Jim Meyering <meyering@redhat.com>
19504 * modules/getndelim2 (License): Relicense to LGPLv2+.
19505 Approved by Richard Stallman for the version of 1995, and by
19506 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
19508 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
19510 * lib/getdelim.c (flockfile, funlockfile): Make all of them
19511 dummy if one is not available. Do not touch them if
19512 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
19513 (getc_maybe_unlocked): New.
19514 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
19516 2008-08-26 Eric Blake <ebb9@byu.net>
19518 doc/INSTALL: resync from autoconf
19519 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
19520 (INSTALL_PRELUDE): Delete; this is done more efficiently by
19522 * install.texi [!autoconf]: ...here. Resync from autoconf.
19523 * INSTALL: Regenerate.
19524 * INSTALL.ISO: New file.
19525 * INSTALL.UTF-8: Likewise.
19527 2008-08-26 Jim Meyering <meyering@redhat.com>
19529 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
19530 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
19531 these definitions conditional, so that they may be overridden, too.
19533 2008-08-26 Bruno Haible <bruno@clisp.org>
19535 Generate INSTALL file variants with prettier quotes.
19536 * doc/Makefile (INSTALL_PRELUDE): New macro.
19538 (INSTALL.ISO, INSTALL.UTF-8): New rules.
19540 2008-08-26 Bruno Haible <bruno@clisp.org>
19542 Run makeinfo in an English locale.
19543 * doc/Makefile (MAKEINFO): New variable.
19545 2008-08-26 Bruno Haible <bruno@clisp.org>
19547 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
19548 Suggested by Eric Blake.
19550 2008-08-25 Bruno Haible <bruno@clisp.org>
19552 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
19554 2008-08-25 Eric Blake <ebb9@byu.net>
19556 c-stack: test that stack overflow can be caught
19557 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
19558 that platform allows handling stack overflow; at least OS/2 EMX
19559 has sigaltstack, but crashes before transferring control to
19560 handler on stack overflow.
19561 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
19562 check for HAVE_STACK_OVERFLOW_HANDLING.
19563 Reported by Elbert Pol.
19565 2008-08-25 Bruno Haible <bruno@clisp.org>
19567 * doc/posix-functions/strftime.texi: Fix description of strftime
19570 2008-08-24 Bruno Haible <bruno@clisp.org>
19572 * tests/uniwidth/test-uc_width2.c: New file.
19573 * tests/uniwidth/test-uc_width2.sh: New file.
19574 * modules/uniwidth/width-tests (Files): Add the new files.
19575 (TESTS): Add uniwidth/test-uc_width2.sh.
19576 (TESTS_ENVIRONMENT): New variable.
19577 (check_PROGRAMS): Add test-uc_width2.
19578 (test_uc_width2_SOURCES): New variable.
19580 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
19581 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
19583 Reported by Alexander V. Lukyanov <lav@netis.ru>.
19585 2008-08-22 Eric Blake <ebb9@byu.net>
19587 test-lock, test-tls: mention why a test is skipped
19588 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
19590 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
19592 count-one-bits: relax license
19593 * modules/count-one-bits (License): Relicense to LGPLv2+.
19594 Suggested by Ludovic Courtès, approved by Ben Pfaff.
19596 2008-08-22 Andreas Schwab <schwab@suse.de>
19598 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
19599 Remove spurious space in assignment.
19601 2008-08-21 Simon Josefsson <simon@josefsson.org>
19603 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
19604 Paul Eggert <eggert@CS.UCLA.EDU>.
19606 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
19608 * modules/gettext: Add m4/threadlib.m4.
19610 2008-08-19 Eric Blake <ebb9@byu.net>
19612 test-c-stack: fix compilation failure on FreeBSD 5.0
19613 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
19614 headers before <sys/resource.h>.
19615 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
19617 Reported by Nelson H. F. Beebe.
19619 strverscmp: migrate from "strverscmp.h" to <string.h>
19620 * modules/string (Makefile.am): Add new hooks.
19621 * modules/strverscmp (Files): Remove strverscmp.h.
19622 (Depends-on): Add string.
19623 (configure.ac): Add indicator.
19624 (Include): Mention new header.
19625 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
19627 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
19629 * lib/strverscmp.h: Delete.
19630 * lib/string.in.h (strverscmp): Provide declaration, when needed.
19631 * tests/test-strverscmp.c (includes): Adjust client.
19632 * lib/check-version.c (includes): Likewise.
19633 * NEWS: Document the change.
19635 strverscmp: add unit test
19636 * modules/strverscmp-tests: New file.
19637 * tests/test-strverscmp.c: Likewise.
19639 2008-08-19 Simon Josefsson <simon@josefsson.org>
19641 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
19642 regarding Windows crypto stuff, from Mono.
19644 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
19646 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
19647 if present, for intel RND. Return error on failures.
19649 2008-08-18 Ben Pfaff <blp@gnu.org>
19651 gitlog-to-changelog: give better diagnostic for failed pipe-open
19652 * build-aux/gitlog-to-changelog: Improve error message: suggest
19653 that the version of Git may be too old.
19655 2008-08-18 Simon Josefsson <simon@josefsson.org>
19657 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
19658 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
19660 2008-08-18 Bruno Haible <bruno@clisp.org>
19662 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
19665 2008-08-18 Bruno Haible <bruno@clisp.org>
19667 * lib/glthread/threadlib.c: Include <pthread.h>.
19669 2008-08-18 Bruno Haible <bruno@clisp.org>
19671 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
19672 glthread_recursive_lock_* macros.
19673 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
19676 2008-08-18 Bruno Haible <bruno@clisp.org>
19678 * lib/glthread/thread.c: Avoid forcing a context switch right after
19681 2008-08-17 Bruno Haible <bruno@clisp.org>
19683 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
19684 * lib/glthread/thread.h: Provide Win32 specific implementation.
19685 * modules/thread (Files): Add lib/glthread/thread.c.
19686 (Depends-on): Add lock.
19687 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
19689 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19691 New module 'yield'.
19692 * modules/yield: New file.
19693 * lib/glthread/yield.h: New file.
19694 * m4/yield.m4: New file.
19695 * MODULES.html.sh (Multithreading): Add yield.
19697 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19699 New module 'thread'.
19700 * modules/thread: New file.
19701 * lib/glthread/thread.h: New file.
19702 * m4/thread.m4: New file.
19703 * MODULES.html.sh (Multithreading): Add thread.
19705 2008-08-17 Bruno Haible <bruno@clisp.org>
19707 * lib/glthread/lock.h: Include <stdlib.h> always.
19708 * lib/glthread/tls.h: Likewise.
19709 * lib/glthread/cond.h: Likewise.
19711 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19714 * modules/cond: New file.
19715 * lib/glthread/cond.h: New file.
19716 * lib/glthread/cond.c: New file.
19717 * m4/cond.m4: New file.
19718 * MODULES.html.sh (Multithreading): Add cond.
19720 2008-08-16 Eric Blake <ebb9@byu.net>
19722 c-stack: fix regression on Irix 5.3 from 2008-06-21
19723 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
19725 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
19726 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
19727 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
19728 * modules/signal (Makefile.am): Use the value.
19729 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
19730 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
19731 * doc/posix-headers/signal.texi (signal.h): Document this
19733 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
19734 Reported by Tom G. Christensen.
19736 2008-08-17 Bruno Haible <bruno@clisp.org>
19738 New module 'threadlib'.
19739 * modules/threadlib: New file.
19740 * lib/glthread/threadlib.c: New file, extracted from
19741 lib/glthread/lock.c.
19742 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
19744 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
19745 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
19746 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
19748 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
19749 (gl_DISABLE_THREADS): Remove macro.
19750 * modules/lock (Files): Remove build-aux/config.rpath.
19751 (Depends-on): Remove havelib. Add threadlib.
19752 (configure.ac-early): Remove section.
19753 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
19754 * modules/tls (Depends-on): Remove lock. Add threadlib.
19755 (Link): New section, copied from threadlib.
19756 * MODULES.html.sh (Multithreading): Add threadlib.
19758 2008-08-14 Bruno Haible <bruno@clisp.org>
19760 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
19761 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
19762 glthread_rwlock_unlock, glthread_rwlock_destroy,
19763 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
19764 glthread_recursive_lock_destroy): Define as macros always.
19765 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
19766 glthread_lock_lock.
19767 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
19768 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
19769 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
19770 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
19771 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
19772 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
19773 (glthread_recursive_lock_lock_func): Renamed from
19774 glthread_recursive_lock_lock.
19775 (glthread_recursive_lock_unlock_func): Renamed from
19776 glthread_recursive_lock_unlock.
19777 (glthread_recursive_lock_destroy_func): Renamed from
19778 glthread_recursive_lock_destroy.
19780 2008-08-14 Bruno Haible <bruno@clisp.org>
19782 * lib/glthread/lock.h: Renamed from lib/lock.h.
19783 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
19784 * lib/glthread/tls.h: Renamed from lib/tls.h.
19785 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
19786 * lib/fstrcmp.c: Update includes.
19787 * lib/strsignal.c: Update includes.
19788 * modules/lock (Files, Makefile.am): Update.
19789 (Include): Change to "glthread/lock.h".
19790 * modules/tls (Files, Makefile.am): Update.
19791 (Include): Change to "glthread/tls.h".
19792 * tests/test-lock.c: Update includes.
19793 * tests/test-tls.c: Update includes.
19794 * NEWS: Mention the renamed header files.
19796 2008-08-11 Jim Meyering <meyering@redhat.com>
19798 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
19800 2008-08-11 Eric Blake <ebb9@byu.net>
19802 test-c-stack: avoid C99-ism
19803 * tests/test-c-stack.c (main): Fix whitespace, move declaration
19805 Reported by Alain Guibert.
19807 2008-08-10 Jim Meyering <meyering@redhat.com>
19809 ensure that return value of uinttostr et al are not ignored
19810 * lib/inttostr.h (__GNUC_PREREQ): Define.
19811 (__attribute_warn_unused_result__): Define.
19812 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
19814 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
19816 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
19817 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
19819 2008-08-07 Jim Meyering <meyering@redhat.com>
19821 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
19823 * modules/mkstemp (License): Relicense under LGPLv2+.
19824 * modules/tempname (License): Likewise.
19826 2008-08-06 Bruno Haible <bruno@clisp.org>
19828 * lib/poll.c (poll): Further micro-optimization.
19830 2008-08-06 Jim Meyering <meyering@redhat.com>
19832 inet_pton.c: use locale-independent tolower
19833 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
19834 (inet_pton6): Use c_tolower rather than tolower.
19835 * modules/inet_pton (Depends-on): Add c-ctype.
19837 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
19839 * lib/poll.c (poll): Avoid division when timeout is 0, cache
19840 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
19842 2008-08-06 Jim Meyering <meyering@redhat.com>
19844 * modules/inet_pton (License): Relicense under LGPLv2+.
19846 2008-08-03 Bruno Haible <bruno@clisp.org>
19848 Additional non-aborting API for lock and tls.
19849 * lib/lock.h: Include <errno.h>.
19850 (glthread_lock_init): New macro/function.
19851 (gl_lock_init): Define as wrapper around glthread_lock_init.
19852 (glthread_lock_lock): New macro/function.
19853 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
19854 (glthread_lock_unlock): New macro/function.
19855 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
19856 (glthread_lock_destroy): New macro/function.
19857 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
19858 (glthread_rwlock_init): New macro/function.
19859 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
19860 (glthread_rwlock_rdlock): New macro/function.
19861 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
19862 (glthread_rwlock_wrlock): New macro/function.
19863 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
19864 (glthread_rwlock_unlock): New macro/function.
19865 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
19866 (glthread_rwlock_destroy): New macro/function.
19867 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
19868 (glthread_recursive_lock_init): New macro/function.
19869 (gl_recursive_lock_init): Define as wrapper around
19870 glthread_recursive_lock_init.
19871 (glthread_recursive_lock_lock): New macro/function.
19872 (gl_recursive_lock_lock): Define as wrapper around
19873 glthread_recursive_lock_lock.
19874 (glthread_recursive_lock_unlock): New macro/function.
19875 (gl_recursive_lock_unlock): Define as wrapper around
19876 glthread_recursive_lock_unlock.
19877 (glthread_recursive_lock_destroy): New macro/function.
19878 (gl_recursive_lock_destroy): Define as wrapper around
19879 glthread_recursive_lock_destroy.
19880 (glthread_once): New macro/function.
19881 (gl_once): Define as wrapper around glthread_once.
19882 Update function declarations.
19883 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
19884 glthread_rwlock_init. Return error code.
19885 (glthread_rwlock_rdlock_multithreaded): Renamed from
19886 glthread_rwlock_rdlock. Return error code.
19887 (glthread_rwlock_wrlock_multithreaded): Renamed from
19888 glthread_rwlock_wrlock. Return error code.
19889 (glthread_rwlock_unlock_multithreaded): Renamed from
19890 glthread_rwlock_unlock. Return error code.
19891 (glthread_rwlock_destroy_multithreaded): Renamed from
19892 glthread_rwlock_destroy. Return error code.
19893 (glthread_recursive_lock_init_multithreaded): Renamed from
19894 glthread_recursive_lock_init. Return error code.
19895 (glthread_recursive_lock_lock_multithreaded): Renamed from
19896 glthread_recursive_lock_lock. Return error code.
19897 (glthread_recursive_lock_unlock_multithreaded): Renamed from
19898 glthread_recursive_lock_unlock. Return error code.
19899 (glthread_recursive_lock_destroy_multithreaded): Renamed from
19900 glthread_recursive_lock_destroy. Return error code.
19901 (glthread_once_call): Make static.
19902 (glthread_once_multithreaded): Renamed from glthread_once.
19903 * lib/tls.h: Include <errno.h>.
19904 (glthread_tls_key_init): New macro/function.
19905 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
19906 (glthread_tls_set): New macro/function.
19907 (gl_tls_set): Define as wrapper around glthread_tls_set.
19908 (glthread_tls_key_destroy): New macro/function.
19909 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
19910 Update function declarations.
19911 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
19913 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19915 2008-08-04 Eric Blake <ebb9@byu.net>
19917 gnumakefile: use space, not TAB, outside of targets
19918 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
19920 2008-08-02 Jim Meyering <meyering@redhat.com>
19922 getdate.y: avoid locale-dependent date parsing failure
19923 In Turkish locales, getdate would fail to recognize keywords
19924 containing a lowercase "i". The solution is not to rely on
19925 locale-sensitive case-conversion.
19926 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
19927 (lookup_word): Use c_toupper in place of toupper.
19928 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
19929 Reported by Vefa Bicakci <bicave@superonline.com> in
19930 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
19931 * modules/getdate (Depends-on): Add c-ctype.
19933 2008-08-02 Bruno Haible <bruno@clisp.org>
19935 * gnulib-tool (func_import): When updating or creating a .gitignore
19936 file, prepend each added line with a slash, and ignore leading slashes
19937 from the existing lines.
19938 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
19940 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19942 Portability fix for GNU make 3.79.1.
19943 * top/GNUmakefile: Avoid 'else COND', which older GNU make
19944 versions do not understand.
19946 2008-08-01 Bruno Haible <bruno@clisp.org>
19948 Work around bug of HP-UX 10.20 cc with -0.0 literal.
19949 * tests/test-isnanf.h (zero): New variable.
19950 (main): Avoid literal -0.0f.
19951 * tests/test-isnand.h (zero): New variable.
19952 (main): Avoid literal -0.0.
19953 * tests/test-isnanl.h (zero): New variable.
19954 (main): Avoid literal -0.0L.
19955 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
19956 (test_float, test_double, test_long_double): Avoid literals -0.0f,
19958 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
19959 (test_signbitd): Avoid literal -0.0.
19960 (test_signbitl): Avoid literal -0.0L.
19961 * tests/test-ceilf1.c (zero): New variable.
19962 (main): Avoid literal -0.0f.
19963 * tests/test-ceill.c (zero): New variable.
19964 (main): Avoid literal -0.0L.
19965 * tests/test-floorf1.c (zero): New variable.
19966 (main): Avoid literal -0.0f.
19967 * tests/test-floorl.c (zero): New variable.
19968 (main): Avoid literal -0.0L.
19969 * tests/test-roundf1.c (zero): New variable.
19970 (main): Avoid literal -0.0f.
19971 * tests/test-round1.c (zero): New variable.
19972 (main): Avoid literal -0.0.
19973 * tests/test-roundl.c (zero): New variable.
19974 (main): Avoid literal -0.0L.
19975 * tests/test-truncf1.c (zero): New variable.
19976 (main): Avoid literal -0.0f.
19977 * tests/test-trunc1.c (zero): New variable.
19978 (main): Avoid literal -0.0.
19979 * tests/test-truncl.c (zero): New variable.
19980 (main): Avoid literal -0.0L.
19981 * tests/test-frexp.c (zero): New variable.
19982 (main): Avoid literal -0.0.
19983 * tests/test-frexpl.c (zero): New variable.
19984 (main): Avoid literal -0.0L.
19985 * tests/test-ldexpl.c (zero): New variable.
19986 (main): Avoid literal -0.0L.
19987 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
19988 (zerod, zerol): New variables.
19989 (test_function): Avoid literals -0.0, -0.0L.
19990 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
19991 (zerod, zerol): New variables.
19992 (test_function): Avoid literals -0.0, -0.0L.
19993 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
19994 (zerod, zerol): New variables.
19995 (test_function): Avoid literals -0.0, -0.0L.
19996 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
19997 (zerod, zerol): New variables.
19998 (test_function): Avoid literals -0.0, -0.0L.
19999 * tests/test-strtod.c (zero): New variable.
20000 (main): Avoid literal -0.0.
20001 Reported by Jonathan C. Patschke <jp@centtech.com>.
20003 2008-07-31 Jim Meyering <meyering@redhat.com>
20005 sha256.h: correct definition of SHA224_DIGEST_SIZE
20006 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
20007 Reported by Paulie Pena IV <paulie4@gmail.com>.
20008 Define as 224 / 8, rather than as a literal.
20009 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
20010 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
20011 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
20013 2008-07-31 Bruno Haible <bruno@clisp.org>
20015 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
20016 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
20017 Reported by Jonathan Patschke <jp@centtech.com>.
20019 2008-07-31 Bruno Haible <bruno@clisp.org>
20021 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
20022 Reported by Paolo Bonzini <bonzini@gnu.org>.
20024 2008-07-30 Eric Blake <ebb9@byu.net>
20026 test-strtod: allow compilation without -lm
20027 * tests/test-strtod.c (main): Avoid link dependence on fabs.
20028 Reported by Dennis Clarke <blastwave@gmail.com>.
20030 2008-07-28 Jim Meyering <meyering@redhat.com>
20032 bootstrap: work also when there are no .po files in po/
20033 * build-aux/bootstrap (update_po_files): Complete the change
20034 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
20036 2008-07-27 Jim Meyering <meyering@redhat.com>
20038 * users.txt: Add zile.
20040 2008-07-26 Ben Pfaff <blp@gnu.org>
20042 Add missing dependencies on new m4/exponent[fdl].m4 files.
20043 * modules/isnanf-nolibm: Add m4/exponentf.m4.
20044 * modules/isnand-nolibm: Add m4/exponentd.m4.
20045 * modules/isnanl-nolibm: Add m4/exponentl.m4.
20046 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
20047 m4/isnan[fdl].m4, because the macros actually used moved.
20048 Reported by Jim Meyering.
20050 2008-07-14 Ben Pfaff <blp@gnu.org>
20053 * lib/isinf.c: New file.
20054 * lib/math.in.h: Define isinf macro if we have decided to replace
20056 * m4/isinf.m4: New file.
20057 * m4/math_h.m4: Initialize and substitute variables for isinf
20059 * modules/isinf: New file.
20060 * modules/isinf-tests: New file.
20061 * modules/math: Add substitutions for new module.
20062 * tests/test-isinf.c: New file.
20063 * doc/posix-functions/isinf.texi: Mention new module.
20064 * MODULES.html.sh: Mention new module.
20066 2008-07-14 Ben Pfaff <blp@gnu.org>
20068 Factor out some macros for use by additional modules.
20069 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
20071 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
20073 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
20075 * m4/exponentf.m4: New file.
20076 * m4/exponentd.m4: New file.
20077 * m4/exponentl.m4: New file.
20078 * modules/isnanf: Use new file m4/exponentf.m4.
20079 * modules/isnand: Use new file m4/exponentd.m4.
20080 * modules/isnanl: Use new file m4/exponentl.m4.
20082 2008-07-23 Ulrich Drepper <drepper@redhat.com>
20084 mktime.c: normalize tp->tm_isdst value to -1/0/1.
20085 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
20086 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
20087 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
20089 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
20090 readlink on platforms without PATH_MAX.
20092 2008-07-21 Eric Blake <ebb9@byu.net>
20094 Warn, not fail, on stale version.
20095 * top/GNUmakefile (_curr-ver): Tone down previous patch.
20097 Don't allow installation with stale devel version number.
20098 * top/GNUmakefile (_is-install-target): New macro.
20099 (_curr-ver): Forbid installation with stale version number.
20101 2008-07-20 Bruno Haible <bruno@clisp.org>
20103 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
20105 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
20107 2008-07-20 Bruno Haible <bruno@clisp.org>
20109 * lib/c-stack.h (c_stack_action): Add documentation.
20110 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
20112 2008-07-20 Bruno Haible <bruno@clisp.org>
20114 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
20115 * modules/readlink (License): Likewise.
20117 2008-07-17 Eric Blake <ebb9@byu.net>
20119 * modules/c-stack (Link): Fix typo.
20121 Make c-stack use libsigsegv, when available.
20122 * modules/c-stack (Depends-on): Add libsigsegv.
20123 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
20125 * lib/c-stack.c (SIGSTKSZ): Define fallback.
20126 (segv_handler, overflow_handler, c_stack_action)
20127 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
20128 implementation when libsigsegv is available, but only when using
20129 the library is necessary.
20130 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
20131 comment, explaining why XSI check fails on Linux.
20132 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
20133 * tests/test-c-stack2.sh: Tweak skip message.
20134 * NEWS: Document new link-time requirements.
20136 2008-07-16 Eric Blake <ebb9@byu.net>
20138 c-stack: Expose false positives when not using libsigsegv.
20139 * modules/c-stack-tests (Files): Expand test.
20140 * tests/test-c-stack.c (main): Add means to conditionally trigger
20141 non-overflow SIGSEGV.
20142 * tests/test-c-stack2.sh: New file.
20144 2008-07-14 Bruno Haible <bruno@clisp.org>
20146 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
20147 Reported by Eric Blake.
20149 2008-07-14 Sam Steingold <sds@gnu.org>
20150 Bruno Haible <bruno@clisp.org>
20152 New module libsigsegv.
20153 * modules/libsigsegv: New file.
20154 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
20156 * MODULES.html.sh (Signal handling): New section.
20158 2008-07-14 Bruno Haible <bruno@clisp.org>
20160 * modules/unictype/ctype-* (Description): Add the word "function".
20161 Improves the resulting doc in MODULES.html.
20163 2008-07-12 Ben Pfaff <blp@gnu.org>
20165 Add longlong module.
20166 * modules/longlong: New file.
20168 2008-07-12 Bruno Haible <bruno@clisp.org>
20170 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
20173 2008-07-10 Ben Pfaff <blp@gnu.org>
20176 * doc/posix-functions/isnan.texi: Mention new module.
20177 * lib/math.in.h: Define isnan macro if we have decided to replace
20179 * m4/isnan.m4: New file.
20180 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
20181 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
20183 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
20185 * m4/math_h.m4: Initialize and substitute variables for isnan
20187 * modules/isnan: New file.
20188 * modules/isnan-tests: New file.
20189 * modules/math: Add substitutions for new module.
20190 * tests/test-isnan.c: New file.
20191 * MODULES.html.sh: Mention new module.
20193 2008-07-10 Ben Pfaff <blp@gnu.org>
20196 * lib/isnanf.m4: New file.
20197 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
20198 (gl_HAVE_ISNANF_IN_LIBM): New macro.
20199 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
20200 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
20201 * modules/isnanf: New file.
20202 * modules/isnanf-tests: New file.
20203 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
20205 * tests/test-isnanf-nolibm.c: factored most of its contents into
20206 new file tests/test-isnanf.h.
20207 * tests/test-isnanf.h: New file.
20208 * tests/test-isnanf.c: New file.
20209 * MODULES.html.sh: Mention new module.
20210 * doc/glibc-functions/isnanf.texi: Mention new module.
20212 2008-07-10 Ben Pfaff <blp@gnu.org>
20215 * lib/isnand.h: New file.
20216 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
20217 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
20218 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
20219 functionality also.
20220 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
20221 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
20222 (gl_HAVE_ISNAND_IN_LIBM): New macro.
20223 * modules/isnand: New file.
20224 * modules/isnand-tests: New file.
20225 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
20227 * tests/test-isnand-nolibm.c: factored most of its contents into
20228 new file tests/test-isnand.h.
20229 * tests/test-isnand.h: New file.
20230 * tests/test-isnand.c: New file.
20231 * MODULES.html.sh: Mention new module.
20233 2008-07-10 Ben Pfaff <blp@gnu.org>
20235 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
20236 * lib/isnand.h: Rename lib/isnand-nolibm.h.
20237 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
20238 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
20239 * modules/isnanf-nolibm: Update references to renamed files.
20240 * modules/isnand-nolibm: Likewise.
20241 * modules/isnanf-nolibm-tests: Likewise.
20242 * modules/isnand-nolibm-tests: Likewise.
20243 * lib/frexp.c: Likewise.
20244 * lib/isfinite.c: Likewise.
20245 * lib/signbitd.c: Likewise.
20246 * lib/signbitf.c: Likewise.
20247 * lib/vasnprintf.c: Likewise.
20248 * tests/test-ceilf1.c: Likewise.
20249 * tests/test-ceilf2.c: Likewise.
20250 * tests/test-floorf1.c: Likewise.
20251 * tests/test-floorf2.c: Likewise.
20252 * tests/test-frexp.c: Likewise.
20253 * tests/test-round1.c: Likewise.
20254 * tests/test-round2.c: Likewise.
20255 * tests/test-roundf1.c: Likewise.
20256 * tests/test-strtod.c: Likewise.
20257 * tests/test-trunc1.c: Likewise.
20258 * tests/test-trunc2.c: Likewise.
20259 * tests/test-truncf1.c: Likewise.
20260 * tests/test-truncf2.c: Likewise.
20261 * NEWS: Mention the renamed header files.
20263 2008-07-11 Jim Meyering <meyering@redhat.com>
20265 vc-list-files: make the last-resort awk code more portable
20266 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
20267 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
20268 does not support it.
20270 2008-07-10 Eric Blake <ebb9@byu.net>
20272 Work with tar's bootstrap.
20273 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
20274 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
20277 2008-07-09 Jim Meyering <meyering@redhat.com>
20279 posix-shell.m4: fix typo that made this test malfunction
20280 * m4/posix-shell.m4: Remove capitalization in variable name.
20282 2008-07-08 Bruno Haible <bruno@clisp.org>
20284 * m4/onceonly.m4: Update comments.
20285 Reported by Ben Pfaff <blp@cs.stanford.edu>.
20287 2008-07-04 Jim Meyering <meyering@redhat.com>
20289 * users.txt: Add vc-dwim.
20290 (bison, coreutils): Use the gitweb URL.
20292 2008-07-03 Jim Meyering <meyering@redhat.com>
20294 * users.txt: Add libffcall. From Sam Steingold.
20296 2008-07-03 Ondřej Vašík <ovasik@redhat.com>
20298 getdate.y: do not ignore TZ with relative day, month or year offset
20299 * lib/getdate.y (get_date): Move the tz-handling block to follow the
20300 relative-date-handling, since otherwise, the latter would clobber the
20301 sole output (an updated Start value) of the tz-handling block.
20302 * tests/test-getdate.c: Tests for the fix
20304 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20306 Recognize 'foo_LIBRARIES += libgnu.a'.
20307 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
20308 makefile snippet has already specified an installation location,
20311 2008-07-02 Ondřej Vašík <ovasik@redhat.com>
20313 getdate.y: factor out common actions
20314 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
20315 Use them in place of open-coded actions.
20317 2008-07-01 Simon Josefsson <simon@josefsson.org>
20319 Add self-test for getdate module.
20320 * modules/getdate-tests: New file.
20321 * tests/test-getdate.c: New file.
20323 2008-06-29 Bruno Haible <bruno@clisp.org>
20325 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
20327 Reported by Sylvain Beucler <beuc@beuc.net>.
20329 2008-06-29 Bruno Haible <bruno@clisp.org>
20331 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
20332 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
20334 2008-06-29 Bruno Haible <bruno@clisp.org>
20336 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
20338 Reported by Sylvain Beucler <beuc@beuc.net>.
20340 2008-06-26 Jim Meyering <meyering@redhat.com>
20342 make several modules depend on the "open" module
20343 This provides slightly increased consistency when opening-for-write
20344 the name of a non-directory spelled with a trailing slash.
20345 * modules/chdir-safer: Likewise.
20346 * modules/chown: Likewise.
20347 * modules/clean-temp: Likewise.
20348 * modules/copy-file: Likewise.
20349 * modules/fchdir: Likewise.
20350 * modules/fcntl-safer: Likewise.
20351 * modules/pipe: Likewise.
20352 * modules/utime: Likewise.
20353 Prompted by Eric Blake and Bruno Haible.
20355 2008-06-24 Andreas Schwab <schwab@suse.de>
20357 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
20358 literals can be used as initializers for global variables.
20360 2008-06-23 Eric Blake <ebb9@byu.net>
20362 Make gnulib-cache.m4 easier to diff.
20363 * gnulib-tool (func_import): Allow newlines when reading cached
20364 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
20366 2008-06-23 Bruno Haible <bruno@clisp.org>
20368 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
20369 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
20370 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
20371 m4/signalblocking.m4.
20372 (gl_PREREQ_SIGACTION): Don't invoke it.
20373 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
20374 gl_PREREQ_SIG_HANDLER_H.
20375 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20376 Don't check for sigaction here.
20378 2008-06-23 Bruno Haible <bruno@clisp.org>
20380 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
20381 (install_handlers): Don't set the SA_RESETHAND flag.
20383 2008-06-23 Bruno Haible <bruno@clisp.org>
20385 * m4/sigaction.m4: Comment fixes.
20386 * lib/signal.in.h: Likewise.
20388 2008-06-23 Eric Blake <ebb9@byu.net>
20391 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
20393 Avoid SA_ namespace.
20394 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
20395 Reported by Ralf Wildenhues.
20397 Avoid test failure due to SA_RESTORER.
20398 * tests/test-sigaction.c (SA_MASK): New macro.
20399 (main): Avoid failing due to extension flags being set.
20400 Reported by Jim Meyering.
20402 Revert use of sig-handler.h in sigprocmask.c.
20403 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
20404 it requires the existence of struct sigaction.
20405 * lib/sigprocmask.c (handler_t): Restore typedef.
20406 (rpl_signal, old_handlers): Use local type.
20408 2008-06-22 Bruno Haible <bruno@clisp.org>
20410 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
20412 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20414 2008-06-22 Bruno Haible <bruno@clisp.org>
20416 * doc/posix-functions/siginterrupt.texi: Move note.
20418 * lib/signal.in.h (SA_RESTART): New macro.
20419 * lib/sigaction.c: Update comment.
20421 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
20423 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
20424 (gl_PREREQ_SIGPROCMASK): Invoke it.
20425 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
20427 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
20429 * lib/sigprocmask.c: Update a comment.
20431 2008-06-21 Eric Blake <ebb9@byu.net>
20433 Use sigaction module rather than signal().
20434 * modules/c-stack (Depends-on): Add sigaction.
20435 * modules/fatal-signal (Depends-on): Likewise.
20436 * modules/nanosleep (Depends-on): Likewise.
20437 * modules/sigprocmask (Files): Add sig-handler.h.
20438 * modules/sigaction (Files): Likewise.
20439 * lib/sig-handler.h (get_handler): New file, suggested by Paul
20441 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
20442 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
20443 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
20444 (init_fatal_signals): Likewise.
20445 * lib/nanosleep.c (rpl_nanosleep): Likewise.
20446 (siginterrupt): Delete fallback.
20447 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
20449 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
20452 New module sigaction, for mingw.
20453 * modules/sigaction: New module...
20454 * modules/sigaction-tests: ...and its test.
20455 * m4/sigaction.m4: New file.
20456 * lib/sigaction.c: Likewise.
20457 * tests/test-sigaction.c: Likewise.
20458 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
20459 * modules/signal (Makefile.am): Likewise.
20460 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
20462 * doc/posix-headers/signal.texi (signal.h): Mention provided
20464 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
20465 that sigaction is preferable.
20466 * doc/posix-functions/sigaction.texi (sigaction): Mention new
20468 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20471 Improve robustness of sigprocmask by overriding signal.
20472 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
20474 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
20475 (SIGKILL, SIGSTOP): Provide fallbacks.
20476 (rpl_signal): Implement.
20477 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
20478 signal can be called inside handlers.
20480 Fix nanosleep module on mingw.
20481 * modules/nanosleep (Depends-on): Add sys_select.
20482 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
20484 Fix licensing of sigprocmask.
20485 * modules/raise (License): Relicense as LGPL.
20487 2008-06-21 Bruno Haible <bruno@clisp.org>
20489 * lib/propername.c (proper_name_utf8): Don't use the transliterated
20490 result if it contains question marks.
20491 Reported by Michael Geng <linux@michaelgeng.de>.
20493 2008-06-19 Bruno Haible <bruno@clisp.org>
20496 * doc/gnulib.texi: Include updated-stamp.texi.
20497 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
20498 (updated-stamp.texi): New rule.
20499 (gnulib.info): Depend on it.
20500 * doc/.gitignore: Add updated-stamp.texi.
20501 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
20503 2008-06-19 Bruno Haible <bruno@clisp.org>
20505 * doc/Makefile (gnulib.info): Update and simplify dependencies.
20506 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20508 2008-06-19 Eric Blake <ebb9@byu.net>
20510 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
20511 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
20512 Reported by Stepan Kasal.
20514 2008-06-18 Bruno Haible <bruno@clisp.org>
20516 * lib/fatal-signal.c (init_fatal_signals): Add comment.
20517 Reported by Eric Blake.
20519 2008-06-18 Eric Blake <ebb9@byu.net>
20521 Work around cygwin 1.5.25 strsignal bug.
20522 * tests/test-strsignal.c: Allow for const char *.
20523 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
20525 2008-06-18 Simon Josefsson <simon@josefsson.org>
20527 * users.txt: Update URL to article and add author/date
20530 2008-06-17 Bruno Haible <bruno@clisp.org>
20532 New macro gl_DISABLE_THREADS.
20533 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
20534 if the user did not pass --enable-threads or --disable-threads option.
20535 (gl_DISABLE_THREADS): New macro.
20536 Reported by Eric Blake <ebb9@byu.net>.
20538 2008-06-17 Bruno Haible <bruno@clisp.org>
20540 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
20541 when the macro ignores it.
20542 Based on a patch by Eric Blake <ebb9@byu.net>.
20544 2008-06-17 Bruno Haible <bruno@clisp.org>
20546 * modules/tls (License): Change to LGPLv2+.
20547 Reported by Eric Blake.
20549 2008-06-17 Eric Blake <ebb9@byu.net>
20551 Simplify c-stack prerequisites.
20552 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
20553 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
20554 no longer requires <ucontext.h> to exist. Optimize setrlimit
20556 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
20559 Move c-stack test into testsuite.
20560 * modules/c-stack-tests: New file.
20561 * lib/c-stack.c [DEBUG]: Move test program...
20562 * tests/test-c-stack.c: ...into this new file. Skip rather than
20563 fail test if sigaltstack is lacking.
20564 * tests/test-c-stack.sh: New driver file.
20566 2008-06-16 Eric Blake <ebb9@byu.net>
20568 Use raise module consistently.
20569 * modules/fatal-signal (Depends-on): Add raise.
20570 * modules/sigprocmask (Depends-on): Likewise.
20571 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
20572 * lib/sigprocmask.c (sigprocmask): Likewise.
20573 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20574 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
20576 Fix compliance bug in sigpending.
20577 * lib/sigprocmask.c (sigpending): Return pending array via
20578 parameter, not return value.
20580 2008-06-14 Eric Blake <ebb9@byu.net>
20582 Improve obstack-printf test code.
20583 * tests/test-obstack-printf.c (test_function): Fix comment, and
20584 simplify usage of obstack_* in macros. Add a test for coverage.
20585 Reported by Bruno Haible.
20587 2008-06-14 Bruno Haible <bruno@clisp.org>
20589 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
20590 array size as a constant, not as a const variable.
20591 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
20592 AC_USE_SYSTEM_EXTENSIONS.
20593 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
20594 Test whether the obstack_printf function actually exists.
20595 * modules/obstack-printf (Depends-on): Add extensions.
20596 (Include): Remove obstack.h.
20597 * modules/obstack-printf-posix (Depends-on): Add extensions.
20598 (Include): Remove obstack.h.
20600 2008-06-13 Eric Blake <ebb9@byu.net>
20602 Add obstack-printf and obstack-printf-posix modules.
20603 * modules/obstack-printf: New file.
20604 * modules/obstack-printf-posix: Likewise.
20605 * MODULES.html.sh (Misc): Mention them.
20606 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
20608 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
20610 * modules/stdio (Makefile.am): Accomodate new modules.
20611 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20612 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
20614 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
20616 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
20617 (gl_REPLACE_OBSTACK_PRINTF): New macros
20618 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
20619 * tests/test-obstack-printf.c: New file.
20620 * modules/obstack-printf-tests: Likewise.
20621 * modules/obstack-printf-posix-tests: Likewise.
20623 2008-06-11 Bruno Haible <bruno@clisp.org>
20625 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
20626 * lib/open.c: Include errno.h.
20627 (open): Fail when attempting to write to a file that has a trailing
20629 * tests/test-open.c (main): Test against trailing slash bug.
20630 * doc/posix-functions/open.texi: Mention the trailing slash bug.
20632 2008-06-10 Bruno Haible <bruno@clisp.org>
20634 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
20635 for $? to work inside the trap command, with various /bin/sh-s.
20636 * tests/test-vc-list-files-cvs.sh: Likewise.
20638 2008-06-10 Bruno Haible <bruno@clisp.org>
20640 * lib/acl-internal.h: Don't include gettext.h here.
20641 * lib/set-mode-acl.c: Include gettext.h here.
20642 * lib/copy-acl.c: Likewise.
20644 2008-06-10 Bruno Haible <bruno@clisp.org>
20646 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
20647 * lib/wait-process.c (wait_subprocess): Likewise.
20648 * lib/execute.h (execute): Add termsigp argument.
20649 * lib/execute.c (execute): Likewise.
20650 * lib/csharpcomp.c (compile_csharp_using_pnet,
20651 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
20652 * lib/csharpexec.c (execute_csharp_using_pnet,
20653 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
20654 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
20655 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
20656 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
20657 is_jikes_present): Update.
20658 * lib/javaexec.c (execute_java_class): Update.
20659 * lib/javaversion.c (execute_and_read_line): Update.
20660 * NEWS: Document the changes.
20661 Reported by Eric Blake.
20663 2008-06-10 Eric Blake <ebb9@byu.net>
20665 Add missing include.
20666 * tests/test-strstr.c (includes): Add <signal.h>.
20667 * tests/test-strcasestr.c (includes): Likewise.
20668 * tests/test-memmem.c (includes): Likewise.
20670 2008-06-10 Bruno Haible <bruno@clisp.org>
20672 * lib/wait-process.c (wait_subprocess): Add an assertion.
20674 2008-06-10 Bruno Haible <bruno@clisp.org>
20676 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
20678 2008-06-10 Bruno Haible <bruno@clisp.org>
20680 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
20682 * tests/test-strcasestr.c (main): Likewise.
20683 * tests/test-strstr.c (main): Likewise.
20685 2008-06-09 Bruno Haible <bruno@clisp.org>
20687 Work around the Solaris 10 ACE ACLs ABI change.
20688 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
20689 declare if ACL_NO_TRIVIAL is present.
20690 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
20691 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
20692 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
20693 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
20694 define if ACL_NO_TRIVIAL is present.
20695 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
20696 and use the current ABI.
20697 (file_has_acl): Use same #if condition as elsewhere.
20698 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
20699 in use, and use the current ABI.
20700 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
20701 Reported by Jim Meyering.
20703 2008-06-09 Eric Blake <ebb9@byu.net>
20705 Work around environments that (stupidly) ignore SIGALRM.
20706 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
20707 before using alarm().
20708 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20709 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20710 Reported by Ian Beckwith <ianb@erislabs.net>.
20712 Produce autobuild blurb earlier in log.
20713 * modules/autobuild (configure.ac-early): Move AB_INIT here.
20715 2008-06-09 Jim Meyering <meyering@redhat.com>
20716 and Ondřej Vašík <ovasik@redhat.com>
20718 utimens.c: correct kernel bug work-around
20719 Ondřej Vašík found that the invalid return value of 280 indicates
20720 failure, not success, and the kernel bug we're trying to work
20721 around affects not just the utimensat call, but also the fallback
20723 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
20725 [HAVE_FUTIMENS]: Use the same work-around, here.
20727 2008-06-09 Jim Meyering <meyering@redhat.com>
20729 add more guards around definition of ACE_-related code
20730 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
20731 ALLOW and ACE_OWNER are also defined.
20733 2008-06-08 Bruno Haible <bruno@clisp.org>
20735 * lib/acl-internal.h: Add me as co-author.
20736 * lib/file-has-acl.c: Likewise.
20737 * lib/set-mode-acl.c: Likewise.
20738 * lib/copy-acl.c: Likewise.
20740 2008-06-08 Bruno Haible <bruno@clisp.org>
20742 Add support for AIX ACLs.
20743 * lib/acl-internal.h (acl_nontrivial): New declaration.
20744 * lib/file-has-acl.c (acl_nontrivial): New function.
20745 (file_has_acl): Add implementation using AIX 4 ACL API.
20746 * lib/set-mode-acl.c (qset_acl): Likewise.
20747 * lib/copy-acl.c (qcopy_acl): Likewise.
20749 2008-06-08 Bruno Haible <bruno@clisp.org>
20751 Add support for HP-UX ACLs.
20752 * lib/acl-internal.h (acl_nontrivial): New declaration.
20753 * lib/file-has-acl.c (acl_nontrivial): New function.
20754 (file_has_acl): Add implementation using HP-UX 11 ACL API.
20755 * lib/set-mode-acl.c (qset_acl): Likewise.
20756 * lib/copy-acl.c (qcopy_acl): Likewise.
20758 2008-06-08 Bruno Haible <bruno@clisp.org>
20760 Add support for Cygwin ACLs.
20761 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
20762 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
20763 the chmod_or_fchmod call.
20764 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
20766 2008-06-08 Bruno Haible <bruno@clisp.org>
20768 Fix bug with setuid modes in Solaris 10+ code.
20769 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
20770 succeeded, when the mode contains some special bits.
20772 2008-06-08 Bruno Haible <bruno@clisp.org>
20774 Add support for Solaris 7..10 ACLs.
20775 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
20777 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
20779 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
20780 * lib/set-mode-acl.c (qset_acl): Likewise.
20781 * lib/copy-acl.c (qcopy_acl): Likewise.
20783 2008-06-08 Bruno Haible <bruno@clisp.org>
20785 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
20787 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
20788 (acl_access_nontrivial): Remove MacOS X case.
20789 (file_has_acl): Use acl_extended_nontrivial.
20790 * lib/copy-acl.c (qcopy_acl): Likewise.
20792 2008-06-08 Bruno Haible <bruno@clisp.org>
20794 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
20796 2008-06-08 Jim Meyering <meyering@redhat.com>
20798 * modules/acl (Maintainer): Add Bruno Haible.
20800 2008-06-07 Bruno Haible <bruno@clisp.org>
20802 Improve support for Tru64 ACLs.
20803 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
20806 2008-06-07 Bruno Haible <bruno@clisp.org>
20808 Add support for MacOS X ACLs.
20809 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
20810 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
20811 * lib/set-mode-acl.c (qset_acl): Likewise.
20812 * lib/copy-acl.c (qcopy_acl): Likewise.
20814 2008-06-07 Bruno Haible <bruno@clisp.org>
20816 Fix memory leak introduced on 2008-05-22.
20817 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
20820 2008-06-07 Bruno Haible <bruno@clisp.org>
20822 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
20823 to construct an empty ACL.
20825 2008-06-07 Bruno Haible <bruno@clisp.org>
20827 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
20829 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
20831 2008-06-07 Bruno Haible <bruno@clisp.org>
20833 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
20834 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
20836 2008-06-07 Bruno Haible <bruno@clisp.org>
20838 * doc/posix-functions/_setjmp.texi: Explain the use of this function
20839 regardless of POSIX.
20840 * doc/posix-functions/_longjmp.texi: Likewise.
20841 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
20842 SystemV platform in this case.
20844 2008-06-06 Eric Blake <ebb9@byu.net>
20846 Document abort() bugs.
20847 * doc/posix-functions/abort.texi (abort): Mention anomalies.
20849 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
20850 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
20852 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
20853 siglongjmp, but only as a macro.
20854 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
20856 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
20858 Tweak documentation to cover cygwin argz bugs.
20859 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
20860 argz bug fix; no code change needed since no cygwin releases
20861 occurred between the last fix and the bug being tested.
20862 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
20863 module and recently fixed cygwin bugs.
20864 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
20865 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
20866 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
20867 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
20868 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
20870 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
20871 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
20872 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
20873 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
20874 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
20875 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
20878 Avoid gcc warning on cygwin.
20879 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
20880 !ACL_NO_TRIVIAL]: Avoid unused variable.
20882 2008-06-05 Eric Blake <ebb9@byu.net>
20884 Be tolerant of UNKNOWN version in gnulib-tool test dir.
20885 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
20886 git-version-gen fails to come up with a version.
20887 Reported by Simon Josefsson.
20889 2008-06-05 Jim Meyering <meyering@redhat.com>
20890 Paul Eggert <eggert@cs.ucla.edu>
20892 utimens.c: work around a probable Linux kernel bug
20893 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
20894 appears to be a kernel bug that causes utimensat to return 280
20895 instead of 0, indicating success.
20897 2008-06-04 Bruno Haible <bruno@clisp.org>
20899 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
20902 2008-06-04 Bruno Haible <bruno@clisp.org>
20904 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
20905 * lib/file-has-acl.c (acl_access_nontrivial): New function.
20906 (file_has_acl): Use it. Save errno afterwards.
20907 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
20909 2008-06-03 Bruno Haible <bruno@clisp.org>
20911 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
20912 draft code. Simplify #ifs.
20913 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
20914 Put Solaris code after POSIX-draft code. Fix comments regarding
20915 Solaris 10, HP-UX. Mention Cygwin.
20916 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
20918 2008-06-03 Eric Blake <ebb9@byu.net>
20920 Provide fallback for older kernels.
20921 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
20922 Provide runtime fallback if kernel lacks support.
20923 Reported by Mike Frysinger.
20925 2008-06-02 Bruno Haible <bruno@clisp.org>
20927 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
20930 2008-06-02 Bruno Haible <bruno@clisp.org>
20932 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
20933 * lib/copy-acl.c (qcopy_acl): Update comment.
20935 2008-06-02 Bruno Haible <bruno@clisp.org>
20937 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
20940 2008-06-02 Bruno Haible <bruno@clisp.org>
20942 * tests/test-file-has-acl.sh: Use different code for Cygwin.
20943 * tests/test-set-mode-acl.sh: Likewise.
20944 * tests/test-copy-acl.sh: Likewise.
20945 * tests/test-copy-file.sh: Likewise.
20947 2008-06-02 Bruno Haible <bruno@clisp.org>
20949 * tests/test-file-has-acl.sh: Remove unused code.
20951 2008-06-01 Bruno Haible <bruno@clisp.org>
20953 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
20954 (copy_acl): Just a wrapper around qcopy_acl that emits the error
20956 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
20958 2008-06-01 Bruno Haible <bruno@clisp.org>
20960 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
20961 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
20962 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
20964 * modules/acl-tests (configure.ac): Remove tests now contained in
20967 2008-06-02 Jim Meyering <meyering@redhat.com>
20969 announce-gen: use a better key-server host name
20970 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
20971 it may be more consistently reliable. Suggested by Werner Koch
20972 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
20974 2008-06-01 Bruno Haible <bruno@clisp.org>
20976 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
20977 Reported by Voroskoi Andras <voroskoi@gmail.com>.
20979 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
20981 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
20983 2008-06-01 Bruno Haible <bruno@clisp.org>
20986 * tests/test-file-has-acl.sh: New file.
20987 * tests/test-file-has-acl.c: New file.
20988 * tests/test-set-mode-acl.sh: New file.
20989 * tests/test-set-mode-acl.c: New file.
20990 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
20991 * tests/test-copy-acl.c: New file.
20992 * modules/acl-tests: New file, based on modules/copy-file-tests.
20993 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
20994 (Depends-on): Add acl-tests.
20995 (configure.ac): Remove checks.
20996 (Makefile.am): Don't create test-sameacls program here any more.
20998 2008-06-01 Bruno Haible <bruno@clisp.org>
21000 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
21001 * tests/test-sameacls.c: Include progname.h.
21002 (main): Invoke set_program_name. Portability fixes for MacOS X,
21005 2008-06-01 Bruno Haible <bruno@clisp.org>
21007 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
21009 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
21011 2008-06-01 Bruno Haible <bruno@clisp.org>
21013 * modules/rpmatch (Depends-on): Add strdup.
21015 2008-06-01 Bruno Haible <bruno@clisp.org>
21017 * lib/pipe.c: Include unistd-safer.h.
21018 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
21019 * modules/pipe (Depends-on): Add unistd-safer.
21021 2008-05-30 Simon Josefsson <simon@josefsson.org>
21023 * modules/autobuild (configure.ac): Call AB_INIT.
21025 2008-05-30 Simon Josefsson <simon@josefsson.org>
21027 * tests/test-getaddrinfo.c: Don't print debug messages by default.
21028 Suggested by Bruno Haible <bruno@clisp.org>.
21030 2008-05-30 Simon Josefsson <simon@josefsson.org>
21032 * tests/test-base64.c: Cast size_t to unsigned long when invoking
21033 printf. Use %lu instead of %d. Reported by Bruno Haible
21036 2008-05-29 Eric Blake <ebb9@byu.net>
21038 Prefer new POSIX 200x interfaces over futimesat.
21039 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
21040 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
21042 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
21044 2008-05-28 Bruno Haible <bruno@clisp.org>
21046 * modules/stpcpy (License): Change to LGPLv2+.
21047 Requested by David Lutterkort <dlutter@redhat.com>.
21049 2008-05-27 Bruno Haible <bruno@clisp.org>
21051 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
21053 Reported by Jose E. Marchesi <jemarch@gnu.org>.
21055 2008-05-27 Bruno Haible <bruno@clisp.org>
21057 * modules/iconv_open (Link): New section, from module 'iconv'.
21058 * modules/striconv (Link): Likewise.
21059 * modules/striconveh (Link): Likewise.
21060 * modules/xstriconv (Link): Likewise.
21061 * modules/unicodeio (Link): Likewise.
21062 * modules/propername (Link): Likewise.
21063 Reported by Jim Meyering.
21065 2008-05-26 Jim Meyering <meyering@redhat.com>
21067 sha256: do not artificially restrict buffer length to be < 2^32
21068 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
21069 uint32_t to size_t.
21070 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
21073 avoid unaligned access errors, e.g., on sparc
21074 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
21075 direct access through a possibly-unaligned uint64* pointer.
21076 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
21077 direct access through a possibly-unaligned uint32* pointer.
21078 Prompted by this patch from Tom "spot" Callaway:
21079 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
21081 sha512.c: fix typo in comment
21082 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
21084 2008-05-25 Bruno Haible <bruno@clisp.org>
21086 * lib/set-mode-acl.c: Renamed from lib/acl.c.
21087 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
21088 (Makefile.am): Update lib_SOURCES.
21090 2008-05-25 Bruno Haible <bruno@clisp.org>
21092 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
21094 2008-05-25 Jim Meyering <meyering@redhat.com>
21096 useless-if-before-free: freed expr may have white-space differences
21097 * build-aux/useless-if-before-free: Recognize cases in which the
21098 freed expression differs from the tested one in embedded white
21099 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
21100 $1 was used, so we can't make any regexp shy. Improved tests now
21103 useless-if-before-free: accept white space in the expression.
21104 * build-aux/useless-if-before-free: For now, any white space
21105 in the expression must be identical in the free argument.
21107 useless-if-before-free: efficiency tweak
21108 * build-aux/useless-if-before-free: Make the expression-matching
21110 Make the *outer* regexp shy, not the expr-matching one.
21112 update code-in-comment to accept cast of free arg
21113 * build-aux/useless-if-before-free: Update regexp.
21115 2008-05-25 Bruno Haible <bruno@clisp.org>
21117 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
21118 * modules/copy-file-tests (Files, Makefile.am): Update.
21119 * tests/test-copy-file.c (func_test_copy): Update.
21121 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
21123 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
21125 2008-05-23 Bruno Haible <bruno@clisp.org>
21127 Improve support for ACLs on OSF/1.
21128 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
21129 Remove fallback for unknown flavors of ACLs.
21131 2008-05-22 Bruno Haible <bruno@clisp.org>
21133 Add support for ACLs on OSF/1.
21134 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
21136 (acl_free_text): New macro fallback.
21137 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
21139 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
21140 acl_free_text function. Require AC_C_INLINE.
21142 2008-05-22 Bruno Haible <bruno@clisp.org>
21144 Make copy_acl work on MacOS X 10.5.
21145 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
21146 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
21147 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
21148 If MODE_INSIDE_ACL, don't assume that every system has the same text
21149 representation for ACLs as FreeBSD.
21150 * lib/copy-acl.c (copy_acl): Add support for platforms with
21152 * lib/file-has-acl.c (file_has_acl): Likewise.
21153 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
21154 FreeBSD, MacOS X, or IRIX, respectively.
21156 2008-05-22 Bruno Haible <bruno@clisp.org>
21158 * lib/acl.h: Don't include <sys/acl.h>.
21159 (GETACLCNT): Move fallback to lib/acl-internal.h.
21160 * lib/acl-internal.h: Include <sys/acl.h> here.
21161 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
21163 2008-05-22 Bruno Haible <bruno@clisp.org>
21165 Split off copy_acl function to separate file.
21166 * lib/copy-acl.c: New file, extracted from lib/acl.c.
21167 * lib/acl.c (copy_acl): Moved function to separate file.
21168 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
21169 * modules/acl (Files): Add lib/copy-acl.c.
21170 (Makefiles.am): Augment lib_SOURCES.
21172 2008-05-22 Bruno Haible <bruno@clisp.org>
21174 * modules/copy-file-tests: New file.
21175 * tests/test-copy-file.sh: New file.
21176 * tests/test-copy-file.c: New file.
21177 * tests/test-copy-file-sameacls.c: New file.
21179 2008-05-22 Eric Blake <ebb9@byu.net>
21182 * tests/test-memcmp.c (main): Pass NULL indirectly.
21184 2008-05-21 Bruno Haible <bruno@clisp.org>
21186 Add reference doc about ACLs.
21187 * doc/acl-resources.txt: New file.
21188 * doc/acl-cygwin.txt: New file.
21190 2008-05-21 Bruno Haible <bruno@clisp.org>
21192 Avoid one more warning from gcc.
21193 * lib/vasnprintf.c (IF_LINT): Update comments.
21194 (VASNPRINTF): Use it also for the 'prefix' array initializer.
21196 2008-05-21 Jim Meyering <meyering@redhat.com>
21198 avoid a warning from gcc
21199 * lib/vasnprintf.c (IF_LINT): Define.
21200 (scale10_round_decimal_long_double):
21201 Use it to avoid a "may be used uninitialized" warning.
21202 (scale10_round_decimal_double): Likewise.
21204 2008-05-21 Simon Josefsson <simon@josefsson.org>
21206 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
21209 2008-05-20 Bruno Haible <bruno@clisp.org>
21211 * tests/test-memcmp.c (main): Test also the sign of the result. Test
21212 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
21214 2008-05-20 Simon Josefsson <simon@josefsson.org>
21216 * modules/memcmp-tests: New file.
21217 * tests/test-memcmp.c: New file.
21219 2008-05-19 Bruno Haible <bruno@clisp.org>
21221 * modules/propername (Notice, configure.ac): Put quoted "..." into
21223 * lib/propername.h: Update comments accordingly.
21224 Reported by Eric Blake.
21226 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
21228 * modules/getpass-gnu (Depends-on): Add fseeko.
21230 2008-05-19 Simon Josefsson <simon@josefsson.org>
21232 * modules/base64-tests: New file.
21234 2008-05-19 Bo Borgerson <gigabo@gmail.com>
21236 * lib/base64.c (base64_decode_ctx): If a decode context structure
21237 was passed in use it to ignore newlines. If a context structure
21238 was _not_ passed in, continue to treat newlines as garbage (this
21239 is the historical behavior). Formerly base64_decode.
21240 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
21241 takes a decode context structure.
21242 * lib/base64.h (base64_decode): Macro for four-argument calls.
21243 (base64_decode_alloc): Likewise.
21244 * lib/base64.c (base64_decode_ctx): If a decode context structure
21245 was passed in use it to ignore newlines. If a context structure
21246 was _not_ passed in, continue to treat newlines as garbage (this
21247 is the historical behavior). Formerly base64_decode.
21248 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
21249 takes a decode context structure.
21250 * lib/base64.h (base64_decode): Macro for four-argument calls.
21251 (base64_decode_alloc): Likewise.
21253 2008-05-19 Jim Meyering <meyering@redhat.com>
21255 avoid a warning from gcc
21256 * lib/trim.c (IF_LINT): Define.
21257 (trim2): Use it to avoid a "may be used uninitialized" warning.
21260 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
21262 2008-05-19 Bruno Haible <bruno@clisp.org>
21264 * doc/glibc-functions/getpass.texi: Document limits of other
21267 2008-05-19 Simon Josefsson <simon@josefsson.org>
21268 Bruno Haible <bruno@clisp.org>
21270 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
21272 2008-05-18 Bruno Haible <bruno@clisp.org>
21274 * modules/propername: New file, from GNU gettext.
21275 * lib/propername.h: New file, from GNU gettext.
21276 * lib/propername.c: New file, from GNU gettext.
21277 * MODULES.html.sh (Internationalization functions): Add propername.
21279 2008-05-16 Jim Meyering <meyering@redhat.com>
21280 Bruno Haible <bruno@clisp.org>
21282 Avoid some warnings from "gcc -Wshadow".
21283 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
21285 2008-05-15 Eric Blake <ebb9@byu.net>
21287 Extend previous patch to cygwin 1.7.0.
21288 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
21289 fast implementation in cygwin >= 1.7.0.
21290 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21291 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21293 2008-05-15 Bruno Haible <bruno@clisp.org>
21295 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
21296 implementation in glibc >= 2.9.
21297 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21298 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21300 2008-05-15 Bruno Haible <bruno@clisp.org>
21302 * MODULES.html.sh (Internationalization functions): Remove linebreak.
21303 (Unicode string functions): Add unilbrk/*.
21304 Reported by Karl Berry.
21306 2008-05-15 Eric Blake <ebb9@byu.net>
21308 Fix violation of <stdbool.h> replacement in regex.
21309 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
21310 * lib/regexec.c (re_search_internal): Likewise.
21311 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
21313 2008-05-15 Jim Meyering <meyering@redhat.com>
21315 avoid distracting test output when git or cvs is not found
21316 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
21317 * tests/test-vc-list-files-git.sh: Likewise.
21319 2008-05-15 Eric Blake <ebb9@byu.net>
21321 Glibc finally accepted the memmem speedup code, bugzilla #5514.
21322 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
21324 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21325 * doc/posix-functions/strstr.texi (strstr): Likewise.
21326 * lib/str-two-way.h (MAX): Sychronize with glibc.
21328 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
21330 * lib/regcomp.c (optimize_utf8): Add a note on why we test
21332 (calc_first): Initialize constraint field.
21333 (duplicate_node_closure): Use it instead of special casing ANCHORS.
21335 (duplicate_node): Merge constraint field for all node types.
21336 (calc_eclosure_iter): Look at constraint field for all node types.
21337 * lib/regex_internal.c (create_cd_newstate): Don't look at
21340 2008-05-14 Bruno Haible <bruno@clisp.org>
21342 Help GCC to do better code generation.
21343 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
21344 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
21345 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
21346 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
21347 Declare with attribute 'malloc' if supported.
21349 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
21351 use "echo STR|wc -c" rather than unportable "expr length STR"
21352 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
21353 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
21355 2008-05-14 Jim Meyering <meyering@redhat.com>
21357 use dd ibs=$n count=1 ... rather than less-portable head -c$n
21358 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
21359 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
21360 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
21363 2008-05-14 Eric Blake <ebb9@byu.net>
21365 Avoid quadratic growth in gl_LIBSOURCES.
21366 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
21367 Suggested by Bruno Haible.
21370 * modules/xmemdup0-tests: New file.
21371 * tests/test-xmemdup0.c: Likewise.
21373 2008-05-13 Eric Blake <ebb9@byu.net>
21375 Split xmemdup0 into its own module.
21376 * modules/xmemdup0: New file.
21377 * lib/xmemdup0.h: Likewise.
21378 * lib/xmemdup0.c: Likewise.
21379 * MODULES.html.sh (Memory management functions): Add xmemdup0.
21380 * lib/xalloc.h (xmemdup0): Remove.
21381 * lib/xmalloc.c (xmemdup0): Likewise.
21383 2008-05-13 Eric Blake <ebb9@byu.net>
21384 Bruno Haible <bruno@clisp.org>
21386 Reduce number of forks required during autoconf.
21387 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
21388 and gl_LIBSOURCES_DIR.
21389 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
21390 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
21391 m4_syscmd per file.
21392 <m4_foreach_w>: Move...
21393 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
21395 2008-05-13 Eric Blake <ebb9@byu.net>
21397 * gnulib-tool: Fix various comment typos.
21399 2008-05-12 Bruno Haible <bruno@clisp.org>
21401 Tailor the linebreaking algorithm.
21402 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
21404 2008-05-12 Bruno Haible <bruno@clisp.org>
21406 Update to Unicode 5.0.0.
21407 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
21408 LBP_JV, LBP_JT. Redistribute values.
21409 (unilbrk_table): Change size.
21410 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
21411 Unicode TR#14 rev. 22.
21412 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
21413 LBP_JV, LBP_JT. Redistribute values.
21414 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
21415 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
21417 * lib/unilbrk/lbrkprop1.h: Regenerated.
21418 * lib/unilbrk/lbrkprop2.h: Regenerated.
21419 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
21420 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
21421 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
21423 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
21425 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
21427 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21428 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21429 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21430 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
21431 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
21432 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
21434 2008-05-11 Bruno Haible <bruno@clisp.org>
21436 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
21438 2008-05-11 Bruno Haible <bruno@clisp.org>
21440 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
21441 * modules/unilbrk/gen-lbrk: New file.
21443 2008-05-11 Bruno Haible <bruno@clisp.org>
21445 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
21446 * m4/sha512.m4 (gl_SHA512): Likewise.
21448 2008-05-11 Jim Meyering <meyering@redhat.com>
21450 New modules: crypto/sha256, crypto/sha512 (from coreutils)
21451 * modules/crypto/sha256: New file.
21452 * modules/crypto/sha512: Likewise.
21453 * lib/sha256.c: Likewise.
21454 * lib/sha256.h: Likewise.
21455 * lib/sha512.c: Likewise.
21456 * lib/sha512.h: Likewise.
21457 * lib/u64.h: Likewise.
21458 * m4/sha256.m4: Likewise.
21459 * m4/sha512.m4: Likewise.
21460 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
21462 2008-05-10 Bruno Haible <bruno@clisp.org>
21464 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
21465 (Input/Output <stdio.h>): Add xprintf.
21466 (Signal handling <signal.h>): Add strsignal.
21467 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
21468 (Core language properties): Add func.
21469 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
21470 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
21472 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
21473 (Input/output): New section.
21474 (File system functions): Add openat-die, stat-macros.
21475 (Networking functions): Add sockets.
21476 (Unicode string functions): Add unictype/*.
21477 (Support for building libraries and executables): Add gperf.
21478 (Support for building documentation): Add agpl-3.0.
21479 (Misc): Add nocrash.
21481 2008-05-10 Bruno Haible <bruno@clisp.org>
21483 * modules/unictype/gen-ctype: New file.
21485 2008-05-10 Jim Meyering <meyering@redhat.com>
21487 Make chdir-safer.c more efficient on a system with no symlinks.
21488 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
21489 also if ELOOP is zero. Suggested by Bruno Haible.
21491 Make chdir-safer.c slightly safer.
21492 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
21493 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
21495 Avoid compile failure on systems without ELOOP (like mingw).
21496 * lib/chdir-safer.c (ELOOP): Define if not already defined.
21497 Reported by Bruno Haible.
21499 2008-05-10 Bruno Haible <bruno@clisp.org>
21501 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
21502 (is_utf8_encoding): Use a case-insensitive comparison.
21503 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
21506 2008-05-10 Bruno Haible <bruno@clisp.org>
21508 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
21509 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
21510 * lib/unilbrk/ulc-common.h (iconv_string_length,
21511 iconv_string_keeping_offsets): Remove declarations.
21512 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
21513 Don't include <iconv.h>, streq.h, xsize.h.
21514 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
21516 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
21517 <iconv.h>, streq.h, xsize.h.
21518 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
21520 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
21521 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
21522 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
21523 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
21525 2008-05-10 Bruno Haible <bruno@clisp.org>
21527 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
21528 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
21530 * modules/unilbrk/u32-width-linebreaks-tests: New file.
21531 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
21533 * modules/unilbrk/u16-width-linebreaks-tests: New file.
21534 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
21536 * modules/unilbrk/u8-width-linebreaks-tests: New file.
21537 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
21539 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
21540 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
21542 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
21543 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
21545 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
21546 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
21548 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
21549 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
21551 2008-05-10 Bruno Haible <bruno@clisp.org>
21553 Split up 'linebreak' module.
21554 * lib/unilbrk.h: New file, based on lib/linebreak.h.
21555 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
21556 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
21558 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
21559 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
21560 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
21562 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
21564 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
21566 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
21567 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
21568 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
21570 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
21572 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
21574 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
21576 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
21578 * modules/unilbrk/base: New file.
21579 * modules/unilbrk/tables: New file.
21580 * modules/unilbrk/u8-possible-linebreaks: New file.
21581 * modules/unilbrk/u16-possible-linebreaks: New file.
21582 * modules/unilbrk/u32-possible-linebreaks: New file.
21583 * modules/unilbrk/ulc-common: New file.
21584 * modules/unilbrk/ulc-possible-linebreaks: New file.
21585 * modules/unilbrk/u8-width-linebreaks: New file.
21586 * modules/unilbrk/u16-width-linebreaks: New file.
21587 * modules/unilbrk/u32-width-linebreaks: New file.
21588 * modules/unilbrk/ulc-width-linebreaks: New file.
21589 * lib/linebreak.h: Remove file.
21590 * lib/linebreak.c: Remove file.
21591 * m4/linebreak.m4: Remove file.
21592 * modules/linebreak: Remove file.
21593 * NEWS: Mention the changes.
21595 2008-05-09 Eric Blake <ebb9@byu.net>
21598 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
21600 * lib/xmalloc.c (xmemdup0): New C implementation.
21602 2008-05-08 Bruno Haible <bruno@clisp.org>
21604 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
21606 2008-05-07 Eric Blake <ebb9@byu.net>
21608 Support cross-compilation of <wctype.h>.
21609 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
21612 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
21614 * build-aux/vc-list-files: Add support for bzr.
21616 2008-05-03 Jim Meyering <meyering@redhat.com>
21618 avoid failed assertion with tight malloc
21619 * tests/test-getndelim2.c: Correct an off-by-one assertion.
21621 2008-05-03 Simon Josefsson <simon@josefsson.org>
21623 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
21624 are needed from arpa/inet.h.
21625 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
21626 Reported by Bruno Haible.
21628 2008-05-02 Jim Meyering <meyering@redhat.com>
21630 avoid compilation error on FreeBSD 6
21631 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
21633 2008-05-01 Jim Meyering <meyering@redhat.com>
21635 useless-if-before-free: correct --help's exit status description
21636 * build-aux/useless-if-before-free (usage): Like grep, exit 0
21637 for one or more matches, etc. Reported by Bruno Haible.
21639 vc-list-files: make the stand-alone gnulib test work
21640 * modules/vc-list-files-tests (configure.ac):
21641 Define and AC_SUBST abs_aux_dir.
21642 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
21643 $(abs_top_srcdir) to each script and having each of them
21644 duplicate the work of setting PATH, set PATH here, using
21645 the new variable, abs_aux_dir instead.
21646 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
21647 * tests/test-vc-list-files-git.sh: Likewise.
21648 Reported by Bruno Haible.
21650 2008-05-01 Bruno Haible <bruno@clisp.org>
21652 * lib/getndelim2.c (getndelim2): Fix newsize computation during
21653 reallocation. Rename 'done' to 'found_delimiter'.
21655 2008-05-01 Jim Meyering <meyering@redhat.com>
21657 vc-list-files: accommodate /bin/sh like the one from Solaris 10
21658 * build-aux/vc-list-files: Use `...`, not $(...).
21660 2008-04-30 Jim Meyering <meyering@redhat.com>
21662 add tests for vc-list-files
21663 * modules/vc-list-files-tests: New module.
21664 * tests/test-vc-list-files-cvs.sh: New file.
21665 * tests/test-vc-list-files-git.sh: New file.
21667 avoid a warning from gcc
21668 * lib/getndelim2.c (IF_LINT): Define.
21669 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
21671 vc-list-files: work properly with build-aux/cvsu, too
21672 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
21673 to all cvs-based clauses.
21675 vc-list-files: work properly in the CVS+awk case, too
21676 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
21678 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
21679 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
21680 take more than one file argument, so . Add quotes, just in case $dir
21681 ever contains a shell meta-character. Prompted by Soren Hansen in
21682 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
21684 2008-04-29 Eric Blake <ebb9@byu.net>
21686 Optimize getndelim2 to use block operations when possible.
21687 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
21688 freadseek, and memchr2.
21689 * lib/getndelim2.c (getndelim2): Use them for block reads.
21691 2008-04-29 Bruno Haible <bruno@clisp.org>
21693 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
21694 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21695 * modules/inet_ntop (Depends-on): Add extensions.
21696 * modules/inet_pton (Depends-on): Likewise.
21697 Reported by Simon Josefsson.
21699 2008-04-29 Jim Meyering <meyering@redhat.com>
21701 When the is more than one match in a block, match all of them.
21702 * build-aux/useless-if-before-free: Iterate through each block
21703 until there are no more matches.
21705 Fix broken useless-if-before-free script.
21706 * build-aux/useless-if-before-free: Fix typo: missing "?" after
21707 the expression to match cast of argument to free-like function.
21709 2008-04-29 Eric Blake <ebb9@byu.net>
21712 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
21714 2008-04-29 Jim Meyering <meyering@redhat.com>
21716 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
21717 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
21718 by gnulib to exist and to declare e.g., inet_ntop.
21719 Don't include "inet_ntop.h", now removed.
21721 * m4/arpa_inet_h.m4: Remove trailing blanks.
21723 2008-04-29 Eric Blake <ebb9@byu.net>
21725 Silence valgrind on safe reads beyond potential array bounds.
21726 * lib/rawmemchr.valgrind: New file.
21727 * lib/strchrnul.valgrind: Likewise.
21728 * modules/rawmemchr (Files): Distribute new file.
21729 * modules/strchrnul (Files): Likewise.
21730 Suggested by Bruno Haible.
21732 2008-04-29 Bruno Haible <bruno@clisp.org>
21734 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
21735 (inet_ntop, inet_pton): Change portability warning's wording.
21736 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
21737 Invoke gl_CHECK_NEXT_HEADERS.
21738 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
21739 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
21741 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21742 * modules/arpa_inet (Description): No longer only for systems that
21744 (Depends-on): Add include_next.
21745 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
21748 2008-04-29 Jim Meyering <meyering@redhat.com>
21750 * modules/mkdir (License): Re-license as LGPLv2+.
21752 2008-04-29 Bruno Haible <bruno@clisp.org>
21754 * modules/rawmemchr (Maintainer): Set to Eric.
21755 * modules/strchrnul (Maintainer): Likewise.
21757 2008-04-29 Simon Josefsson <simon@josefsson.org>
21759 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
21760 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
21762 * modules/arpa_inet (arpa/inet.h): Use them.
21764 2008-04-28 Eric Blake <ebb9@byu.net>
21767 * modules/getndelim2-tests: New file.
21768 * tests/test-getndelim2.c: Likewise.
21769 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
21771 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
21773 * MODULES.html.sh: Document new module.
21775 2008-04-20 Bruno Haible <bruno@clisp.org>
21777 * lib/c-stack.c (die): Use raise.
21778 * modules/c-stack (Depends-on): Add raise.
21780 2008-04-28 Bruno Haible <bruno@clisp.org>
21782 Expect rpmatch to be declared.
21783 * lib/yesno.c (rpmatch): Remove declaration.
21786 * lib/stdlib.in.h (rpmatch): New declaration.
21787 * lib/rpmatch.c: Include <stdlib.h> first.
21788 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
21789 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
21790 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
21792 * modules/rpmatch (Depends-on): Add stdlib, extensions.
21793 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
21794 (Include): Set to <stdlib.h>.
21795 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
21797 * NEWS: Document the change.
21799 2008-04-28 Bruno Haible <bruno@clisp.org>
21801 Change rpmatch to use nl_langinfo when appropriate.
21802 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
21804 (localized_pattern): New function/macro.
21805 (try): Remove match, nomatch arguments. Copy the pattern into safe
21806 memory before caching it.
21807 (rpmatch): Use localized_pattern. Add translator comments.
21808 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
21809 Suggested by Eric Blake.
21810 * modules/rpmatch (Depends-on): Add stdbool.
21812 2008-04-28 Eric Blake <ebb9@byu.net>
21814 Add rawmemchr module, matching glibc.
21815 * modules/string (Makefile.am): New indicator.
21816 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
21817 * lib/string.in.h (rawmemchr): Declare when appropriate.
21818 * modules/rawmemchr: New file.
21819 * m4/rawmemchr.m4: Likewise.
21820 * lib/rawmemchr.c: Likewise.
21821 * modules/rawmemchr-tests: Likewise.
21822 * tests/test-rawmemchr.c: Likewise.
21823 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
21825 * modules/strchrnul (Depends-on): Add rawmemchr.
21826 * lib/strchrnul.c (strchrnul): Optimize a corner case.
21828 Whitespace cleanup.
21829 * tests/test-strchrnul.c: Reindent.
21830 * lib/strchrnul.c: Likewise.
21832 Optimize and test strchrnul.
21833 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
21834 * modules/strchrnul-tests: New file.
21835 * tests/test-strchrnul.c: Likewise.
21837 Remove intprops dependency.
21838 * modules/memchr (Depends-on): Remove intprops.
21839 * modules/memrchr (Depends-on): Likewise.
21840 * modules/memchr2 (Depends-on): Likewise.
21841 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
21842 * lib/memrchr.c (__memrchr): Likewise.
21843 * lib/memrchr2.c (memchr2): Likewise.
21844 Reported by Simon Josefsson.
21846 2008-04-28 Simon Josefsson <simon@josefsson.org>
21848 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
21849 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21851 2008-04-28 Simon Josefsson <simon@josefsson.org>
21853 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
21855 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
21857 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
21859 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
21861 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
21863 * m4/inet_pton.m4: Don't check for header files.
21865 * m4/inet_ntop.m4: Don't check for header files.
21867 2008-04-28 Simon Josefsson <simon@josefsson.org>
21869 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
21870 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
21871 trigger for cygwin).
21872 Reported by Bruno Haible <bruno@clisp.org>.
21874 2008-04-28 Bruno Haible <bruno@clisp.org>
21876 * doc/posix-functions/strdup.texi: Mention mingw problem.
21878 2008-04-27 Bruno Haible <bruno@clisp.org>
21880 * modules/stat-time-tests (Depends-on): Add sleep.
21881 * tests/test-stat-time.c (force_unlink): New function.
21883 (test_mtime): Remove the ctime related tests.
21884 (test_ctime): New function, containing the ctime related tests.
21885 (main): Call test_ctime, except on native Windows platforms.
21887 2008-04-27 Bruno Haible <bruno@clisp.org>
21889 * lib/rpmatch.c (rpmatch): Add some comments.
21890 Reported by James Youngman <jay@gnu.org>.
21892 2008-04-27 Bruno Haible <bruno@clisp.org>
21894 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
21897 2008-04-27 Bruno Haible <bruno@clisp.org>
21899 Make test-yesno.sh work on mingw.
21900 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
21901 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
21902 (main): Set stdin to binary mode.
21903 * modules/yesno-tests (Depends-on): Add binary-io.
21905 2008-04-27 Bruno Haible <bruno@clisp.org>
21907 Fix 'isfinite' on x86, x86_64, ia64 platforms.
21908 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
21909 argument that lie outside the IEEE 854 domain.
21910 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
21911 (gl_ISFINITE): Use it.
21912 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
21914 2008-04-27 Bruno Haible <bruno@clisp.org>
21916 Allow local renaming in config.h.
21917 * lib/memrchr.c (memrchr): Don't undefine outside libc.
21919 2008-04-27 Bruno Haible <bruno@clisp.org>
21921 * lib/memchr.c (__memchr): Change type of 'i'.
21922 * lib/memchr2.c (memchr2): Likewise.
21924 2008-04-26 Eric Blake <ebb9@byu.net>
21925 and Bruno Haible <bruno@clisp.org>
21927 Optimize and test memrchr.
21928 * modules/memrchr (Depends-on): Add intprops.
21929 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
21930 * modules/memrchr-tests: New file.
21931 * tests/test-memrchr.c: New file.
21933 2008-04-26 Bruno Haible <bruno@clisp.org>
21935 Add tentative support for DragonFly BSD.
21936 * lib/stdio-impl.h: Add macros for DragonFly BSD.
21937 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
21939 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
21940 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
21941 * lib/fpurge.c (fpurge): Likewise.
21942 * lib/freadable.c (freaadable): Likewise.
21943 * lib/freadahead.c (freadahead): Likewise.
21944 * lib/freading.c (freading): Likewise.
21945 * lib/freadptr.c (freadptr): Likewise.
21946 * lib/freadseek.c (freadptrinc): Likewise.
21947 * lib/fseeko.c (fseeko): Likewise.
21948 * lib/fseterr.c (fseterr): Likewise.
21949 * lib/fwritable.c (fwritable): Likewise.
21950 * lib/fwriting.c (fwriting): Likewise.
21952 2008-04-26 Bruno Haible <bruno@clisp.org>
21954 * lib/stdio-impl.h: New file.
21955 * lib/fbufmode.c: Include stdio-impl.h.
21956 (fbufmode): Use fp_, remove redundant #defines.
21957 * lib/fflush.c: Include stdio-impl.h.
21958 (clear_ungetc_buffer): Remove redundant #defines.
21959 * lib/fpurge.c: Include stdio-impl.h.
21960 (fpurge): Remove redundant #defines.
21961 * lib/freadable.c: Include stdio-impl.h.
21962 (freadable): Remove redundant #defines.
21963 * lib/freadahead.c: Include stdio-impl.h.
21964 (freadahead): Remove redundant #defines.
21965 * lib/freading.c: Include stdio-impl.h.
21966 (freading): Remove redundant #defines.
21967 * lib/freadptr.c: Include stdio-impl.h.
21968 (freadptr): Remove redundant #defines.
21969 * lib/freadseek.c: Include stdio-impl.h.
21970 (freadptrinc): Remove redundant #defines.
21971 * lib/fseeko.c: Include stdio-impl.h.
21972 (rpl_fseeko): Remove redundant #defines.
21973 * lib/fseterr.c: Include stdio-impl.h.
21974 (fseterr): Remove redundant #defines.
21975 * lib/fwritable.c: Include stdio-impl.h.
21976 (fwritable: Remove redundant #defines.
21977 * lib/fwriting.c: Include stdio-impl.h.
21978 (fwriting): Remove redundant #defines.
21979 * modules/fbufmode (Files): Add lib/stdio-impl.h.
21980 * modules/fflush (Files): Likewise.
21981 * modules/fpurge (Files): Likewise.
21982 * modules/freadable (Files): Likewise.
21983 * modules/freadahead (Files): Likewise.
21984 * modules/freading (Files): Likewise.
21985 * modules/freadptr (Files): Likewise.
21986 * modules/freadseek (Files): Likewise.
21987 * modules/fseeko (Files): Likewise.
21988 * modules/fseterr (Files): Likewise.
21989 * modules/fwritable (Files): Likewise.
21990 * modules/fwriting (Files): Likewise.
21992 2008-04-26 Bruno Haible <bruno@clisp.org>
21994 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
21995 restore_seek_optimization, update_fpos_cache): New functions, extracted
21997 (rpl_fflush): Use them.
21998 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
21999 (gl_REPLACE_FFLUSH): Use it.
22001 2008-04-26 Bruno Haible <bruno@clisp.org>
22003 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
22005 * tests/test-xstrtoimax.sh: Likewise.
22006 * tests/test-xstrtoumax.sh: Likewise.
22007 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22009 2008-04-26 Bruno Haible <bruno@clisp.org>
22011 * modules/memchr-tests: New file.
22012 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
22014 2008-04-26 Eric Blake <ebb9@byu.net>
22015 Bruno Haible <bruno@clisp.org>
22017 * lib/memchr.c: Include intprops.h.
22018 (__memchr): Optimize parallel detection of matching bytes. Rename local
22019 variables. Add explanatory comments.
22021 2008-04-26 Bruno Haible <bruno@clisp.org>
22023 Fix module 'memchr', broken since 2000-10-28.
22024 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
22026 2008-04-26 Bruno Haible <bruno@clisp.org>
22028 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
22031 2008-04-25 Eric Blake <ebb9@byu.net>
22033 Use native fstatat on cygwin 1.7.0.
22034 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
22037 2008-04-23 Eric Blake <ebb9@byu.net>
22039 Improve memchr2 performance.
22040 * lib/memchr2.c (memchr2): Further optimize parallel detection of
22042 * modules/memchr2 (Depends-on): Use intprops.h.
22044 2008-04-23 Simon Josefsson <simon@josefsson.org>
22046 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
22047 an inline function instead of a CPP macro. Patch by Ben Pfaff
22048 <blp@cs.stanford.edu>.
22050 2008-04-23 Simon Josefsson <simon@josefsson.org>
22052 * lib/arpa_inet.in.h: New file.
22054 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
22055 (Makefile.am): Sed in substitute header file.
22057 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
22058 gl_ARPA_INET_MODULE_INDICATOR. Use them.
22060 * modules/inet_ntop (configure.ac): Use
22061 gl_ARPA_INET_MODULE_INDICATOR.
22063 * modules/inet_pton (configure.ac): Use
22064 gl_ARPA_INET_MODULE_INDICATOR.
22066 2008-04-22 Jim Meyering <meyering@redhat.com>
22068 * modules/verify (License): Re-license as LGPLv2+.
22070 2008-04-22 Simon Josefsson <simon@josefsson.org>
22072 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
22073 parameter to void* as per POSIX standard (MinGW uses char*).
22075 2008-04-21 Bruno Haible <bruno@clisp.org>
22077 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
22078 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
22079 Define to replacements if REPLACE_ISWCNTRL is 1.
22080 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
22081 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
22082 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
22083 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
22085 * doc/posix-functions/iswalpha.texi: Likewise.
22086 * doc/posix-functions/iswblank.texi: Likewise.
22087 * doc/posix-functions/iswcntrl.texi: Likewise.
22088 * doc/posix-functions/iswdigit.texi: Likewise.
22089 * doc/posix-functions/iswgraph.texi: Likewise.
22090 * doc/posix-functions/iswlower.texi: Likewise.
22091 * doc/posix-functions/iswprint.texi: Likewise.
22092 * doc/posix-functions/iswpunct.texi: Likewise.
22093 * doc/posix-functions/iswspace.texi: Likewise.
22094 * doc/posix-functions/iswupper.texi: Likewise.
22095 * doc/posix-functions/iswxdigit.texi: Likewise.
22096 Reported by Alain Guibert.
22098 2008-04-21 Bruno Haible <bruno@clisp.org>
22100 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
22101 Patch by Alain Guibert.
22103 2008-04-21 Bruno Haible <bruno@clisp.org>
22105 Fix test failures on mingw.
22106 * tests/test-xstrtol.c (print_no_progname): New function.
22107 (main): Install it in error_print_progname hook.
22108 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
22109 * tests/test-xstrtoimax.sh: Likewise.
22110 * tests/test-xstrtoumax.sh: Likewise.
22112 2008-04-21 Bruno Haible <bruno@clisp.org>
22114 Fix test failure on mingw.
22115 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
22117 2008-04-21 Bruno Haible <bruno@clisp.org>
22119 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
22120 Actually assign a value.
22122 2008-04-20 Bruno Haible <bruno@clisp.org>
22124 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
22126 * lib/canonicalize.c (canonicalize_file_name): Elide if the
22127 'canonicalize-lgpl' module is also used.
22128 * lib/canonicalize-lgpl.c: Undo last change.
22129 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
22131 2008-04-20 Bruno Haible <bruno@clisp.org>
22133 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
22134 config.h. Provide _mkdir based fallback for mingw.
22135 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
22136 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
22137 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
22138 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
22139 rather than defining mkdir in config.h.
22140 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
22141 (gl_SYS_STAT_H_DEFAULTS): New macro.
22142 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
22143 HAVE_IO_H any more.
22144 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
22145 HAVE_DECL_MKDIR and HAVE_IO_H.
22147 2008-04-20 Bruno Haible <bruno@clisp.org>
22149 * lib/isapipe.c: Port to native Windows platforms.
22151 2008-04-20 Bruno Haible <bruno@clisp.org>
22153 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
22155 2008-04-21 Eric Blake <ebb9@byu.net>
22157 Work around preprocessors that don't handle UINTMAX_MAX.
22158 * lib/memchr2.c (memchr2): Avoid embedded #if.
22159 Reported by Alain Guibert, fix suggested by Bruno Haible.
22161 2008-04-21 Simon Josefsson <simon@josefsson.org>
22163 * doc/posix-functions/strftime.texi (strftime): Explain better
22164 Windows incompatibility. Suggested by Micah Cowan
22165 <micah@cowan.name>.
22167 2008-04-20 Bruno Haible <bruno@clisp.org>
22169 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
22172 2008-04-20 Bruno Haible <bruno@clisp.org>
22174 Fix test failure on platforms with non-GNU iconv.
22175 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
22176 (U_TO_U8): Use it, rather than u16_to_u8.
22177 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
22178 units at the end of the input string.
22179 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
22181 2008-04-20 Bruno Haible <bruno@clisp.org>
22183 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
22184 when the resulting length is 0.
22185 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
22187 2008-04-20 Bruno Haible <bruno@clisp.org>
22189 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
22191 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
22193 2008-04-20 Bruno Haible <bruno@clisp.org>
22195 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
22196 * modules/tsearch-tests (configure.ac): Test for initstate function.
22198 2008-04-20 Bruno Haible <bruno@clisp.org>
22200 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
22201 for nlink_t if missing.
22202 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
22204 2008-04-19 Bruno Haible <bruno@clisp.org>
22206 Work around snprintf bug on Linux libc5.
22207 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
22208 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
22210 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22211 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
22213 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
22214 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
22215 * modules/snprintf (Files): Add m4/printf.m4.
22216 * modules/vsnprintf (Files): Likewise.
22217 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
22218 * doc/posix-functions/vsnprintf.texi: Likewise.
22220 2008-04-19 Bruno Haible <bruno@clisp.org>
22222 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
22223 from 0.0058 to less than 10^-7.
22225 2008-04-19 Bruno Haible <bruno@clisp.org>
22227 Fix rounding when a precision is given.
22228 * lib/vasnprintf.c (is_borderline): New function.
22229 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
22231 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
22233 * tests/test-vasprintf-posix.c (test_function): Likewise.
22234 * tests/test-snprintf-posix.h (test_function): Likewise.
22235 * tests/test-sprintf-posix.h (test_function): Likewise.
22236 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
22237 * tests/test-printf-posix.h (test_function): Likewise.
22238 * tests/test-printf-posix.output: Update.
22239 Reported by John Darrington <john@darrington.wattle.id.au> via
22240 Ben Pfaff <blp@cs.stanford.edu>.
22242 2008-04-18 Simon Josefsson <simon@josefsson.org>
22244 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
22245 Suggested by Bruno Haible <bruno@clisp.org>.
22247 2008-04-17 Bruno Haible <bruno@clisp.org>
22249 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
22250 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
22252 Patch by Bruce Merry <bmerry@gmail.com>.
22254 2008-04-17 Simon Josefsson <simon@josefsson.org>
22256 * doc/posix-functions/strftime.texi (strftime): Mention that %e
22257 doesn't work under Windows.
22259 2008-04-16 Bruno Haible <bruno@clisp.org>
22261 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
22263 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
22264 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
22265 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
22266 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
22267 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
22268 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
22269 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
22271 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
22272 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
22273 Northern Sotho, Uighur.
22275 2008-04-16 Bruno Haible <bruno@clisp.org>
22277 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
22278 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
22279 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
22280 Reported by Daniel Bergström <daniel@octocode.com>.
22282 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
22283 Bruno Haible <bruno@clisp.org>
22285 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
22287 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
22288 New functions, mostly extracted from gl_locale_name_default.
22289 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
22291 2008-04-16 Eric Blake <ebb9@byu.net>
22293 Adjust strtod detection to catch glibc 2.7 bug.
22294 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
22295 Reported by John Gatewood Ham.
22297 2008-04-16 Bruno Haible <bruno@clisp.org>
22299 Add tentative support for Linux libc5.
22300 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
22301 * lib/fpurge.c (fpurge): Likewise.
22302 * lib/freadable.c (freadable): Likewise.
22303 * lib/freadahead.c (freadahead): Likewise.
22304 * lib/freading.c (freading): Likewise.
22305 * lib/freadptr.c (freadptr): Likewise.
22306 * lib/freadseek.c (freadptrinc): Likewise.
22307 * lib/fseeko.c (rpl_fseeko): Likewise.
22308 * lib/fseterr.c (fseterr): Likewise.
22309 * lib/fwritable.c (fwritable): Likewise.
22310 * lib/fwriting.c (fwriting): Likewise.
22311 Reported by Alain Guibert <alguibert+bts@free.fr>.
22313 2008-04-15 Bruno Haible <bruno@clisp.org>
22315 * modules/mathl (configure.ac): Define module indicator.
22317 2008-04-15 Bruno Haible <bruno@clisp.org>
22319 * lib/logl.c (logl): Remove unused variables.
22321 2008-04-15 Bruno Haible <bruno@clisp.org>
22323 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
22326 2008-04-15 Bruno Haible <bruno@clisp.org>
22328 * lib/trim.c (trim2): Fix argument of isspace() macro.
22330 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
22332 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
22334 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
22336 2008-04-14 Bruno Haible <bruno@clisp.org>
22338 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
22339 AC_LANG_PROGRAM argument.
22340 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
22341 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
22342 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
22343 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22344 * m4/math_h.m4 (gl_MATH_H): Likewise.
22345 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22346 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22347 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
22348 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
22349 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22350 * m4/regex.m4 (gl_REGEX): Likewise.
22351 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
22352 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
22353 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22354 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
22355 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
22356 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22357 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22358 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22360 2008-04-14 Jim Meyering <meyering@redhat.com>
22362 test-strtod: fix typos: s/abs/fabs/
22363 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
22365 2008-04-13 Bruno Haible <bruno@clisp.org>
22367 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
22368 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
22369 module is also used and while not building the reloc-wrapper.
22371 2008-04-13 Bruno Haible <bruno@clisp.org>
22373 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
22375 2008-04-13 Bruno Haible <bruno@clisp.org>
22377 Fix AIX compilation failure introduced on 2008-04-02.
22378 * tests/test-frexp.c (exp): Undefine before redefining.
22379 * tests/test-frexpl.c (exp): Likewise.
22381 2008-04-13 Bruno Haible <bruno@clisp.org>
22383 Work around a HP-UX stdio bug.
22384 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
22385 * tests/test-ftello.c (main): Likewise.
22386 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
22387 * doc/posix-functions/ftello.texi: Likewise.
22389 2008-04-13 Bruno Haible <bruno@clisp.org>
22391 Make test-signbit pass on HP-UX/hppa.
22392 * tests/test-signbit.c (minus_zerol): New variable.
22393 (test_signbitl): Use it.
22395 2008-04-13 Bruno Haible <bruno@clisp.org>
22397 Make truncl work on OSF/1 4.0.
22398 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
22399 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
22400 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
22401 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
22403 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
22405 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
22407 2008-04-13 Bruno Haible <bruno@clisp.org>
22409 * lib/unictype.h: Remove trailing comma from enumeration definitions.
22411 2008-04-13 Bruno Haible <bruno@clisp.org>
22413 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
22414 expression, so as to avoid HP-UX 11 cc compiler bug.
22416 2008-04-13 Bruno Haible <bruno@clisp.org>
22418 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
22420 2008-04-13 Bruno Haible <bruno@clisp.org>
22422 * lib/git-merge-changelog.c: Remove empty declaration outside of
22425 2008-04-13 Bruno Haible <bruno@clisp.org>
22427 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
22429 2008-04-13 Bruno Haible <bruno@clisp.org>
22431 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
22432 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
22433 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
22434 also if it exists but lacks definitions of the SHUT_* macros.
22435 * modules/sys_socket (Description): Update.
22436 Reported by Elbert Pol <e.pol@chello.nl>.
22438 2008-04-13 Bruno Haible <bruno@clisp.org>
22440 * lib/localcharset.c (OS2): Don't redefine if already defined.
22441 Reported by Elbert Pol <e.pol@chello.nl>.
22443 2008-04-13 Bruno Haible <bruno@clisp.org>
22445 * lib/binary-io.h [__EMX__]: Include <io.h>.
22446 Reported by Elbert Pol <e.pol@chello.nl>.
22448 2008-04-12 Bruno Haible <bruno@clisp.org>
22450 * lib/fpucw.h: Enable the definitions also for x86_64.
22451 Needed for NetBSD/x86_64.
22452 Reported by Thomas Klausner <tk@giga.or.at>.
22454 2008-04-12 Bruno Haible <bruno@clisp.org>
22456 * tests/test-strtod.c: Include isnand.h.
22457 (main): Use isnand instead of isnan.
22458 Reported by Jim Meyering.
22460 2008-04-12 Bruno Haible <bruno@clisp.org>
22462 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
22463 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22465 2008-04-12 Jim Meyering <meyering@redhat.com>
22467 * m4/math_h.m4 (gl_MATH_H): Fix typos.
22469 2008-04-12 Bruno Haible <bruno@clisp.org>
22471 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
22472 Reported by Elbert Pol <e.pol@chello.nl>.
22474 2008-04-12 Eric Blake <ebb9@byu.net>
22476 Work around Solaris 10 math.h bug.
22477 * m4/math_h.m4 (gl_MATH_H): Check for bug.
22478 (gl_MATH_H_DEFAULTS): Set up default.
22479 * modules/math (Makefile.am): Replace new indicators.
22480 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
22481 * tests/test-math.c (main): Test this.
22482 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
22483 * doc/posix-headers/math.texi (math.h): Mention bug.
22484 Reported by Nelson H. F. Beebe and Jim Meyering.
22486 2008-04-11 Bruno Haible <bruno@clisp.org>
22488 Adapt to future versions of Apple GCC.
22489 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
22490 Reported by Peter O'Gorman <peter@pogma.com>.
22492 2008-04-11 Bruno Haible <bruno@clisp.org>
22494 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
22496 2008-04-11 Bruno Haible <bruno@clisp.org>
22498 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
22500 * modules/getaddrinfo-tests (Makefile.am): Define
22501 test_getaddrinfo_LDADD.
22503 2008-04-11 Bruno Haible <bruno@clisp.org>
22505 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
22506 (init): Fix syntax error.
22507 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
22510 2008-04-11 Bruno Haible <bruno@clisp.org>
22512 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
22513 * modules/glob (Depends-on): Add stdbool.
22515 2008-04-11 Bruno Haible <bruno@clisp.org>
22517 * lib/trim.c: Include <string.h>.
22519 2008-04-11 Eric Blake <ebb9@byu.net>
22521 Avoid compile failure on OS/2.
22522 * lib/regex_internal.h (internal_function): Disable optimization
22523 on OS/2 (__EMX__), where it caused compiler error.
22524 Reported by Elbert Pol.
22526 2008-04-11 Bruno Haible <bruno@clisp.org>
22528 Flush the standard error stream before aborting. Needed on mingw.
22529 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
22530 * tests/test-array_list.c (ASSERT): Likewise.
22531 * tests/test-array_oset.c (ASSERT): Likewise.
22532 * tests/test-avltree_list.c (ASSERT): Likewise.
22533 * tests/test-avltree_oset.c (ASSERT): Likewise.
22534 * tests/test-avltreehash_list.c (ASSERT): Likewise.
22535 * tests/test-binary-io.c (ASSERT): Likewise.
22536 * tests/test-byteswap.c (ASSERT): Likewise.
22537 * tests/test-c-ctype.c (ASSERT): Likewise.
22538 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
22539 * tests/test-c-strcasestr.c (ASSERT): Likewise.
22540 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
22541 * tests/test-c-strstr.c (ASSERT): Likewise.
22542 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
22543 * tests/test-canonicalize.c (ASSERT): Likewise.
22544 * tests/test-carray_list.c (ASSERT): Likewise.
22545 * tests/test-ceilf1.c (ASSERT): Likewise.
22546 * tests/test-ceilf2.c (ASSERT): Likewise.
22547 * tests/test-ceill.c (ASSERT): Likewise.
22548 * tests/test-count-one-bits.c (ASSERT): Likewise.
22549 * tests/test-fbufmode.c (ASSERT): Likewise.
22550 * tests/test-fflush2.c (ASSERT): Likewise.
22551 * tests/test-floorf1.c (ASSERT): Likewise.
22552 * tests/test-floorf2.c (ASSERT): Likewise.
22553 * tests/test-floorl.c (ASSERT): Likewise.
22554 * tests/test-fopen.c (ASSERT): Likewise.
22555 * tests/test-fpending.c (ASSERT): Likewise.
22556 * tests/test-fprintf-posix.c (ASSERT): Likewise.
22557 * tests/test-fpurge.c (ASSERT): Likewise.
22558 * tests/test-freadable.c (ASSERT): Likewise.
22559 * tests/test-freadahead.c (ASSERT): Likewise.
22560 * tests/test-freading.c (ASSERT): Likewise.
22561 * tests/test-freadptr.c (ASSERT): Likewise.
22562 * tests/test-freadptr2.c (ASSERT): Likewise.
22563 * tests/test-freadseek.c (ASSERT): Likewise.
22564 * tests/test-freopen.c (ASSERT): Likewise.
22565 * tests/test-frexp.c (ASSERT): Likewise.
22566 * tests/test-frexpl.c (ASSERT): Likewise.
22567 * tests/test-fseek.c (ASSERT): Likewise.
22568 * tests/test-fseeko.c (ASSERT): Likewise.
22569 * tests/test-fstrcmp.c (ASSERT): Likewise.
22570 * tests/test-ftell.c (ASSERT): Likewise.
22571 * tests/test-ftello.c (ASSERT): Likewise.
22572 * tests/test-func.c (ASSERT): Likewise.
22573 * tests/test-fwritable.c (ASSERT): Likewise.
22574 * tests/test-fwriting.c (ASSERT): Likewise.
22575 * tests/test-getdelim.c (ASSERT): Likewise.
22576 * tests/test-getline.c (ASSERT): Likewise.
22577 * tests/test-i-ring.c (ASSERT): Likewise.
22578 * tests/test-iconv-utf.c (ASSERT): Likewise.
22579 * tests/test-iconv.c (ASSERT): Likewise.
22580 * tests/test-isfinite.c (ASSERT): Likewise.
22581 * tests/test-isnand.c (ASSERT): Likewise.
22582 * tests/test-isnanf.c (ASSERT): Likewise.
22583 * tests/test-isnanl.h (ASSERT): Likewise.
22584 * tests/test-ldexpl.c (ASSERT): Likewise.
22585 * tests/test-linked_list.c (ASSERT): Likewise.
22586 * tests/test-linkedhash_list.c (ASSERT): Likewise.
22587 * tests/test-localename.c (ASSERT): Likewise.
22588 * tests/test-lseek.c (ASSERT): Likewise.
22589 * tests/test-mbscasecmp.c (ASSERT): Likewise.
22590 * tests/test-mbscasestr1.c (ASSERT): Likewise.
22591 * tests/test-mbscasestr2.c (ASSERT): Likewise.
22592 * tests/test-mbscasestr3.c (ASSERT): Likewise.
22593 * tests/test-mbscasestr4.c (ASSERT): Likewise.
22594 * tests/test-mbschr.c (ASSERT): Likewise.
22595 * tests/test-mbscspn.c (ASSERT): Likewise.
22596 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
22597 * tests/test-mbspbrk.c (ASSERT): Likewise.
22598 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
22599 * tests/test-mbsrchr.c (ASSERT): Likewise.
22600 * tests/test-mbsspn.c (ASSERT): Likewise.
22601 * tests/test-mbsstr1.c (ASSERT): Likewise.
22602 * tests/test-mbsstr2.c (ASSERT): Likewise.
22603 * tests/test-mbsstr3.c (ASSERT): Likewise.
22604 * tests/test-memchr2.c (ASSERT): Likewise.
22605 * tests/test-memmem.c (ASSERT): Likewise.
22606 * tests/test-open.c (ASSERT): Likewise.
22607 * tests/test-printf-frexp.c (ASSERT): Likewise.
22608 * tests/test-printf-frexpl.c (ASSERT): Likewise.
22609 * tests/test-printf-posix.c (ASSERT): Likewise.
22610 * tests/test-quotearg.c (ASSERT): Likewise.
22611 * tests/test-rbtree_list.c (ASSERT): Likewise.
22612 * tests/test-rbtree_oset.c (ASSERT): Likewise.
22613 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
22614 * tests/test-round1.c (ASSERT): Likewise.
22615 * tests/test-roundf1.c (ASSERT): Likewise.
22616 * tests/test-roundl.c (ASSERT): Likewise.
22617 * tests/test-signbit.c (ASSERT): Likewise.
22618 * tests/test-sleep.c (ASSERT): Likewise.
22619 * tests/test-snprintf-posix.c (ASSERT): Likewise.
22620 * tests/test-snprintf.c (ASSERT): Likewise.
22621 * tests/test-sprintf-posix.c (ASSERT): Likewise.
22622 * tests/test-stat-time.c (ASSERT): Likewise.
22623 * tests/test-strcasestr.c (ASSERT): Likewise.
22624 * tests/test-strerror.c (ASSERT): Likewise.
22625 * tests/test-striconv.c (ASSERT): Likewise.
22626 * tests/test-striconveh.c (ASSERT): Likewise.
22627 * tests/test-striconveha.c (ASSERT): Likewise.
22628 * tests/test-strsignal.c (ASSERT): Likewise.
22629 * tests/test-strstr.c (ASSERT): Likewise.
22630 * tests/test-strtod.c (ASSERT): Likewise.
22631 * tests/test-trunc1.c (ASSERT): Likewise.
22632 * tests/test-trunc2.c (ASSERT): Likewise.
22633 * tests/test-truncf1.c (ASSERT): Likewise.
22634 * tests/test-truncf2.c (ASSERT): Likewise.
22635 * tests/test-truncl.c (ASSERT): Likewise.
22636 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
22637 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
22638 * tests/test-vasnprintf.c (ASSERT): Likewise.
22639 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
22640 * tests/test-vasprintf.c (ASSERT): Likewise.
22641 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
22642 * tests/test-vprintf-posix.c (ASSERT): Likewise.
22643 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
22644 * tests/test-vsnprintf.c (ASSERT): Likewise.
22645 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
22646 * tests/test-wcwidth.c (ASSERT): Likewise.
22647 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
22648 * tests/test-xprintf-posix.c (ASSERT): Likewise.
22649 * tests/test-xvasprintf.c (ASSERT): Likewise.
22650 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
22651 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
22652 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
22653 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
22654 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
22655 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
22656 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
22657 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
22658 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
22659 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
22660 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
22661 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
22662 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
22663 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
22664 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
22665 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
22666 * tests/unictype/test-block_list.c (ASSERT): Likewise.
22667 * tests/unictype/test-block_of.c (ASSERT): Likewise.
22668 * tests/unictype/test-block_test.c (ASSERT): Likewise.
22669 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
22670 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
22671 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
22672 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
22673 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
22674 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
22675 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
22676 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
22677 * tests/unictype/test-combining.c (ASSERT): Likewise.
22678 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
22679 * tests/unictype/test-digit.c (ASSERT): Likewise.
22680 * tests/unictype/test-mirror.c (ASSERT): Likewise.
22681 * tests/unictype/test-numeric.c (ASSERT): Likewise.
22682 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
22683 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
22684 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
22685 * tests/unictype/test-scripts.c (ASSERT): Likewise.
22686 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
22687 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
22688 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
22689 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
22690 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
22691 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
22692 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
22693 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
22694 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
22695 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
22696 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
22697 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
22698 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
22699 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
22700 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
22701 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
22702 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
22703 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
22704 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
22705 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
22706 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
22707 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
22708 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
22709 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
22710 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
22711 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
22712 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
22713 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
22714 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
22715 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
22716 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
22717 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
22718 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
22719 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
22720 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
22721 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
22722 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
22723 Reported by Eric Blake.
22725 2008-04-11 Bruno Haible <bruno@clisp.org>
22727 * lib/wchar.in.h: Tweak comment.
22729 2008-04-11 Bruno Haible <bruno@clisp.org>
22731 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
22732 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
22734 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
22736 2008-04-11 Bruno Haible <bruno@clisp.org>
22738 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
22740 2008-04-11 Simon Josefsson <simon@josefsson.org>
22742 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
22743 of attempting to use non-existing /dev/*random. Based on patch
22744 from Adam Strzelecki <ono@java.pl> in
22745 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
22747 2008-04-08 Bruno Haible <bruno@clisp.org>
22749 Add tentative support for emx+gcc.
22750 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
22751 * lib/fpurge.c (fpurge): Likewise.
22752 * lib/freadable.c (freadable): Likewise.
22753 * lib/freadahead.c (freadahead): Likewise.
22754 * lib/freading.c (freading): Likewise.
22755 * lib/freadptr.c (freadptr): Likewise.
22756 * lib/freadseek.c (freadptrinc): Likewise.
22757 * lib/fseeko.c (rpl_fseeko): Likewise.
22758 * lib/fseterr.c (fseterr): Likewise.
22759 * lib/fwritable.c (fwritable): Likewise.
22760 * lib/fwriting.c (fwriting): Likewise.
22761 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
22763 2008-04-09 Eric Blake <ebb9@byu.net>
22765 Avoid some autoconf warnings.
22766 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
22767 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
22768 * m4/afs.m4 (gl_AFS): Likewise.
22769 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
22770 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
22771 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
22772 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
22773 (gl_INTEGER_TYPE_SUFFIX): Likewise.
22774 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
22775 (AC_CHECK_DECLS_ONCE): Likewise.
22777 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
22778 gnulib-tool requires autoconf 2.59 or better.
22779 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
22781 2008-04-08 Eric Blake <ebb9@byu.net>
22783 Use 'git describe --match' if present (added in git 1.5.5).
22784 * build-aux/git-version-gen: Limit result to tags that match 'v*'
22787 2008-04-08 Bruno Haible <bruno@clisp.org>
22789 Add tentative support for OpenServer.
22790 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
22792 * lib/fpurge.c (fpurge): Likewise.
22793 * lib/freadable.c (freadable): Likewise.
22794 * lib/freadahead.c (freadahead): Likewise.
22795 * lib/freading.c (freading): Likewise.
22796 * lib/freadptr.c (freadptr): Likewise.
22797 * lib/freadseek.c (freadptrinc): Likewise.
22798 * lib/fseeko.c (rpl_fseeko): Likewise.
22799 * lib/fseterr.c (fseterr): Likewise.
22800 * lib/fwritable.c (fwritable): Likewise.
22801 * lib/fwriting.c (fwriting): Likewise.
22802 Reported by Roger Cornelius <rac@tenzing.org> and
22803 Brian K. White <brian@aljex.com>.
22805 2008-04-06 Jim Meyering <meyering@redhat.com>
22807 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
22809 2008-04-06 Bruno Haible <bruno@clisp.org>
22811 Avoid possible error with non-ASCII bytes in UTF-8 locales.
22812 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
22813 * tests/test-printf-posix.sh: Likewise.
22814 * tests/test-vfprintf-posix.sh: Likewise.
22815 * tests/test-vprintf-posix.sh: Likewise.
22816 * tests/test-xprintf-posix.sh: Likewise.
22818 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22820 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
22821 hide error from 'ls', needed on OS/2.
22822 Report by Elbert Pol <elbert.pol@gmail.com>.
22824 2008-04-04 Eric Blake <ebb9@byu.net>
22826 Make test-fseeko.c failures meaningful.
22827 * tests/test-fseeko.c: Print line number on failure.
22828 * tests/test-fseek.c: Likewise.
22829 Reported by Nelson H. F. Beebe.
22831 Improve strtod bug detection check.
22832 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
22833 required for Solaris 10.
22834 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
22836 2008-04-04 Bruno Haible <bruno@clisp.org>
22838 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
22841 2008-04-03 Eric Blake <ebb9@byu.net>
22843 Ensure sane .version contents.
22844 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
22846 * build-aux/git-version-gen: Improve documentation.
22848 Make GNU make output nicer.
22849 * top/GNUmakefile [!_have-Makefile]: Add dependency on
22850 MAKECMDGOALS to enforce message for all command line targets. Set
22851 srcdir for use in maint.mk.
22853 Another maintainer tweak.
22854 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
22855 a target that regenerates version.
22857 2008-04-03 Jim Meyering <meyering@redhat.com>
22859 vc-list-files: don't cause coreutils "make po-check" failure
22860 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
22862 2008-04-03 Eric Blake <ebb9@byu.net>
22864 Allow VPATH usage of vc-list-files.
22865 * build-aux/vc-list-files (scriptversion): Add timestamp.
22866 (options): Add --help, --version, -C.
22867 (CVS): Support installed cvsu.
22869 2008-04-02 Bruno Haible <bruno@clisp.org>
22871 Avoid some "statement with no effect" warnings from gcc.
22872 * tests/test-wctype.c (main): Explicitly ignore unused values.
22873 Reported by Jim Meyering.
22875 2008-04-02 Jim Meyering <meyering@redhat.com>
22877 Avoid some warnings from "gcc -Wshadow".
22878 * tests/test-frexp.c (exp): Define to a different identifier.
22879 * tests/test-frexpl.c (exp): Likewise.
22881 2008-04-03 Jim Meyering <meyering@redhat.com>
22883 bootstrap: remove dangling *.[ch] symlinks from lib
22884 * build-aux/bootstrap [dangling symlink removal]: Move find's
22885 -depth option to precede all others, to avoid a warning.
22886 Remove *.[ch] files too, and from "$source_base" (usually lib/).
22888 2008-04-02 Bruno Haible <bruno@clisp.org>
22890 Avoid some warnings from "gcc -Wshadow".
22891 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
22892 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
22893 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
22894 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
22895 Reported by Jim Meyering.
22897 2008-04-01 Bruno Haible <bruno@clisp.org>
22899 Fix test to work on IRIX 6.5 with cc.
22900 * tests/test-math.c (numeric_equal): New function.
22903 2008-04-01 Bruno Haible <bruno@clisp.org>
22905 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
22907 2008-04-01 Bruno Haible <bruno@clisp.org>
22909 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
22910 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22911 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
22912 (Depends-on): Remove math.
22914 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
22915 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22916 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
22917 (Depends-on): Remove math.
22919 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
22920 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22921 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
22922 (Depends-on): Remove math.
22923 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
22924 (Depends-on): Remove math.
22926 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
22927 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22928 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
22929 (Depends-on): Remove math.
22930 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
22931 (Depends-on): Remove math.
22933 * tests/test-round1.c: Include nan.h.
22934 (main): Use NaNd instead of NAN.
22935 * modules/round-tests (Files): Add tests/nan.h.
22937 * tests/test-trunc1.c: Include nan.h.
22938 (main): Use NaNd instead of NAN.
22939 * modules/trunc-tests (Files): Add tests/nan.h.
22941 * tests/test-roundf1.c: Include nan.h.
22942 (main): Use NaNf instead of NAN.
22943 * modules/roundf-tests (Files): Add tests/nan.h.
22945 * tests/test-truncf1.c: Include nan.h.
22946 (main): Use NaNf instead of NAN.
22947 * modules/truncf-tests (Files): Add tests/nan.h.
22949 * tests/test-ceilf1.c: Include nan.h.
22950 (main): Use NaNf instead of NAN.
22951 * modules/ceilf-tests (Files): Add tests/nan.h.
22953 * tests/test-floorf1.c: Include nan.h.
22954 (main): Use NaNf instead of NAN.
22955 * modules/floorf-tests (Files): Add tests/nan.h.
22957 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
22958 (main): Use NaNf instead of NAN.
22959 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
22961 * tests/test-isnand.c: Include nan.h instead of <math.h>.
22962 (main): Use NaNd instead of NAN.
22963 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
22965 * tests/test-frexp.c: Include nan.h.
22966 (main): Use NaNd instead of NAN.
22967 * modules/frexp-tests (Files): Add tests/nan.h.
22969 * lib/isnan.c: Don't include <math.h>.
22970 (FUNC): Don't use NAN macro.
22971 * modules/isnand-nolibm (Depends-on): Remove math.
22972 * modules/isnanf-nolibm (Depends-on): Remove math.
22973 * modules/isnanl (Depends-on): Remove math.
22974 * modules/isnanl-nolibm (Depends-on): Remove math.
22976 * tests/nan.h: New file.
22978 2008-04-01 Eric Blake <ebb9@byu.net>
22981 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
22982 values to be the right type.
22984 For now, cater to gnulib strtod inaccuracies.
22985 * tests/test-strtod.c (main): Allow 1-ulp error on expected
22986 fractional results. While not as nice from a QoI perspective, it
22987 is a quicker patch than correctly implementing decimal to binary
22990 2008-03-31 Eric Blake <ebb9@byu.net>
22992 Guarantee a definition of NAN.
22993 * lib/math.in.h (NAN): Define if missing.
22994 * tests/test-math.c (main): Test it.
22995 * doc/posix-headers/math.texi (math.h): Document this.
22996 * lib/isnan.c (rpl_isnand): Use it.
22997 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
22998 * tests/test-floorf1.c (NaN): Likewise.
22999 * tests/test-frexp.c (NaN): Likewise.
23000 * tests/test-isnand.c (NaN): Likewise.
23001 * tests/test-isnanf.c (NaN): Likewise.
23002 * tests/test-round1.c (NaN): Likewise.
23003 * tests/test-roundf1.c (NaN): Likewise.
23004 * tests/test-snprintf-posix.h (NaN): Likewise.
23005 * tests/test-sprintf-posix.h (NaN): Likewise.
23006 * tests/test-trunc1.c (NaN): Likewise.
23007 * tests/test-truncf1.c (NaN): Likewise.
23008 * tests/test-vasnprintf-posix.c (NaN): Likewise.
23009 * tests/test-vasprintf-posix.c (NaN): Likewise.
23010 * modules/isnand-nolibm (Depends-on): Add math.
23011 * modules/isnanf-nolibm (Depends-on): Likewise.
23012 * modules/isnanl (Depends-on): Likewise.
23013 * modules/isnanl-nolibm (Depends-on): Likewise.
23014 * modules/snprintf-posix-tests (Depends-on): Likewise.
23015 * modules/sprintf-posix-tests (Depends-on): Likewise.
23016 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
23017 * modules/vsprintf-posix-tests (Depends-on): Likewise.
23018 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
23019 * modules/vasprintf-posix-tests (Depends-on): Likewise.
23021 2008-03-31 Bruno Haible <bruno@clisp.org>
23023 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
23024 * doc/posix-functions/strtod.texi: Likewise.
23026 2008-03-31 Bruno Haible <bruno@clisp.org>
23028 * tests/test-strtod.c (main): Don't use C99 syntax.
23030 2008-03-31 Bruno Haible <bruno@clisp.org>
23032 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
23033 Reported by Eric Blake.
23035 2008-03-31 Jim Meyering <meyering@redhat.com>
23037 Don't compare actual signbit return values.
23038 * tests/test-strtod.c (main): Rather, compare only their
23039 zero/non-zero nature.
23041 2008-03-31 Eric Blake <ebb9@byu.net>
23043 More strtod documentation.
23044 * doc/posix-functions/strtod.texi (strtod): Interpret more test
23045 failures as distinct bugs.
23047 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
23049 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
23050 Problem reported by Erik Benada in
23051 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
23053 2008-03-30 Bruno Haible <bruno@clisp.org>
23055 * tests/test-strtod.c: Add comments about which assertion fails on which
23057 * doc/posix-functions/strtod.texi: Add info about many more platforms.
23059 2008-03-30 Eric Blake <ebb9@byu.net>
23061 Test signbit behavior on zeros.
23062 * tests/test-signbit.c (test_signbitf): Add tests for zero.
23063 (test_signbitd, test_signbitl): Likewise.
23065 More strtod touchups.
23066 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
23067 sign of negative underflow, for now. Use .5, not .1.
23068 * doc/posix-functions/strtod.texi (strtod): Mention these
23070 Reported by Jim Meyering.
23072 2008-03-30 Bruno Haible <bruno@clisp.org>
23074 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
23075 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
23077 2008-03-30 Bruno Haible <bruno@clisp.org>
23079 Avoid failure when attempting to return empty iconv results on some
23081 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
23082 allocation, don't report ENOMEM when the resulting string is empty.
23084 2008-03-30 Bruno Haible <bruno@clisp.org>
23086 Fix buffer overrun.
23087 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
23088 Don't consider the width for tmp_length. Check count against tmp_length
23089 before doing the padding. Ensure enough allocation during padding.
23091 2008-03-30 Eric Blake <ebb9@byu.net>
23094 * lib/strtod.c (strtod): Avoid compiler warnings.
23095 Reported by Jim Meyering.
23097 2008-03-30 Bruno Haible <bruno@clisp.org>
23099 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
23100 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
23101 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
23102 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
23103 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
23104 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
23105 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
23106 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
23108 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
23109 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
23110 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
23111 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
23112 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
23113 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
23114 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
23115 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
23117 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
23118 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
23119 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
23120 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
23121 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
23122 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
23123 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
23124 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
23126 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
23127 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
23129 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
23130 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
23132 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
23133 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
23135 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
23136 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
23137 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
23139 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
23140 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
23141 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
23143 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
23144 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
23145 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
23147 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
23148 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
23149 * modules/vasprintf (Depends-on): Add EOVERFLOW.
23151 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
23152 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
23153 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
23154 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
23155 (Depends-on): Add EOVERFLOW.
23156 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
23157 (Depends-on): Add EOVERFLOW.
23158 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
23159 (Depends-on): Add EOVERFLOW.
23160 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
23161 (Depends-on): Add EOVERFLOW.
23162 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
23163 (Depends-on): Add EOVERFLOW.
23164 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
23165 (Depends-on): Add EOVERFLOW.
23166 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
23167 (Depends-on): Add EOVERFLOW.
23168 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
23169 (Depends-on): Add EOVERFLOW.
23171 * lib/sprintf.c (EOVERFLOW): Remove fallback.
23172 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
23173 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
23175 * lib/snprintf.c (EOVERFLOW): Remove fallback.
23176 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
23177 * modules/snprintf (Depends-on): Add EOVERFLOW.
23179 * lib/poll.c (EOVERFLOW): Remove fallback.
23180 * modules/poll (Depends-on): Add EOVERFLOW.
23182 * lib/getugroups.c (EOVERFLOW): Remove fallback.
23183 * modules/getugroups (Depends-on): Add EOVERFLOW.
23185 * lib/getdelim.c (EOVERFLOW): Remove fallback.
23186 * modules/getdelim (Depends-on): Add EOVERFLOW.
23188 * lib/ftell.c (EOVERFLOW): Remove fallback.
23189 * modules/ftell (Depends-on): Add EOVERFLOW.
23191 * lib/fprintf.c (EOVERFLOW): Remove fallback.
23192 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
23193 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
23195 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
23197 * modules/EOVERFLOW-tests: New file.
23198 * tests/test-EOVERFLOW.c: New file.
23200 * modules/EOVERFLOW: New file.
23201 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
23203 2008-03-30 Bruno Haible <bruno@clisp.org>
23205 Fix bug introduced on 2007-06-10.
23206 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
23207 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
23209 2008-03-30 Bruno Haible <bruno@clisp.org>
23211 Improve freadseek's efficiency after ungetc.
23212 * lib/freadseek.c: Include freadahead.h.
23213 (freadptrinc): New function, extracted from freadseek.
23214 (freadseek): Use it in a loop. Use freadahead to determine the number
23215 of loop iterations.
23216 * modules/freadseek (Depends-on): Add freadahead.
23217 (configure.ac): Require AC_C_INLINE.
23219 2008-03-30 Bruno Haible <bruno@clisp.org>
23221 * lib/freadseek.c (freadseek): Don't ignore the return value of
23224 2008-03-29 Eric Blake <ebb9@byu.net>
23226 Add hex float support.
23227 * modules/strtod (Depends-on): Add c-ctype.
23228 (Link): Mention POW_LIB.
23229 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
23230 whitespace between 'e' and exponent.
23231 * tests/test-strtod.c (main): Enable hex float tests.
23232 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
23235 Document various strtod bugs, with some fixes.
23236 * doc/posix-functions/strtod.texi (strtod): Document bugs with
23237 "-0x", "inf", "nan", and hex constants.
23238 * doc/posix-functions/atof.texi (atof): Likewise.
23239 * modules/stdlib (Makefile.am): Support strtod.
23240 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
23241 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
23242 detect additional strtod bugs.
23243 * lib/stdlib.in.h (rpl_strtod): Add declarations.
23244 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
23245 bool where appropriate. Parse 'inf' and 'nan'.
23246 * tests/test-strtod.c: New file.
23247 * modules/strtod (Depends-on): Add stdbool, stdlib.
23248 (configure.ac): Turn on module indicator.
23249 * modules/strtod-tests: New module.
23251 2008-03-29 Eric Blake <ebb9@byu.net>
23253 Fix ftell on mingw.
23254 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
23255 * modules/ftell-tests (Depends-on): Add binary-io.
23256 * modules/ftello-tests (Depends-on): Likewise.
23257 * tests/test-ftell.c (main): Enhance test to cover behavior after
23258 ungetc. Enforce binary mode.
23259 * tests/test-ftello.c (main): Likewise.
23261 Pass test-freadseek on cygwin.
23262 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
23263 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
23266 * tests/test-fflush2.c (main): Fix typo.
23268 2008-03-29 Bruno Haible <bruno@clisp.org>
23270 * tests/test-fflush2.c (main): Temporarily disable the contents of
23272 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
23273 Reported by Eric Blake.
23275 2008-03-28 Simon Josefsson <simon@josefsson.org>
23277 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
23278 (GC_SHA224_DIGEST_SIZE): Add.
23280 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
23281 (gc_hash_digest_length): Likewise.
23282 (gc_hash_buffer): Likewise.
23284 2008-03-25 Bruno Haible <bruno@clisp.org>
23286 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
23287 detail which gettext release to use.
23288 Reported by Simon Josefsson.
23290 2008-03-26 Jim Meyering <meyering@redhat.com>
23292 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
23293 * modules/gnumakefile (clean-GNUmakefile): Also, use
23294 test ... && ... || : syntax rather than if-then ... fi.
23296 gnumakefile: Don't double-quote-expand $(VPATH) value.
23297 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
23299 2008-03-24 Eric Blake <ebb9@byu.net>
23301 Alter GNUmakefile to install into top directory.
23302 * modules/maintainer-makefile: Split, and add dependency...
23303 * modules/gnumakefile: to this new module.
23304 * build-aux/GNUmakefile: Move...
23305 * top/GNUmakefile: ...here.
23306 * build-aux/maint.mk: Move...
23307 * top/maint.mk: ...here.
23308 * MODULES.html.sh (Support for maintaining...): Document new
23311 2008-03-23 Bruno Haible <bruno@clisp.org>
23313 * gnulib-tool: New options --vc-files, --no-vc-files.
23314 (func_usage): Document them.
23315 (vc_files): New variable.
23316 (func_import): Consider vc_files.
23317 (func_create_testdir): Set vc_files to empty.
23318 Suggested by Jim Meyering and Karl Berry.
23320 2008-03-23 Bruno Haible <bruno@clisp.org>
23322 Fix regex compilation error on HP-UX 11.
23323 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
23324 * modules/regex (Files): Add m4/mbstate_t.m4.
23325 Reported by Ton Voon <ton.voon@altinity.com>.
23327 2008-03-23 Bruno Haible <bruno@clisp.org>
23329 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
23331 2008-03-23 Eric Blake <ebb9@byu.net>
23332 Bruno Haible <bruno@clisp.org>
23334 Install files from top/ in the destination directory.
23335 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
23336 augmentation also for the files from top/.
23337 (func_import, func_create_testdir): Rewrite file names:
23338 top/filename -> filename.
23340 2008-03-23 Bruno Haible <bruno@clisp.org>
23342 Tweak "gnulib --version" output.
23343 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
23345 2008-03-23 Bruno Haible <bruno@clisp.org>
23347 Tweak "gnulib --version" output.
23348 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
23349 rather than contents of ChangeLog, when possible.
23351 2008-03-21 Eric Blake <ebb9@byu.net>
23353 More --version tweaks.
23354 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
23355 date of last ChangeLog entry.
23357 2008-03-21 Jim Meyering <meyering@redhat.com>
23359 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
23361 2008-03-20 Eric Blake <ebb9@byu.net>
23364 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
23366 2008-03-20 Simon Josefsson <simon@josefsson.org>
23368 * build-aux/GNUmakefile: Make git-version-gen optional. Add
23369 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
23371 2008-03-20 Eric Blake <ebb9@byu.net>
23373 Sync GNUmakefile with coreutils.
23374 * build-aux/GNUmakefile (have-Makefile): Rename...
23375 (_have-Makefile): ...to this, for namespace consideration.
23376 (GNUmakefile.cfg): Include, if present.
23377 (_autoreconf): Define a default.
23378 (_is-dist-target): New rule for rebuilds to pick up intra-release
23380 (maint-cfg.mk): Rename...
23381 (cfg.mk): ...to this.
23383 2008-03-18 Jim Meyering <meyering@redhat.com>
23385 New script and module: mktempd
23386 * MODULES.html.sh (maint+release support): Add mktempd.
23387 * build-aux/mktempd: New file.
23388 * modules/mktempd: New file.
23390 2008-03-15 Jim Meyering <meyering@redhat.com>
23393 * lib/sha1.c, lib/md5.c: 63 != ~63.
23394 Reported by Andreas Schwab.
23396 sha1.c, md5.c: Hoist a redundant expression.
23397 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
23398 "ctx->buflen" only once, before calling *_process_block.
23399 * lib/md5.c (md5_process_bytes): Likewise.
23401 2008-03-14 Eric Blake <ebb9@byu.net>
23403 Bump copyright year in files generated by gnulib-tool.
23404 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
23405 gnulib-tool, rather than hard-coding it.
23407 Fix 'gnulib-tool --version' output to work with git.
23408 * gnulib-tool (func_gnulib_dir): New function, extracted from...
23409 (startup): ...here.
23410 (func_version): Use it to invoke git-version-gen, rather than
23411 relying on CVS keyword expansion. Modernize wording.
23412 (cvsdatestamp, last_checkin_date, version): Kill unused
23415 2008-03-12 Jim Meyering <meyering@redhat.com>
23417 Recognize optional cast of the argument to free.
23418 * build-aux/useless-if-before-free: Update regexps.
23420 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
23422 2008-03-11 Bruno Haible <bruno@clisp.org>
23424 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
23425 by a single package.
23426 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
23427 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
23428 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
23429 Reported by Sam Steingold <sds@gnu.org>.
23431 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
23433 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
23436 2008-03-11 Bruno Haible <bruno@clisp.org>
23438 Avoid conflicts between local macro definitions.
23439 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23440 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
23442 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
23443 Bruno Haible <bruno@clisp.org>
23445 Make va_copy work with some version of xlc on AIX 5.1.
23446 * lib/stdarg.in.h: New file.
23447 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
23448 On AIX, use a <stdarg.h> file substitute.
23449 * modules/stdarg (Files): Add lib/stdarg.in.h.
23450 (Depends-on): Add include_next.
23451 (Makefile.am): Build a stdarg.h substitute if requested.
23452 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
23454 2008-03-10 Bruno Haible <bruno@clisp.org>
23456 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
23457 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23458 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
23460 2008-03-10 Bruno Haible <bruno@clisp.org>
23462 * modules/stdlib (Depends-on): Add include_next, remove
23465 2008-03-09 Bruno Haible <bruno@clisp.org>
23467 * lib/freadahead.h (freadahead): Document more precisely.
23468 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
23469 the sum of both buffer sizes.
23470 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
23471 * NEWS: Document the change.
23473 2008-03-09 Bruno Haible <bruno@clisp.org>
23475 Extend freadptr to return also the buffer size.
23476 * lib/freadptr.h (freadptr): Add sizep argument.
23477 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
23478 (freadptr): Add sizep argument. Determine buffer size like freadahead
23480 * tests/test-freadptr.c: Don't include freadahead.h.
23481 (main): Adapt for new calling convention of freadptr.
23482 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
23483 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
23484 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
23485 tests/test-freadptr2.sh.
23486 (Depends): Remove freadahead.
23487 (TESTS): Add test-freadptr2.sh.
23488 (check_PROGRAMS): Add test-freadptr2.
23490 2008-03-09 Bruno Haible <bruno@clisp.org>
23492 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
23493 Report and solution by Simon Josefsson.
23495 2008-03-06 Bruno Haible <bruno@clisp.org>
23497 Make fflush after ungetc work on BSD platforms.
23498 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
23499 * tests/test-fflush2.c: New file.
23500 * tests/test-fflush2.sh: New file.
23501 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
23502 tests/test-fflush2.c.
23503 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
23504 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
23506 2008-03-06 Eric Blake <ebb9@byu.net>
23508 Likewise for ftello.
23509 * modules/ftello (Dependencies): Add extensions.
23510 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
23512 2008-03-06 Bruno Haible <bruno@clisp.org>
23514 * modules/fseeko (Dependencies): Add extensions.
23515 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
23516 Needed on glibc systems.
23518 2008-03-06 Bruno Haible <bruno@clisp.org>
23520 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
23522 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23524 2008-03-06 Bruno Haible <bruno@clisp.org>
23526 * users.txt: Add libgnupdf.
23528 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
23530 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
23531 (Header File Substitutes, Function Substitutes,
23532 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
23533 (Build robot for gnulib): Fix typo.
23535 2008-03-06 Bruno Haible <bruno@clisp.org>
23537 * doc/gnulib-tool.texi (VCS Issues): Small updates.
23538 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23540 2008-03-06 Bruno Haible <bruno@clisp.org>
23542 * doc/func.texi: New file, extracted from doc/gnulib.texi.
23543 * doc/gnulib.texi: Include it.
23545 2008-03-06 Simon Josefsson <simon@josefsson.org>
23547 * modules/func (License): Change license to unlimited; there was
23548 no LGPL parts in the module anyway.
23550 2008-03-06 Simon Josefsson <simon@josefsson.org>
23552 * modules/__func__: Renamed to modules/func.
23553 * modules/__func__-tests: Renamed to modules/func-tests.
23554 * tests/test-__func__.c: Renamed to tests/test-func.c.
23555 * m4/__func__.m4: Renamed to m4/func.m4.
23556 * doc/gnulib.texi (__func__): Section renamed to func.
23557 Suggested by Eric Blake <ebb9@byu.net>.
23559 2008-03-06 Simon Josefsson <simon@josefsson.org>
23561 * doc/gnulib.texi (__func__): Use C99 terminology when talking
23562 about __func__. Make example self-contained. Suggested by Eric
23563 Blake <ebb9@byu.net>.
23565 * tests/test-__func__.c (main): Avoid extraneous () around __func.
23566 Suggested by Eric Blake <ebb9@byu.net>.
23568 2008-03-06 Simon Josefsson <simon@josefsson.org>
23570 * modules/__func__: New file.
23571 * modules/__func__-tests: New file.
23572 * tests/test-__func__.c: New file.
23573 * m4/__func__.m4: New file.
23574 * doc/gnulib.texi (__func__): Document __func__ module.
23576 2008-03-05 Simon Josefsson <simon@josefsson.org>
23578 * modules/byteswap (License): Re-license as LGPLv2+.
23580 2008-03-05 Simon Josefsson <simon@josefsson.org>
23582 * doc/Makefile: Add pdf target.
23584 2008-03-05 Simon Josefsson <simon@josefsson.org>
23586 * modules/inline (License): Use 'unlimited', since there are only
23587 *.m4 files in this module.
23589 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
23590 Bruno Haible <bruno@clisp.org>
23592 Add support for HP C 7.1 on OpenVMS 8.3.
23593 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
23595 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
23597 Update VMS specifics.
23598 * lib/getopt.c [VMS]: Remove include of unixlib.h.
23600 2008-03-02 Jim Meyering <meyering@redhat.com>
23602 Remove the last dependency on the "free" module.
23603 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
23604 Reported by Bob Proulx.
23606 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
23608 Remove useless "if" tests before free. Deprecate "free" module.
23609 * doc/posix-functions/free.texi: Mention that this
23610 module is no longer useful.
23611 * modules/free (Notice): Say this module is obsolete.
23612 * modules/readutmp (Depends-on): Remove free.
23613 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
23614 * lib/putenv.c (putenv): Likewise.
23615 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
23616 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
23617 * tests/test-c-strcasestr.c (main): Likewise.
23618 * tests/test-c-strstr.c (main): Likewise.
23619 * tests/test-mbscasestr1.c (main): Likewise.
23620 * tests/test-mbscasestr2.c (main): Likewise.
23621 * tests/test-mbsstr1.c (main): Likewise.
23622 * tests/test-mbsstr2.c (main): Likewise.
23623 * tests/test-memmem.c (main): Likewise.
23624 * tests/test-strcasestr.c (main): Likewise.
23625 * tests/test-striconv.c (main): Likewise.
23626 * tests/test-striconveh.c (main): Likewise.
23627 * tests/test-striconveha.c (main): Likewise.
23628 * tests/test-strstr.c (main): Likewise.
23630 * build-aux/git-version-gen: Adjust a comment and the Usage string.
23632 bootstrap: sync from coreutils again
23633 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
23635 2008-03-01 Jim Meyering <meyering@redhat.com>
23637 bootstrap: sync from coreutils
23638 * build-aux/bootstrap (update_po_files): Copy a .po file into place
23639 also when the target doesn't exist.
23641 2008-03-01 Eric Blake <ebb9@byu.net>
23643 Fix bugs in last patch.
23644 * lib/memchr2.c (memchr2): Fix typo.
23645 * tests/test-memchr2.c: Test previous bug, and don't use GNU
23647 Reported by Bruce Korb.
23649 New module 'memchr2'.
23650 * modules/memchr2: New file.
23651 * modules/memchr2-tests: Likewise.
23652 * lib/memchr2.h: Likewise.
23653 * lib/memchr2.c: Likewise, based on memchr.c.
23654 * tests/test-memchr2.c: New test.
23655 * MODULES.html.sh (String handling): Add memchr2.
23657 2008-02-29 Bruno Haible <bruno@clisp.org>
23659 * modules/freadseek-tests: New file.
23660 * tests/test-freadseek.sh: New file.
23661 * tests/test-freadseek.c: New file.
23663 New module 'freadseek'.
23664 * modules/freadseek: New file.
23665 * lib/freadseek.h: New file.
23666 * lib/freadseek.c: New file.
23667 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
23669 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
23671 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
23674 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
23675 program_invocation_name and program_invocation_short_name are
23678 2008-02-28 Bruno Haible <bruno@clisp.org>
23680 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
23681 * tests/test-freadptr.sh: Also test non-seekable stdin.
23683 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
23685 * build-aux/bootstrap (source_base, m4_base)
23686 (doc_base, tests_base): New variables.
23687 (gnulib_tool_options): Do not hardcode base directories, use
23688 the above variables instead.
23690 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
23692 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
23694 2008-02-28 Bruno Haible <bruno@clisp.org>
23696 * modules/freadptr-tests: New file.
23697 * tests/test-freadptr.sh: New file.
23698 * tests/test-freadptr.c: New file.
23700 New module 'freadptr'.
23701 * modules/freadptr: New file.
23702 * lib/freadptr.h: New file.
23703 * lib/freadptr.c: New file.
23704 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
23706 2008-02-26 Karl Berry <karl@freefriends.org>
23709 * libltdl/argz.c (argz_add, argz_count): New functions.
23710 * libltdl/argz.in.h: Declare them.
23711 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
23713 2008-02-22 Bruno Haible <bruno@clisp.org>
23715 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
23716 is a pointer type. Needed for HP-UX 10.
23717 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
23718 * doc/posix-functions/gmtime_r.texi: Likewise.
23719 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
23721 2008-02-24 Bruno Haible <bruno@clisp.org>
23723 * modules/environ-tests: New file.
23724 * tests/test-environ.c: New file.
23726 New module 'environ'.
23727 * modules/environ: New file.
23728 * lib/unistd.in.h (environ): New declaration.
23729 * m4/environ.m4: New file.
23730 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
23732 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
23734 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
23736 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
23737 wrong claim that 'environ' is missing on some systems.
23738 * modules/execute (Depends-on): Add environ.
23739 * lib/execute.c (environ): Remove fallback declaration.
23740 * modules/pipe (Depends-on): Add environ.
23741 * lib/pipe.c (environ): Remove fallback declaration.
23742 * modules/setenv (Depends-on): Add environ.
23743 * lib/setenv.c (environ): Remove fallback declaration.
23744 * modules/unsetenv (Depends-on): Add environ.
23745 * lib/unsetenv.c (environ): Remove fallback declaration.
23746 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
23748 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
23749 (gl_PREREQ_UNSETENV): Likewise.
23751 2008-02-24 Bruno Haible <bruno@clisp.org>
23753 * doc/posix-functions/environ.texi: Document the MacOS X problem.
23755 2008-02-20 Bob Proulx <bob@proulx.com>
23757 Enable use of older two part flavor 'git describe'.
23758 * build-aux/git-version-gen: If using the older two part flavor of
23759 git version then recreate the third part now present in the
23760 newer three part flavor of git describe.
23762 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
23764 * lib/fts.c (fts_build): Typo correction to comment.
23766 2008-02-17 Bruno Haible <bruno@clisp.org>
23768 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
23769 generating no-op conflicts.
23771 2008-02-17 Bruno Haible <bruno@clisp.org>
23774 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
23775 result_entries, rather than an index-based loop.
23777 2008-02-17 Bruno Haible <bruno@clisp.org>
23780 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
23782 (entry_create): New function.
23783 (entry_hashcode): Use the cached hashcode if possible.
23784 (read_changelog_file, try_split_merged_entry): Use entry_create.
23786 2008-02-17 Bruno Haible <bruno@clisp.org>
23788 Speed up from O(n^2) to O(n) for long ChangeLog files.
23789 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
23790 (read_changelog_file): Change implementation of entries_reversed list
23792 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
23794 2008-02-17 Bruno Haible <bruno@clisp.org>
23796 New option --split-merged-entry.
23797 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
23798 (find_paragraph_end, try_split_merged_entry): New functions.
23799 (long_options): Add option --split-merged-entry.
23800 (usage): Document option --split-merged-entry.
23801 (main): Implement option --split-merged-entry.
23802 Reported by Eric Blake.
23804 2008-02-17 Bruno Haible <bruno@clisp.org>
23806 * lib/git-merge-changelog.c: Include c-strstr.h.
23807 (main): Support the "git pull --rebase" situation.
23808 * modules/git-merge-changelog (Depends-on): Add c-strstr.
23809 Reported by Eric Blake.
23811 2008-02-16 Eric Blake <ebb9@byu.net>
23813 Avoid doubling \ in common case of "c-maybe" quoting style.
23814 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
23815 eliding outer quotes.
23816 * lib/quotearg.h: Document this.
23817 * tests/test-quotearg.c (result_strings, inputs, results_g)
23818 (flag_results, locale_results): Test it by adding a new string to
23820 (compare_strings): Test new string.
23822 2008-02-13 Eric Blake <ebb9@byu.net>
23824 Avoid trigraph quoting in default output.
23825 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
23826 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
23827 unless explicitly requested.
23828 * tests/test-quotearg.c (flag_results, main): Add additional tests.
23830 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
23832 Don't rely on signed integer overflowing to negative value.
23833 * lib/getugroups.c (getugroups): Include <limits.h>.
23834 Instead, compare against INT_MAX, and increment only if the test passes.
23836 2008-02-13 Jim Meyering <meyering@redhat.com>
23837 and Eric Blake <ebb9@byu.net>
23839 Avoid shadowing warning and compile errors on Linux.
23840 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
23841 forwarding macros on Linux.
23842 (dcgettext): Define a stub, for Linux.
23843 (results_g, main): Avoid warnings.
23845 2008-02-12 Eric Blake <ebb9@byu.net>
23847 Silence warning in last patch.
23848 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
23850 Quotearg part 4: add tests, fix c-maybe colon quoting.
23851 * lib/quotearg.h: Improve documentation.
23852 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
23853 escapes when adding outer quotes. When quoting trigraphs, use
23854 valid C notation. When quoting NUL, omit extra characters if next
23855 character is not digit. Alter prototype.
23856 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
23858 * modules/quotearg-tests: New module.
23859 * tests/test-quotearg.c: New test.
23861 2008-02-07 Eric Blake <ebb9@byu.net>
23863 Quotearg part 3: add flag to control outer quote elision.
23864 * lib/quotearg.h (c_maybe_quoting_style): New style.
23865 (enum quoting_flags): Better documentation of flags.
23866 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
23868 (quotearg_buffer_restyled): Handle new flag to elide outer
23871 Quotearg part 2: add flag that can control NUL elision.
23872 * lib/quotearg.h (set_quoting_flags): New prototype.
23873 * lib/quotearg.c (struct quoting_options): Add flag field.
23874 (set_quoting_flags): New function.
23875 (quotearg_buffer_restyled): Add flags parameter.
23876 (quotearg_alloc_mem): Set the flag if length cannot be returned.
23877 (quotearg_n_options): Set the flag, since length cannot be
23879 (quoting_options_from_style): Default flags correctly.
23881 Quotearg part 1: more wrappers, restore quotearg_char state.
23882 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
23883 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
23884 (quotearg_colon_mem): New wrappers.
23885 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
23886 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
23888 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
23889 (quotearg_colon_mem): New functions.
23891 2008-02-11 Bruno Haible <bruno@clisp.org>
23893 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
23894 library in the current directory: it does not work with parallel make.
23895 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23897 2008-02-11 Bruno Haible <bruno@clisp.org>
23899 * .gitattributes: New file.
23901 2008-02-11 Jim Meyering <meyering@redhat.com>
23903 useless-if-before-free: Fix reversed exit values.
23904 * build-aux/useless-if-before-free: Use correct values
23905 for EXIT_MATCH and EXIT_NO_MATCH.
23907 * build-aux/useless-if-before-free: Close stdout carefully.
23909 2008-02-10 Bruno Haible <bruno@clisp.org>
23911 New module 'git-merge-changelog'.
23912 * modules/git-merge-changelog: New file.
23913 * lib/git-merge-changelog.c: New file.
23915 2008-02-10 Jim Meyering <meyering@redhat.com>
23917 useless-if-before-free: New option: --list (-l).
23919 useless-if-before-free: Don't exit immediately upon open failure.
23920 * build-aux/useless-if-before-free: Exit 2 for errors.
23921 Upon failure to open a file, don't exit immediately.
23922 Rather, just warn and continue with any remaining files.
23924 2008-02-10 Bruno Haible <bruno@clisp.org>
23926 New abstract list operation 'node_set_value'.
23927 * lib/gl_list.h (gl_list_node_set_value): New function.
23928 (struct gl_list_implementation): New field node_set_value.
23929 * lib/gl_list.c (gl_list_node_set_value): New function.
23930 * lib/gl_array_list.c (gl_array_node_set_value): New function.
23931 (gl_array_list_implementation): Update.
23932 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
23933 (gl_carray_list_implementation): Update.
23934 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
23935 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
23936 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
23937 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
23938 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
23939 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
23940 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
23942 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
23943 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
23944 (gl_sublist_list_implementation): Update.
23946 2008-02-10 Bruno Haible <bruno@clisp.org>
23948 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
23949 Needed when ELEMENT is #defined to 'some_type *'.
23951 2008-02-10 Jim Meyering <meyering@redhat.com>
23953 New script and module: useless-if-before-free
23954 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
23955 * build-aux/useless-if-before-free: New file.
23956 * modules/useless-if-before-free: New file.
23958 * build-aux/gitlog-to-changelog: Use committer date, not author date.
23960 xstrtol_error: Fix typo.
23961 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
23962 s/exit_failure/exit_status/.
23964 2008-02-09 Jim Meyering <meyering@redhat.com>
23966 New script and module: gitlog-to-changelog
23967 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
23968 * modules/gitlog-to-changelog: New file.
23969 * build-aux/gitlog-to-changelog: New file.
23971 2008-02-08 Jim Meyering <meyering@redhat.com>
23973 Avoid two "parameter unused" warnings.
23974 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
23977 Use "git COMMAND", not "git-COMMAND".
23978 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
23979 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
23980 * build-aux/git-version-gen: Use "git status", not "git-status".
23982 2008-02-07 Bruno Haible <bruno@clisp.org>
23984 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
23985 Avoids a crash on Windows Vista.
23986 Reported by Adam Strzelecki <ono@java.pl> via
23987 Simon Josefsson <simon@josefsson.org>.
23989 2008-02-06 Bruno Haible <bruno@clisp.org>
23991 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
23992 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
23993 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
23994 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
23995 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23996 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23997 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
23998 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
23999 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
24000 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24001 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24002 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24003 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24004 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24005 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24006 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
24008 * tests/test-snprintf-posix.h (test_function): Likewise.
24009 * tests/test-sprintf-posix.h (test_function): Likewise.
24010 * tests/test-vasprintf-posix.c (test_function): Likewise.
24011 * doc/posix-functions/fprintf.texi: Update.
24012 * doc/posix-functions/printf.texi: Update.
24013 * doc/posix-functions/snprintf.texi: Update.
24014 * doc/posix-functions/sprintf.texi: Update.
24015 * doc/posix-functions/vfprintf.texi: Update.
24016 * doc/posix-functions/vprintf.texi: Update.
24017 * doc/posix-functions/vsnprintf.texi: Update.
24018 * doc/posix-functions/vsprintf.texi: Update.
24019 Reported by Peter Fales <psfales@alcatel-lucent.com>.
24021 2008-02-06 Bruno Haible <bruno@clisp.org>
24023 Fix bug introduced on 2008-01-26.
24024 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
24026 2008-02-06 Bruno Haible <bruno@clisp.org>
24028 Fix bug introduced on 2007-06-10.
24029 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
24030 !NEED_PRINTF_FLAG_ZERO.
24032 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
24034 getloadavg: use libperfstat on AIX5
24035 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
24037 2008-02-03 Bruno Haible <bruno@clisp.org>
24039 * lib/diffseq.h: Add comments about required #includes.
24040 Reported by Michael Biggs <gnulib@doubleplum.net>.
24042 2008-02-01 Bruno Haible <bruno@clisp.org>
24044 * users.txt: Add gnuit.
24046 2008-01-31 Bruno Haible <bruno@clisp.org>
24048 * lib/md4.c (set_uint32): Mark as inline.
24049 * lib/md5.c (set_uint32): Likewise.
24050 * lib/sha1.c (set_uint32): Likewise.
24051 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
24052 * m4/md5.m4 (gl_MD5): Likewise.
24053 * m4/sha1.m4 (gl_SHA1): Likewise.
24055 2008-01-31 Jim Meyering <meyering@redhat.com>
24057 Use "sizeof VAR", rather than a literal "4".
24058 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
24059 * lib/md4.c (md4_read_ctx): Likewise.
24060 * lib/sha1.c (sha1_read_ctx): Likewise.
24062 2008-01-31 Simon Josefsson <simon@josefsson.org>
24064 * tests/test-sha1.c: New file, based on test-md5.c.
24066 * modules/crypto/sha1-tests: New file.
24068 2008-01-31 Simon Josefsson <simon@josefsson.org>
24070 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
24072 2008-01-31 Jim Meyering <meyering@redhat.com>
24074 Prefer "sizeof v" over the equivalent "4".
24075 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
24076 * lib/md5.c (set_uint32): Likewise.
24077 * lib/sha1.c (set_uint32): Likewise.
24079 2008-01-31 Simon Josefsson <simon@josefsson.org>
24081 * lib/sha1.c (set_uint32): Mark function as static.
24083 2008-01-31 Simon Josefsson <simon@josefsson.org>
24085 md2: clarify comments to say that alignment is not required.
24086 * lib/md2.h: Remove warning about alignment in comment.
24087 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
24088 never been required.
24090 2008-01-31 Simon Josefsson <simon@josefsson.org>
24092 md4: adapt alignment constraint fix from sha1.
24093 * lib/md4.c (set_uint32): New function, from sha1.c
24094 (md4_read_ctx): Use it.
24095 (md4_finish_ctx): Doc fix.
24096 * lib/md4.h: Doc fix.
24098 2008-01-31 Simon Josefsson <simon@josefsson.org>
24100 md5: adapt alignment constraint fix from sha1.
24101 * lib/md5.c (set_uint32): New function, from sha1.c
24102 (md5_read_ctx): Use it.
24103 (md5_finish_ctx): Doc fix.
24104 * lib/md5.h: Doc fix.
24106 2008-01-30 Peter Palfrader <weasel@debian.org>
24108 sha1: remove the result buffer alignment constraint
24109 * lib/sha1.c (set_uint32): New function.
24110 (sha1_read_ctx): Rewrite to remove the result buffer alignment
24112 (sha1_finish_ctx): Remove comment warning about alignment constraint.
24113 * lib/sha1.h: Likewise.
24115 2008-01-30 Andreas Schwab <schwab@suse.de>
24116 Bruno Haible <bruno@clisp.org>
24118 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
24119 correct definition of LDBL_MIN_EXP.
24121 2008-01-30 Karl Berry <karl@gnu.org>
24123 * config/srclist-update: try to preserve x bit on updates.
24124 * config/srclistvars.sh: update for karl.
24126 2008-01-29 Jim Meyering <meyering@redhat.com>
24128 vasnprintf.c: Avoid warning about unused label
24129 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
24130 "overflow" label definition and associated code with the
24131 same cpp condition that guards the sole use of that label.
24133 2008-01-26 Bruno Haible <bruno@clisp.org>
24135 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
24136 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
24137 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
24138 * lib/isnanl-nolibm.h (isnanl): Likewise.
24139 Reported by Paul Eggert <eggert@cs.ucla.edu>.
24141 2008-01-26 Bruno Haible <bruno@clisp.org>
24143 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
24144 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
24146 2008-01-26 Bruno Haible <bruno@clisp.org>
24148 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
24149 GCC >= 4.0 built-in.
24150 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
24152 2008-01-26 Bruno Haible <bruno@clisp.org>
24154 Rename isnan, applicable to 'double' only, to isnand.
24155 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
24156 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
24157 (configure.ac): Update.
24158 (Include): Replace "isnan.h" with "isnand.h".
24159 * m4/isnand.m4: Renamed from m4/isnan.m4.
24160 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
24161 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
24162 instead of isnan.c.
24163 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
24164 instead of HAVE_ISNAN_IN_LIBC.
24165 (isnand): Renamed from isnan.
24166 * lib/isnand.c: New file.
24167 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
24168 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
24169 (Makefile.am): Update.
24170 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
24171 Include isnand.h instead of isnan.h.
24172 (main): Test isnand instead of isnan.
24173 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
24175 * modules/frexp (Depends-on): Likewise.
24176 * modules/frexp-tests (Depends-on): Likewise.
24177 * modules/frexp-nolibm (Depends-on): Likewise.
24178 * modules/frexp-nolibm-tests (Depends-on): Likewise.
24179 * modules/isfinite (Depends-on): Likewise.
24180 * modules/round-tests (Depends-on): Likewise.
24181 * modules/signbit (Depends-on): Likewise.
24182 * modules/signbit-tests (Depends-on): Likewise.
24183 * modules/snprintf-posix (Depends-on): Likewise.
24184 * modules/sprintf-posix (Depends-on): Likewise.
24185 * modules/trunc-tests (Depends-on): Likewise.
24186 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24187 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24188 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24189 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24190 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24191 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24192 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24193 * modules/vasnprintf-posix (Depends-on): Likewise.
24194 * modules/vasprintf-posix (Depends-on): Likewise.
24195 * modules/vfprintf-posix (Depends-on): Likewise.
24196 * modules/vsnprintf-posix (Depends-on): Likewise.
24197 * modules/vsprintf-posix (Depends-on): Likewise.
24198 * lib/frexp.c: Include isnand.h instead of isnan.h.
24199 (ISNAN): Set to isnand instead of isnan.
24200 * lib/isfinite.c: Include isnand.h instead of isnan.h.
24201 (gl_isfinited): Use isnand instead of isnan.
24202 * lib/signbitd.c: Include isnand.h instead of isnan.h.
24203 (gl_signbitd): Use isnand instead of isnan.
24204 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
24205 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
24206 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
24207 (main): Use isnand instead of isnan.
24208 * tests/test-round1.c: Include isnand.h.
24209 (main): Use isnand instead of isnan.
24210 * tests/test-round2.c: Include isnand.h instead of isnan.h.
24211 (ISNAN): Set to isnand instead of isnan.
24212 * tests/test-trunc1.c: Include isnand.h.
24213 (main): Use isnand instead of isnan.
24214 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
24215 (equal): Use isnand instead of isnan.
24216 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
24218 * NEWS: Mention the change.
24220 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
24221 Bruno Haible <bruno@clisp.org>
24223 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
24224 the GCC builtins for signbits are present and set
24225 REPLACE_SIGNBIT_USING_GCC if so.
24226 * lib/math.in.h (signbit): Define using GCC builtins if
24227 REPLACE_SIGNBIT_USING_GCC is set.
24228 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
24229 REPLACE_SIGNBIT_USING_GCC.
24230 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
24232 2008-01-25 Jim Meyering <meyering@redhat.com>
24234 Prefer <config.h> over "config.h". See autoconf doc for explanation.
24235 * lib/poll.c: Include <config.h>, not "config.h".
24236 * tests/test-getaddrinfo.c: Likewise.
24238 2008-01-25 Simon Josefsson <simon@josefsson.org>
24240 * modules/sockets-tests: New file.
24242 2008-01-24 Simon Josefsson <simon@josefsson.org>
24244 * modules/sockets: New module, can be used to call WSA_Startup and
24245 WSA_Cleanup when needed.
24247 * lib/sockets.h, lib/sockets.c: New files.
24249 * m4/sockets.m4: New file.
24251 * tests/test-sockets.c: New file.
24253 2008-01-19 Bruno Haible <bruno@clisp.org>
24255 * doc/posix-headers: Renamed from doc/headers.
24256 * doc/posix-functions: Renamed from doc/functions.
24257 * doc/gnulib.texi: Update.
24259 2008-01-19 Bruno Haible <bruno@clisp.org>
24261 * doc/glibc-functions/strcasestr.texi: Include contents of
24262 doc/functions/strcasestr.texi, fixing the list of platforms.
24263 * doc/functions/strcasestr.texi: Remove file.
24265 2008-01-19 Bruno Haible <bruno@clisp.org>
24267 * doc/glibc-functions/memmem.texi: Include contents of
24268 doc/functions/memmem.texi.
24269 * doc/functions/memmem.texi: Remove file.
24271 2008-01-18 Bruno Haible <bruno@clisp.org>
24273 * doc/glibc-functions/*.texi: New files.
24274 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
24275 to use the new files.
24277 2008-01-17 Bruno Haible <bruno@clisp.org>
24279 * tests/test-gethostname.c (main): Fix printf statement.
24281 2008-01-17 Simon Josefsson <simon@josefsson.org>
24283 * modules/gethostname-tests: New file.
24285 * tests/test-gethostname.c: New file.
24287 2008-01-17 Simon Josefsson <simon@josefsson.org>
24289 * lib/gethostname.c: Include string.h unconditionally, strncpy is
24290 used by the UNAME case. Reported by Bruno Haible
24293 2008-01-17 Eric Blake <ebb9@byu.net>
24295 Convert c-strcasestr to be more efficient.
24296 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
24297 (Depends-on): Add c-strcase, remove malloca, strnlen.
24298 * tests/test-c-strcasestr.c (main): Enhance test.
24299 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
24301 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
24303 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
24304 Use it in creating po/Makevars.
24306 2008-01-15 Simon Josefsson <simon@josefsson.org>
24308 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
24309 Applications that requires it should initialize libgcrypt
24312 2008-01-16 Simon Josefsson <simon@josefsson.org>
24314 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
24316 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
24318 Fix problem with getdate on mingw32 reported by Simon Josefsson
24319 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
24320 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
24321 tzname", when deciding whether to declare tzname.
24322 * lib/strftime.c (tzname): Likewise.
24324 2008-01-15 Bruno Haible <bruno@clisp.org>
24326 Work around a MacOS X 10.5 bug in frexpl().
24327 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
24328 * doc/functions/frexpl.texi: Document the bug.
24329 Reported by Elias Pipping <pipping@gentoo.org>.
24331 2008-01-14 Eric Blake <ebb9@byu.net>
24333 Touch up previous patch.
24334 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
24335 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
24337 Convert strcasestr module to use Two-Way algorithm.
24338 * modules/strcasestr-simple: New module, based on the old
24339 strcasestr, but with Two-Way rather than KMP.
24340 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
24341 * lib/string.in.h (rpl_strcasestr): Declare.
24342 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
24344 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
24345 * modules/string (Makefile.am): Support strcasestr.
24346 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
24347 * modules/strcasestr-tests (Depends-on): Check for alarm.
24348 * tests/test-strcasestr.c: Augment test.
24349 * lib/str-two-way.h: Clean up stray macro.
24350 * NEWS: Document new module.
24351 * MODULES.html.sh (string handling): Likewise.
24352 * doc/functions/strcasestr.texi: New file.
24353 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
24354 here, since it is not a POSIX function.
24356 2008-01-14 Colin Watson <cjwatson@debian.org>
24357 Bruno Haible <bruno@clisp.org>
24359 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
24360 works fine; if not, set REPLACE_STRSIGNAL.
24361 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
24362 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24364 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
24365 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
24366 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
24368 2008-01-14 Bruno Haible <bruno@clisp.org>
24370 * modules/strsignal (Include): Change to <string.h>.
24372 2008-01-14 Colin Watson <cjwatson@debian.org>
24374 * modules/argp (Notice): Add a notice recommending to change
24376 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
24378 2008-01-13 Colin Watson <cjwatson@debian.org>
24380 * modules/strsignal-tests: New file.
24381 * tests/test-strsignal.c: New file.
24383 * lib/strsignal.c: New file, from glibc with modifications.
24384 * lib/siglist.h: New file, from glibc with modifications.
24385 * lib/string.in.h (strsignal): New declaration.
24386 * m4/strsignal.m4: New file.
24387 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24388 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
24389 * modules/strsignal: New file.
24390 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
24391 HAVE_DECL_STRSIGNAL.
24393 2008-01-13 Bruno Haible <bruno@clisp.org>
24395 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
24396 locale encoding is not ASCII. Needed for OpenBSD 4.0.
24397 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
24398 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24400 2008-01-13 Bruno Haible <bruno@clisp.org>
24402 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
24403 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
24404 * lib/argp.h (__attribute__): Likewise.
24405 * lib/c-stack.c (__attribute__): Likewise.
24406 * lib/error.h (__attribute__): Likewise.
24407 * lib/fts.c (__attribute__): Likewise.
24408 * lib/openat.h (__attribute__): Likewise.
24409 * lib/stdio.in.h (__attribute__): Likewise.
24410 * lib/string.in.h (__attribute__): Likewise.
24411 * lib/utimens.c (__attribute__): Likewise.
24412 * lib/vasnprintf.h (__attribute__): Likewise.
24413 * lib/xalloc.h (__attribute__): Likewise.
24414 * lib/xprintf.h (__attribute__): Likewise.
24415 * lib/xstrtol.h (__attribute__): Likewise.
24416 * lib/xvasprintf.h (__attribute__): Likewise.
24418 2008-01-12 Bruno Haible <bruno@clisp.org>
24420 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
24421 * doc/glibc-headers/a.out.texi: New file.
24422 * doc/glibc-headers/aliases.texi: New file.
24423 * doc/glibc-headers/alloca.texi: New file.
24424 * doc/glibc-headers/ar.texi: New file.
24425 * doc/glibc-headers/argp.texi: New file.
24426 * doc/glibc-headers/argz.texi: New file.
24427 * doc/glibc-headers/byteswap.texi: New file.
24428 * doc/glibc-headers/crypt.texi: New file.
24429 * doc/glibc-headers/endian.texi: New file.
24430 * doc/glibc-headers/envz.texi: New file.
24431 * doc/glibc-headers/err.texi: New file.
24432 * doc/glibc-headers/error.texi: New file.
24433 * doc/glibc-headers/execinfo.texi: New file.
24434 * doc/glibc-headers/fpu_control.texi: New file.
24435 * doc/glibc-headers/fstab.texi: New file.
24436 * doc/glibc-headers/fts.texi: New file.
24437 * doc/glibc-headers/getopt.texi: New file.
24438 * doc/glibc-headers/ieee754.texi: New file.
24439 * doc/glibc-headers/ifaddrs.texi: New file.
24440 * doc/glibc-headers/libintl.texi: New file.
24441 * doc/glibc-headers/mcheck.texi: New file.
24442 * doc/glibc-headers/mntent.texi: New file.
24443 * doc/glibc-headers/obstack.texi: New file.
24444 * doc/glibc-headers/paths.texi: New file.
24445 * doc/glibc-headers/printf.texi: New file.
24446 * doc/glibc-headers/pty.texi: New file.
24447 * doc/glibc-headers/resolv.texi: New file.
24448 * doc/glibc-headers/shadow.texi: New file.
24449 * doc/glibc-headers/sysexits.texi: New file.
24450 * doc/glibc-headers/ttyent.texi: New file.
24452 2008-01-12 Jim Meyering <meyering@redhat.com>
24454 announce-gen: emit Gnulib's git-based version string.
24455 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
24456 New option --gnulib-version=V, where V is expected to be
24457 the output of running git describe in the gnulib directory.
24458 (get_tool_versions): Request feedback on xdelta. I suspect it's
24459 not useful, and plan to stop publishing an xdelta file with each
24462 * build-aux/announce-gen: Also check for lzma-compressed files.
24464 2008-01-11 Bruno Haible <bruno@clisp.org>
24466 * tests/test-memmem.c (main): Increase maximum allowed time.
24467 * tests/test-strstr.c (main): Likewise.
24469 2008-01-11 Bruno Haible <bruno@clisp.org>
24471 * doc/functions/memmem.texi: Add more precisions about platforms.
24472 * doc/functions/strstr.texi: Likewise.
24474 2008-01-10 Eric Blake <ebb9@byu.net>
24476 * m4/strstr.m4: Delete cruft from copy-n-paste.
24477 Reported by Bruno Haible.
24479 2008-01-10 Bruno Haible <bruno@clisp.org>
24481 Make c-strstr rely on strstr.
24482 * lib/c-strstr.c: Don't include str-kmp.h.
24483 (c_strstr): Define in terms of strstr.
24484 * modules/c-strstr (Files): Remove lib/str-kmp.h.
24485 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
24487 2008-01-10 Bruno Haible <bruno@clisp.org>
24489 * doc/gnulib.texi (String Functions in C Locale): New section.
24490 * doc/c-ctype.texi: New file.
24491 * doc/c-strcase.texi: New file.
24492 * doc/c-strcaseeq.texi: New file.
24493 * doc/c-strcasestr.texi: New file.
24494 * doc/c-strstr.texi: New file.
24495 * doc/c-strtod.texi: New file.
24496 * doc/c-strtold.texi: New file.
24498 2008-01-10 Eric Blake <ebb9@byu.net>
24500 * lib/relocatable.h: Fix a comment.
24502 2008-01-10 Eric Blake <ebb9@byu.net>
24504 Share two-way algorithm.
24505 * lib/str-two-way.h: New file, merged from...
24506 * lib/memmem.c: ...here...
24507 * lib/strstr.c: ...and here.
24508 * modules/memmem (Files): Use it.
24509 * modules/strstr (Files): Likewise.
24511 Avoid quadratic strstr implementations.
24512 * lib/strstr.c: New file.
24513 * m4/strstr.m4: Likewise.
24514 * modules/strstr: Likewise.
24515 * modules/strstr-tests: Likewise.
24516 * tests/test-strstr.c: Likewise.
24517 * lib/string.in.h (rpl_strstr): Declare.
24518 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
24519 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
24520 * modules/string (Makefile.am): Likewise.
24521 * MODULES.html.sh (string handling): Mention new module.
24522 * doc/functions/strstr.texi (strstr): Document the bug.
24524 2008-01-10 Bruno Haible <bruno@clisp.org>
24526 * lib/relocatable.h (relocate): State whether result is freshly
24528 * lib/relocatable.c (relocate): Return a freshly allocated string
24529 instead of a pointer to a privately held string.
24530 Reported by Sylvain Beucler <beuc@gnu.org>.
24532 2008-01-10 Colin Watson <cjwatson@debian.org>
24534 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
24535 s/S_ISNLK/S_ISLNK/.
24537 2008-01-09 Bruno Haible <bruno@clisp.org>
24539 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
24541 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
24542 if it's only a guess.
24543 * modules/memmem: Simplify by depending on memmem-simple.
24545 2008-01-09 Bruno Haible <bruno@clisp.org>
24547 Work around OpenBSD 4.0 tdelete() bug.
24548 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
24549 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
24550 macros and don't redefine the enum values.
24551 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
24552 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
24553 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
24555 2008-01-09 Bruno Haible <bruno@clisp.org>
24557 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
24558 (main): Don't perform the tests if setlocale did not install a UTF-8
24559 locale. Needed on OpenBSD 4.0.
24560 * modules/wcwidth-tests (Depends-on): Add localcharset.
24562 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
24564 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
24565 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
24566 * NEWS: announce this.
24567 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
24569 2008-01-09 Simon Josefsson <simon@josefsson.org>
24570 and Eric Blake <ebb9@byu.net>
24572 Add memmem-simple module.
24573 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
24574 (gl_FUNC_MEMMEM): Separate performance from presence checks.
24575 * modules/memmem-simple: New file.
24576 * modules/memmem (Description): Tweak.
24577 * MODULES.html.sh (string handling): Mention new module.
24578 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
24579 addressed by memmem-simple.
24580 * NEWS: Document the difference.
24582 2008-01-09 Eric Blake <ebb9@byu.net>
24584 Give gcc some memmem optimization hints.
24585 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
24586 (strcasestr): Declare as pure.
24587 * modules/memmem (Maintainer): Claim my implementation.
24589 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24591 Support AIX 6.1 and higher.
24592 * build-aux/config.libpath: Likewise.
24593 * build-aux/config.rpath: Likewise.
24595 2008-01-08 Jim Meyering <meyering@redhat.com>
24596 Bruno Haible <bruno@clisp.org>
24598 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
24599 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
24600 Reported by Peter Fales in
24601 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
24603 2008-01-08 Bruno Haible <bruno@clisp.org>
24605 * modules/unictype/category-of (Depends-on): Add
24606 unictype/category-none.
24607 * modules/unictype/category-and-tests (Depends-on): Add
24608 unictype/category-{L,N,Lu,Nd}.
24609 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
24610 * modules/unictype/category-or-tests (Depends-on): Add
24611 unictype/category-{L,N}.
24612 * modules/unictype/category-name-tests (Depends-on): Add
24613 unictype/category-{Z,Nl}.
24614 Reported by Simon Josefsson.
24616 2008-01-08 Bruno Haible <bruno@clisp.org>
24618 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
24620 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
24621 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
24622 Reported by Peter Miller <millerp@canb.auug.org.au>.
24624 2008-01-08 Eric Blake <ebb9@byu.net>
24626 Rewrite memmem to guarantee linear complexity without malloc.
24627 * lib/memmem.c (memmem): Use Two-Way rather than
24628 Knuth-Morris-Pratt, to allow O(1) space usage.
24629 (critical_factorization, two_way_short_needle)
24630 (two_way_long_needle): New functions.
24631 (knuth_morris_pratt): Delete.
24632 * modules/memmem (Depends-on): No longer need malloca or stdbool.
24634 * tests/test-memmem.c (main): Add tests for periodic needle and
24635 sublinear performance.
24636 * doc/functions/memmem.texi (memmem): Document other deficiencies
24637 in cygwin and older glibc.
24639 2008-01-08 Bruno Haible <bruno@clisp.org>
24641 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
24644 2008-01-08 Mike Frysinger <vapier@gentoo.org>
24646 Add a configure time option: --disable-acl.
24647 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
24648 AC_ARG_ENABLE(acl).
24650 2008-01-06 Simon Josefsson <simon@josefsson.org>
24652 * tests/test-localename.c: Don't include obsolete "setenv.h".
24654 * modules/localename-tests (Depends-on): Need unsetenv.
24656 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24658 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
24660 2008-01-06 Colin Watson <cjwatson@debian.org>
24662 * users.txt: Add man-db.
24664 2008-01-07 Bruno Haible <bruno@clisp.org>
24666 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
24667 previous section name.
24669 2008-01-07 Bruno Haible <bruno@clisp.org>
24671 * lib/progname.c (set_program_name): Don't strip off a leading
24672 "lt-" prefix outside a .libs directory.
24673 Suggested by Paul Eggert.
24675 2008-01-01 Sylvain Beucler <beuc@gnu.org>
24676 Bruno Haible <bruno@clisp.org>
24678 Improve memory cleanup in 'relocatable' module.
24679 * lib/relocatable.h (compute_curr_prefix): Change return type to
24681 * lib/relocatable.c (compute_curr_prefix): Change return type to
24682 'char *'. Free curr_installdir after use.
24683 (relocate): Free curr_prefix_better after use.
24684 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
24686 2008-01-01 Bruno Haible <bruno@clisp.org>
24688 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
24689 failure on older glibc systems.
24690 Reported by Peter Fales <psfales@alcatel-lucent.com>.
24692 2008-01-05 Eric Blake <ebb9@byu.net>
24694 Avoid quadratic system memmem.
24695 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
24696 Reported by Ralf Wildenhues.
24698 Fix memmem test for mingw.
24699 * modules/memmem-tests (configure.ac): Check for alarm.
24700 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
24702 * doc/functions/memmem.texi: New file.
24703 * doc/gnulib.texi (Function Substitutes): Add memmem.
24704 Reported by Bruno Haible.
24706 2008-01-04 Bruno Haible <bruno@clisp.org>
24708 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
24709 Require gl_HEADER_STRINGS_H_DEFAULTS, not
24710 gl_HEADER_STRING_H_DEFAULTS.
24712 2008-01-04 Eric Blake <ebb9@byu.net>
24714 Shorten duration of memmem test.
24715 * tests/test-memmem.c (main): Use alarm to declare failure if test
24716 is taking too long.
24717 Reported by Ralf Wildenhues.
24719 2007-12-21 Simon Josefsson <simon@josefsson.org>
24721 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
24722 string, needed by strerror.
24724 2008-01-03 Colin Watson <cjwatson@debian.org>
24725 Bruno Haible <bruno@clisp.org>
24727 * doc/gnulib-tool.texi (Localization): New section.
24729 2008-01-02 Bruno Haible <bruno@clisp.org>
24731 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
24732 variables to 'unsigned char *' type.
24733 Reported by Paul Eggert.
24735 2008-01-02 Jim Meyering <jim@meyering.net>
24737 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
24739 2007-12-31 Jim Meyering <jim@meyering.net>
24741 Avoid use of private FTS type name.
24742 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
24744 2007-12-30 Karl Berry <karl@gnu.org>
24746 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
24747 work around defect in Texinfo and/or the standalone Info browser.
24749 2007-12-30 Bruno Haible <bruno@clisp.org>
24751 Unify 5 copies of the KMP code.
24752 * lib/str-kmp.h: New file.
24753 * lib/c-strcasestr.c: Include str-kmp.h.
24754 (knuth_morris_pratt): Remove function.
24755 (c_strcasestr): Update.
24756 * lib/c-strstr.c: Include str-kmp.h.
24757 (knuth_morris_pratt): Remove function.
24758 (c_strcasestr): Update.
24759 * lib/mbscasestr.c: Include str-kmp.h.
24760 (knuth_morris_pratt_unibyte): Remove function.
24761 * lib/mbsstr.c: Include str-kmp.h.
24762 (knuth_morris_pratt_unibyte): Remove function.
24763 * lib/strcasestr.c: Include str-kmp.h.
24764 (knuth_morris_pratt): Remove function.
24765 (strcasestr): Update.
24766 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
24767 * modules/c-strstr (Files): Likewise.
24768 * modules/mbscasestr (Files): Likewise.
24769 * modules/mbsstr (Files): Likewise.
24770 * modules/strcasestr (Files): Likewise.
24771 Suggested by Paul Eggert.
24773 2007-12-30 Bruno Haible <bruno@clisp.org>
24775 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
24778 2007-12-30 Bruno Haible <bruno@clisp.org>
24780 * lib/xmalloca.h: Include xalloc.h.
24781 (xnmalloca): New macro.
24783 2007-12-30 Bruno Haible <bruno@clisp.org>
24785 * lib/malloca.h (nmalloca): New macro.
24786 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
24787 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
24788 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
24789 knuth_morris_pratt_multibyte): Likewise.
24790 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
24791 knuth_morris_pratt_multibyte): Likewise.
24792 * lib/memmem.c (knuth_morris_pratt): Likewise.
24793 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
24795 2007-12-25 Bruno Haible <bruno@clisp.org>
24797 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
24798 * lib/glob.c: Don't include openat.h.
24799 (link_exists2_p): Add back the code that deals with the
24800 !GLOB_ALTDIRFUNC case.
24801 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
24802 let it do the filename concatenation.
24803 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
24804 * modules/glob (Depends-on): Remove openat.
24806 2007-12-31 Bruno Haible <bruno@clisp.org>
24808 * modules/dirfd (License): Change to LGPLv2+.
24809 Approved by Jim Meyering.
24811 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
24813 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
24814 when multiplying M by sizeof (size_t).
24816 2007-12-10 Martin Lambers <marlam@marlam.de>
24818 Override getpagesize on mingw.
24819 * lib/getpagesize.c: New file.
24820 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
24821 * modules/getpagesize (Files): Add lib/getpagesize.c.
24822 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
24823 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24824 REPLACE_GETPAGESIZE.
24825 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
24827 2007-12-25 Bruno Haible <bruno@clisp.org>
24829 * modules/localcharset (Notice): New field.
24830 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
24831 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
24833 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
24834 Bruno Haible <bruno@clisp.org>
24836 Avoid using the syntax symbol() in formatted documentation.
24837 * MODULES.html.sh (func_module): When replacing symbol() with a
24838 hyperlink, remove the parentheses. Show an error if some remain.
24839 Recognize and render the '...' syntax.
24840 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
24841 Rework. Add paragraph about GCC's inlining.
24842 * doc/alloca.texi: Likewise.
24843 * doc/error.texi: Remove parentheses from symbol reference.
24844 * doc/gnulib-intro.texi: Likewise.
24845 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
24846 * modules/fnmatch (Description): Reword to say "the ... function".
24847 * modules/full-read (Description): Likewise.
24848 * modules/full-write (Description): Likewise.
24849 * modules/safe-read (Description): Likewise.
24850 * modules/safe-write (Description): Likewise.
24851 * modules/strchrnul (Description): Likewise.
24852 * modules/trim (Description): Likewise.
24853 * modules/error (Description): Remove parentheses from symbol
24855 * modules/verror (Description): Likewise.
24856 Reported by Karl Berry.
24858 2007-12-25 Bruno Haible <bruno@clisp.org>
24860 Fixup after 2007-10-16 commit.
24861 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
24863 2007-12-24 Bruno Haible <bruno@clisp.org>
24865 Make --enable-relocatable work with DESTDIR.
24866 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
24867 to compute installdir from destprog.
24868 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
24869 also set the RELOC_DESTDIR variable.
24870 Reported by Левашев Иван <octagram@bluebottle.com>.
24872 2007-12-24 Bruno Haible <bruno@clisp.org>
24874 Fix link error due to xalloc_die().
24875 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
24877 * lib/relocwrapper.c: Update comments.
24878 * build-aux/install-reloc: Remove xreadlink.c from file list.
24879 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
24881 Reported by Левашев Иван <octagram@bluebottle.com>.
24883 2007-12-24 Bruno Haible <bruno@clisp.org>
24885 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
24886 * lib/setenv.h: Remove file.
24887 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
24889 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
24890 (Depends-on): Add stdlib.
24891 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
24893 (Include): Replace setenv.h with <stdlib.h>.
24894 * modules/unsetenv: New file.
24895 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
24896 * lib/unsetenv.c: Include <stdlib.h> first.
24897 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
24898 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
24899 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
24900 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
24901 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
24902 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
24903 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
24904 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
24905 * doc/functions/unsetenv.texi: Update.
24906 * modules/xsetenv (Depends-on): Add unsetenv.
24907 * modules/getdate (Depends-on): Likewise.
24908 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
24909 * lib/xsetenv.c: Don't include setenv.h.
24910 * lib/getdate.y: Likewise.
24911 * lib/relocwrapper.c: Likewise.
24912 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
24913 (Depends-on): Add stdlib.
24914 * NEWS: Mention the changes.
24915 Reported by Левашев Иван <octagram@bluebottle.com>.
24917 2007-12-23 Bruno Haible <bruno@clisp.org>
24919 * lib/memmem.c (memmem): Use lowercase variable names. Tab
24922 2007-12-23 Bruno Haible <bruno@clisp.org>
24924 * lib/c-strcasestr.c: Add more comments.
24925 * lib/c-strstr.c: Likewise.
24926 * lib/mbscasestr.c: Likewise.
24927 * lib/mbsstr.c: Likewise.
24928 * lib/strcasestr.c: Likewise.
24929 * lib/memmem.c: Likewise.
24931 2007-12-23 Bruno Haible <bruno@clisp.org>
24933 * tests/test-memmem.c: Include <string.h> first.
24935 2007-12-22 Bruno Haible <bruno@clisp.org>
24937 * gnulib-tool (func_create_testdir): Change $auxdir while generating
24938 the contents of $testsbase.
24939 Reported by Ralf Wildenhues.
24941 2007-12-22 Bruno Haible <bruno@clisp.org>
24943 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
24944 two variables local_ldadd_before, local_ldadd_last.
24946 2007-12-20 Eric Blake <ebb9@byu.net>
24948 Work around circular library issue when cross-compiling.
24949 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
24950 that progname.o does not need to pull in rpl_memcmp.
24952 2007-12-19 Eric Blake <ebb9@byu.net>
24954 Fix memmem to avoid O(n^2) worst-case complexity.
24955 * lib/memmem.c (knuth_morris_pratt): New function.
24956 (memmem): Use it if first few naive iterations fail.
24957 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
24958 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
24959 * modules/memchr (License): Likewise.
24960 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
24962 * tests/test-memmem.c: Rewrite, borrowing ideas from
24963 test-mbsstr1.c; the old version wouldn't even compile!
24964 * modules/memmem-tests: New file.
24965 * lib/string.in.h (rpl_memmem): Add declaration.
24966 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
24967 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
24970 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
24972 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
24973 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
24974 before any system include files, and undef after them all. This
24975 should fix a problem on VMS reported by John E. Malmberg in
24976 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
24978 2007-12-17 Eric Blake <ebb9@byu.net>
24980 Revert addition of verify, for BSD/OS.
24981 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
24982 can't handle large files, for the sake of obsolete platforms.
24983 * modules/fseeko (Depends-on): Remove verify.
24984 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
24985 * doc/functions/ftello.texi (ftello): Likewise.
24986 * doc/functions/fgetpos.texi (fgetpos): Likewise.
24987 Reported by Larry Jones.
24989 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
24991 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
24992 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
24994 2007-12-17 Jim Meyering <meyering@redhat.com>
24996 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
24997 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
24998 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
24999 * modules/getcwd (Depends-on): Add openat.
25000 Reported by Petr Salinger.
25002 2007-12-17 Bruno Haible <bruno@clisp.org>
25004 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
25005 avoid a segmentation fault of the configure test on x86_64 systems.
25007 2007-12-15 Jim Meyering <meyering@redhat.com>
25009 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
25011 2007-12-13 Eric Blake <ebb9@byu.net>
25013 Another fseek test.
25014 * tests/test-fseek.c (main): Also test ungetc handling.
25015 * tests/test-fseeko.c (main): Likewise.
25016 * modules/fseeko (Depends-on): Add verify.
25017 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
25019 Reported by Larry Jones.
25021 Fix fseeko on mingw.
25022 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
25025 Beef up fseek tests.
25026 * tests/test-fseek.c (main): Also test eof handling.
25027 * tests/test-fseeko.c (main): Likewise.
25028 Reported by Larry Jones.
25030 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
25032 Fix fseeko on BSD-based platforms.
25033 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
25036 2007-12-12 Eric Blake <ebb9@byu.net>
25038 Allow circular dependency of separate libtests.a
25039 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
25042 2007-12-11 Eric Blake <ebb9@byu.net>
25044 Fix bug with -0.0L in previous patch.
25045 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
25046 * tests/test-isnan.c (main): Also test on zeroes.
25047 * tests/test-isnanf.c (main): Likewise.
25048 * tests/test-isnanl.h (main): Likewise.
25050 Detect pseudo-denormals on x86 even when cross-compiling.
25051 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
25052 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
25053 invalid bit patterns that happen to satisfy ==.
25055 Avoid link failures with separate libtests.a.
25056 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
25057 last, to satisfy circular dependencies.
25059 2007-12-11 Eric Blake <ebb9@byu.net>
25060 and Bruno Haible <bruno@clisp.org>
25062 Fix OpenBSD 4.0 <float.h> handling of long double.
25063 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
25064 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
25065 * doc/headers/float.texi (float.h): Document OpenBSD bug.
25067 2007-12-11 Jim Meyering <meyering@redhat.com>
25069 * users.txt: Add libvirt.
25071 Support versions of autoconf prior to 2.59c.
25072 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
25073 if it is not already defined.
25075 2007-12-09 Bruno Haible <bruno@clisp.org>
25077 Let 'gnulib-tool --import' collect sources needed for the tests in
25078 tests/ rather than in lib/.
25079 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
25080 argument. If true, add rules to generate libtests.a, and put libtests.a
25081 into $(LDADD). Consider source files in subdirectories and set
25083 (func_emit_initmacro_start, func_emit_initmacro_end,
25084 func_emit_initmacro_done): Pass all arguments explicitly.
25085 (func_import): Determine two module lists main_modules,
25086 testsrelated_modules. Determine use_libtests. Determine two variables
25087 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
25088 instead of just sed_transform_lib_file. Determine two variables
25089 main_files and testsrelated_files. Compute 'files' as the union of
25090 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
25091 func_add_or_update. In the generated gnulib-comp.m4, collect the
25092 object files for tests/ in different variables than those for lib/.
25093 Substitute LIBTESTS_LIBDEPS.
25094 (func_create_testdir): Combine the uses_subdirs results from
25095 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
25097 2007-12-09 Bruno Haible <bruno@clisp.org>
25099 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
25100 the build-aux directory.
25102 2007-12-09 Bruno Haible <bruno@clisp.org>
25104 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
25105 introduced on 2006-09-09.
25107 2007-12-07 Jim Meyering <meyering@redhat.com>
25109 Let these macros work also with autoconf-2.59.
25110 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
25111 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
25112 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25114 2007-12-06 Jim Meyering <meyering@redhat.com>
25116 Avoid a configure-time syntax error in gl_FUNC_ACL.
25117 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
25118 function in each branch, before testing the cache variable.
25120 2007-12-04 Eric Blake <ebb9@byu.net>
25122 Make scripts executable.
25123 * build-aux/config.guess: Add execute permissions.
25124 * build-aux/config.sub: Likewise.
25125 * build-aux/gendocs.sh: Likewise.
25127 Fix frexp on mingw.
25128 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
25130 * doc/functions/frexp.texi (frexp): Document the bug.
25132 Make cygwin fseeko check more reliable.
25133 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
25134 version numbers, rather than unrelated feature check.
25135 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
25136 * doc/functions/ftello.texi (ftello): Likewise.
25137 Reported by Bruno Haible.
25139 * m4/strerror.m4: Bump version number.
25141 2007-12-03 Bruno Haible <bruno@clisp.org>
25143 * doc/functions/mprotect.texi: Mention the mingw problem.
25145 2007-12-03 Eric Blake <ebb9@byu.net>
25147 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
25148 REPLACE_STRERROR is initialized before this macro.
25150 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
25152 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
25153 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
25154 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
25155 put -lsec in even for programs other than 'ls'. This fixes a problem
25156 for gettext reported by Bruno Haible in
25157 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
25158 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
25159 Add support for Solaris 10. This isn't efficient, but should get the
25162 2007-12-03 James Youngman <jay@gnu.org>
25164 * doc/regexprops-generic.texi: change "an close-group" to "a
25165 close-group" and "illegal" to "not allowed".
25167 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25169 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
25170 pr_byname.h. Needed for the rare case when the maintainer has done
25171 "make maintainer-clean" in the source directory and then attempts a
25172 build outside the source directory.
25173 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
25176 2007-12-02 Martin Lambers <marlam@marlam.de>
25177 Bruno Haible <bruno@clisp.org>
25179 * lib/getpagesize.h: Remove file.
25180 * lib/unistd.in.h: Include declaration of getpagesize here.
25181 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
25182 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
25184 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
25185 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
25186 * modules/getpagesize (Files): Remove lib/getpagesize.h.
25187 (Depends-on): Add unistd.
25188 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25189 (Include): Use <unistd.h> instead of getpagesize.h.
25190 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
25191 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
25192 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
25193 gl_GETPAGESIZE invocation, already handled by module dependency.
25194 * lib/pagealign_alloc.c: Don't include getpagesize.h.
25196 2007-12-02 Bruno Haible <bruno@clisp.org>
25198 * modules/strings-tests: New file.
25199 * tests/test-strings.c: New file.
25201 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
25202 * lib/strings.in.h: New file.
25203 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
25204 * m4/strings_h.m4: New file.
25205 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
25206 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
25207 * modules/strings: New file.
25208 * modules/string (Makefile.am): Update.
25209 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
25210 Reported by Karl Berry.
25212 2007-12-01 Eric Blake <ebb9@byu.net>
25214 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
25215 accomodate fix in cygwin 1.5.25.
25217 2007-12-01 Jim Meyering <meyering@redhat.com>
25219 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
25220 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
25221 that would inhibit utf8-optimization of a regexp containing line-
25222 or buffer-anchors, e.g., `^', `$'.
25224 2007-11-30 Bruno Haible <bruno@clisp.org>
25226 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
25227 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
25228 glthread_recursive_lock_init.
25229 * lib/lock.c (glthread_recursive_lock_init)
25230 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
25231 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25233 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
25235 New function qset_acl, like set_acl but with syscall semantics.
25236 * lib/acl.h (qset_acl): New decl.
25237 * lib/acl.c (qset_acl): New function.
25238 (set_acl): Use new function. Use more-consistent diagnostics.
25240 2007-11-28 Jim Meyering <meyering@redhat.com>
25242 * modules/physmem (License): Change from GPL to LGPLv2+.
25244 2007-11-26 Bruno Haible <bruno@clisp.org>
25246 * lib/vasnprintf.c (decode_long_double): Don't abort if the
25247 'long double' type has excess precision.
25248 Reported by Jim Meyering in
25249 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
25251 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25253 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
25254 Sync from <http://gnu.org/licenses>.
25255 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
25256 with license text from same location.
25257 * doc/maintain.texi, doc/standards.texi: Sync from
25258 <http://savannah.gnu.org/projects/gnustandards>.
25260 2007-11-22 Ondřej Vašík <ovasik@redhat.com>
25261 and Jim Meyering <meyering@redhat.com>
25263 Adjust getdate' grammar to accept a slightly more regular language.
25264 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
25265 Before, the former was rejected.
25266 * lib/getdate.y (digits_to_date_time): New function, factored
25268 (number): ...here. Just call digits_to_date_time.
25269 (hybrid): New non-terminal to handle an <unsigned number,
25270 signed relative offset> sequence consistently.
25272 2007-11-18 Jim Meyering <meyering@redhat.com>
25274 Pull my changes from coreutils:
25275 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
25276 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
25277 use of $gnulib_tool_option_extras, so that it's separated from the
25278 preceding argument.
25280 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
25281 * build-aux/bootstrap (cp_mark_as_generated): Create any required
25282 parent destination directories before copying a file into place.
25284 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
25286 bootstrap: work also with 4-argument variant of AC_INIT
25287 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
25289 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
25291 Port test-getaddrinfo to Solaris.
25292 Problem reported by Bruno Haible in
25293 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
25294 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
25295 explanation of setting 'hints'.
25296 Don't reject an implementation merely because it returns EAI_SERVICE.
25297 (EAI_SERVICE): Define to 0 if not defined.
25299 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
25301 The license of gnu-make and posix-shell is now "GPLed build tool".
25302 * modules/gnu-make (License): Likewise.
25303 * modules/posix-shell (License): Likewise.
25305 New module posix-shell, for determining a POSIX shell
25306 or perhaps something that is close enough to a POSIX shell.
25307 * m4/posix-shell.m4: New file.
25308 * modules/posix-shell: New file.
25310 * MODULES.html.sh: Mention new module.
25312 New module gnu-make, for determining whether we're using GNU Make.
25313 * m4/gnu-make.m4: New file.
25314 * modules/gnu-make: New file.
25315 * MODULES.html.sh: Mention new module.
25317 2007-11-14 Jim Meyering <meyering@redhat.com>
25319 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
25320 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
25321 use this macro to create a function _definition_.
25322 Remove useless "#undef ARGMATCH_DIE".
25324 2007-11-14 Bruno Haible <bruno@clisp.org>
25326 * lib/config.charset: Update for OpenBSD 4.1.
25327 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
25329 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
25331 Document 64-bit #if problems in stdint.texi.
25332 * doc/headers/stdint.texi (stdint.h): Mention problems with
25333 64-bit-#if, and how to work around them.
25335 Don't insist on 'long long int' support in the preprocessor. It
25336 breaks too many things. For example, PRIdMAX still uses a 'long
25337 long int' format with the latest Sun compiler, even though
25338 HAVE_LONG_LONG_INT isn't defined due to that compiler's
25339 preprocessor problem. This causes the latest coreutils to dump
25340 core on Solaris 10 sparc with the Sun C compiler.
25341 Instead, fix the 2007-10-16 problem in a different way, by evaluating
25342 the troublesome expressions at configure-time, not at #if-time.
25343 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
25345 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
25346 compile-time C checks, done at 'configure'-time.
25347 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
25348 * modules/inttypes (Makefile): Substitute the new symbols that
25349 gl_INTTYPES_H now generates.
25350 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
25352 2007-11-12 Bruno Haible <bruno@clisp.org>
25354 Tests for Unicode character classification functions.
25356 * modules/unictype/bidicategory-byname-tests: New file.
25357 * modules/unictype/bidicategory-name-tests: New file.
25358 * modules/unictype/bidicategory-of-tests: New file.
25359 * modules/unictype/bidicategory-test-tests: New file.
25360 * modules/unictype/block-list-tests: New file.
25361 * modules/unictype/block-of-tests: New file.
25362 * modules/unictype/block-test-tests: New file.
25363 * modules/unictype/category-C-tests: New file.
25364 * modules/unictype/category-Cc-tests: New file.
25365 * modules/unictype/category-Cf-tests: New file.
25366 * modules/unictype/category-Cn-tests: New file.
25367 * modules/unictype/category-Co-tests: New file.
25368 * modules/unictype/category-Cs-tests: New file.
25369 * modules/unictype/category-L-tests: New file.
25370 * modules/unictype/category-Ll-tests: New file.
25371 * modules/unictype/category-Lm-tests: New file.
25372 * modules/unictype/category-Lo-tests: New file.
25373 * modules/unictype/category-Lt-tests: New file.
25374 * modules/unictype/category-Lu-tests: New file.
25375 * modules/unictype/category-M-tests: New file.
25376 * modules/unictype/category-Mc-tests: New file.
25377 * modules/unictype/category-Me-tests: New file.
25378 * modules/unictype/category-Mn-tests: New file.
25379 * modules/unictype/category-N-tests: New file.
25380 * modules/unictype/category-Nd-tests: New file.
25381 * modules/unictype/category-Nl-tests: New file.
25382 * modules/unictype/category-No-tests: New file.
25383 * modules/unictype/category-P-tests: New file.
25384 * modules/unictype/category-Pc-tests: New file.
25385 * modules/unictype/category-Pd-tests: New file.
25386 * modules/unictype/category-Pe-tests: New file.
25387 * modules/unictype/category-Pf-tests: New file.
25388 * modules/unictype/category-Pi-tests: New file.
25389 * modules/unictype/category-Po-tests: New file.
25390 * modules/unictype/category-Ps-tests: New file.
25391 * modules/unictype/category-S-tests: New file.
25392 * modules/unictype/category-Sc-tests: New file.
25393 * modules/unictype/category-Sk-tests: New file.
25394 * modules/unictype/category-Sm-tests: New file.
25395 * modules/unictype/category-So-tests: New file.
25396 * modules/unictype/category-Z-tests: New file.
25397 * modules/unictype/category-Zl-tests: New file.
25398 * modules/unictype/category-Zp-tests: New file.
25399 * modules/unictype/category-Zs-tests: New file.
25400 * modules/unictype/category-and-not-tests: New file.
25401 * modules/unictype/category-and-tests: New file.
25402 * modules/unictype/category-byname-tests: New file.
25403 * modules/unictype/category-name-tests: New file.
25404 * modules/unictype/category-none-tests: New file.
25405 * modules/unictype/category-of-tests: New file.
25406 * modules/unictype/category-or-tests: New file.
25407 * modules/unictype/category-test-withtable-tests: New file.
25408 * modules/unictype/combining-class-tests: New file.
25409 * modules/unictype/ctype-alnum-tests: New file.
25410 * modules/unictype/ctype-alpha-tests: New file.
25411 * modules/unictype/ctype-blank-tests: New file.
25412 * modules/unictype/ctype-cntrl-tests: New file.
25413 * modules/unictype/ctype-digit-tests: New file.
25414 * modules/unictype/ctype-graph-tests: New file.
25415 * modules/unictype/ctype-lower-tests: New file.
25416 * modules/unictype/ctype-print-tests: New file.
25417 * modules/unictype/ctype-punct-tests: New file.
25418 * modules/unictype/ctype-space-tests: New file.
25419 * modules/unictype/ctype-upper-tests: New file.
25420 * modules/unictype/ctype-xdigit-tests: New file.
25421 * modules/unictype/decimal-digit-tests: New file.
25422 * modules/unictype/digit-tests: New file.
25423 * modules/unictype/mirror-tests: New file.
25424 * modules/unictype/numeric-tests: New file.
25425 * modules/unictype/property-alphabetic-tests: New file.
25426 * modules/unictype/property-ascii-hex-digit-tests: New file.
25427 * modules/unictype/property-bidi-arabic-digit-tests: New file.
25428 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
25429 * modules/unictype/property-bidi-block-separator-tests: New file.
25430 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
25431 * modules/unictype/property-bidi-common-separator-tests: New file.
25432 * modules/unictype/property-bidi-control-tests: New file.
25433 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
25434 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
25435 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
25436 * modules/unictype/property-bidi-european-digit-tests: New file.
25437 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
25438 * modules/unictype/property-bidi-left-to-right-tests: New file.
25439 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
25440 * modules/unictype/property-bidi-other-neutral-tests: New file.
25441 * modules/unictype/property-bidi-pdf-tests: New file.
25442 * modules/unictype/property-bidi-segment-separator-tests: New file.
25443 * modules/unictype/property-bidi-whitespace-tests: New file.
25444 * modules/unictype/property-byname-tests: New file.
25445 * modules/unictype/property-combining-tests: New file.
25446 * modules/unictype/property-composite-tests: New file.
25447 * modules/unictype/property-currency-symbol-tests: New file.
25448 * modules/unictype/property-dash-tests: New file.
25449 * modules/unictype/property-decimal-digit-tests: New file.
25450 * modules/unictype/property-default-ignorable-code-point-tests: New file.
25451 * modules/unictype/property-deprecated-tests: New file.
25452 * modules/unictype/property-diacritic-tests: New file.
25453 * modules/unictype/property-extender-tests: New file.
25454 * modules/unictype/property-format-control-tests: New file.
25455 * modules/unictype/property-grapheme-base-tests: New file.
25456 * modules/unictype/property-grapheme-extend-tests: New file.
25457 * modules/unictype/property-grapheme-link-tests: New file.
25458 * modules/unictype/property-hex-digit-tests: New file.
25459 * modules/unictype/property-hyphen-tests: New file.
25460 * modules/unictype/property-id-continue-tests: New file.
25461 * modules/unictype/property-id-start-tests: New file.
25462 * modules/unictype/property-ideographic-tests: New file.
25463 * modules/unictype/property-ids-binary-operator-tests: New file.
25464 * modules/unictype/property-ids-trinary-operator-tests: New file.
25465 * modules/unictype/property-ignorable-control-tests: New file.
25466 * modules/unictype/property-iso-control-tests: New file.
25467 * modules/unictype/property-join-control-tests: New file.
25468 * modules/unictype/property-left-of-pair-tests: New file.
25469 * modules/unictype/property-line-separator-tests: New file.
25470 * modules/unictype/property-logical-order-exception-tests: New file.
25471 * modules/unictype/property-lowercase-tests: New file.
25472 * modules/unictype/property-math-tests: New file.
25473 * modules/unictype/property-non-break-tests: New file.
25474 * modules/unictype/property-not-a-character-tests: New file.
25475 * modules/unictype/property-numeric-tests: New file.
25476 * modules/unictype/property-other-alphabetic-tests: New file.
25477 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
25478 * modules/unictype/property-other-grapheme-extend-tests: New file.
25479 * modules/unictype/property-other-id-continue-tests: New file.
25480 * modules/unictype/property-other-id-start-tests: New file.
25481 * modules/unictype/property-other-lowercase-tests: New file.
25482 * modules/unictype/property-other-math-tests: New file.
25483 * modules/unictype/property-other-uppercase-tests: New file.
25484 * modules/unictype/property-paired-punctuation-tests: New file.
25485 * modules/unictype/property-paragraph-separator-tests: New file.
25486 * modules/unictype/property-pattern-syntax-tests: New file.
25487 * modules/unictype/property-pattern-white-space-tests: New file.
25488 * modules/unictype/property-private-use-tests: New file.
25489 * modules/unictype/property-punctuation-tests: New file.
25490 * modules/unictype/property-quotation-mark-tests: New file.
25491 * modules/unictype/property-radical-tests: New file.
25492 * modules/unictype/property-sentence-terminal-tests: New file.
25493 * modules/unictype/property-soft-dotted-tests: New file.
25494 * modules/unictype/property-space-tests: New file.
25495 * modules/unictype/property-terminal-punctuation-tests: New file.
25496 * modules/unictype/property-test-tests: New file.
25497 * modules/unictype/property-titlecase-tests: New file.
25498 * modules/unictype/property-unassigned-code-value-tests: New file.
25499 * modules/unictype/property-unified-ideograph-tests: New file.
25500 * modules/unictype/property-uppercase-tests: New file.
25501 * modules/unictype/property-variation-selector-tests: New file.
25502 * modules/unictype/property-white-space-tests: New file.
25503 * modules/unictype/property-xid-continue-tests: New file.
25504 * modules/unictype/property-xid-start-tests: New file.
25505 * modules/unictype/property-zero-width-tests: New file.
25506 * modules/unictype/scripts-tests: New file.
25507 * modules/unictype/syntax-c-ident-tests: New file.
25508 * modules/unictype/syntax-c-whitespace-tests: New file.
25509 * modules/unictype/syntax-java-ident-tests: New file.
25510 * modules/unictype/syntax-java-whitespace-tests: New file.
25511 * tests/unictype/test-bidi_byname.c: New file.
25512 * tests/unictype/test-bidi_name.c: New file.
25513 * tests/unictype/test-bidi_of.c: New file.
25514 * tests/unictype/test-bidi_test.c: New file.
25515 * tests/unictype/test-block_list.c: New file.
25516 * tests/unictype/test-block_of.c: New file.
25517 * tests/unictype/test-block_test.c: New file.
25518 * tests/unictype/test-categ_and.c: New file.
25519 * tests/unictype/test-categ_and_not.c: New file.
25520 * tests/unictype/test-categ_byname.c: New file.
25521 * tests/unictype/test-categ_name.c: New file.
25522 * tests/unictype/test-categ_none.c: New file.
25523 * tests/unictype/test-categ_of.c: New file.
25524 * tests/unictype/test-categ_or.c: New file.
25525 * tests/unictype/test-categ_test_withtable.c: New file.
25526 * tests/unictype/test-combining.c: New file.
25527 * tests/unictype/test-decdigit.c: New file.
25528 * tests/unictype/test-digit.c: New file.
25529 * tests/unictype/test-mirror.c: New file.
25530 * tests/unictype/test-numeric.c: New file.
25531 * tests/unictype/test-pr_byname.c: New file.
25532 * tests/unictype/test-pr_test.c: New file.
25533 * tests/unictype/test-predicate-part1.h: New file.
25534 * tests/unictype/test-predicate-part2.h: New file.
25535 * tests/unictype/test-scripts.c: New file.
25536 * tests/unictype/test-sy_c_ident.c: New file.
25537 * tests/unictype/test-sy_java_ident.c: New file.
25539 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
25541 * tests/unictype/test-categ_Cc.c: Likewise.
25542 * tests/unictype/test-categ_Cf.c: Likewise.
25543 * tests/unictype/test-categ_Cn.c: Likewise.
25544 * tests/unictype/test-categ_Co.c: Likewise.
25545 * tests/unictype/test-categ_Cs.c: Likewise.
25546 * tests/unictype/test-categ_L.c: Likewise.
25547 * tests/unictype/test-categ_Ll.c: Likewise.
25548 * tests/unictype/test-categ_Lm.c: Likewise.
25549 * tests/unictype/test-categ_Lo.c: Likewise.
25550 * tests/unictype/test-categ_Lt.c: Likewise.
25551 * tests/unictype/test-categ_Lu.c: Likewise.
25552 * tests/unictype/test-categ_M.c: Likewise.
25553 * tests/unictype/test-categ_Mc.c: Likewise.
25554 * tests/unictype/test-categ_Me.c: Likewise.
25555 * tests/unictype/test-categ_Mn.c: Likewise.
25556 * tests/unictype/test-categ_N.c: Likewise.
25557 * tests/unictype/test-categ_Nd.c: Likewise.
25558 * tests/unictype/test-categ_Nl.c: Likewise.
25559 * tests/unictype/test-categ_No.c: Likewise.
25560 * tests/unictype/test-categ_P.c: Likewise.
25561 * tests/unictype/test-categ_Pc.c: Likewise.
25562 * tests/unictype/test-categ_Pd.c: Likewise.
25563 * tests/unictype/test-categ_Pe.c: Likewise.
25564 * tests/unictype/test-categ_Pf.c: Likewise.
25565 * tests/unictype/test-categ_Pi.c: Likewise.
25566 * tests/unictype/test-categ_Po.c: Likewise.
25567 * tests/unictype/test-categ_Ps.c: Likewise.
25568 * tests/unictype/test-categ_S.c: Likewise.
25569 * tests/unictype/test-categ_Sc.c: Likewise.
25570 * tests/unictype/test-categ_Sk.c: Likewise.
25571 * tests/unictype/test-categ_Sm.c: Likewise.
25572 * tests/unictype/test-categ_So.c: Likewise.
25573 * tests/unictype/test-categ_Z.c: Likewise.
25574 * tests/unictype/test-categ_Zl.c: Likewise.
25575 * tests/unictype/test-categ_Zp.c: Likewise.
25576 * tests/unictype/test-categ_Zs.c: Likewise.
25577 * tests/unictype/test-ctype_alnum.c: Likewise.
25578 * tests/unictype/test-ctype_alpha.c: Likewise.
25579 * tests/unictype/test-ctype_blank.c: Likewise.
25580 * tests/unictype/test-ctype_cntrl.c: Likewise.
25581 * tests/unictype/test-ctype_digit.c: Likewise.
25582 * tests/unictype/test-ctype_graph.c: Likewise.
25583 * tests/unictype/test-ctype_lower.c: Likewise.
25584 * tests/unictype/test-ctype_print.c: Likewise.
25585 * tests/unictype/test-ctype_punct.c: Likewise.
25586 * tests/unictype/test-ctype_space.c: Likewise.
25587 * tests/unictype/test-ctype_upper.c: Likewise.
25588 * tests/unictype/test-ctype_xdigit.c: Likewise.
25589 * tests/unictype/test-decdigit.h: Likewise.
25590 * tests/unictype/test-digit.h: Likewise.
25591 * tests/unictype/test-numeric.h: Likewise.
25592 * tests/unictype/test-pr_alphabetic.c: Likewise.
25593 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
25594 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25595 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
25596 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
25597 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
25598 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
25599 * tests/unictype/test-pr_bidi_control.c: Likewise.
25600 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
25601 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
25602 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25603 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25604 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25605 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25606 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25607 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25608 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
25609 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
25610 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
25611 * tests/unictype/test-pr_combining.c: Likewise.
25612 * tests/unictype/test-pr_composite.c: Likewise.
25613 * tests/unictype/test-pr_currency_symbol.c: Likewise.
25614 * tests/unictype/test-pr_dash.c: Likewise.
25615 * tests/unictype/test-pr_decimal_digit.c: Likewise.
25616 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
25617 * tests/unictype/test-pr_deprecated.c: Likewise.
25618 * tests/unictype/test-pr_diacritic.c: Likewise.
25619 * tests/unictype/test-pr_extender.c: Likewise.
25620 * tests/unictype/test-pr_format_control.c: Likewise.
25621 * tests/unictype/test-pr_grapheme_base.c: Likewise.
25622 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25623 * tests/unictype/test-pr_grapheme_link.c: Likewise.
25624 * tests/unictype/test-pr_hex_digit.c: Likewise.
25625 * tests/unictype/test-pr_hyphen.c: Likewise.
25626 * tests/unictype/test-pr_id_continue.c: Likewise.
25627 * tests/unictype/test-pr_id_start.c: Likewise.
25628 * tests/unictype/test-pr_ideographic.c: Likewise.
25629 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
25630 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
25631 * tests/unictype/test-pr_ignorable_control.c: Likewise.
25632 * tests/unictype/test-pr_iso_control.c: Likewise.
25633 * tests/unictype/test-pr_join_control.c: Likewise.
25634 * tests/unictype/test-pr_left_of_pair.c: Likewise.
25635 * tests/unictype/test-pr_line_separator.c: Likewise.
25636 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25637 * tests/unictype/test-pr_lowercase.c: Likewise.
25638 * tests/unictype/test-pr_math.c: Likewise.
25639 * tests/unictype/test-pr_non_break.c: Likewise.
25640 * tests/unictype/test-pr_not_a_character.c: Likewise.
25641 * tests/unictype/test-pr_numeric.c: Likewise.
25642 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25643 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
25644 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
25645 * tests/unictype/test-pr_other_id_continue.c: Likewise.
25646 * tests/unictype/test-pr_other_id_start.c: Likewise.
25647 * tests/unictype/test-pr_other_lowercase.c: Likewise.
25648 * tests/unictype/test-pr_other_math.c: Likewise.
25649 * tests/unictype/test-pr_other_uppercase.c: Likewise.
25650 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
25651 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
25652 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
25653 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
25654 * tests/unictype/test-pr_private_use.c: Likewise.
25655 * tests/unictype/test-pr_punctuation.c: Likewise.
25656 * tests/unictype/test-pr_quotation_mark.c: Likewise.
25657 * tests/unictype/test-pr_radical.c: Likewise.
25658 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25659 * tests/unictype/test-pr_soft_dotted.c: Likewise.
25660 * tests/unictype/test-pr_space.c: Likewise.
25661 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25662 * tests/unictype/test-pr_titlecase.c: Likewise.
25663 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25664 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25665 * tests/unictype/test-pr_uppercase.c: Likewise.
25666 * tests/unictype/test-pr_variation_selector.c: Likewise.
25667 * tests/unictype/test-pr_white_space.c: Likewise.
25668 * tests/unictype/test-pr_xid_continue.c: Likewise.
25669 * tests/unictype/test-pr_xid_start.c: Likewise.
25670 * tests/unictype/test-pr_zero_width.c: Likewise.
25671 * tests/unictype/test-sy_c_whitespace.c: Likewise.
25672 * tests/unictype/test-sy_java_whitespace.c: Likewise.
25674 2007-11-12 Bruno Haible <bruno@clisp.org>
25676 Unicode character classification functions.
25677 * lib/unictype.h: New file.
25678 * modules/unictype/base: New file.
25679 * modules/unictype/category-L: New file.
25680 * modules/unictype/category-Lu: New file.
25681 * modules/unictype/category-Ll: New file.
25682 * modules/unictype/category-Lt: New file.
25683 * modules/unictype/category-Lm: New file.
25684 * modules/unictype/category-Lo: New file.
25685 * modules/unictype/category-M: New file.
25686 * modules/unictype/category-Mn: New file.
25687 * modules/unictype/category-Mc: New file.
25688 * modules/unictype/category-Me: New file.
25689 * modules/unictype/category-N: New file.
25690 * modules/unictype/category-Nd: New file.
25691 * modules/unictype/category-Nl: New file.
25692 * modules/unictype/category-No: New file.
25693 * modules/unictype/category-P: New file.
25694 * modules/unictype/category-Pc: New file.
25695 * modules/unictype/category-Pd: New file.
25696 * modules/unictype/category-Ps: New file.
25697 * modules/unictype/category-Pe: New file.
25698 * modules/unictype/category-Pi: New file.
25699 * modules/unictype/category-Pf: New file.
25700 * modules/unictype/category-Po: New file.
25701 * modules/unictype/category-S: New file.
25702 * modules/unictype/category-Sm: New file.
25703 * modules/unictype/category-Sc: New file.
25704 * modules/unictype/category-Sk: New file.
25705 * modules/unictype/category-So: New file.
25706 * modules/unictype/category-Z: New file.
25707 * modules/unictype/category-Zs: New file.
25708 * modules/unictype/category-Zl: New file.
25709 * modules/unictype/category-Zp: New file.
25710 * modules/unictype/category-C: New file.
25711 * modules/unictype/category-Cc: New file.
25712 * modules/unictype/category-Cf: New file.
25713 * modules/unictype/category-Cs: New file.
25714 * modules/unictype/category-Co: New file.
25715 * modules/unictype/category-Cn: New file.
25716 * modules/unictype/category-or: New file.
25717 * modules/unictype/category-of: New file.
25718 * modules/unictype/category-test: New file.
25719 * modules/unictype/category-test-withtable: New file.
25720 * modules/unictype/category-byname: New file.
25721 * modules/unictype/category-none: New file.
25722 * modules/unictype/category-and: New file.
25723 * modules/unictype/category-and-not: New file.
25724 * modules/unictype/category-name: New file.
25725 * modules/unictype/combining-class: New file.
25726 * modules/unictype/category-all: New file.
25727 * modules/unictype/bidicategory-all: New file.
25728 * modules/unictype/bidicategory-byname: New file.
25729 * modules/unictype/bidicategory-name: New file.
25730 * modules/unictype/bidicategory-of: New file.
25731 * modules/unictype/bidicategory-test: New file.
25732 * modules/unictype/decimal-digit: New file.
25733 * modules/unictype/digit: New file.
25734 * modules/unictype/numeric: New file.
25735 * modules/unictype/mirror: New file.
25736 * modules/unictype/property-white-space: New file.
25737 * modules/unictype/property-alphabetic: New file.
25738 * modules/unictype/property-other-alphabetic: New file.
25739 * modules/unictype/property-not-a-character: New file.
25740 * modules/unictype/property-default-ignorable-code-point: New file.
25741 * modules/unictype/property-other-default-ignorable-code-point: New
25743 * modules/unictype/property-deprecated: New file.
25744 * modules/unictype/property-logical-order-exception: New file.
25745 * modules/unictype/property-variation-selector: New file.
25746 * modules/unictype/property-private-use: New file.
25747 * modules/unictype/property-unassigned-code-value: New file.
25748 * modules/unictype/property-uppercase: New file.
25749 * modules/unictype/property-other-uppercase: New file.
25750 * modules/unictype/property-lowercase: New file.
25751 * modules/unictype/property-other-lowercase: New file.
25752 * modules/unictype/property-titlecase: New file.
25753 * modules/unictype/property-soft-dotted: New file.
25754 * modules/unictype/property-id-start: New file.
25755 * modules/unictype/property-other-id-start: New file.
25756 * modules/unictype/property-id-continue: New file.
25757 * modules/unictype/property-other-id-continue: New file.
25758 * modules/unictype/property-xid-start: New file.
25759 * modules/unictype/property-xid-continue: New file.
25760 * modules/unictype/property-pattern-white-space: New file.
25761 * modules/unictype/property-pattern-syntax: New file.
25762 * modules/unictype/property-join-control: New file.
25763 * modules/unictype/property-grapheme-base: New file.
25764 * modules/unictype/property-grapheme-extend: New file.
25765 * modules/unictype/property-other-grapheme-extend: New file.
25766 * modules/unictype/property-grapheme-link: New file.
25767 * modules/unictype/property-bidi-control: New file.
25768 * modules/unictype/property-bidi-left-to-right: New file.
25769 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
25770 * modules/unictype/property-bidi-arabic-right-to-left: New file.
25771 * modules/unictype/property-bidi-european-digit: New file.
25772 * modules/unictype/property-bidi-eur-num-separator: New file.
25773 * modules/unictype/property-bidi-eur-num-terminator: New file.
25774 * modules/unictype/property-bidi-arabic-digit: New file.
25775 * modules/unictype/property-bidi-common-separator: New file.
25776 * modules/unictype/property-bidi-block-separator: New file.
25777 * modules/unictype/property-bidi-segment-separator: New file.
25778 * modules/unictype/property-bidi-whitespace: New file.
25779 * modules/unictype/property-bidi-non-spacing-mark: New file.
25780 * modules/unictype/property-bidi-boundary-neutral: New file.
25781 * modules/unictype/property-bidi-pdf: New file.
25782 * modules/unictype/property-bidi-embedding-or-override: New file.
25783 * modules/unictype/property-bidi-other-neutral: New file.
25784 * modules/unictype/property-hex-digit: New file.
25785 * modules/unictype/property-ascii-hex-digit: New file.
25786 * modules/unictype/property-ideographic: New file.
25787 * modules/unictype/property-unified-ideograph: New file.
25788 * modules/unictype/property-radical: New file.
25789 * modules/unictype/property-ids-binary-operator: New file.
25790 * modules/unictype/property-ids-trinary-operator: New file.
25791 * modules/unictype/property-zero-width: New file.
25792 * modules/unictype/property-space: New file.
25793 * modules/unictype/property-non-break: New file.
25794 * modules/unictype/property-iso-control: New file.
25795 * modules/unictype/property-format-control: New file.
25796 * modules/unictype/property-dash: New file.
25797 * modules/unictype/property-hyphen: New file.
25798 * modules/unictype/property-punctuation: New file.
25799 * modules/unictype/property-line-separator: New file.
25800 * modules/unictype/property-paragraph-separator: New file.
25801 * modules/unictype/property-quotation-mark: New file.
25802 * modules/unictype/property-sentence-terminal: New file.
25803 * modules/unictype/property-terminal-punctuation: New file.
25804 * modules/unictype/property-currency-symbol: New file.
25805 * modules/unictype/property-math: New file.
25806 * modules/unictype/property-other-math: New file.
25807 * modules/unictype/property-paired-punctuation: New file.
25808 * modules/unictype/property-left-of-pair: New file.
25809 * modules/unictype/property-combining: New file.
25810 * modules/unictype/property-composite: New file.
25811 * modules/unictype/property-decimal-digit: New file.
25812 * modules/unictype/property-numeric: New file.
25813 * modules/unictype/property-diacritic: New file.
25814 * modules/unictype/property-extender: New file.
25815 * modules/unictype/property-ignorable-control: New file.
25816 * modules/unictype/property-test: New file.
25817 * modules/unictype/property-byname: New file.
25818 * modules/unictype/property-all: New file.
25819 * modules/unictype/scripts: New file.
25820 * modules/unictype/scripts-all: New file.
25821 * modules/unictype/block-of: New file.
25822 * modules/unictype/block-test: New file.
25823 * modules/unictype/block-list: New file.
25824 * modules/unictype/block-all: New file.
25825 * modules/unictype/syntax-c-whitespace: New file.
25826 * modules/unictype/syntax-java-whitespace: New file.
25827 * modules/unictype/syntax-c-ident: New file.
25828 * modules/unictype/syntax-java-ident: New file.
25829 * modules/unictype/ctype-alnum: New file.
25830 * modules/unictype/ctype-alpha: New file.
25831 * modules/unictype/ctype-cntrl: New file.
25832 * modules/unictype/ctype-digit: New file.
25833 * modules/unictype/ctype-graph: New file.
25834 * modules/unictype/ctype-lower: New file.
25835 * modules/unictype/ctype-print: New file.
25836 * modules/unictype/ctype-punct: New file.
25837 * modules/unictype/ctype-space: New file.
25838 * modules/unictype/ctype-upper: New file.
25839 * modules/unictype/ctype-xdigit: New file.
25840 * modules/unictype/ctype-blank: New file.
25841 * lib/unictype/bidi_byname.c: New file.
25842 * lib/unictype/bidi_name.c: New file.
25843 * lib/unictype/bidi_of.c: New file.
25844 * lib/unictype/bidi_test.c: New file.
25845 * lib/unictype/bitmap.h: New file.
25846 * lib/unictype/block_test.c: New file.
25847 * lib/unictype/blocks.c: New file.
25848 * lib/unictype/categ_C.c: New file.
25849 * lib/unictype/categ_Cc.c: New file.
25850 * lib/unictype/categ_Cf.c: New file.
25851 * lib/unictype/categ_Cn.c: New file.
25852 * lib/unictype/categ_Co.c: New file.
25853 * lib/unictype/categ_Cs.c: New file.
25854 * lib/unictype/categ_L.c: New file.
25855 * lib/unictype/categ_Ll.c: New file.
25856 * lib/unictype/categ_Lm.c: New file.
25857 * lib/unictype/categ_Lo.c: New file.
25858 * lib/unictype/categ_Lt.c: New file.
25859 * lib/unictype/categ_Lu.c: New file.
25860 * lib/unictype/categ_M.c: New file.
25861 * lib/unictype/categ_Mc.c: New file.
25862 * lib/unictype/categ_Me.c: New file.
25863 * lib/unictype/categ_Mn.c: New file.
25864 * lib/unictype/categ_N.c: New file.
25865 * lib/unictype/categ_Nd.c: New file.
25866 * lib/unictype/categ_Nl.c: New file.
25867 * lib/unictype/categ_No.c: New file.
25868 * lib/unictype/categ_P.c: New file.
25869 * lib/unictype/categ_Pc.c: New file.
25870 * lib/unictype/categ_Pd.c: New file.
25871 * lib/unictype/categ_Pe.c: New file.
25872 * lib/unictype/categ_Pf.c: New file.
25873 * lib/unictype/categ_Pi.c: New file.
25874 * lib/unictype/categ_Po.c: New file.
25875 * lib/unictype/categ_Ps.c: New file.
25876 * lib/unictype/categ_S.c: New file.
25877 * lib/unictype/categ_Sc.c: New file.
25878 * lib/unictype/categ_Sk.c: New file.
25879 * lib/unictype/categ_Sm.c: New file.
25880 * lib/unictype/categ_So.c: New file.
25881 * lib/unictype/categ_Z.c: New file.
25882 * lib/unictype/categ_Zl.c: New file.
25883 * lib/unictype/categ_Zp.c: New file.
25884 * lib/unictype/categ_Zs.c: New file.
25885 * lib/unictype/categ_and.c: New file.
25886 * lib/unictype/categ_and_not.c: New file.
25887 * lib/unictype/categ_byname.c: New file.
25888 * lib/unictype/categ_name.c: New file.
25889 * lib/unictype/categ_none.c: New file.
25890 * lib/unictype/categ_of.c: New file.
25891 * lib/unictype/categ_or.c: New file.
25892 * lib/unictype/categ_test.c: New file.
25893 * lib/unictype/combining.c: New file.
25894 * lib/unictype/ctype_alnum.c: New file.
25895 * lib/unictype/ctype_alpha.c: New file.
25896 * lib/unictype/ctype_blank.c: New file.
25897 * lib/unictype/ctype_cntrl.c: New file.
25898 * lib/unictype/ctype_digit.c: New file.
25899 * lib/unictype/ctype_graph.c: New file.
25900 * lib/unictype/ctype_lower.c: New file.
25901 * lib/unictype/ctype_print.c: New file.
25902 * lib/unictype/ctype_punct.c: New file.
25903 * lib/unictype/ctype_space.c: New file.
25904 * lib/unictype/ctype_upper.c: New file.
25905 * lib/unictype/ctype_xdigit.c: New file.
25906 * lib/unictype/decdigit.c: New file.
25907 * lib/unictype/digit.c: New file.
25908 * lib/unictype/identsyntaxmap.h: New file.
25909 * lib/unictype/mirror.c: New file.
25910 * lib/unictype/numeric.c: New file.
25911 * lib/unictype/pr_alphabetic.c: New file.
25912 * lib/unictype/pr_ascii_hex_digit.c: New file.
25913 * lib/unictype/pr_bidi_arabic_digit.c: New file.
25914 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
25915 * lib/unictype/pr_bidi_block_separator.c: New file.
25916 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
25917 * lib/unictype/pr_bidi_common_separator.c: New file.
25918 * lib/unictype/pr_bidi_control.c: New file.
25919 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
25920 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
25921 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
25922 * lib/unictype/pr_bidi_european_digit.c: New file.
25923 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
25924 * lib/unictype/pr_bidi_left_to_right.c: New file.
25925 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
25926 * lib/unictype/pr_bidi_other_neutral.c: New file.
25927 * lib/unictype/pr_bidi_pdf.c: New file.
25928 * lib/unictype/pr_bidi_segment_separator.c: New file.
25929 * lib/unictype/pr_bidi_whitespace.c: New file.
25930 * lib/unictype/pr_byname.c: New file.
25931 * lib/unictype/pr_byname.gperf: New file.
25932 * lib/unictype/pr_combining.c: New file.
25933 * lib/unictype/pr_composite.c: New file.
25934 * lib/unictype/pr_currency_symbol.c: New file.
25935 * lib/unictype/pr_dash.c: New file.
25936 * lib/unictype/pr_decimal_digit.c: New file.
25937 * lib/unictype/pr_default_ignorable_code_point.c: New file.
25938 * lib/unictype/pr_deprecated.c: New file.
25939 * lib/unictype/pr_diacritic.c: New file.
25940 * lib/unictype/pr_extender.c: New file.
25941 * lib/unictype/pr_format_control.c: New file.
25942 * lib/unictype/pr_grapheme_base.c: New file.
25943 * lib/unictype/pr_grapheme_extend.c: New file.
25944 * lib/unictype/pr_grapheme_link.c: New file.
25945 * lib/unictype/pr_hex_digit.c: New file.
25946 * lib/unictype/pr_hyphen.c: New file.
25947 * lib/unictype/pr_id_continue.c: New file.
25948 * lib/unictype/pr_id_start.c: New file.
25949 * lib/unictype/pr_ideographic.c: New file.
25950 * lib/unictype/pr_ids_binary_operator.c: New file.
25951 * lib/unictype/pr_ids_trinary_operator.c: New file.
25952 * lib/unictype/pr_ignorable_control.c: New file.
25953 * lib/unictype/pr_iso_control.c: New file.
25954 * lib/unictype/pr_join_control.c: New file.
25955 * lib/unictype/pr_left_of_pair.c: New file.
25956 * lib/unictype/pr_line_separator.c: New file.
25957 * lib/unictype/pr_logical_order_exception.c: New file.
25958 * lib/unictype/pr_lowercase.c: New file.
25959 * lib/unictype/pr_math.c: New file.
25960 * lib/unictype/pr_non_break.c: New file.
25961 * lib/unictype/pr_not_a_character.c: New file.
25962 * lib/unictype/pr_numeric.c: New file.
25963 * lib/unictype/pr_other_alphabetic.c: New file.
25964 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
25965 * lib/unictype/pr_other_grapheme_extend.c: New file.
25966 * lib/unictype/pr_other_id_continue.c: New file.
25967 * lib/unictype/pr_other_id_start.c: New file.
25968 * lib/unictype/pr_other_lowercase.c: New file.
25969 * lib/unictype/pr_other_math.c: New file.
25970 * lib/unictype/pr_other_uppercase.c: New file.
25971 * lib/unictype/pr_paired_punctuation.c: New file.
25972 * lib/unictype/pr_paragraph_separator.c: New file.
25973 * lib/unictype/pr_pattern_syntax.c: New file.
25974 * lib/unictype/pr_pattern_white_space.c: New file.
25975 * lib/unictype/pr_private_use.c: New file.
25976 * lib/unictype/pr_punctuation.c: New file.
25977 * lib/unictype/pr_quotation_mark.c: New file.
25978 * lib/unictype/pr_radical.c: New file.
25979 * lib/unictype/pr_sentence_terminal.c: New file.
25980 * lib/unictype/pr_soft_dotted.c: New file.
25981 * lib/unictype/pr_space.c: New file.
25982 * lib/unictype/pr_terminal_punctuation.c: New file.
25983 * lib/unictype/pr_test.c: New file.
25984 * lib/unictype/pr_titlecase.c: New file.
25985 * lib/unictype/pr_unassigned_code_value.c: New file.
25986 * lib/unictype/pr_unified_ideograph.c: New file.
25987 * lib/unictype/pr_uppercase.c: New file.
25988 * lib/unictype/pr_variation_selector.c: New file.
25989 * lib/unictype/pr_white_space.c: New file.
25990 * lib/unictype/pr_xid_continue.c: New file.
25991 * lib/unictype/pr_xid_start.c: New file.
25992 * lib/unictype/pr_zero_width.c: New file.
25993 * lib/unictype/scripts.c: New file.
25994 * lib/unictype/sy_c_ident.c: New file.
25995 * lib/unictype/sy_c_whitespace.c: New file.
25996 * lib/unictype/sy_java_ident.c: New file.
25997 * lib/unictype/sy_java_whitespace.c: New file.
25999 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
26001 * lib/unictype/blocks.h: Likewise.
26002 * lib/unictype/categ_C.h: Likewise.
26003 * lib/unictype/categ_Cc.h: Likewise.
26004 * lib/unictype/categ_Cf.h: Likewise.
26005 * lib/unictype/categ_Cn.h: Likewise.
26006 * lib/unictype/categ_Co.h: Likewise.
26007 * lib/unictype/categ_Cs.h: Likewise.
26008 * lib/unictype/categ_L.h: Likewise.
26009 * lib/unictype/categ_Ll.h: Likewise.
26010 * lib/unictype/categ_Lm.h: Likewise.
26011 * lib/unictype/categ_Lo.h: Likewise.
26012 * lib/unictype/categ_Lt.h: Likewise.
26013 * lib/unictype/categ_Lu.h: Likewise.
26014 * lib/unictype/categ_M.h: Likewise.
26015 * lib/unictype/categ_Mc.h: Likewise.
26016 * lib/unictype/categ_Me.h: Likewise.
26017 * lib/unictype/categ_Mn.h: Likewise.
26018 * lib/unictype/categ_N.h: Likewise.
26019 * lib/unictype/categ_Nd.h: Likewise.
26020 * lib/unictype/categ_Nl.h: Likewise.
26021 * lib/unictype/categ_No.h: Likewise.
26022 * lib/unictype/categ_P.h: Likewise.
26023 * lib/unictype/categ_Pc.h: Likewise.
26024 * lib/unictype/categ_Pd.h: Likewise.
26025 * lib/unictype/categ_Pe.h: Likewise.
26026 * lib/unictype/categ_Pf.h: Likewise.
26027 * lib/unictype/categ_Pi.h: Likewise.
26028 * lib/unictype/categ_Po.h: Likewise.
26029 * lib/unictype/categ_Ps.h: Likewise.
26030 * lib/unictype/categ_S.h: Likewise.
26031 * lib/unictype/categ_Sc.h: Likewise.
26032 * lib/unictype/categ_Sk.h: Likewise.
26033 * lib/unictype/categ_Sm.h: Likewise.
26034 * lib/unictype/categ_So.h: Likewise.
26035 * lib/unictype/categ_Z.h: Likewise.
26036 * lib/unictype/categ_Zl.h: Likewise.
26037 * lib/unictype/categ_Zp.h: Likewise.
26038 * lib/unictype/categ_Zs.h: Likewise.
26039 * lib/unictype/categ_of.h: Likewise.
26040 * lib/unictype/combining.h: Likewise.
26041 * lib/unictype/ctype_alnum.h: Likewise.
26042 * lib/unictype/ctype_alpha.h: Likewise.
26043 * lib/unictype/ctype_blank.h: Likewise.
26044 * lib/unictype/ctype_cntrl.h: Likewise.
26045 * lib/unictype/ctype_digit.h: Likewise.
26046 * lib/unictype/ctype_graph.h: Likewise.
26047 * lib/unictype/ctype_lower.h: Likewise.
26048 * lib/unictype/ctype_print.h: Likewise.
26049 * lib/unictype/ctype_punct.h: Likewise.
26050 * lib/unictype/ctype_space.h: Likewise.
26051 * lib/unictype/ctype_upper.h: Likewise.
26052 * lib/unictype/ctype_xdigit.h: Likewise.
26053 * lib/unictype/decdigit.h: Likewise.
26054 * lib/unictype/digit.h: Likewise.
26055 * lib/unictype/mirror.h: Likewise.
26056 * lib/unictype/numeric.h: Likewise.
26057 * lib/unictype/pr_alphabetic.h: Likewise.
26058 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26059 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26060 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26061 * lib/unictype/pr_bidi_block_separator.h: Likewise.
26062 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26063 * lib/unictype/pr_bidi_common_separator.h: Likewise.
26064 * lib/unictype/pr_bidi_control.h: Likewise.
26065 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26066 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26067 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26068 * lib/unictype/pr_bidi_european_digit.h: Likewise.
26069 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26070 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26071 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26072 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26073 * lib/unictype/pr_bidi_pdf.h: Likewise.
26074 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26075 * lib/unictype/pr_bidi_whitespace.h: Likewise.
26076 * lib/unictype/pr_combining.h: Likewise.
26077 * lib/unictype/pr_composite.h: Likewise.
26078 * lib/unictype/pr_currency_symbol.h: Likewise.
26079 * lib/unictype/pr_dash.h: Likewise.
26080 * lib/unictype/pr_decimal_digit.h: Likewise.
26081 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26082 * lib/unictype/pr_deprecated.h: Likewise.
26083 * lib/unictype/pr_diacritic.h: Likewise.
26084 * lib/unictype/pr_extender.h: Likewise.
26085 * lib/unictype/pr_format_control.h: Likewise.
26086 * lib/unictype/pr_grapheme_base.h: Likewise.
26087 * lib/unictype/pr_grapheme_extend.h: Likewise.
26088 * lib/unictype/pr_grapheme_link.h: Likewise.
26089 * lib/unictype/pr_hex_digit.h: Likewise.
26090 * lib/unictype/pr_hyphen.h: Likewise.
26091 * lib/unictype/pr_id_continue.h: Likewise.
26092 * lib/unictype/pr_id_start.h: Likewise.
26093 * lib/unictype/pr_ideographic.h: Likewise.
26094 * lib/unictype/pr_ids_binary_operator.h: Likewise.
26095 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26096 * lib/unictype/pr_ignorable_control.h: Likewise.
26097 * lib/unictype/pr_iso_control.h: Likewise.
26098 * lib/unictype/pr_join_control.h: Likewise.
26099 * lib/unictype/pr_left_of_pair.h: Likewise.
26100 * lib/unictype/pr_line_separator.h: Likewise.
26101 * lib/unictype/pr_logical_order_exception.h: Likewise.
26102 * lib/unictype/pr_lowercase.h: Likewise.
26103 * lib/unictype/pr_math.h: Likewise.
26104 * lib/unictype/pr_non_break.h: Likewise.
26105 * lib/unictype/pr_not_a_character.h: Likewise.
26106 * lib/unictype/pr_numeric.h: Likewise.
26107 * lib/unictype/pr_other_alphabetic.h: Likewise.
26108 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26109 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26110 * lib/unictype/pr_other_id_continue.h: Likewise.
26111 * lib/unictype/pr_other_id_start.h: Likewise.
26112 * lib/unictype/pr_other_lowercase.h: Likewise.
26113 * lib/unictype/pr_other_math.h: Likewise.
26114 * lib/unictype/pr_other_uppercase.h: Likewise.
26115 * lib/unictype/pr_paired_punctuation.h: Likewise.
26116 * lib/unictype/pr_paragraph_separator.h: Likewise.
26117 * lib/unictype/pr_pattern_syntax.h: Likewise.
26118 * lib/unictype/pr_pattern_white_space.h: Likewise.
26119 * lib/unictype/pr_private_use.h: Likewise.
26120 * lib/unictype/pr_punctuation.h: Likewise.
26121 * lib/unictype/pr_quotation_mark.h: Likewise.
26122 * lib/unictype/pr_radical.h: Likewise.
26123 * lib/unictype/pr_sentence_terminal.h: Likewise.
26124 * lib/unictype/pr_soft_dotted.h: Likewise.
26125 * lib/unictype/pr_space.h: Likewise.
26126 * lib/unictype/pr_terminal_punctuation.h: Likewise.
26127 * lib/unictype/pr_titlecase.h: Likewise.
26128 * lib/unictype/pr_unassigned_code_value.h: Likewise.
26129 * lib/unictype/pr_unified_ideograph.h: Likewise.
26130 * lib/unictype/pr_uppercase.h: Likewise.
26131 * lib/unictype/pr_variation_selector.h: Likewise.
26132 * lib/unictype/pr_white_space.h: Likewise.
26133 * lib/unictype/pr_xid_continue.h: Likewise.
26134 * lib/unictype/pr_xid_start.h: Likewise.
26135 * lib/unictype/pr_zero_width.h: Likewise.
26136 * lib/unictype/scripts.h: Likewise.
26137 * lib/unictype/scripts_byname.gperf: Likewise.
26138 * lib/unictype/sy_c_ident.h: Likewise.
26139 * lib/unictype/sy_c_whitespace.h: Likewise.
26140 * lib/unictype/sy_java_ident.h: Likewise.
26141 * lib/unictype/sy_java_whitespace.h: Likewise.
26143 * lib/unictype/Makefile: New file.
26144 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
26146 * lib/unictype/3level.h: New file, copied from glibc.
26147 * lib/unictype/3levelbit.h: New file.
26149 2007-11-11 Bruno Haible <bruno@clisp.org>
26151 * modules/gperf: New file.
26152 * modules/iconv_open (Depends-on): Add it.
26153 (Makefile.am): Remove the GPERF definition.
26155 2007-11-11 Bruno Haible <bruno@clisp.org>
26157 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
26158 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
26160 2007-11-11 Bruno Haible <bruno@clisp.org>
26162 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
26163 (usage): Remove function.
26165 2007-11-11 Bruno Haible <bruno@clisp.org>
26167 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
26168 gl_FUNC_CEILF_LIBS.
26169 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
26171 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
26172 gl_FUNC_CEILL_LIBS.
26173 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
26174 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
26175 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
26177 2007-11-11 Bruno Haible <bruno@clisp.org>
26179 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
26180 roundf were declared but do not exist on functions.
26181 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
26182 roundl were declared but do not exist on functions.
26183 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
26184 HAVE_FLOORL_AND_CEILL, respectively.
26185 Needed for Sun C on Solaris 10.
26187 2007-11-11 Bruno Haible <bruno@clisp.org>
26189 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
26190 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
26191 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
26192 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
26193 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
26194 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
26195 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
26197 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
26198 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
26199 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
26200 of HAVE_DECL_ROUND*.
26201 * modules/math (Makefile.am): Update.
26203 2007-11-10 Bruno Haible <bruno@clisp.org>
26205 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
26206 ptrdiff_t as m4/intl.m4.
26208 2007-11-10 Jim Meyering <meyering@redhat.com>
26210 Avoid link failure for the argmatch test.
26211 * tests/test-argmatch.c (usage): Define function to avoid a link
26212 failure: argmatch_die requires a usage function.
26214 2007-11-09 Bruno Haible <bruno@clisp.org>
26216 * doc/functions/snprintf.texi: Mention BeOS deficiency.
26217 * doc/functions/vsnprintf.texi: Likewise.
26218 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
26219 with a size argument < 2.
26221 2007-11-09 Bruno Haible <bruno@clisp.org>
26223 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
26224 buffer. Fixes an inefficiency introduced on 2007-11-03.
26226 2007-11-09 Bruno Haible <bruno@clisp.org>
26228 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
26229 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
26231 2007-11-08 Jim Meyering <meyering@redhat.com>
26233 Change cache variable name prefix "jm_" to "gl_" everywhere.
26234 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
26235 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
26236 * m4/uptime.m4: s/gl_/jm_/
26238 2007-11-07 Bruno Haible <bruno@clisp.org>
26240 Update to GNU gettext 0.17.
26241 * m4/intl.m4: Update to GNU gettext 0.17.
26242 * m4/po.m4: Likewise.
26243 * modules/gettext (Files): Remove m4/ulonglong.m4.
26244 (configure.ac): Require gettext infrastructure from version 0.17.
26246 2007-11-06 Bruno Haible <bruno@clisp.org>
26248 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
26249 symbolic values are not defined in a public header.
26250 * lib/freadable.c (freadable) [QNX]: Likewise.
26251 * lib/freadahead.c (freadahead) [QNX]: Likewise.
26252 * lib/freading.c (freading) [QNX]: Likewise.
26253 * lib/fseterr.c (fseterr) [QNX]: Likewise.
26254 * lib/fwritable.c (fwritable) [QNX]: Likewise.
26255 * lib/fwriting.c (fwriting) [QNX]: Likewise.
26256 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
26257 Reported by Alain Magloire.
26259 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
26261 2007-11-05 Bruno Haible <bruno@clisp.org>
26263 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
26264 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
26265 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
26266 Reported by Eric Blake.
26268 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26269 Bruno Haible <bruno@clisp.org>
26271 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
26272 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
26273 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
26274 (malloc): Undefine also before including <stdlib.h>.
26275 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
26276 Needed on OSF/1 4.0.
26278 2007-11-05 Jim Meyering <meyering@redhat.com>
26280 git-version-gen: sync from coreutils.
26281 * build-aux/git-version-gen: Add comments.
26282 Change the first '-' to '.' in the snapshot version string,
26283 e.g., 6.9-377-08144 -> 6.9.377-08144
26284 Remove first parameter.
26285 Don't declare a version "-dirty" merely because a time
26288 2007-11-04 Bruno Haible <bruno@clisp.org>
26290 * lib/lock.h: Protect all macro definitions containing an 'if'
26291 statement through a "do { ... } while (0)".
26292 * lib/tls.h: Likewise.
26294 2007-11-04 Bruno Haible <bruno@clisp.org>
26296 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
26298 2007-11-04 Bruno Haible <bruno@clisp.org>
26300 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
26301 * modules/fprintf-posix (Depends-on): Add nocrash.
26302 * modules/snprintf-posix (Depends-on): Likewise.
26303 * modules/sprintf-posix (Depends-on): Likewise.
26304 * modules/vasnprintf-posix (Depends-on): Likewise.
26305 * modules/vasprintf-posix (Depends-on): Likewise.
26306 * modules/vfprintf-posix (Depends-on): Likewise.
26307 * modules/vsnprintf-posix (Depends-on): Likewise.
26308 * modules/vsprintf-posix (Depends-on): Likewise.
26309 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26310 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26311 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26312 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26313 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26314 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26315 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26317 2007-11-04 Bruno Haible <bruno@clisp.org>
26319 * modules/nocrash: New file.
26320 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
26321 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
26323 2007-11-04 Bruno Haible <bruno@clisp.org>
26325 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
26326 precision handling.
26327 * tests/test-vasprintf-posix.c (test_function): Likewise.
26328 * tests/test-snprintf-posix.h (test_function): Likewise.
26329 * tests/test-sprintf-posix.h (test_function): Likewise.
26331 Fix *printf behaviour for large precisions on mingw and BeOS.
26332 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
26333 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
26334 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
26335 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26336 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26337 gl_PRINTF_PRECISION and test its result. Invoke
26338 gl_PREREQ_VASNPRINTF_PRECISION.
26339 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26340 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26341 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26342 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26343 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26344 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26345 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26346 * doc/functions/fprintf.texi: Update.
26347 * doc/functions/printf.texi: Update.
26348 * doc/functions/snprintf.texi: Update.
26349 * doc/functions/sprintf.texi: Update.
26350 * doc/functions/vfprintf.texi: Update.
26351 * doc/functions/vprintf.texi: Update.
26352 * doc/functions/vsnprintf.texi: Update.
26353 * doc/functions/vsprintf.texi: Update.
26355 2007-11-04 Bruno Haible <bruno@clisp.org>
26357 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
26359 2007-11-04 Bruno Haible <bruno@clisp.org>
26361 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
26362 Reported by Sylvain Beucler <beuc@gnu.org>.
26364 2007-11-03 Bruno Haible <bruno@clisp.org>
26366 * tests/test-fprintf-posix2.sh: New file.
26367 * tests/test-fprintf-posix2.c: New file.
26368 * modules/fprintf-posix-tests (Files): Add them.
26369 (TESTS): Add test-fprintf-posix2.sh.
26370 (configure.ac): Check for getrlimit and setrlimit.
26371 (check_PROGRAMS): Add test-fprintf-posix2.
26373 * tests/test-printf-posix2.sh: New file.
26374 * tests/test-printf-posix2.c: New file.
26375 * modules/printf-posix-tests (Files): Add them.
26376 (TESTS): Add test-printf-posix2.sh.
26377 (configure.ac): Check for getrlimit and setrlimit.
26378 (check_PROGRAMS): Add test-printf-posix2.
26380 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
26381 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
26382 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
26383 (decode_double): New function, copied from decode_long_double.
26384 (scale10_round_decimal_decoded): New function, extracted from
26385 scale10_round_decimal_long_double.
26386 (scale10_round_decimal_long_double): Use it.
26387 (scale10_round_decimal_double): New function.
26388 (floorlog10): New function.
26389 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
26390 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
26391 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26392 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26393 gl_PRINTF_ENOMEM and test its result. Invoke
26394 gl_PREREQ_VASNPRINTF_ENOMEM.
26395 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26396 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26397 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26398 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26399 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26400 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26401 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26402 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
26403 * modules/snprintf-posix (Depends-on): Likewise.
26404 * modules/sprintf-posix (Depends-on): Likewise.
26405 * modules/vasnprintf-posix (Depends-on): Likewise.
26406 * modules/vasprintf-posix (Depends-on): Likewise.
26407 * modules/vfprintf-posix (Depends-on): Likewise.
26408 * modules/vsnprintf-posix (Depends-on): Likewise.
26409 * modules/vsprintf-posix (Depends-on): Likewise.
26410 * doc/functions/fprintf.texi: Update.
26411 * doc/functions/printf.texi: Update.
26412 * doc/functions/snprintf.texi: Update.
26413 * doc/functions/sprintf.texi: Update.
26414 * doc/functions/vfprintf.texi: Update.
26415 * doc/functions/vprintf.texi: Update.
26416 * doc/functions/vsnprintf.texi: Update.
26417 * doc/functions/vsprintf.texi: Update.
26419 2007-11-03 Bruno Haible <bruno@clisp.org>
26421 * modules/frexp-nolibm-tests: New file.
26423 * modules/frexp-nolibm: New file.
26424 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
26426 2007-11-03 Bruno Haible <bruno@clisp.org>
26428 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
26429 value is C99 compliant.
26430 Needed for OSF/1 5.1.
26432 2007-11-03 Bruno Haible <bruno@clisp.org>
26434 Fix out-of-memory handling of vasnprintf.
26435 * lib/printf-parse.c: Include <errno.h>.
26436 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
26437 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
26440 2007-11-02 Eric Blake <ebb9@byu.net>
26442 Fix tests on cygwin.
26443 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
26445 2007-11-01 Bruno Haible <bruno@clisp.org>
26447 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
26449 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
26450 needed for POSIX compatibility.
26452 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
26454 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
26455 for compatibility with GNU.
26457 2007-11-01 Bruno Haible <bruno@clisp.org>
26459 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
26460 (putenv): Renamed from rpl_putenv. Change argument type from
26461 'const char *' to 'char *'.
26462 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
26463 of defining putenv in config.h, just set REPLACE_PUTENV.
26464 * modules/putenv (Depends-on): Add stdlib.
26465 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26466 (Include): Use <stdlib.h>.
26467 * lib/stdlib.in.h (putenv): New declaration.
26468 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
26470 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
26472 Needed for MacOS X 10.5.0.
26473 Reported by Peter O'Gorman <peter@pogma.com>.
26475 2007-11-01 Jim Meyering <meyering@redhat.com>
26477 Treat an empty date string exactly like "0".
26478 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
26479 if the remaining date string (to be parsed) is empty, use "0".
26480 Reported by Mischa Molhoek and discussed in this thread:
26481 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
26483 2007-10-31 Bruno Haible <bruno@clisp.org>
26485 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
26486 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
26487 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
26488 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
26489 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
26490 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
26492 2007-10-31 Bruno Haible <bruno@clisp.org>
26494 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
26495 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
26496 (AC_TYPE_LONG_LONG_INT): Use it.
26497 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
26499 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
26501 * modules/stdint (Files): Remove m4/ulonglong.m4.
26502 * modules/strtoull (Files): Use m4/longlong.m4 instead of
26504 * modules/strtoumax (Files): Likewise.
26506 2007-10-30 Bruno Haible <bruno@clisp.org>
26508 * modules/xvasprintf-posix: New file.
26509 Suggested by Eric Blake.
26511 2007-10-30 Bruno Haible <bruno@clisp.org>
26513 * modules/xprintf-posix-tests: New file.
26514 * tests/test-xprintf-posix.sh: New file.
26515 * tests/test-xprintf-posix.c: New file.
26516 * tests/test-xfprintf-posix.c: New file.
26518 * modules/xprintf-posix: New file.
26520 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26522 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
26523 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
26524 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
26526 2007-10-29 Bruno Haible <bruno@clisp.org>
26528 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
26529 contain the special marker '_cv_'.
26530 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26531 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26532 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26533 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26534 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26535 Reported by Ralf Wildenhues.
26537 2007-10-29 Bruno Haible <bruno@clisp.org>
26539 * gnulib-tool (func_import): When --lgpl is not specified, set
26540 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
26542 Reported by Simon Josefsson.
26544 2007-10-28 Bruno Haible <bruno@clisp.org>
26546 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
26547 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
26548 HAVE_DECL_ISFINITE.
26549 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
26550 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
26551 HAVE_DECL_ISFINITE.
26553 2007-10-28 Bruno Haible <bruno@clisp.org>
26555 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
26556 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
26558 2007-10-28 Bruno Haible <bruno@clisp.org>
26560 Fix link errors with Sun C 5.0 on Solaris 10.
26561 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
26562 function is declared but not present in the compiler's libm.
26563 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
26564 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
26565 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
26566 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
26567 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
26568 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
26569 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
26570 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
26571 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
26572 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
26573 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
26576 2007-10-28 Bruno Haible <bruno@clisp.org>
26578 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
26579 gl_FUNC_FLOORL. Cache the result.
26580 (gl_FUNC_FLOORL): Use it.
26581 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
26582 gl_FUNC_CEILL. Cache the result.
26583 (gl_FUNC_CEILL): Use it.
26585 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
26586 gl_FUNC_FLOOR. Cache the result.
26587 (gl_FUNC_FLOOR): Use it.
26588 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
26589 gl_FUNC_CEIL. Cache the result.
26590 (gl_FUNC_CEIL): Use it.
26592 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
26593 gl_FUNC_FLOORF. Cache the result.
26594 (gl_FUNC_FLOORF): Use it.
26595 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
26596 gl_FUNC_CEILF. Cache the result.
26597 (gl_FUNC_CEILF): Use it.
26599 2007-10-28 Bruno Haible <bruno@clisp.org>
26601 * gnulib-tool: Allow specifying the LGPL version number through
26602 --lgpl=2 or --lgpl=3.
26603 (func_usage): Document --lgpl with argument.
26604 Handle --lgpl=... arguments.
26605 (func_import): Recognize also gl_LGPL calls with an argument. When
26606 --lgpl=2 is used and the module's license is just LGPL, report an
26607 error. Set sed_transform_lib_file according to the lgpl variable. In
26608 the generated files, use --lgpl or gl_LGPL invocations with argument,
26610 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
26612 * doc/gnulib-tool.texi (Modified imports): Update explanation of
26615 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26616 Bruno Haible <bruno@clisp.org>
26618 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
26619 (u16_uctomb_aux): Likewise.
26620 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
26622 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
26624 2007-10-28 Bruno Haible <bruno@clisp.org>
26626 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
26627 Invoke AM_GETTEXT_OPTION if it exists.
26628 * modules/vasprintf: Likewise.
26629 * modules/verror: Likewise.
26630 * modules/xprintf: Likewise.
26631 * modules/xvasprintf: Likewise.
26633 2007-10-27 Ben Pfaff <blp@gnu.org>
26635 * lib/math.in.h: Define isfinite macro and prototypes for
26636 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
26638 * m4/math_h.m4: New substitutions for isfinite module.
26639 * lib/isfinite.c: New file.
26640 * m4/isfinite.m4: New file.
26641 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
26642 * modules/isfinite: New file.
26643 * modules/isfinite-tests: New file.
26644 * tests/tests-isfinite.c: New file.
26645 * doc/functions/isfinite.texi: Mention isfinite module.
26646 * MODULES.html.sh: Mention new module.
26648 2007-10-27 Ben Pfaff <blp@gnu.org>
26650 Ralf Wildenhues reported that Tru64 4.0D declares the round
26651 functions but does not have definitions.
26652 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
26653 cannot be found in any library, set the output variable to
26654 "missing" instead of "".
26655 * m4/round.m4: Also use our substitute if we cannot find round in
26656 any library, even if it is declared.
26657 * m4/roundf.m4: Likewise for roundf.
26658 * m4/roundl.m4: Likewise for roundl.
26659 * lib/math.in.h: Undefine roundf, round, roundl before defining
26660 their replacements, to allow for hypothetical systems where these
26661 may be defined as macros but not available in libraries.
26663 2007-10-27 Bruno Haible <bruno@clisp.org>
26665 * doc/gnulib.texi: Invoke @firstparagraphindent.
26666 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
26668 (Source changes): New section.
26670 2007-10-26 Bruno Haible <bruno@clisp.org>
26672 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
26673 borrowed from autoconf.
26675 2007-10-26 Bruno Haible <bruno@clisp.org>
26677 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
26678 strerror returned the empty string. Needed on HP-UX 11.00.
26680 2007-10-24 Micah Cowan <micah@cowan.name>
26682 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
26683 * build-aux/bootstrap: Remove support for now-unnecessary option,
26684 --cvs-user, and envvars CVS_USER, CVS_RSH.
26686 2007-10-24 Jim Meyering <meyering@redhat.com>
26688 Avoid diagnostics from sha1sum when there is no cached checksum.
26689 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
26690 if the po.s1 file hasn't been created yet.
26692 * build-aux/bootstrap: Sync from coreutils:
26693 2007-10-24 Jim Meyering <meyering@redhat.com>
26694 Get gnulib from the git repository, not from an obsolete cvs one.
26695 * build-aux/bootstrap: Suggestion from Micah Cowan.
26696 2007-10-04 Jim Meyering <jim@meyering.net>
26697 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
26698 (update_po_files): Work also when there are no .po files in po/.
26700 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
26702 * README: Append ".git" to git and cg examples.
26703 Problem reported by Benoit Sigoure.
26705 2007-10-23 Micah Cowan <micah@cowan.name>
26707 * users.txt: Add wget.
26709 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26711 Fix linking of some unistdio tests on FreeBSD.
26712 * modules/unistdio/u16-vsnprintf-tests
26713 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
26714 * modules/unistdio/u16-vsprintf-tests
26715 (test_u16_vsnprintf1_LDADD): Likewise.
26716 * modules/unistdio/u32-vsnprintf-tests
26717 (test_u32_vsnprintf1_LDADD): Likewise.
26718 * modules/unistdio/u32-vsprintf-tests
26719 (test_u32_vsprintf1_LDADD): Likewise.
26720 * modules/unistdio/u8-vsnprintf-tests
26721 (test_u8_vsnprintf1_LDADD): Likewise.
26722 * modules/unistdio/u8-vsprintf-tests
26723 (test_u8_vsprintf1_LDADD): Likewise.
26724 * modules/unistdio/ulc-vsnprintf-tests
26725 (test_ulc_vsnprintf1_LDADD): Likewise.
26726 * modules/unistdio/ulc-vsprintf-tests
26727 (test_ulc_vsprintf1_LDADD): Likewise.
26729 Fix linking of some uniconv tests on FreeBSD.
26730 * modules/uniconv/u16-conv-from-enc-tests
26731 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
26732 * modules/uniconv/u16-conv-to-enc-tests
26733 (test_u16_conv_to_enc_LDADD): Likewise.
26734 * modules/uniconv/u16-strconv-from-enc-tests
26735 (test_u16_strconv_from_enc_LDADD): Likewise.
26736 * modules/uniconv/u16-strconv-to-enc-tests
26737 (test_u16_strconv_to_enc_LDADD): Likewise.
26738 * modules/uniconv/u32-conv-from-enc-tests
26739 (test_u32_conv_from_enc_LDADD): Likewise.
26740 * modules/uniconv/u32-conv-to-enc-tests
26741 (test_u32_conv_to_enc_LDADD): Likewise.
26742 * modules/uniconv/u32-strconv-from-enc-tests
26743 (test_u32_strconv_from_enc_LDADD): Likewise.
26744 * modules/uniconv/u32-strconv-to-enc-tests
26745 (test_u32_strconv_to_enc_LDADD): Likewise.
26746 * modules/uniconv/u8-conv-from-enc-tests
26747 (test_u8_conv_from_enc_LDADD): Likewise.
26748 * modules/uniconv/u8-conv-to-enc-tests
26749 (test_u8_conv_to_enc_LDADD): Likewise.
26750 * modules/uniconv/u8-strconv-from-enc-tests
26751 (test_u8_strconv_from_enc_LDADD): Likewise.
26752 * modules/uniconv/u8-strconv-to-enc-tests
26753 (test_u8_strconv_to_enc_LDADD): Likewise.
26755 2007-10-22 Bruno Haible <bruno@clisp.org>
26757 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
26760 2007-10-22 Eric Blake <ebb9@byu.net>
26762 Tweak x*printf documentation.
26763 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
26764 variable name and comments.
26765 Suggested by Bruno Haible.
26767 2007-10-22 Bruno Haible <bruno@clisp.org>
26769 * lib/acl.c (copy_acl): Fix file name in comment.
26771 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
26773 Fix Tru64 problem with stdbool.h.
26774 * lib/stdbool.in.h (false, true):
26775 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
26776 Don't declare as an enum in this situation; it runs afoul of Tru64.
26777 Problem reported by Steven M. Schweda in
26778 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
26780 2007-10-22 Eric Blake <ebb9@byu.net>
26782 Also wrap vf?printf.
26783 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
26784 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
26785 (xvprintf, xvfprintf): New functions.
26787 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26789 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
26790 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
26792 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
26793 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
26795 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
26797 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
26800 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26803 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
26804 Undef `sys' after including sys/table.h, for Tru64 4.0D.
26806 * tests/test-i-ring.c: Work for C89.
26808 2007-10-22 Bruno Haible <bruno@clisp.org>
26810 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
26811 -1u, in preprocessor expression, so that we don't test for the bug
26812 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
26813 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
26815 2007-10-22 Eric Blake <ebb9@byu.net>
26817 * tests/test-yesno.sh: Silence stderr during test.
26819 2007-10-22 Simon Josefsson <simon@josefsson.org>
26821 * modules/crypto/gc-camellia: New file.
26823 * m4/gc-camellia.m4: New file.
26825 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
26827 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
26829 2007-10-22 Simon Josefsson <simon@josefsson.org>
26831 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
26832 --help to stdout. Reported by sms@antinode.org (Steven
26835 2007-10-22 Simon Josefsson <simon@josefsson.org>
26837 * users.txt: Fix link to libksba.
26839 2007-10-21 Ben Pfaff <blp@gnu.org>
26841 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
26842 round.c roundf implementation that depends on floorf and ceilf to
26843 be tested unconditionally.
26845 2007-10-21 Ben Pfaff <blp@gnu.org>
26847 * m4/check-libm-func.m4: Removed.
26848 * m4/check-math-lib.m4: New file.
26849 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
26850 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
26851 definition and lack of AC_LIBOBJ([roundf]).
26852 * m4/roundl.m4: Ditto, and similarly for roundl.
26853 * modules/round: Reference new m4 file.
26854 * modules/roundf: Ditto.
26855 * modules/roundl: Ditto.
26856 * tests/test-round2.c (main): Use ROUND instead of round.
26857 Bug report from Bruno Haible.
26859 2007-10-21 Bruno Haible <bruno@clisp.org>
26861 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
26864 2007-10-21 Bruno Haible <bruno@clisp.org>
26866 * tests/test-wcwidth.c (main): Allow negative result for some control
26869 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
26870 Needed on OSF/1 5.1.
26872 2007-10-21 Bruno Haible <bruno@clisp.org>
26874 * tests/test-floorf1.c: Include isnanf.h.
26875 (main): Use isnanf() instead of isnan().
26876 * tests/test-ceilf1.c: Include isnanf.h.
26877 (main): Use isnanf() instead of isnan().
26878 * tests/test-truncf1.c: Include isnanf.h.
26879 (main): Use isnanf() instead of isnan().
26880 * tests/test-roundf1.c: Include isnanf.h.
26881 (main): Use isnanf() instead of isnan().
26883 2007-10-21 Eric Blake <ebb9@byu.net>
26885 * users.txt: Update URL for m4.
26887 2007-10-21 Bruno Haible <bruno@clisp.org>
26889 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
26891 2007-10-21 Bruno Haible <bruno@clisp.org>
26893 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
26894 Git's management files if the CVS files are not present.
26896 2007-10-20 Bruno Haible <bruno@clisp.org>
26898 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
26901 2007-10-20 Ben Pfaff <blp@gnu.org>
26903 * lib/math.in.h: Declare round, roundf, roundl if we are providing
26905 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
26906 * lib/round.c: New file.
26907 * lib/roundf.c: New file.
26908 * lib/roundl.c: New file.
26909 * m4/round.m4: New file.
26910 * m4/roundf.m4: New file.
26911 * m4/roundl.m4: New file.
26912 * m4/check-libm-func-m4: New file.
26913 * modules/math: Replace round, roundf, roundl related @VARS@ in
26915 * modules/round: New file.
26916 * modules/round-tests: New file.
26917 * modules/roundf: New file.
26918 * modules/roundf-tests: New file.
26919 * modules/roundl: New file.
26920 * modules/roundl-tests: New file.
26921 * tests/test-round1.c: New file.
26922 * tests/test-round2.c: New file.
26923 * tests/test-roundf1.c: New file.
26924 * tests/test-roundf2.c: New file.
26925 * tests/test-roundl.c: New file.
26926 * doc/functions/round.texi: Mention round module.
26927 * doc/functions/roundf.texi: Mention roundf module.
26928 * doc/functions/roundl.texi: Mention roundl module.
26929 * MODULES.html.sh: Mention new modules.
26930 Thanks to Bruno Haible for suggestions.
26932 2007-10-20 Jim Meyering <meyering@redhat.com>
26934 * lib/xprintf.c: Include <config.h> unconditionally.
26936 Change xprintf's license to GPL.
26937 * modules/xprintf (License): s/LGPL/GPL/, since this module
26938 depends on modules (exit and exitfail) which are GPL.
26939 Suggestion from Bruno Haible.
26942 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
26943 Use a clearer diagnostic.
26944 Patch from Bruno Haible.
26946 2007-10-20 Bruno Haible <bruno@clisp.org>
26948 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
26949 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
26950 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26952 2007-10-20 Bruno Haible <bruno@clisp.org>
26954 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
26955 precision in the comparison result > x - 1 or similar.
26956 * tests/test-ceilf2.c (correct_result_p): Likewise.
26957 * tests/test-truncf2.c (correct_result_p): Likewise.
26958 * tests/test-trunc2.c (correct_result_p): Likewise.
26959 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26961 2007-10-20 Bruno Haible <bruno@clisp.org>
26963 * modules/ceil: New file.
26964 * m4/ceil.m4: New file.
26965 * doc/functions/ceil.texi: Mention the 'ceil' module.
26967 2007-10-20 Bruno Haible <bruno@clisp.org>
26969 * modules/floor: New file.
26970 * m4/floor.m4: New file.
26971 * doc/functions/floor.texi: Mention the 'floor' module.
26973 2007-10-20 Bruno Haible <bruno@clisp.org>
26975 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
26977 * modules/floorf-tests (Depends-on): Likewise.
26978 * modules/truncf-tests (Depends-on): Likewise.
26979 * modules/trunc-tests (Depends-on): Likewise.
26980 Reported by Ben Pfaff.
26982 2007-10-19 Jim Meyering <meyering@redhat.com>
26984 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
26985 Don't bother testing specific errno values. Just test ferror.
26987 New module: xprintf
26988 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
26990 2007-10-19 Bruno Haible <bruno@clisp.org>
26992 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
26994 * modules/javaexec (Makefile.am): Likewise.
26995 * modules/relocatable-prog (Makefile.am): Likewise.
26996 Suggested by Jim Meyering.
26998 2007-10-18 Bruno Haible <bruno@clisp.org>
27000 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
27001 Reported by Jim Meyering.
27003 2007-10-18 Eric Blake <ebb9@byu.net>
27005 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
27007 2007-10-18 Bruno Haible <bruno@clisp.org>
27009 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
27010 the format string into writable memory. Needed in Fortify conditions.
27012 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
27013 Bruno Haible <bruno@clisp.org>
27015 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
27016 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
27017 * modules/trim (Depends-on): Add mbchar.
27018 (configure.ac): Add gl_FUNC_MBRTOWC.
27019 (Makefile.am): Augment lib_SOURCES.
27021 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
27023 Modify glob.c to use fstatat and dirfd, to simplify it.
27024 Suggested by Eric Blake.
27025 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
27026 Don't include <stdbool.h>; not used.
27027 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
27028 (link_exists_p): Simplify implementation, since we can now assume
27030 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
27032 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27034 * gnulib-tool (func_get_dependencies): Fix sed script to
27037 2007-10-17 Bruno Haible <bruno@clisp.org>
27039 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
27040 allow locale names without encoding suffix.
27041 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
27042 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27044 2007-10-16 Bruno Haible <bruno@clisp.org>
27046 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
27047 * lib/getgroups.c (getgroups): Likewise.
27048 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
27050 2007-10-16 Bruno Haible <bruno@clisp.org>
27052 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
27053 * modules/malloc-posix (License): Likewise.
27054 * modules/realloc-posix (License): Likewise.
27055 * modules/calloc-posix (License): Likewise.
27056 * modules/intprops (License): Change from GPL to LGPL, with
27057 Paul Eggert's approval.
27059 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
27061 Merge glibc changes into lib/glob.c.
27063 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
27064 2007-10-15 04:59:03 UTC. Here are the changes:
27066 2007-10-14 Ulrich Drepper <drepper@redhat.com>
27068 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
27070 * lib/glob.c: Add some branch prediction throughout.
27072 2007-10-07 Ulrich Drepper <drepper@redhat.com>
27075 * lib/glob.c (glob): Recognize patterns starting \/.
27077 2007-02-14 Jakub Jelinek <jakub@redhat.com>
27080 * lib/glob.c (attribute_hidden): Define if not defined.
27081 (glob): Unescape dirname, filename or username when needed and not
27082 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
27083 is NULL. Handle unescaped [ in pattern without closing ].
27084 Don't pass GLOB_CHECK down to recursive glob for directories.
27085 (__glob_pattern_type): New function.
27086 (__glob_pattern_p): Implement using __glob_pattern_type.
27087 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
27088 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
27089 Remove unreachable code.
27091 2006-09-30 Ulrich Drepper <drepper@redhat.com>
27093 * lib/glob.c (glob_in_dir): Add some comments and asserts to
27094 explain why there are no leaks.
27096 2006-09-25 Jakub Jelinek <jakub@redhat.com>
27099 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
27100 time, rather allocate increasingly bigger arrays of pointers, if
27101 possible with alloca, if too large with malloc.
27103 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
27105 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
27106 Problem reported by H.Merijn Brand in
27107 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
27108 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
27109 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
27111 2007-10-15 Bruno Haible <bruno@clisp.org>
27113 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
27114 with explicit rpl_ prefix.
27115 * lib/fopen.c (fopen): Likewise.
27116 * lib/freopen.c (freopen): Likewise.
27117 * lib/iconv.c (iconv): Likewise.
27118 * lib/iconv_close.c (iconv_close): Likewise.
27120 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27122 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
27124 2007-10-15 Bruno Haible <bruno@clisp.org>
27126 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
27127 <stddef.h> instead of <stdlib.h> since we only need NULL.
27128 Reported by Ben Pfaff <blp@cs.stanford.edu>.
27130 2007-10-15 Bruno Haible <bruno@clisp.org>
27132 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
27133 Replace paragraph talking about LIBOBJS.
27134 Reported by Colin Watson <cjwatson@debian.org>.
27136 2007-10-15 Bruno Haible <bruno@clisp.org>
27138 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
27139 <stdlib.h> before using NULL.
27141 2007-10-15 Simon Josefsson <simon@josefsson.org>
27143 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
27144 Reported by Albert Chin <china@thewrittenword.com>.
27146 2007-10-14 Bruno Haible <bruno@clisp.org>
27148 * modules/iconv_open-utf-tests: New file.
27149 * tests/test-iconv-utf.c: New file.
27151 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
27152 * modules/iconv_open-utf: New file.
27153 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
27154 (iconv, iconv_close): New declarations.
27155 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
27157 (iconv_open): Add special handling of conversion between UTF-8 and
27158 UTF-{16,32}{BE,LE}.
27159 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
27160 * lib/iconv_close.c: New file.
27161 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
27162 gl_FUNC_ICONV_OPEN.
27163 (gl_FUNC_ICONV_OPEN): Use it.
27164 (gl_FUNC_ICONV_OPEN_UTF): New macro.
27165 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
27166 and REPLACE_ICONV_UTF.
27167 * modules/iconv_open (Depends-on): Add c-strcase.
27168 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
27170 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
27172 2007-10-13 Albert Chin <china@thewrittenword.com>
27173 Bruno Haible <bruno@clisp.org>
27175 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
27176 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
27178 2007-10-13 Bruno Haible <bruno@clisp.org>
27180 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
27181 defined, use the ISO C99 inline semantics.
27182 * lib/argp.h (ARGP_EI): Likewise.
27184 2007-10-13 Bruno Haible <bruno@clisp.org>
27186 Handle 'inline' change in gcc 4.3.0.
27187 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
27188 argp_fmtstream_write, argp_fmtstream_set_lmargin,
27189 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
27190 argp_fmtstream_point): Disable 'extern' declaration if the function
27191 definition is going to be provided inline.
27192 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
27193 semantics, not the ISO C99 inline semantics.
27194 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
27195 'extern' declaration if the function definition is going to be provided
27197 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
27198 the GNU C inline semantics, not the ISO C99 inline semantics. With
27199 GCC 4.2, avoid a warning.
27201 2007-10-13 Bruno Haible <bruno@clisp.org>
27203 * lib/freading.h (freading): Enable the use of __freading for
27205 * lib/freading.c (freading): Likewise.
27207 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
27209 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
27210 "warning: C99 inline functions are not supported; using GNU89".
27212 2007-10-12 Bruno Haible <bruno@clisp.org>
27214 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
27216 * tests/test-ceilf2.c: New file.
27217 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
27219 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
27220 * modules/ceilf-tests: Update.
27222 2007-10-12 Bruno Haible <bruno@clisp.org>
27224 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
27226 * tests/test-floorf2.c: New file.
27227 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
27229 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
27230 * modules/floorf-tests: Update.
27232 2007-10-12 Bruno Haible <bruno@clisp.org>
27234 * tests/test-trunc2.c: New file.
27235 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
27237 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
27238 * modules/trunc-tests: Update.
27240 2007-10-12 Bruno Haible <bruno@clisp.org>
27242 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
27244 * tests/test-truncf2.c: New file.
27245 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
27247 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
27248 * modules/truncf-tests: Update.
27250 2007-10-11 Eric Blake <ebb9@byu.net>
27252 Don't claim strerror is broken on Interix.
27253 * doc/functions/strerror.texi (strerror): Known broken systems are
27254 now Solaris 8, and not Interix.
27255 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
27256 Interix on cross-compile.
27257 Reported by Martin Koeppe in
27258 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
27260 2007-10-11 Bruno Haible <bruno@clisp.org>
27262 * modules/i-ring-tests: New file.
27263 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
27266 2007-10-11 Bruno Haible <bruno@clisp.org>
27268 * modules/filenamecat-tests: New file.
27269 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
27270 * lib/filenamecat.c: Remove test code.
27272 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
27274 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
27276 * lib/strerror.c: Include <string.h> always, to test interface,
27277 and to remove the need for the dummy.
27278 Include intprops.h to compute width instead of doing it ourselves
27279 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
27280 (strerror): Define it to return NULL if there's no system strerror.
27281 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
27282 Omit !HAVE_STRERROR code. We don't need to worry about supporting
27283 ancient pre-strerror Unix systems well any more. Saying "unknown
27284 system error" is enough.
27285 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
27286 simpler strerror.c implementation.
27287 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
27288 Simplify the tests to reflect the simpler strerror implementation.
27289 * modules/strerror (Depends-on): Add intprops.
27291 2007-10-09 Eric Blake <ebb9@byu.net>
27293 Silence test-fpending.
27294 * modules/fpending-tests (Files): Add wrapper script.
27295 * tests/test-fpending.sh: New file.
27297 2007-10-09 Bruno Haible <bruno@clisp.org>
27299 * MODULES.html.sh (func_module): Don't create a hyperlink for
27300 function names like 'printf_frexp'.
27301 (Misc): Add crc, memxor.
27302 (Characteristics of floating types): New section.
27303 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
27304 isnanf-nolibm, signbit, trunc, truncf, truncl.
27305 (Enhancements for ISO C 99 functions): New subsection Input/output.
27306 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
27307 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
27308 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
27309 (Compatibility checks for POSIX:2001 functions): Add clock-time.
27310 (Enhancements for POSIX:2001 functions): Add chdir-long.
27311 (File system functions): Add areadlink, chdir-safer, read-file.
27312 Remove cycle-check.
27313 (File system as inode set): New section.
27314 (Date and time): Add gethrxtime.
27315 (Multithreading): Add openmp.
27316 (Internationalization functions): Add localename.
27317 (Unicode string functions): Add unistr/u*-mbsnlen.
27318 (Support for maintaining and releasing projects): Add git-version-gen.
27319 (Lone files): Remove directories.
27321 2007-10-08 Ben Pfaff <blp@gnu.org>
27323 * lib/xmalloca.h: Fix typo in comment.
27325 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
27327 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
27328 when avoiding problems with integer overflow. Use a portable test
27331 2007-10-08 Simon Josefsson <simon@josefsson.org>
27333 * modules/dummy (License): Change to LGPLv2+.
27334 * modules/float (License): Likewise
27335 * modules/realloc (License): Likewise
27336 * modules/stdlib (License): Likewise
27338 2007-10-07 Bruno Haible <bruno@clisp.org>
27340 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
27341 * floor.c (TWO_MANT_DIG): Likewise.
27342 * ceil.c (TWO_MANT_DIG): Likewise.
27343 Reported by Ben Pfaff.
27345 2007-10-07 Bruno Haible <bruno@clisp.org>
27347 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
27348 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
27349 * lib/frexp.c (FUNC): Likewise.
27350 * lib/printf-frexp.h (printf_frexp): Likewise.
27351 * lib/printf-frexpl.h (printf_frexpl): Likewise.
27352 * lib/printf-frexp.c (FUNC): Likewise.
27353 Suggested by Jim Meyering.
27355 2007-10-07 Jim Meyering <meyering@redhat.com>
27357 Make xnanosleep's integer overflow test more robust.
27358 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
27359 so that gcc-4.3.0 doesn't optimize away this test for overflow.
27361 2007-10-07 Bruno Haible <bruno@clisp.org>
27363 * NEWS: Mention the license change.
27365 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
27366 abbreviations in the modules files.
27368 Change copyright notice from GPLv2+ to GPLv3+.
27369 * README: Change copyright notice.
27370 * MODULES.html.sh: Likewise.
27371 * build-aux/bootstrap.conf: Likewise.
27372 * build-aux/config.libpath: Likewise.
27373 * build-aux/csharpcomp.sh.in: Likewise.
27374 * build-aux/csharpexec.sh.in: Likewise.
27375 * build-aux/install-reloc: Likewise.
27376 * build-aux/javacomp.sh.in: Likewise.
27377 * build-aux/javaexec.sh.in: Likewise.
27378 * build-aux/ldd.sh.in: Likewise.
27379 * build-aux/reloc-ldflags: Likewise.
27380 * build-aux/relocatable.sh.in: Likewise.
27381 * build-aux/x-to-1.in: Likewise.
27382 * check-module: Likewise.
27383 * config/srclistvars.sh: Likewise.
27384 * gnulib-tool: Likewise.
27385 * lib/acl-internal.h: Likewise.
27386 * lib/acl.c: Likewise.
27387 * lib/acl.h: Likewise.
27388 * lib/acl_entries.c: Likewise.
27389 * lib/areadlink-with-size.c: Likewise.
27390 * lib/areadlink.c: Likewise.
27391 * lib/areadlink.h: Likewise.
27392 * lib/argmatch.c: Likewise.
27393 * lib/argmatch.h: Likewise.
27394 * lib/argp-ba.c: Likewise.
27395 * lib/argp-eexst.c: Likewise.
27396 * lib/argp-fmtstream.c: Likewise.
27397 * lib/argp-fmtstream.h: Likewise.
27398 * lib/argp-fs-xinl.c: Likewise.
27399 * lib/argp-help.c: Likewise.
27400 * lib/argp-namefrob.h: Likewise.
27401 * lib/argp-parse.c: Likewise.
27402 * lib/argp-pin.c: Likewise.
27403 * lib/argp-pv.c: Likewise.
27404 * lib/argp-pvh.c: Likewise.
27405 * lib/argp-xinl.c: Likewise.
27406 * lib/argp.h: Likewise.
27407 * lib/at-func.c: Likewise.
27408 * lib/atanl.c: Likewise.
27409 * lib/backupfile.c: Likewise.
27410 * lib/backupfile.h: Likewise.
27411 * lib/basename.c: Likewise.
27412 * lib/binary-io.h: Likewise.
27413 * lib/byteswap.in.h: Likewise.
27414 * lib/c-stack.c: Likewise.
27415 * lib/c-stack.h: Likewise.
27416 * lib/c-strcasestr.c: Likewise.
27417 * lib/c-strcasestr.h: Likewise.
27418 * lib/c-strstr.c: Likewise.
27419 * lib/c-strstr.h: Likewise.
27420 * lib/c-strtod.c: Likewise.
27421 * lib/calloc.c: Likewise.
27422 * lib/canon-host.c: Likewise.
27423 * lib/canon-host.h: Likewise.
27424 * lib/canonicalize-lgpl.c: Likewise.
27425 * lib/canonicalize.c: Likewise.
27426 * lib/canonicalize.h: Likewise.
27427 * lib/ceil.c: Likewise.
27428 * lib/ceilf.c: Likewise.
27429 * lib/ceill.c: Likewise.
27430 * lib/chdir-long.c: Likewise.
27431 * lib/chdir-long.h: Likewise.
27432 * lib/chdir-safer.c: Likewise.
27433 * lib/chdir-safer.h: Likewise.
27434 * lib/chown.c: Likewise.
27435 * lib/classpath.c: Likewise.
27436 * lib/classpath.h: Likewise.
27437 * lib/clean-temp.c: Likewise.
27438 * lib/clean-temp.h: Likewise.
27439 * lib/cloexec.c: Likewise.
27440 * lib/close-stream.c: Likewise.
27441 * lib/closein.c: Likewise.
27442 * lib/closein.h: Likewise.
27443 * lib/closeout.c: Likewise.
27444 * lib/closeout.h: Likewise.
27445 * lib/concat-filename.c: Likewise.
27446 * lib/copy-file.c: Likewise.
27447 * lib/copy-file.h: Likewise.
27448 * lib/count-one-bits.h: Likewise.
27449 * lib/crc.c: Likewise.
27450 * lib/crc.h: Likewise.
27451 * lib/creat-safer.c: Likewise.
27452 * lib/csharpcomp.c: Likewise.
27453 * lib/csharpcomp.h: Likewise.
27454 * lib/csharpexec.c: Likewise.
27455 * lib/csharpexec.h: Likewise.
27456 * lib/cycle-check.c: Likewise.
27457 * lib/cycle-check.h: Likewise.
27458 * lib/diacrit.c: Likewise.
27459 * lib/diacrit.h: Likewise.
27460 * lib/diffseq.h: Likewise.
27461 * lib/dirchownmod.c: Likewise.
27462 * lib/dirent.in.h: Likewise.
27463 * lib/dirfd.c: Likewise.
27464 * lib/dirfd.h: Likewise.
27465 * lib/dirname.c: Likewise.
27466 * lib/dirname.h: Likewise.
27467 * lib/dummy.c: Likewise.
27468 * lib/dup-safer.c: Likewise.
27469 * lib/dup2.c: Likewise.
27470 * lib/eealloc.h: Likewise.
27471 * lib/error.c: Likewise.
27472 * lib/error.h: Likewise.
27473 * lib/euidaccess.c: Likewise.
27474 * lib/exclude.c: Likewise.
27475 * lib/exclude.h: Likewise.
27476 * lib/execute.c: Likewise.
27477 * lib/execute.h: Likewise.
27478 * lib/exitfail.c: Likewise.
27479 * lib/exitfail.h: Likewise.
27480 * lib/expl.c: Likewise.
27481 * lib/fatal-signal.c: Likewise.
27482 * lib/fatal-signal.h: Likewise.
27483 * lib/fbufmode.c: Likewise.
27484 * lib/fbufmode.h: Likewise.
27485 * lib/fchdir.c: Likewise.
27486 * lib/fchmodat.c: Likewise.
27487 * lib/fchownat.c: Likewise.
27488 * lib/fcntl--.h: Likewise.
27489 * lib/fcntl-safer.h: Likewise.
27490 * lib/fcntl.in.h: Likewise.
27491 * lib/fd-safer.c: Likewise.
27492 * lib/fflush.c: Likewise.
27493 * lib/file-has-acl.c: Likewise.
27494 * lib/file-set.c: Likewise.
27495 * lib/file-type.c: Likewise.
27496 * lib/file-type.h: Likewise.
27497 * lib/fileblocks.c: Likewise.
27498 * lib/filemode.c: Likewise.
27499 * lib/filemode.h: Likewise.
27500 * lib/filename.h: Likewise.
27501 * lib/filenamecat.c: Likewise.
27502 * lib/filenamecat.h: Likewise.
27503 * lib/findprog.c: Likewise.
27504 * lib/findprog.h: Likewise.
27505 * lib/float.in.h: Likewise.
27506 * lib/floor.c: Likewise.
27507 * lib/floorf.c: Likewise.
27508 * lib/floorl.c: Likewise.
27509 * lib/fopen-safer.c: Likewise.
27510 * lib/fopen.c: Likewise.
27511 * lib/fpending.c: Likewise.
27512 * lib/fpending.h: Likewise.
27513 * lib/fprintf.c: Likewise.
27514 * lib/fprintftime.h: Likewise.
27515 * lib/fpucw.h: Likewise.
27516 * lib/fpurge.c: Likewise.
27517 * lib/fpurge.h: Likewise.
27518 * lib/freadable.c: Likewise.
27519 * lib/freadable.h: Likewise.
27520 * lib/freadahead.c: Likewise.
27521 * lib/freadahead.h: Likewise.
27522 * lib/freading.c: Likewise.
27523 * lib/freading.h: Likewise.
27524 * lib/free.c: Likewise.
27525 * lib/freopen.c: Likewise.
27526 * lib/frexp.c: Likewise.
27527 * lib/frexpl.c: Likewise.
27528 * lib/fseek.c: Likewise.
27529 * lib/fseterr.c: Likewise.
27530 * lib/fseterr.h: Likewise.
27531 * lib/fstatat.c: Likewise.
27532 * lib/fstrcmp.c: Likewise.
27533 * lib/fstrcmp.h: Likewise.
27534 * lib/fsusage.c: Likewise.
27535 * lib/fsusage.h: Likewise.
27536 * lib/ftell.c: Likewise.
27537 * lib/ftello.c: Likewise.
27538 * lib/fts-cycle.c: Likewise.
27539 * lib/fts.c: Likewise.
27540 * lib/fts_.h: Likewise.
27541 * lib/full-read.c: Likewise.
27542 * lib/full-read.h: Likewise.
27543 * lib/full-write.c: Likewise.
27544 * lib/full-write.h: Likewise.
27545 * lib/fwritable.c: Likewise.
27546 * lib/fwritable.h: Likewise.
27547 * lib/fwriteerror.c: Likewise.
27548 * lib/fwriteerror.h: Likewise.
27549 * lib/fwriting.c: Likewise.
27550 * lib/fwriting.h: Likewise.
27551 * lib/gcd.c: Likewise.
27552 * lib/gcd.h: Likewise.
27553 * lib/getcwd.c: Likewise.
27554 * lib/getdate.h: Likewise.
27555 * lib/getdate.y: Likewise.
27556 * lib/getdomainname.c: Likewise.
27557 * lib/getdomainname.h: Likewise.
27558 * lib/getgroups.c: Likewise.
27559 * lib/gethostname.c: Likewise.
27560 * lib/gethrxtime.c: Likewise.
27561 * lib/gethrxtime.h: Likewise.
27562 * lib/getloadavg.c: Likewise.
27563 * lib/getndelim2.c: Likewise.
27564 * lib/getndelim2.h: Likewise.
27565 * lib/getnline.c: Likewise.
27566 * lib/getnline.h: Likewise.
27567 * lib/getopt.c: Likewise.
27568 * lib/getopt.in.h: Likewise.
27569 * lib/getopt1.c: Likewise.
27570 * lib/getopt_int.h: Likewise.
27571 * lib/getpagesize.h: Likewise.
27572 * lib/getsubopt.c: Likewise.
27573 * lib/gettime.c: Likewise.
27574 * lib/getugroups.c: Likewise.
27575 * lib/getugroups.h: Likewise.
27576 * lib/getusershell.c: Likewise.
27577 * lib/gl_anyavltree_list1.h: Likewise.
27578 * lib/gl_anyavltree_list2.h: Likewise.
27579 * lib/gl_anyhash_list1.h: Likewise.
27580 * lib/gl_anyhash_list2.h: Likewise.
27581 * lib/gl_anylinked_list1.h: Likewise.
27582 * lib/gl_anylinked_list2.h: Likewise.
27583 * lib/gl_anyrbtree_list1.h: Likewise.
27584 * lib/gl_anyrbtree_list2.h: Likewise.
27585 * lib/gl_anytree_list1.h: Likewise.
27586 * lib/gl_anytree_list2.h: Likewise.
27587 * lib/gl_anytree_oset.h: Likewise.
27588 * lib/gl_anytreehash_list1.h: Likewise.
27589 * lib/gl_anytreehash_list2.h: Likewise.
27590 * lib/gl_array_list.c: Likewise.
27591 * lib/gl_array_list.h: Likewise.
27592 * lib/gl_array_oset.c: Likewise.
27593 * lib/gl_array_oset.h: Likewise.
27594 * lib/gl_avltree_list.c: Likewise.
27595 * lib/gl_avltree_list.h: Likewise.
27596 * lib/gl_avltree_oset.c: Likewise.
27597 * lib/gl_avltree_oset.h: Likewise.
27598 * lib/gl_avltreehash_list.c: Likewise.
27599 * lib/gl_avltreehash_list.h: Likewise.
27600 * lib/gl_carray_list.c: Likewise.
27601 * lib/gl_carray_list.h: Likewise.
27602 * lib/gl_linked_list.c: Likewise.
27603 * lib/gl_linked_list.h: Likewise.
27604 * lib/gl_linkedhash_list.c: Likewise.
27605 * lib/gl_linkedhash_list.h: Likewise.
27606 * lib/gl_list.c: Likewise.
27607 * lib/gl_list.h: Likewise.
27608 * lib/gl_oset.c: Likewise.
27609 * lib/gl_oset.h: Likewise.
27610 * lib/gl_rbtree_list.c: Likewise.
27611 * lib/gl_rbtree_list.h: Likewise.
27612 * lib/gl_rbtree_oset.c: Likewise.
27613 * lib/gl_rbtree_oset.h: Likewise.
27614 * lib/gl_rbtreehash_list.c: Likewise.
27615 * lib/gl_rbtreehash_list.h: Likewise.
27616 * lib/gl_sublist.c: Likewise.
27617 * lib/gl_sublist.h: Likewise.
27618 * lib/group-member.c: Likewise.
27619 * lib/group-member.h: Likewise.
27620 * lib/hard-locale.c: Likewise.
27621 * lib/hard-locale.h: Likewise.
27622 * lib/hash-pjw.c: Likewise.
27623 * lib/hash-pjw.h: Likewise.
27624 * lib/hash-triple.c: Likewise.
27625 * lib/hash.c: Likewise.
27626 * lib/hash.h: Likewise.
27627 * lib/human.c: Likewise.
27628 * lib/human.h: Likewise.
27629 * lib/i-ring.c: Likewise.
27630 * lib/i-ring.h: Likewise.
27631 * lib/idcache.c: Likewise.
27632 * lib/imaxabs.c: Likewise.
27633 * lib/imaxdiv.c: Likewise.
27634 * lib/inet_pton.c: Likewise.
27635 * lib/inet_pton.h: Likewise.
27636 * lib/intprops.h: Likewise.
27637 * lib/inttostr.c: Likewise.
27638 * lib/inttostr.h: Likewise.
27639 * lib/inttypes.in.h: Likewise.
27640 * lib/isapipe.c: Likewise.
27641 * lib/isdir.c: Likewise.
27642 * lib/isnan.c: Likewise.
27643 * lib/isnan.h: Likewise.
27644 * lib/isnanf.c: Likewise.
27645 * lib/isnanf.h: Likewise.
27646 * lib/isnanl-nolibm.h: Likewise.
27647 * lib/isnanl.c: Likewise.
27648 * lib/isnanl.h: Likewise.
27649 * lib/javacomp.c: Likewise.
27650 * lib/javacomp.h: Likewise.
27651 * lib/javaexec.c: Likewise.
27652 * lib/javaexec.h: Likewise.
27653 * lib/javaversion.c: Likewise.
27654 * lib/javaversion.h: Likewise.
27655 * lib/javaversion.java: Likewise.
27656 * lib/lbrkprop.h: Likewise.
27657 * lib/lchmod.h: Likewise.
27658 * lib/lchown.c: Likewise.
27659 * lib/ldexpl.c: Likewise.
27660 * lib/linebreak.c: Likewise.
27661 * lib/linebreak.h: Likewise.
27662 * lib/linebuffer.c: Likewise.
27663 * lib/linebuffer.h: Likewise.
27664 * lib/locale.in.h: Likewise.
27665 * lib/logl.c: Likewise.
27666 * lib/long-options.c: Likewise.
27667 * lib/long-options.h: Likewise.
27668 * lib/lstat.c: Likewise.
27669 * lib/lstat.h: Likewise.
27670 * lib/math.in.h: Likewise.
27671 * lib/mbchar.c: Likewise.
27672 * lib/mbchar.h: Likewise.
27673 * lib/mbfile.h: Likewise.
27674 * lib/mbiter.h: Likewise.
27675 * lib/mbscasecmp.c: Likewise.
27676 * lib/mbscasestr.c: Likewise.
27677 * lib/mbschr.c: Likewise.
27678 * lib/mbscspn.c: Likewise.
27679 * lib/mbslen.c: Likewise.
27680 * lib/mbsncasecmp.c: Likewise.
27681 * lib/mbsnlen.c: Likewise.
27682 * lib/mbspbrk.c: Likewise.
27683 * lib/mbspcasecmp.c: Likewise.
27684 * lib/mbsrchr.c: Likewise.
27685 * lib/mbssep.c: Likewise.
27686 * lib/mbsspn.c: Likewise.
27687 * lib/mbsstr.c: Likewise.
27688 * lib/mbstok_r.c: Likewise.
27689 * lib/mbswidth.c: Likewise.
27690 * lib/mbswidth.h: Likewise.
27691 * lib/mbuiter.h: Likewise.
27692 * lib/memcasecmp.c: Likewise.
27693 * lib/memcasecmp.h: Likewise.
27694 * lib/memchr.c: Likewise.
27695 * lib/memcmp.c: Likewise.
27696 * lib/memcoll.c: Likewise.
27697 * lib/memcoll.h: Likewise.
27698 * lib/memcpy.c: Likewise.
27699 * lib/memrchr.c: Likewise.
27700 * lib/mkancesdirs.c: Likewise.
27701 * lib/mkdir-p.c: Likewise.
27702 * lib/mkdir-p.h: Likewise.
27703 * lib/mkdir.c: Likewise.
27704 * lib/mkdirat.c: Likewise.
27705 * lib/mkdtemp.c: Likewise.
27706 * lib/mkstemp-safer.c: Likewise.
27707 * lib/mkstemp.c: Likewise.
27708 * lib/modechange.c: Likewise.
27709 * lib/modechange.h: Likewise.
27710 * lib/mountlist.c: Likewise.
27711 * lib/mountlist.h: Likewise.
27712 * lib/mpsort.c: Likewise.
27713 * lib/nanosleep.c: Likewise.
27714 * lib/obstack.c: Likewise.
27715 * lib/obstack.h: Likewise.
27716 * lib/open-safer.c: Likewise.
27717 * lib/open.c: Likewise.
27718 * lib/openat-die.c: Likewise.
27719 * lib/openat-priv.h: Likewise.
27720 * lib/openat-proc.c: Likewise.
27721 * lib/openat.c: Likewise.
27722 * lib/openat.h: Likewise.
27723 * lib/pagealign_alloc.c: Likewise.
27724 * lib/pagealign_alloc.h: Likewise.
27725 * lib/physmem.c: Likewise.
27726 * lib/physmem.h: Likewise.
27727 * lib/pipe-safer.c: Likewise.
27728 * lib/pipe.c: Likewise.
27729 * lib/pipe.h: Likewise.
27730 * lib/posixtm.c: Likewise.
27731 * lib/posixtm.h: Likewise.
27732 * lib/posixver.c: Likewise.
27733 * lib/printf-frexp.c: Likewise.
27734 * lib/printf-frexp.h: Likewise.
27735 * lib/printf-frexpl.c: Likewise.
27736 * lib/printf-frexpl.h: Likewise.
27737 * lib/printf.c: Likewise.
27738 * lib/progname.c: Likewise.
27739 * lib/progname.h: Likewise.
27740 * lib/progreloc.c: Likewise.
27741 * lib/putenv.c: Likewise.
27742 * lib/quote.c: Likewise.
27743 * lib/quote.h: Likewise.
27744 * lib/quotearg.c: Likewise.
27745 * lib/quotearg.h: Likewise.
27746 * lib/raise.c: Likewise.
27747 * lib/readline.c: Likewise.
27748 * lib/readline.h: Likewise.
27749 * lib/readlink.c: Likewise.
27750 * lib/readtokens.c: Likewise.
27751 * lib/readtokens.h: Likewise.
27752 * lib/readtokens0.c: Likewise.
27753 * lib/readtokens0.h: Likewise.
27754 * lib/readutmp.c: Likewise.
27755 * lib/readutmp.h: Likewise.
27756 * lib/realloc.c: Likewise.
27757 * lib/relocwrapper.c: Likewise.
27758 * lib/rename-dest-slash.c: Likewise.
27759 * lib/rename.c: Likewise.
27760 * lib/rmdir.c: Likewise.
27761 * lib/rpmatch.c: Likewise.
27762 * lib/safe-read.c: Likewise.
27763 * lib/safe-read.h: Likewise.
27764 * lib/safe-write.c: Likewise.
27765 * lib/safe-write.h: Likewise.
27766 * lib/same-inode.h: Likewise.
27767 * lib/same.c: Likewise.
27768 * lib/same.h: Likewise.
27769 * lib/save-cwd.c: Likewise.
27770 * lib/save-cwd.h: Likewise.
27771 * lib/savedir.c: Likewise.
27772 * lib/savedir.h: Likewise.
27773 * lib/savewd.c: Likewise.
27774 * lib/savewd.h: Likewise.
27775 * lib/search.in.h: Likewise.
27776 * lib/setenv.c: Likewise.
27777 * lib/setenv.h: Likewise.
27778 * lib/settime.c: Likewise.
27779 * lib/sh-quote.c: Likewise.
27780 * lib/sh-quote.h: Likewise.
27781 * lib/sig2str.c: Likewise.
27782 * lib/sig2str.h: Likewise.
27783 * lib/signal.in.h: Likewise.
27784 * lib/signbitd.c: Likewise.
27785 * lib/signbitf.c: Likewise.
27786 * lib/signbitl.c: Likewise.
27787 * lib/sigprocmask.c: Likewise.
27788 * lib/sincosl.c: Likewise.
27789 * lib/sleep.c: Likewise.
27790 * lib/sprintf.c: Likewise.
27791 * lib/sqrtl.c: Likewise.
27792 * lib/stat-time.h: Likewise.
27793 * lib/stdio--.h: Likewise.
27794 * lib/stdio-safer.h: Likewise.
27795 * lib/stdlib--.h: Likewise.
27796 * lib/stdlib-safer.h: Likewise.
27797 * lib/stdlib.in.h: Likewise.
27798 * lib/stpcpy.c: Likewise.
27799 * lib/stpncpy.c: Likewise.
27800 * lib/strchrnul.c: Likewise.
27801 * lib/strcspn.c: Likewise.
27802 * lib/strerror.c: Likewise.
27803 * lib/strftime.c: Likewise.
27804 * lib/strftime.h: Likewise.
27805 * lib/striconveh.c: Likewise.
27806 * lib/striconveh.h: Likewise.
27807 * lib/striconveha.c: Likewise.
27808 * lib/striconveha.h: Likewise.
27809 * lib/stripslash.c: Likewise.
27810 * lib/strnlen1.c: Likewise.
27811 * lib/strnlen1.h: Likewise.
27812 * lib/strtod.c: Likewise.
27813 * lib/strtoimax.c: Likewise.
27814 * lib/strtok_r.c: Likewise.
27815 * lib/strtol.c: Likewise.
27816 * lib/strtoll.c: Likewise.
27817 * lib/strtoul.c: Likewise.
27818 * lib/strtoull.c: Likewise.
27819 * lib/sysexits.in.h: Likewise.
27820 * lib/tempname.c: Likewise.
27821 * lib/tempname.h: Likewise.
27822 * lib/timespec.h: Likewise.
27823 * lib/tls.c: Likewise.
27824 * lib/tls.h: Likewise.
27825 * lib/tmpdir.c: Likewise.
27826 * lib/tmpdir.h: Likewise.
27827 * lib/tmpfile-safer.c: Likewise.
27828 * lib/tmpfile.c: Likewise.
27829 * lib/trigl.c: Likewise.
27830 * lib/trigl.h: Likewise.
27831 * lib/trim.c: Likewise.
27832 * lib/trim.h: Likewise.
27833 * lib/trunc.c: Likewise.
27834 * lib/truncf.c: Likewise.
27835 * lib/truncl.c: Likewise.
27836 * lib/tsearch.c: Likewise.
27837 * lib/unicodeio.c: Likewise.
27838 * lib/unicodeio.h: Likewise.
27839 * lib/unistd--.h: Likewise.
27840 * lib/unistd-safer.h: Likewise.
27841 * lib/unistdio/ulc-fprintf.c: Likewise.
27842 * lib/unistdio/ulc-vfprintf.c: Likewise.
27843 * lib/unlinkdir.c: Likewise.
27844 * lib/unlinkdir.h: Likewise.
27845 * lib/unlocked-io.h: Likewise.
27846 * lib/unsetenv.c: Likewise.
27847 * lib/userspec.c: Likewise.
27848 * lib/utime.c: Likewise.
27849 * lib/utimecmp.c: Likewise.
27850 * lib/utimecmp.h: Likewise.
27851 * lib/utimens.c: Likewise.
27852 * lib/verify.h: Likewise.
27853 * lib/verror.c: Likewise.
27854 * lib/verror.h: Likewise.
27855 * lib/version-etc-fsf.c: Likewise.
27856 * lib/version-etc.c: Likewise.
27857 * lib/version-etc.h: Likewise.
27858 * lib/vfprintf.c: Likewise.
27859 * lib/vprintf.c: Likewise.
27860 * lib/vsprintf.c: Likewise.
27861 * lib/w32spawn.h: Likewise.
27862 * lib/wait-process.c: Likewise.
27863 * lib/wait-process.h: Likewise.
27864 * lib/wcwidth.c: Likewise.
27865 * lib/write-any-file.c: Likewise.
27866 * lib/xalloc-die.c: Likewise.
27867 * lib/xalloc.h: Likewise.
27868 * lib/xasprintf.c: Likewise.
27869 * lib/xgetcwd.c: Likewise.
27870 * lib/xgetcwd.h: Likewise.
27871 * lib/xgetdomainname.c: Likewise.
27872 * lib/xgetdomainname.h: Likewise.
27873 * lib/xgethostname.c: Likewise.
27874 * lib/xmalloc.c: Likewise.
27875 * lib/xmalloca.c: Likewise.
27876 * lib/xmalloca.h: Likewise.
27877 * lib/xmemcoll.c: Likewise.
27878 * lib/xnanosleep.c: Likewise.
27879 * lib/xreadlink.c: Likewise.
27880 * lib/xreadlink.h: Likewise.
27881 * lib/xsetenv.c: Likewise.
27882 * lib/xsetenv.h: Likewise.
27883 * lib/xstriconv.c: Likewise.
27884 * lib/xstriconv.h: Likewise.
27885 * lib/xstrndup.c: Likewise.
27886 * lib/xstrndup.h: Likewise.
27887 * lib/xstrtod.c: Likewise.
27888 * lib/xstrtod.h: Likewise.
27889 * lib/xstrtol-error.c: Likewise.
27890 * lib/xstrtol.c: Likewise.
27891 * lib/xstrtol.h: Likewise.
27892 * lib/xtime.h: Likewise.
27893 * lib/xvasprintf.c: Likewise.
27894 * lib/xvasprintf.h: Likewise.
27895 * lib/yesno.c: Likewise.
27896 * lib/yesno.h: Likewise.
27897 * posix-modules: Likewise.
27898 * tests/test-alloca-opt.c: Likewise.
27899 * tests/test-arcfour.c: Likewise.
27900 * tests/test-arctwo.c: Likewise.
27901 * tests/test-argmatch.c: Likewise.
27902 * tests/test-argp-2.sh: Likewise.
27903 * tests/test-argp.c: Likewise.
27904 * tests/test-arpa_inet.c: Likewise.
27905 * tests/test-array_list.c: Likewise.
27906 * tests/test-array_oset.c: Likewise.
27907 * tests/test-atexit.c: Likewise.
27908 * tests/test-avltree_list.c: Likewise.
27909 * tests/test-avltree_oset.c: Likewise.
27910 * tests/test-avltreehash_list.c: Likewise.
27911 * tests/test-base64.c: Likewise.
27912 * tests/test-binary-io.c: Likewise.
27913 * tests/test-byteswap.c: Likewise.
27914 * tests/test-c-ctype.c: Likewise.
27915 * tests/test-c-strcasecmp.c: Likewise.
27916 * tests/test-c-strcasestr.c: Likewise.
27917 * tests/test-c-strncasecmp.c: Likewise.
27918 * tests/test-c-strstr.c: Likewise.
27919 * tests/test-canonicalize-lgpl.c: Likewise.
27920 * tests/test-canonicalize.c: Likewise.
27921 * tests/test-carray_list.c: Likewise.
27922 * tests/test-ceilf.c: Likewise.
27923 * tests/test-ceill.c: Likewise.
27924 * tests/test-count-one-bits.c: Likewise.
27925 * tests/test-crc.c: Likewise.
27926 * tests/test-dirname.c: Likewise.
27927 * tests/test-fbufmode.c: Likewise.
27928 * tests/test-fcntl.c: Likewise.
27929 * tests/test-fflush.c: Likewise.
27930 * tests/test-floorf.c: Likewise.
27931 * tests/test-floorl.c: Likewise.
27932 * tests/test-fopen.c: Likewise.
27933 * tests/test-fprintf-posix.c: Likewise.
27934 * tests/test-fprintf-posix.h: Likewise.
27935 * tests/test-fpurge.c: Likewise.
27936 * tests/test-freadable.c: Likewise.
27937 * tests/test-freadahead.c: Likewise.
27938 * tests/test-freading.c: Likewise.
27939 * tests/test-freopen.c: Likewise.
27940 * tests/test-frexp.c: Likewise.
27941 * tests/test-frexpl.c: Likewise.
27942 * tests/test-fseek.c: Likewise.
27943 * tests/test-fseeko.c: Likewise.
27944 * tests/test-fseterr.c: Likewise.
27945 * tests/test-fstrcmp.c: Likewise.
27946 * tests/test-ftell.c: Likewise.
27947 * tests/test-ftello.c: Likewise.
27948 * tests/test-fwritable.c: Likewise.
27949 * tests/test-fwriting.c: Likewise.
27950 * tests/test-getaddrinfo.c: Likewise.
27951 * tests/test-getpass.c: Likewise.
27952 * tests/test-gettimeofday.c: Likewise.
27953 * tests/test-hmac-md5.c: Likewise.
27954 * tests/test-hmac-sha1.c: Likewise.
27955 * tests/test-iconv.c: Likewise.
27956 * tests/test-iconvme.c: Likewise.
27957 * tests/test-inttypes.c: Likewise.
27958 * tests/test-isnan.c: Likewise.
27959 * tests/test-isnanf.c: Likewise.
27960 * tests/test-isnanl-nolibm.c: Likewise.
27961 * tests/test-isnanl.c: Likewise.
27962 * tests/test-isnanl.h: Likewise.
27963 * tests/test-ldexpl.c: Likewise.
27964 * tests/test-linked_list.c: Likewise.
27965 * tests/test-linkedhash_list.c: Likewise.
27966 * tests/test-locale.c: Likewise.
27967 * tests/test-localename.c: Likewise.
27968 * tests/test-lock.c: Likewise.
27969 * tests/test-lseek.c: Likewise.
27970 * tests/test-malloca.c: Likewise.
27971 * tests/test-math.c: Likewise.
27972 * tests/test-mbscasecmp.c: Likewise.
27973 * tests/test-mbscasestr1.c: Likewise.
27974 * tests/test-mbscasestr2.c: Likewise.
27975 * tests/test-mbscasestr3.c: Likewise.
27976 * tests/test-mbscasestr4.c: Likewise.
27977 * tests/test-mbschr.c: Likewise.
27978 * tests/test-mbscspn.c: Likewise.
27979 * tests/test-mbsncasecmp.c: Likewise.
27980 * tests/test-mbspbrk.c: Likewise.
27981 * tests/test-mbspcasecmp.c: Likewise.
27982 * tests/test-mbsrchr.c: Likewise.
27983 * tests/test-mbsspn.c: Likewise.
27984 * tests/test-mbsstr1.c: Likewise.
27985 * tests/test-mbsstr2.c: Likewise.
27986 * tests/test-mbsstr3.c: Likewise.
27987 * tests/test-md5.c: Likewise.
27988 * tests/test-memmem.c: Likewise.
27989 * tests/test-netinet_in.c: Likewise.
27990 * tests/test-open.c: Likewise.
27991 * tests/test-printf-frexp.c: Likewise.
27992 * tests/test-printf-frexpl.c: Likewise.
27993 * tests/test-printf-posix.c: Likewise.
27994 * tests/test-printf-posix.h: Likewise.
27995 * tests/test-rbtree_list.c: Likewise.
27996 * tests/test-rbtree_oset.c: Likewise.
27997 * tests/test-rbtreehash_list.c: Likewise.
27998 * tests/test-read-file.c: Likewise.
27999 * tests/test-rijndael.c: Likewise.
28000 * tests/test-search.c: Likewise.
28001 * tests/test-signbit.c: Likewise.
28002 * tests/test-sleep.c: Likewise.
28003 * tests/test-snprintf-posix.c: Likewise.
28004 * tests/test-snprintf-posix.h: Likewise.
28005 * tests/test-snprintf.c: Likewise.
28006 * tests/test-sprintf-posix.c: Likewise.
28007 * tests/test-sprintf-posix.h: Likewise.
28008 * tests/test-stat-time.c: Likewise.
28009 * tests/test-stdbool.c: Likewise.
28010 * tests/test-stdint.c: Likewise.
28011 * tests/test-stdio.c: Likewise.
28012 * tests/test-stdlib.c: Likewise.
28013 * tests/test-stpncpy.c: Likewise.
28014 * tests/test-strcasestr.c: Likewise.
28015 * tests/test-striconv.c: Likewise.
28016 * tests/test-striconveh.c: Likewise.
28017 * tests/test-striconveha.c: Likewise.
28018 * tests/test-string.c: Likewise.
28019 * tests/test-sys_select.c: Likewise.
28020 * tests/test-sys_socket.c: Likewise.
28021 * tests/test-sys_stat.c: Likewise.
28022 * tests/test-sys_time.c: Likewise.
28023 * tests/test-sysexits.c: Likewise.
28024 * tests/test-time.c: Likewise.
28025 * tests/test-tls.c: Likewise.
28026 * tests/test-trunc.c: Likewise.
28027 * tests/test-truncf.c: Likewise.
28028 * tests/test-truncl.c: Likewise.
28029 * tests/test-unistd.c: Likewise.
28030 * tests/test-vasnprintf-posix.c: Likewise.
28031 * tests/test-vasnprintf-posix2.c: Likewise.
28032 * tests/test-vasnprintf.c: Likewise.
28033 * tests/test-vasprintf-posix.c: Likewise.
28034 * tests/test-vasprintf.c: Likewise.
28035 * tests/test-verify.c: Likewise.
28036 * tests/test-vfprintf-posix.c: Likewise.
28037 * tests/test-vprintf-posix.c: Likewise.
28038 * tests/test-vsnprintf-posix.c: Likewise.
28039 * tests/test-vsnprintf.c: Likewise.
28040 * tests/test-vsprintf-posix.c: Likewise.
28041 * tests/test-wchar.c: Likewise.
28042 * tests/test-wctype.c: Likewise.
28043 * tests/test-wcwidth.c: Likewise.
28044 * tests/test-xstrtol.c: Likewise.
28045 * tests/test-xvasprintf.c: Likewise.
28046 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
28047 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
28048 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
28049 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
28050 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
28051 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
28052 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
28053 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
28054 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
28055 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
28056 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
28057 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
28058 * tests/uniname/test-uninames.c: Likewise.
28059 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
28060 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
28061 * tests/unistdio/test-u16-printf1.h: Likewise.
28062 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
28063 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
28064 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
28065 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
28066 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
28067 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
28068 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
28069 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
28070 * tests/unistdio/test-u32-printf1.h: Likewise.
28071 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
28072 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
28073 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
28074 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
28075 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
28076 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
28077 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
28078 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
28079 * tests/unistdio/test-u8-printf1.h: Likewise.
28080 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
28081 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
28082 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
28083 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
28084 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
28085 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
28086 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
28087 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
28088 * tests/unistdio/test-ulc-printf1.h: Likewise.
28089 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
28090 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
28091 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
28092 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
28093 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
28094 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
28095 * tests/uniwidth/test-u16-strwidth.c: Likewise.
28096 * tests/uniwidth/test-u16-width.c: Likewise.
28097 * tests/uniwidth/test-u32-strwidth.c: Likewise.
28098 * tests/uniwidth/test-u32-width.c: Likewise.
28099 * tests/uniwidth/test-u8-strwidth.c: Likewise.
28100 * tests/uniwidth/test-u8-width.c: Likewise.
28101 * tests/uniwidth/test-uc_width.c: Likewise.
28102 * config/srclist-update: Likewise.
28103 (fixlicense): Update to GPLv3+.
28105 Change copyright notice from LGPLv2.1+ to LGPLv3+.
28106 * tests/test-tsearch.c: Change copyright notice.
28108 Change copyright notice from LGPLv2.0+ to LGPLv3+.
28109 * lib/c-strcaseeq.h: Change copyright notice.
28110 * lib/streq.h: Likewise.
28111 * lib/uniconv.h: Likewise.
28112 * lib/uniconv/u-conv-from-enc.h: Likewise.
28113 * lib/uniconv/u-conv-to-enc.h: Likewise.
28114 * lib/uniconv/u-strconv-from-enc.h: Likewise.
28115 * lib/uniconv/u-strconv-to-enc.h: Likewise.
28116 * lib/uniconv/u16-conv-from-enc.c: Likewise.
28117 * lib/uniconv/u16-conv-to-enc.c: Likewise.
28118 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
28119 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
28120 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
28121 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
28122 * lib/uniconv/u32-conv-from-enc.c: Likewise.
28123 * lib/uniconv/u32-conv-to-enc.c: Likewise.
28124 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
28125 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
28126 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
28127 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
28128 * lib/uniconv/u8-conv-from-enc.c: Likewise.
28129 * lib/uniconv/u8-conv-to-enc.c: Likewise.
28130 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
28131 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
28132 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
28133 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
28134 * lib/uniname.h: Likewise.
28135 * lib/uniname/uniname.c: Likewise.
28136 * lib/unistdio.h: Likewise.
28137 * lib/unistdio/u-asnprintf.h: Likewise.
28138 * lib/unistdio/u-asprintf.h: Likewise.
28139 * lib/unistdio/u-printf-args.c: Likewise.
28140 * lib/unistdio/u-printf-args.h: Likewise.
28141 * lib/unistdio/u-printf-parse.h: Likewise.
28142 * lib/unistdio/u-snprintf.h: Likewise.
28143 * lib/unistdio/u-sprintf.h: Likewise.
28144 * lib/unistdio/u-vasprintf.h: Likewise.
28145 * lib/unistdio/u-vsnprintf.h: Likewise.
28146 * lib/unistdio/u-vsprintf.h: Likewise.
28147 * lib/unistdio/u16-asnprintf.c: Likewise.
28148 * lib/unistdio/u16-asprintf.c: Likewise.
28149 * lib/unistdio/u16-printf-parse.c: Likewise.
28150 * lib/unistdio/u16-snprintf.c: Likewise.
28151 * lib/unistdio/u16-sprintf.c: Likewise.
28152 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
28153 * lib/unistdio/u16-u16-asprintf.c: Likewise.
28154 * lib/unistdio/u16-u16-snprintf.c: Likewise.
28155 * lib/unistdio/u16-u16-sprintf.c: Likewise.
28156 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
28157 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
28158 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
28159 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
28160 * lib/unistdio/u16-vasnprintf.c: Likewise.
28161 * lib/unistdio/u16-vasprintf.c: Likewise.
28162 * lib/unistdio/u16-vsnprintf.c: Likewise.
28163 * lib/unistdio/u16-vsprintf.c: Likewise.
28164 * lib/unistdio/u32-asnprintf.c: Likewise.
28165 * lib/unistdio/u32-asprintf.c: Likewise.
28166 * lib/unistdio/u32-printf-parse.c: Likewise.
28167 * lib/unistdio/u32-snprintf.c: Likewise.
28168 * lib/unistdio/u32-sprintf.c: Likewise.
28169 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
28170 * lib/unistdio/u32-u32-asprintf.c: Likewise.
28171 * lib/unistdio/u32-u32-snprintf.c: Likewise.
28172 * lib/unistdio/u32-u32-sprintf.c: Likewise.
28173 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
28174 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
28175 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
28176 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
28177 * lib/unistdio/u32-vasnprintf.c: Likewise.
28178 * lib/unistdio/u32-vasprintf.c: Likewise.
28179 * lib/unistdio/u32-vsnprintf.c: Likewise.
28180 * lib/unistdio/u32-vsprintf.c: Likewise.
28181 * lib/unistdio/u8-asnprintf.c: Likewise.
28182 * lib/unistdio/u8-asprintf.c: Likewise.
28183 * lib/unistdio/u8-printf-parse.c: Likewise.
28184 * lib/unistdio/u8-snprintf.c: Likewise.
28185 * lib/unistdio/u8-sprintf.c: Likewise.
28186 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
28187 * lib/unistdio/u8-u8-asprintf.c: Likewise.
28188 * lib/unistdio/u8-u8-snprintf.c: Likewise.
28189 * lib/unistdio/u8-u8-sprintf.c: Likewise.
28190 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
28191 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
28192 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
28193 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
28194 * lib/unistdio/u8-vasnprintf.c: Likewise.
28195 * lib/unistdio/u8-vasprintf.c: Likewise.
28196 * lib/unistdio/u8-vsnprintf.c: Likewise.
28197 * lib/unistdio/u8-vsprintf.c: Likewise.
28198 * lib/unistdio/ulc-asnprintf.c: Likewise.
28199 * lib/unistdio/ulc-asprintf.c: Likewise.
28200 * lib/unistdio/ulc-printf-parse.c: Likewise.
28201 * lib/unistdio/ulc-snprintf.c: Likewise.
28202 * lib/unistdio/ulc-sprintf.c: Likewise.
28203 * lib/unistdio/ulc-vasnprintf.c: Likewise.
28204 * lib/unistdio/ulc-vasprintf.c: Likewise.
28205 * lib/unistdio/ulc-vsnprintf.c: Likewise.
28206 * lib/unistdio/ulc-vsprintf.c: Likewise.
28207 * lib/unistr.h: Likewise.
28208 * lib/unistr/u-cpy-alloc.h: Likewise.
28209 * lib/unistr/u-cpy.h: Likewise.
28210 * lib/unistr/u-endswith.h: Likewise.
28211 * lib/unistr/u-move.h: Likewise.
28212 * lib/unistr/u-set.h: Likewise.
28213 * lib/unistr/u-startswith.h: Likewise.
28214 * lib/unistr/u-stpcpy.h: Likewise.
28215 * lib/unistr/u-stpncpy.h: Likewise.
28216 * lib/unistr/u-strcat.h: Likewise.
28217 * lib/unistr/u-strcpy.h: Likewise.
28218 * lib/unistr/u-strcspn.h: Likewise.
28219 * lib/unistr/u-strdup.h: Likewise.
28220 * lib/unistr/u-strlen.h: Likewise.
28221 * lib/unistr/u-strncat.h: Likewise.
28222 * lib/unistr/u-strncpy.h: Likewise.
28223 * lib/unistr/u-strnlen.h: Likewise.
28224 * lib/unistr/u-strpbrk.h: Likewise.
28225 * lib/unistr/u-strspn.h: Likewise.
28226 * lib/unistr/u-strstr.h: Likewise.
28227 * lib/unistr/u-strtok.h: Likewise.
28228 * lib/unistr/u16-check.c: Likewise.
28229 * lib/unistr/u16-chr.c: Likewise.
28230 * lib/unistr/u16-cmp.c: Likewise.
28231 * lib/unistr/u16-cpy-alloc.c: Likewise.
28232 * lib/unistr/u16-cpy.c: Likewise.
28233 * lib/unistr/u16-endswith.c: Likewise.
28234 * lib/unistr/u16-mblen.c: Likewise.
28235 * lib/unistr/u16-mbsnlen.c: Likewise.
28236 * lib/unistr/u16-mbtouc-aux.c: Likewise.
28237 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
28238 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
28239 * lib/unistr/u16-mbtouc.c: Likewise.
28240 * lib/unistr/u16-mbtoucr.c: Likewise.
28241 * lib/unistr/u16-move.c: Likewise.
28242 * lib/unistr/u16-next.c: Likewise.
28243 * lib/unistr/u16-prev.c: Likewise.
28244 * lib/unistr/u16-set.c: Likewise.
28245 * lib/unistr/u16-startswith.c: Likewise.
28246 * lib/unistr/u16-stpcpy.c: Likewise.
28247 * lib/unistr/u16-stpncpy.c: Likewise.
28248 * lib/unistr/u16-strcat.c: Likewise.
28249 * lib/unistr/u16-strchr.c: Likewise.
28250 * lib/unistr/u16-strcmp.c: Likewise.
28251 * lib/unistr/u16-strcpy.c: Likewise.
28252 * lib/unistr/u16-strcspn.c: Likewise.
28253 * lib/unistr/u16-strdup.c: Likewise.
28254 * lib/unistr/u16-strlen.c: Likewise.
28255 * lib/unistr/u16-strmblen.c: Likewise.
28256 * lib/unistr/u16-strmbtouc.c: Likewise.
28257 * lib/unistr/u16-strncat.c: Likewise.
28258 * lib/unistr/u16-strncmp.c: Likewise.
28259 * lib/unistr/u16-strncpy.c: Likewise.
28260 * lib/unistr/u16-strnlen.c: Likewise.
28261 * lib/unistr/u16-strpbrk.c: Likewise.
28262 * lib/unistr/u16-strrchr.c: Likewise.
28263 * lib/unistr/u16-strspn.c: Likewise.
28264 * lib/unistr/u16-strstr.c: Likewise.
28265 * lib/unistr/u16-strtok.c: Likewise.
28266 * lib/unistr/u16-to-u32.c: Likewise.
28267 * lib/unistr/u16-to-u8.c: Likewise.
28268 * lib/unistr/u16-uctomb-aux.c: Likewise.
28269 * lib/unistr/u16-uctomb.c: Likewise.
28270 * lib/unistr/u32-check.c: Likewise.
28271 * lib/unistr/u32-chr.c: Likewise.
28272 * lib/unistr/u32-cmp.c: Likewise.
28273 * lib/unistr/u32-cpy-alloc.c: Likewise.
28274 * lib/unistr/u32-cpy.c: Likewise.
28275 * lib/unistr/u32-endswith.c: Likewise.
28276 * lib/unistr/u32-mblen.c: Likewise.
28277 * lib/unistr/u32-mbsnlen.c: Likewise.
28278 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
28279 * lib/unistr/u32-mbtouc.c: Likewise.
28280 * lib/unistr/u32-mbtoucr.c: Likewise.
28281 * lib/unistr/u32-move.c: Likewise.
28282 * lib/unistr/u32-next.c: Likewise.
28283 * lib/unistr/u32-prev.c: Likewise.
28284 * lib/unistr/u32-set.c: Likewise.
28285 * lib/unistr/u32-startswith.c: Likewise.
28286 * lib/unistr/u32-stpcpy.c: Likewise.
28287 * lib/unistr/u32-stpncpy.c: Likewise.
28288 * lib/unistr/u32-strcat.c: Likewise.
28289 * lib/unistr/u32-strchr.c: Likewise.
28290 * lib/unistr/u32-strcmp.c: Likewise.
28291 * lib/unistr/u32-strcpy.c: Likewise.
28292 * lib/unistr/u32-strcspn.c: Likewise.
28293 * lib/unistr/u32-strdup.c: Likewise.
28294 * lib/unistr/u32-strlen.c: Likewise.
28295 * lib/unistr/u32-strmblen.c: Likewise.
28296 * lib/unistr/u32-strmbtouc.c: Likewise.
28297 * lib/unistr/u32-strncat.c: Likewise.
28298 * lib/unistr/u32-strncmp.c: Likewise.
28299 * lib/unistr/u32-strncpy.c: Likewise.
28300 * lib/unistr/u32-strnlen.c: Likewise.
28301 * lib/unistr/u32-strpbrk.c: Likewise.
28302 * lib/unistr/u32-strrchr.c: Likewise.
28303 * lib/unistr/u32-strspn.c: Likewise.
28304 * lib/unistr/u32-strstr.c: Likewise.
28305 * lib/unistr/u32-strtok.c: Likewise.
28306 * lib/unistr/u32-to-u16.c: Likewise.
28307 * lib/unistr/u32-to-u8.c: Likewise.
28308 * lib/unistr/u32-uctomb.c: Likewise.
28309 * lib/unistr/u8-check.c: Likewise.
28310 * lib/unistr/u8-chr.c: Likewise.
28311 * lib/unistr/u8-cmp.c: Likewise.
28312 * lib/unistr/u8-cpy-alloc.c: Likewise.
28313 * lib/unistr/u8-cpy.c: Likewise.
28314 * lib/unistr/u8-endswith.c: Likewise.
28315 * lib/unistr/u8-mblen.c: Likewise.
28316 * lib/unistr/u8-mbsnlen.c: Likewise.
28317 * lib/unistr/u8-mbtouc-aux.c: Likewise.
28318 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
28319 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
28320 * lib/unistr/u8-mbtouc.c: Likewise.
28321 * lib/unistr/u8-mbtoucr.c: Likewise.
28322 * lib/unistr/u8-move.c: Likewise.
28323 * lib/unistr/u8-next.c: Likewise.
28324 * lib/unistr/u8-prev.c: Likewise.
28325 * lib/unistr/u8-set.c: Likewise.
28326 * lib/unistr/u8-startswith.c: Likewise.
28327 * lib/unistr/u8-stpcpy.c: Likewise.
28328 * lib/unistr/u8-stpncpy.c: Likewise.
28329 * lib/unistr/u8-strcat.c: Likewise.
28330 * lib/unistr/u8-strchr.c: Likewise.
28331 * lib/unistr/u8-strcmp.c: Likewise.
28332 * lib/unistr/u8-strcpy.c: Likewise.
28333 * lib/unistr/u8-strcspn.c: Likewise.
28334 * lib/unistr/u8-strdup.c: Likewise.
28335 * lib/unistr/u8-strlen.c: Likewise.
28336 * lib/unistr/u8-strmblen.c: Likewise.
28337 * lib/unistr/u8-strmbtouc.c: Likewise.
28338 * lib/unistr/u8-strncat.c: Likewise.
28339 * lib/unistr/u8-strncmp.c: Likewise.
28340 * lib/unistr/u8-strncpy.c: Likewise.
28341 * lib/unistr/u8-strnlen.c: Likewise.
28342 * lib/unistr/u8-strpbrk.c: Likewise.
28343 * lib/unistr/u8-strrchr.c: Likewise.
28344 * lib/unistr/u8-strspn.c: Likewise.
28345 * lib/unistr/u8-strstr.c: Likewise.
28346 * lib/unistr/u8-strtok.c: Likewise.
28347 * lib/unistr/u8-to-u16.c: Likewise.
28348 * lib/unistr/u8-to-u32.c: Likewise.
28349 * lib/unistr/u8-uctomb-aux.c: Likewise.
28350 * lib/unistr/u8-uctomb.c: Likewise.
28351 * lib/unitypes.h: Likewise.
28352 * lib/uniwidth.h: Likewise.
28353 * lib/uniwidth/cjk.h: Likewise.
28354 * lib/uniwidth/u16-strwidth.c: Likewise.
28355 * lib/uniwidth/u16-width.c: Likewise.
28356 * lib/uniwidth/u32-strwidth.c: Likewise.
28357 * lib/uniwidth/u32-width.c: Likewise.
28358 * lib/uniwidth/u8-strwidth.c: Likewise.
28359 * lib/uniwidth/u8-width.c: Likewise.
28360 * lib/uniwidth/width.c: Likewise.
28362 2007-10-07 Bruno Haible <bruno@clisp.org>
28364 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
28365 The file is still under LGPL (see modules/inttypes).
28367 2007-10-06 Bruno Haible <bruno@clisp.org>
28369 * modules/trunc (Dependencies): Add 'extensions'.
28370 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
28371 Reported by Ben Pfaff <blp@gnu.org>.
28373 2007-10-06 Bruno Haible <bruno@clisp.org>
28375 * modules/freopen-tests: New file.
28376 * tests/test-freopen.c: New file.
28378 * modules/fopen-tests: New file.
28379 * tests/test-fopen.c: New file.
28381 * modules/fopen: New file.
28382 * lib/fopen.c: New file.
28383 * m4/fopen.m4: New file.
28384 * modules/freopen: New file.
28385 * lib/freopen.c: New file.
28386 * m4/freopen.m4: New file.
28387 * lib/stdio.in.h (fopen, freopen): New declarations.
28388 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
28389 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
28390 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
28391 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
28392 * doc/functions/fopen.texi: Mention the 'fopen' module.
28393 * doc/functions/freopen.texi: Mention the 'freopen' module.
28395 2007-10-06 Bruno Haible <bruno@clisp.org>
28397 * modules/open-tests: New file.
28398 * tests/test-open.c: New file.
28400 * modules/open: New file.
28401 * lib/open.c: New file.
28402 * m4/open.m4: New file.
28403 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
28405 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
28406 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
28408 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
28409 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
28411 * doc/functions/open.texi: Mention the 'open' module.
28413 2007-10-04 Bruno Haible <bruno@clisp.org>
28415 * modules/ceill-tests: New file.
28416 * tests/test-ceill.c: New file.
28418 * modules/ceill: New file.
28419 * lib/ceill.c: Replace entire file.
28420 * m4/ceill.m4: New file.
28421 * lib/math.in.h (ceill): Replace declaration.
28422 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
28423 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
28424 * doc/functions/ceill.texi: Mention the 'ceill' module.
28425 * modules/mathl (Files): Remove lib/ceill.c.
28426 (Depends-on): Add ceill.
28428 2007-10-04 Bruno Haible <bruno@clisp.org>
28430 * modules/ceilf-tests: New file.
28431 * tests/test-ceilf.c: New file.
28433 * modules/ceilf: New file.
28434 * lib/ceil.c: New file.
28435 * lib/ceilf.c: New file.
28436 * m4/ceilf.m4: New file.
28437 * lib/math.in.h (ceilf): New declaration.
28438 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
28440 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
28442 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
28444 2007-10-04 Bruno Haible <bruno@clisp.org>
28446 * modules/floorl-tests: New file.
28447 * tests/test-floorl.c: New file.
28449 * modules/floorl: New file.
28450 * lib/floorl.c: Replace entire file.
28451 * m4/floorl.m4: New file.
28452 * lib/math.in.h (floorl): Replace declaration.
28453 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
28454 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
28455 * doc/functions/floorl.texi: Mention the 'floorl' module.
28456 * modules/mathl (Files): Remove lib/floorl.c.
28457 (Depends-on): Add floorl.
28459 2007-10-04 Bruno Haible <bruno@clisp.org>
28461 * modules/floorf-tests: New file.
28462 * tests/test-floorf.c: New file.
28464 * modules/floorf: New file.
28465 * lib/floor.c: New file.
28466 * lib/floorf.c: New file.
28467 * m4/floorf.m4: New file.
28468 * lib/math.in.h (floorf): New declaration.
28469 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
28471 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
28473 * doc/functions/floorf.texi: Mention the 'floorf' module.
28475 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
28476 Bruno Haible <bruno@clisp.org>
28478 Advertise for the Git server instead of the CVS server.
28479 * doc/gnulib-intro.texi (Steady Development): Mention the Git
28480 repository instead of the CVS one.
28481 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
28482 about all VCS systems generically.
28483 * doc/gnulib.texi (Introduction): Capitalize `Git'.
28485 2007-10-04 Bruno Haible <bruno@clisp.org>
28487 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
28489 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
28491 2007-10-04 Bruno Haible <bruno@clisp.org>
28493 * modules/truncl-tests: New file.
28494 * tests/test-truncl.c: New file.
28496 * modules/truncl: New file.
28497 * lib/truncl.c: New file.
28498 * m4/truncl.m4: New file.
28499 * lib/math.in.h (truncl): New declaration.
28500 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
28502 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
28504 * doc/functions/truncl.texi: Mention the 'truncl' module.
28506 2007-10-04 Bruno Haible <bruno@clisp.org>
28508 * modules/truncf-tests: New file.
28509 * tests/test-truncf.c: New file.
28511 * modules/truncf: New file.
28512 * lib/trunc.c: Make paramerizable through USE_* macros.
28513 * lib/truncf.c: New file.
28514 * m4/truncf.m4: New file.
28515 * lib/math.in.h (truncf): New declaration.
28516 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
28518 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
28520 * doc/functions/truncf.texi: Mention the 'truncf' module.
28522 2007-10-03 Bruno Haible <bruno@clisp.org>
28524 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
28525 augmentation also for tests modules.
28526 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
28527 * modules/atexit-tests (Makefile.am): Likewise.
28528 * modules/binary-io-tests (Makefile.am): Likewise.
28529 * modules/c-strcase-tests (Makefile.am): Likewise.
28530 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
28531 * modules/canonicalize-tests (Makefile.am): Likewise.
28532 * modules/closein-tests (Makefile.am): Likewise.
28533 * modules/fprintf-posix-tests (Makefile.am): Likewise.
28534 * modules/freadahead-tests (Makefile.am): Likewise.
28535 * modules/fseek-tests (Makefile.am): Likewise.
28536 * modules/fseeko-tests (Makefile.am): Likewise.
28537 * modules/ftell-tests (Makefile.am): Likewise.
28538 * modules/ftello-tests (Makefile.am): Likewise.
28539 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
28540 * modules/isnanl-tests (Makefile.am): Likewise.
28541 * modules/lseek-tests (Makefile.am): Likewise.
28542 * modules/mbscasecmp-tests (Makefile.am): Likewise.
28543 * modules/mbscasestr-tests (Makefile.am): Likewise.
28544 * modules/mbschr-tests (Makefile.am): Likewise.
28545 * modules/mbscspn-tests (Makefile.am): Likewise.
28546 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28547 * modules/mbspbrk-tests (Makefile.am): Likewise.
28548 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28549 * modules/mbsrchr-tests (Makefile.am): Likewise.
28550 * modules/mbsspn-tests (Makefile.am): Likewise.
28551 * modules/mbsstr-tests (Makefile.am): Likewise.
28552 * modules/printf-posix-tests (Makefile.am): Likewise.
28553 * modules/snprintf-posix-tests (Makefile.am): Likewise.
28554 * modules/sprintf-posix-tests (Makefile.am): Likewise.
28555 * modules/tsearch-tests (Makefile.am): Likewise.
28556 * modules/uniname/uniname-tests (Makefile.am): Likewise.
28557 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28558 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28559 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28560 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28561 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28562 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28563 * modules/vprintf-posix-tests (Makefile.am): Likewise.
28564 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
28565 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
28566 * modules/xstrtoimax-tests (Makefile.am): Likewise.
28567 * modules/xstrtol-tests (Makefile.am): Likewise.
28568 * modules/xstrtoumax-tests (Makefile.am): Likewise.
28569 * modules/yesno-tests (Makefile.am): Likewise.
28571 2007-10-03 Bruno Haible <bruno@clisp.org>
28573 * modules/trunc-tests: New file.
28574 * tests/test-trunc.c: New file.
28576 * modules/trunc: New file.
28577 * lib/trunc.c: New file.
28578 * m4/trunc.m4: New file.
28579 * lib/math.in.h (trunc): New declaration.
28580 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
28582 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
28584 * doc/functions/trunc.texi: Mention the 'trunc' module.
28586 2007-10-03 Bruno Haible <bruno@clisp.org>
28588 * tests/test-fpending.c: New file, mostly copied
28589 from coreutils/lib/t-fpending.c.
28590 * modules/fpending-tests: New file.
28592 2007-10-03 Bruno Haible <bruno@clisp.org>
28594 Port the stdio extensions to QNX (untested).
28595 * lib/fseterr.c (fseterr): Add support for QNX.
28596 * lib/fbufmode.c (fbufmode): Likewise.
28597 * lib/freadable.c (freadable): Likewise.
28598 * lib/fwritable.c (fwritable): Likewise.
28599 * lib/freading.c (freading): Likewise.
28600 * lib/fwriting.c (fwriting): Likewise.
28601 * lib/freadahead.c (freadahed): Likewise.
28602 * lib/fpurge.c (fpurge): Likewise.
28603 * lib/fseeko.c (rpl_fseeko): Likewise.
28605 2007-10-03 Bruno Haible <bruno@clisp.org>
28606 Jim Meyering <jim@meyering.net>
28607 Eric Blake <ebb9@byu.net>
28609 * doc/relocatable.texi: Use @command instead of @program.
28611 2007-10-02 Jim Meyering <jim@meyering.net>
28613 Perform one more "_.h" -> ".in.h" substitution.
28614 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
28615 instead of unistd_.h here, too.
28617 2007-10-01 Bruno Haible <bruno@clisp.org>
28619 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
28620 Needed for the alloca-opt module.
28622 2007-09-30 Bruno Haible <bruno@clisp.org>
28624 * lib/alloca.in.h: Renamed from lib/alloca_.h.
28625 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
28627 * lib/argz.in.h: Renamed from lib/argz_.h.
28628 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
28629 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
28630 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
28632 * lib/dirent.in.h: Renamed from lib/dirent_.h.
28633 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
28635 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
28636 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
28638 * lib/float.in.h: Renamed from lib/float_.h.
28639 * modules/float (Files, Makefile.am): Use float.in.h instead of
28641 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
28642 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
28644 * lib/getopt.in.h: Renamed from lib/getopt_.h.
28645 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
28647 * lib/glob.in.h: Renamed from lib/glob_.h.
28648 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
28649 * lib/iconv.in.h: Renamed from lib/iconv_.h.
28650 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
28652 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
28653 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
28655 * lib/locale.in.h: Renamed from lib/locale_.h.
28656 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
28658 * lib/math.in.h: Renamed from lib/math_.h.
28659 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
28660 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
28661 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
28662 of netinet_in_.h. Add dependency.
28663 * lib/poll.in.h: Renamed from lib/poll_.h.
28664 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
28665 * lib/search.in.h: Renamed from lib/search_.h.
28666 * modules/search (Files, Makefile.am): Use search.in.h instead of
28668 * lib/signal.in.h: Renamed from lib/signal_.h.
28669 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
28671 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
28672 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
28674 * lib/stdint.in.h: Renamed from lib/stdint_.h.
28675 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
28677 * lib/stdio.in.h: Renamed from lib/stdio_.h.
28678 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
28680 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
28681 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
28683 * lib/string.in.h: Renamed from lib/string_.h.
28684 * modules/string (Files, Makefile.am): Use string.in.h instead of
28686 * doc/gnulib-tool.texi (Initial import): Update.
28687 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
28688 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
28689 of sys_select_.h. Add dependency.
28690 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
28691 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
28693 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
28694 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
28696 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
28697 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
28699 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
28700 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
28702 * lib/time.in.h: Renamed from lib/time_.h.
28703 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
28704 * lib/unistd.in.h: Renamed from lib/unistd_.h.
28705 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
28707 * lib/wchar.in.h: Renamed from lib/wchar_.h.
28708 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
28710 * lib/wctype.in.h: Renamed from lib/wctype_.h.
28711 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
28713 * build-aux/bootstrap (slurp): Update.
28714 * lib/.cppi-disable: Update.
28716 2007-09-30 Bruno Haible <bruno@clisp.org>
28718 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
28721 2007-09-30 Bruno Haible <bruno@clisp.org>
28723 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
28725 2007-09-29 Bruno Haible <bruno@clisp.org>
28727 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
28729 2007-09-29 Bruno Haible <bruno@clisp.org>
28731 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
28732 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
28733 * build-aux/install-reloc: Compile also areadlink.c.
28734 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
28736 2007-09-29 Bruno Haible <bruno@clisp.org>
28738 * gnulib-tool (func_emit_initmacro_done): Indentation.
28740 2007-09-29 Bruno Haible <bruno@clisp.org>
28742 * README: Add CVS checkout update instructions.
28743 Info from Bob Proulx <bob@proulx.com>.
28745 2007-09-28 Eric Blake <ebb9@byu.net>
28747 Provide move-if-change.
28748 * build-aux/move-if-change: New file, based on best practice
28749 rather than any canonical upstream location.
28751 2007-09-28 Jim Meyering <jim@meyering.net>
28753 Fix canonicalize loop-detection corner case.
28754 Do not attempt to stat the symlink values stored via seen_triple.
28755 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
28756 on linux-2.6.18, (but not 2.6.22).
28757 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
28758 triple_compare. The former compares dev,ino,filename, while the latter
28759 would actually stat dirname(filename) when dev and ino were equal.
28760 * lib/hash-triple.c: Install <string.h>.
28762 (triple_compare_ino_str): New function.
28763 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
28765 2007-09-28 Eric Blake <ebb9@byu.net>
28767 Enforce that AC_REPLACE_FUNCS files exist.
28768 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
28769 override check for typos.
28771 Fix test-closein on Solaris 10.
28772 * tests/test-closein.c (main): Don't assume stdin can be inherited
28773 closed on all systems.
28774 * tests/test-closein.sh: Likewise.
28775 Reported by Piotr Tarnowski.
28777 2007-09-28 Jim Meyering <jim@meyering.net>
28779 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
28781 2007-09-27 Jim Meyering <jim@meyering.net>
28783 canonicalize: Avoid a false-positive cycle failure.
28784 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
28785 Sort. Remove cycle-check.
28786 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
28788 (seen_triple): New function.
28789 (canonicalize_filename_mode): Use it instead of cycle-check.
28790 * tests/test-canonicalize.c: Add a test for this bug.
28791 * tests/test-canonicalize.sh: Set up and run the test.
28793 New module, file-set, from coreutils.
28794 * modules/file-set: Define it.
28795 * lib/file-set.c, lib/file-set.h: Implement.
28797 New module, hash-triple, from coreutils.
28798 * modules/hash-triple: Define it.
28799 * lib/hash-triple.c, lib/hash-triple.h: Implement.
28801 2007-09-25 Eric Blake <ebb9@byu.net>
28803 Fix strerror on Interix.
28804 * lib/string_.h (strerror): Declare replacement.
28805 * doc/functions/strerror.texi (strerror): Document the Interix
28807 * modules/string (Makefile.am): Support new hooks.
28808 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
28809 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
28810 gl_FUNC_STRERROR_SEPARATE.
28811 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
28812 * lib/strerror.c (rpl_strerror): Provide replacement.
28813 * modules/strerror (Depends-on): Add string.
28814 (configure.ac): Detect use of module.
28815 * tests/test-strerror.c: New file.
28816 * modules/strerror-tests: New test module.
28817 * modules/argp (Depends-on): Add strerror.
28818 * modules/error (Depends-on): Likewise.
28819 Reported by Martin Koeppe.
28821 2007-09-24 Bruno Haible <bruno@clisp.org>
28823 * README: Update git instructions.
28825 2007-09-24 Eric Blake <ebb9@byu.net>
28827 Revert fpending breakage from 2007-09-08.
28828 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
28831 2007-09-24 Jim Meyering <jim@meyering.net>
28833 filenamecat.c: Add a test.
28834 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
28835 showing how the function works when DIR is the empty string.
28837 2007-09-21 Simon Josefsson <simon@josefsson.org>
28839 * tests/test-canonicalize.sh: Turn on executable bit.
28841 2007-09-19 Eric Blake <ebb9@byu.net>
28843 * README: Update CVS instructions.
28845 2007-09-18 Bruno Haible <bruno@clisp.org>
28847 * modules/areadlink: New file.
28848 * lib/areadlink.h (areadlink): New declaration.
28849 * lib/areadlink.c: New file, based on lib/xreadlink.c.
28851 2007-09-17 Jim Meyering <jim@meyering.net>
28853 * lib/savewd.c (ESTALE) [!defined]: Define.
28854 Reported to be required on Interix by Martin Koeppe.
28856 2007-09-17 Bruno Haible <bruno@clisp.org>
28858 * gnulib-tool (func_version): Use $version.
28860 2007-09-16 Bruno Haible <bruno@clisp.org>
28862 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
28863 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
28864 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
28865 Reported by Greg Schafer <gschafer@zip.com.au>.
28867 2007-09-15 Bruno Haible <bruno@clisp.org>
28869 * gnulib-tool (sed): Try a little harder to make bash understand the
28871 Reported by Bruce Korb <bruce.korb@gmail.com>.
28873 2007-09-13 Eric Blake <ebb9@byu.net>
28875 * ChangeLog: Remove conflict markers.
28877 2007-09-13 Simon Josefsson <simon@josefsson.org>
28879 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
28880 Reported by Bruno Haible <bruno@clisp.org>.
28882 2007-09-12 Bruno Haible <bruno@clisp.org>
28884 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
28885 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
28888 2007-09-12 Eric Blake <ebb9@byu.net>
28890 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
28891 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
28892 Autoconf definition.
28893 * modules/euidaccess (Depends-on): Add extensions, for
28894 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
28895 * modules/fnmatch (Depends-on): Likewise.
28896 * modules/getaddrinfo (Depends-on): Likewise.
28897 * modules/getdelim (Depends-on): Likewise.
28898 * modules/getline (Depends-on): Likewise.
28899 * modules/getsubopt (Depends-on): Likewise.
28900 * modules/gettext (Depends-on): Likewise.
28901 * modules/group-member (Depends-on): Likewise.
28902 * modules/mbchar (Depends-on): Likewise.
28903 * modules/memmem (Depends-on): Likewise.
28904 * modules/mempcpy (Depends-on): Likewise.
28905 * modules/memrchr (Depends-on): Likewise.
28906 * modules/pagealign_alloc (Depends-on): Likewise.
28907 * modules/readutmp (Depends-on): Likewise.
28908 * modules/stpcpy (Depends-on): Likewise.
28909 * modules/stpncpy (Depends-on): Likewise.
28910 * modules/strchrnul (Depends-on): Likewise.
28911 * modules/strndup (Depends-on): Likewise.
28912 * modules/strsep (Depends-on): Likewise.
28913 * modules/strverscmp (Depends-on): Likewise.
28914 * modules/vasprintf (Depends-on): Likewise.
28915 * modules/wcwidth (Depends-on): Likewise.
28916 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
28917 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
28918 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
28919 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
28920 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28921 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28922 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
28923 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
28924 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
28925 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
28926 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28927 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
28928 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
28929 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
28930 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
28931 * m4/readutmp.m4 (gl_READUTMP): Likewise.
28932 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28933 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
28934 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28935 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
28936 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
28937 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
28938 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
28939 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
28940 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
28941 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28942 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
28943 so that lock.m4 can be used in gettext without extensions module.
28945 2007-09-11 Bruno Haible <bruno@clisp.org>
28947 * m4/isc-posix.m4: Remove file.
28948 Suggested by Eric Blake.
28950 2007-09-11 Eric Blake <ebb9@byu.net>
28952 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
28954 2007-09-10 Bruno Haible <bruno@clisp.org>
28956 * posix-modules: Fix typo in error message.
28957 Reported by Matt <mkraai@beckman.com>.
28959 2007-09-09 Bruno Haible <bruno@clisp.org>
28961 * doc/functions/getdelim.texi: Update list of platforms lacking the
28963 * doc/functions/getline.texi: Likewise.
28965 2007-09-09 Jim Meyering <jim@meyering.net>
28967 * lib/hash.c (hash_initialize): Detect calloc failure.
28968 Reported by Bruno Haible.
28970 2007-09-09 Bruno Haible <bruno@clisp.org>
28972 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
28973 malloc or realloc fails.
28975 2007-09-09 Bruno Haible <bruno@clisp.org>
28977 * modules/getcwd (Depends-on): Add malloc-posix.
28978 * modules/glob (Depends-on): Likewise.
28979 * modules/putenv (Depends-on): Likewise.
28980 * modules/strdup (Depends-on): Likewise.
28981 * modules/getdelim (Depends-on): Add realloc-posix.
28982 * modules/read-file (Depends-on): Likewise.
28984 2007-09-09 Bruno Haible <bruno@clisp.org>
28986 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
28987 (gl_FUNC_MALLOC_POSIX): Require it.
28988 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
28989 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
28990 * modules/realloc (Files): Add m4/malloc.m4.
28991 * modules/calloc (Files): Likewise.
28993 2007-09-09 Bruno Haible <bruno@clisp.org>
28995 * modules/malloc-posix: New file.
28996 * modules/malloc (Depends-on): Add malloc-posix.
28997 * lib/malloc.c: Include errno.h.
28998 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
28999 and a POSIX-compatible malloc into a single function. Set ENOMEM
29000 when returning NULL.
29001 * m4/malloc.m4: New file.
29002 * doc/functions/malloc.texi: Mention the malloc-posix module.
29003 * lib/stdlib_.h (malloc): New declaration.
29004 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29005 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
29006 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
29007 and HAVE_MALLOC_POSIX.
29009 2007-09-09 Bruno Haible <bruno@clisp.org>
29011 * modules/realloc-posix: New file.
29012 * modules/realloc (Depends-on): Add realloc-posix.
29013 * lib/realloc.c: Include errno.h.
29014 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
29015 and a POSIX-compatible realloc into a single function. Set ENOMEM
29016 when returning NULL.
29017 * m4/realloc.m4: New file.
29018 * doc/functions/realloc.texi: Mention the realloc-posix module.
29019 * lib/stdlib_.h (realloc): New declaration.
29020 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29021 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
29022 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
29023 and HAVE_REALLOC_POSIX.
29025 2007-09-09 Bruno Haible <bruno@clisp.org>
29027 * modules/calloc-posix: New file.
29028 * modules/calloc (Depends-on): Add calloc-posix.
29029 * lib/calloc.c: Include errno.h.
29030 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
29031 and a POSIX-compatible calloc into a single function. Set ENOMEM
29032 when returning NULL.
29033 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
29034 * doc/functions/calloc.texi: Mention the calloc-posix module.
29035 * lib/stdlib_.h (calloc): New declaration.
29036 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29037 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
29038 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
29039 and HAVE_CALLOC_POSIX.
29041 2007-09-09 Bruno Haible <bruno@clisp.org>
29043 Allow for modules to show an arbitrary notice.
29044 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
29045 * gnulib-tool: New option --extract-notice.
29046 (func_usage): Document it.
29047 (sed_extract_prog): Update.
29048 (func_get_notice): New function.
29049 (func_modules_notice): New function.
29050 (func_import, func_create_testdir): Invoke it.
29051 Suggested by Jim Meyering.
29053 2007-09-09 Bruno Haible <bruno@clisp.org>
29055 * gnulib-tool: New options --verbose, --quiet.
29056 (func_usage): Document them.
29057 (verbose): New variable.
29058 (func_execute_command): New function.
29059 (func_import): Don't show the module list and the file list if
29061 (func_create_testdir): Likewise. Use func_execute_command.
29062 (func_create_megatestdir): Use func_execute_command.
29064 2007-09-08 Bruno Haible <bruno@clisp.org>
29066 * gnulib-tool (func_import): Prefer rsync over wget when available,
29067 for fetching the PO files.
29069 2007-09-08 Bruno Haible <bruno@clisp.org>
29071 * posix-modules: New file. Portions copied from gnulib-tool.
29072 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
29074 2007-09-08 Jim Meyering <jim@meyering.net>
29076 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
29077 * lib/fpending.h: Rename from __fpending.h.
29078 * lib/fpending.c: Rename from __fpending.c.
29079 Include "fpending.h", not "__fpending.h".
29080 * lib/__fpending.h, lib/__fpending.c: Remove files.
29081 * modules/fpending (Files): Reflect new file names.
29082 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
29084 2007-09-08 Bruno Haible <bruno@clisp.org>
29086 * m4/inttypes-h.m4: Remove stub file.
29088 2007-09-07 Simon Josefsson <simon@josefsson.org>
29090 * doc/headers/stdint.texi: Discuss #include_next issue.
29092 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
29094 * build-aux/bootstrap: Remove obsolete comment about wget --help.
29096 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
29098 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
29101 2007-09-03 Jim Meyering <jim@meyering.net>
29103 New module: git-version-gen.
29104 * modules/git-version-gen: New file.
29106 Import changes from coreutils for bootstrap script.
29108 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
29110 bootstrap: uses rsync to download the .po files
29111 * build-aux/bootstrap (po_download_command_format): New global.
29112 (download_po_files): Use rsync.
29113 (update_po_files): Don't remove .po files after download,
29114 so future rsync runs can take advantage of the copies.
29116 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
29118 Solve the unnecessary-.po-file-regeneration problem once and for all.
29119 * build-aux/bootstrap (download_po_files): New function, renamed from
29120 get_translations. Now, downloads, but doesn't update LINGUAS.
29121 (update_po_files): New function.
29123 bootstrap: Ignore more.
29124 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
29125 uniwidth to e.g., lib/.gitignore.
29126 (slurp): Handle the sys_stat_.h -> sys mapping, too.
29128 * build-aux/bootstrap: New setting: vc_ignore.
29129 (insert_sorted_if_absent): Create $file if absent.
29130 Adapt to new, possibly empty, list: $vc_ignore.
29132 bootstrap: generate more ignorable names
29133 * build-aux/bootstrap (slurp): When generating ignorable names,
29134 also map .sin to .sed, .gperf to .c, and .y to .c.
29136 2007-09-03 Jim Meyering <jim@meyering.net>
29138 * build-aux/git-version-gen: New file, from coreutils. For details, see
29139 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
29141 2007-09-02 Bruno Haible <bruno@clisp.org>
29143 Fix mis-recognition of 'mcs' on QNX 6.
29144 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
29145 output contains the string "Mono".
29146 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
29147 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
29149 2007-09-01 Bruno Haible <bruno@clisp.org>
29151 Fix collision between uniwidth/* and linebreak modules.
29152 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
29153 u32_width): Remove declarations.
29154 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
29155 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
29156 streq3, streq2, streq1, streq0): Remove functions.
29157 (STREQ): Remove macro.
29158 (is_cjk_encoding): Remove function.
29159 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
29160 (uc_width, u8_width, u16_width, u32_width): Remove functions.
29161 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
29162 * NEWS: Document the change.
29164 2007-09-01 Bruno Haible <bruno@clisp.org>
29166 * lib/streq.h: Add double-inclusion guard.
29168 2007-09-01 Karl Berry <karl@gnu.org>
29170 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
29172 2007-08-28 Jim Meyering <jim@meyering.net>
29174 Rename mreadlink_with_size to areadlink_with_size.
29175 * NEWS: Document the change.
29176 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
29177 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
29178 * lib/mreadlink.h: Rename this to...
29179 * lib/areadlink.h: ...this.
29180 * modules/mreadlink-with-size: Rename this to...
29181 * modules/areadlink-with-size: ...this.
29182 * lib/canonicalize.c: Reflect the renaming.
29183 * modules/canonicalize: Likewise.
29185 2007-08-26 Bruno Haible <bruno@clisp.org>
29187 * gnulib-tool (func_import): When deciding which files to remove,
29188 consider also dangling symbolic links.
29189 Reported by Eric Blake.
29191 2007-08-26 Bruno Haible <bruno@clisp.org>
29193 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
29195 2007-08-23 Simon Josefsson <simon@josefsson.org>
29197 * lib/readline.c: Don't include getline.h, the prototype is now
29200 2007-08-23 Jim Meyering <jim@meyering.net>
29203 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
29204 around the funlockfile call, since funlockfile never sets errno.
29205 Don't set errno upon failed realloc.
29207 2007-08-22 Eric Blake <ebb9@byu.net>
29210 * lib/getdelim.c (getdelim): Revert regression that required *n to
29211 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
29212 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
29213 getdelim, rather than whether implementation is missing.
29214 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
29215 * lib/stdio_.h (getline): Also declare if replacement is
29217 * doc/functions/getdelim.texi: New file.
29218 * doc/functions/getline.texi: Likewise.
29219 * doc/gnulib.texi (Function Substitutes): Add new files.
29220 Reported by Bruno Haible.
29222 2007-08-22 Ludovic Courtès <ludo@gnu.org>
29224 * users.txt: Add Guile.
29226 2007-08-22 Eric Blake <ebb9@byu.net>
29228 * tests/test-getdelim.c (main): Use remove, not unlink.
29229 * tests/test-getline.c (main): Likewise.
29231 Move getline and getdelim into stdio.h, per POSIX 200x.
29232 * modules/getline (Files): Remove getline.h.
29233 (Depends-on): Add stdio.
29234 (configure.ac): Add module indicator.
29235 * modules/getdelim (Files): Remove getdelim.h.
29236 (Depends-on): Add stdio.
29237 (configure.ac): Add module indicator.
29238 * modules/stdio (Makefile.am): Work with new indicators.
29239 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
29240 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
29241 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29242 * lib/getdelim.h: Delete.
29243 * lib/getline.h: Delete.
29244 * lib/stdio_.h (getdelim, getline): Declare.
29245 * modules/getdelim-tests: New module.
29246 * modules/getline-tests: Likewise.
29247 * tests/test-getdelim.c: New file.
29248 * tests/test-getline.c: Likewise.
29249 * NEWS: Document the change.
29250 * lib/getline.c: Update choice of header.
29251 * lib/csharpcomp.c: Likewise.
29252 * lib/getpass.c: Likewise.
29253 * lib/javacomp.c: Likewise.
29254 * lib/javaversion.c: Likewise.
29255 * lib/yesno.c: Likewise.
29256 * lib/getdelim.c: Likewise.
29257 (getdelim): Set errno on failure, and avoid memory leak.
29259 2007-08-19 Bruno Haible <bruno@clisp.org>
29261 * modules/closein (Depends-on): Add freadahead.
29262 * lib/closein.c: Include freadahead.h.
29263 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
29266 2007-08-19 Bruno Haible <bruno@clisp.org>
29268 * modules/freadahead-tests: New file.
29269 * tests/test-freadahead.sh: New file.
29270 * tests/test-freadahead.c: New file.
29272 * modules/freadahead: New file.
29273 * lib/freadahead.h: New file.
29274 * lib/freadahead.c: New file.
29275 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
29276 fbufmode, fpurge, freadable, fwritable.
29278 2007-08-19 Eric Blake <ebb9@byu.net>
29280 Test yesno in combination with closein.
29281 * lib/yesno.c (yesno): Document use of stdin.
29282 * modules/yesno-tests (Files): New module.
29283 * tests/test-yesno.c (main): New file.
29284 * tests/test-yesno.sh: Likewise.
29286 2007-08-19 Bruno Haible <bruno@clisp.org>
29288 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
29289 * lib/fseeko.c (rpl_fseeko): Likewise.
29290 * lib/fseterr.c (fseterr): Likewise.
29292 2007-08-19 Bruno Haible <bruno@clisp.org>
29294 * tests/test-lseek.c (main): Disable a test for BeOS.
29295 * doc/functions/lseek.texi: Document the BeOS bug.
29297 2007-08-19 Bruno Haible <bruno@clisp.org>
29298 Eric Blake <ebb9@byu.net>
29300 * lib/lseek.c: Include <sys/stat.h>.
29301 (rpl_lseek): Add workaround code also for Unix platforms.
29303 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
29304 * doc/functions/lseek.texi: Document BeOS definiency.
29306 2007-08-18 Bruno Haible <bruno@clisp.org>
29308 * modules/fstrcmp-tests: New file.
29309 * tests/test-fstrcmp.c: New file.
29311 2007-08-18 Bruno Haible <bruno@clisp.org>
29313 * modules/fstrcmp: New file, from GNU gettext with modifications.
29314 * lib/fstrcmp.h: New file, from GNU gettext.
29315 * lib/fstrcmp.c: New file, from GNU gettext.
29316 * MODULES.html.sh (String handling): Add fstrcmp.
29318 2007-08-18 Bruno Haible <bruno@clisp.org>
29320 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
29322 (diag, compareseq): Remove const from the ctxt argument.
29323 (USE_HEURISTIC): Undefine at the end.
29325 2007-08-18 Jim Meyering <jim@meyering.net>
29327 New file: lib/idcache.h
29328 * NEWS: Mention the addition.
29329 * modules/idcache (Files): Add lib/idcache.h
29330 * lib/idcache.c: Include "idcache.h".
29331 Don't include <sys/types.h>.
29332 Add a FIXME comment.
29333 Move file-scoped "static" declarations to the top.
29334 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
29336 2007-08-17 Bruno Haible <bruno@clisp.org>
29337 and Paul Eggert <eggert@cs.ucla.edu>
29339 * MODULES.html.sh: Add diffseq.
29340 * modules/diffseq: New file.
29341 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
29342 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
29344 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
29346 Import changes from coreutils for bootstrap script.
29348 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
29350 * build-aux/bootstrap (slurp): Work even in environments where
29351 "ls" defaults to "ls -A". Put in a FIXME, though, since the
29352 current code does not slurp files whose names start with ".", and
29353 this looks like it might be a troublesome area.
29355 2007-07-11 Jim Meyering <jim@meyering.net>
29357 If there's a GPL vN copyright comment, require that N == 3.
29359 2007-07-08 Jim Meyering <jim@meyering.net>
29361 Run the coreutils-specific code only if tests/Makefile.am.in exists.
29362 * build-aux/bootstrap (mam_template): Move definition out of loop.
29364 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
29366 * build-aux/bootstrap (symlink_to_dir): Rename function from
29367 symlink_to_gnulib. Add a directory parameter. Update all
29369 (cp_mark_as_generated): Also check for -- and link to -- files in
29372 2007-07-08 Jim Meyering <jim@meyering.net>
29374 Adapt to deeper hierarchy in gnulib.
29375 * build-aux/bootstrap (symlink_to_dir): If the destination
29376 directory doesn't exist, create it. This is required at least for
29377 "lib/uniwidth/cjk.h".
29379 2007-05-15 Jim Meyering <jim@meyering.net>
29381 * build-aux/bootstrap: Now that generated Makefile.am files
29382 are no longer under version control, they must be created at
29385 2007-08-14 Ben Pfaff <blp@gnu.org>
29387 * lib/count-one-bits.h: Add comments. From Bruno Haible.
29389 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
29391 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
29392 given the changes below.
29393 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
29394 even on hosts that have padding bits beyond the supported 64.
29396 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
29398 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
29399 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
29400 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
29402 (xstrtol_error): Remove.
29403 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
29404 but with a different signature.
29405 (ATTRIBUTE_NORETURN, __attribute__): New macros.
29406 * lib/xstrtol-error.c: Include exitfail.h.
29407 (xstrtol_fatal): New function, with a different signature from the
29408 old xstrtol_error, so that the caller need not worry about passing
29409 in an exit status, or about storage management of the option argument.
29410 (xstrtol_error): Now a static function. Redo signature to
29411 implement xstrtol_fatal. Output the correct number of hyphens in
29412 front of the option so that the caller need not worry about
29413 storage management.
29415 (_): Remove; not used now.
29416 * modules/xstrtol: Depend on getopt.
29417 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
29418 of old STRTOL_FATAL_ERROR macro.
29419 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
29421 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
29422 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
29424 2007-08-08 Eric Blake <ebb9@byu.net>
29426 * lib/xstrtol-error.c: Add missing include.
29428 Move xstrtol messages into gnulib domain, when --pobase is used.
29429 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
29430 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
29431 * modules/xstrtol (Files): Distribute new file.
29432 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
29433 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
29434 * tests/test-xstrtol.c: ...into new file.
29435 * tests/test-xstrtoul.c: Also test xstrtoul.
29436 * tests/test-xstrtoimax.c: Also test xstrtoimax.
29437 * tests/test-xstrtoumax.c: Also test xstrtoumax.
29438 * tests/test-xstrtol.sh: Drive the tests.
29439 * tests/test-xstrtoimax.sh: Likewise.
29440 * tests/test-xstrtoumax.sh: Likewise.
29441 * modules/xstrtol-tests: New module.
29442 * modules/xstrtoimax-tests: Likewise.
29443 * modules/xstrtoumax-tests: Likewise.
29445 2007-08-08 Jim Meyering <jim@meyering.net>
29447 New function: mfile_name_concat.
29448 * lib/filenamecat.c (mfile_name_concat): New function, just like
29449 file_name_concat, but return NULL upon failure rather than exiting
29451 * lib/filenamecat.h: Declare it.
29453 2007-08-07 Bruno Haible <bruno@clisp.org>
29455 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
29456 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
29458 Reported by Eric Blake.
29460 2007-08-07 Simon Josefsson <simon@josefsson.org>
29462 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
29463 * modules/crypto/arcfour (License): Likewise.
29464 * modules/crypto/des-tests (License): Likewise.
29465 * modules/crypto/gc-arctwo-tests (License): Likewise.
29466 * modules/crypto/gc-des-tests (License): Likewise.
29467 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
29468 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
29469 * modules/crypto/gc-md2-tests (License): Likewise.
29470 * modules/crypto/gc-md4-tests (License): Likewise.
29471 * modules/crypto/gc-md5-tests (License): Likewise.
29472 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
29473 * modules/crypto/gc-rijndael-tests (License): Likewise.
29474 * modules/crypto/gc-sha1-tests (License): Likewise.
29475 * modules/crypto/gc-tests (License): Likewise.
29476 * modules/crypto/hmac-md5 (License): Likewise.
29477 * modules/crypto/hmac-sha1 (License): Likewise.
29478 * modules/crypto/md2-tests (License): Likewise.
29479 * modules/crypto/md4-tests (License): Likewise.
29480 * modules/crypto/md5 (License): Likewise.
29481 * modules/crypto/rijndael (License): Likewise.
29482 * modules/crypto/sha1 (License): Likewise.
29483 * modules/memxor (License): Likewise.
29485 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
29486 and Bruno Haible <bruno@clisp.org>
29488 * NEWS: Describe interface changes to human, xstrtol.
29489 * lib/human.h: Include <xstrtol.h>.
29490 (human_options): Return enum strtol_error, not int. Remove
29491 bool arg; take int * instead.
29492 * lib/human.c: Don't include "gettext.h".
29493 (_): Remove; no longer used.
29494 Don't include <xstrtol.h>, since human.h does it.
29495 (human_options): Adjust to abovementioned interface changes.
29496 Do not report error to stderr; that's now the caller's
29498 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
29500 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
29501 Str, Argument_type_string. All uses changed. Put " argument"
29502 in diagnostics to make them clearer. Change wording of suffix
29503 message for clarity.
29504 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
29505 Argument_type_string.
29506 (STRTOL_FATAL_WARN): Remove; no longer used.
29507 * modules/human (Depends-on): Remove gettext-h.
29509 2007-08-06 Simon Josefsson <simon@josefsson.org>
29511 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
29513 2007-07-31 Bruno Haible <bruno@clisp.org>
29515 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
29516 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
29517 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
29519 2007-07-31 Bruno Haible <bruno@clisp.org>
29521 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
29522 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
29524 2007-07-30 Bruno Haible <bruno@clisp.org>
29526 * modules/base64 (License): Use the synonymous term "LGPLv2+".
29527 * modules/c-ctype (License): Likewise.
29528 * modules/c-strcase (License): Likewise.
29529 * modules/check-version (License): Likewise.
29530 * modules/iconv (License): Likewise.
29531 * modules/iconv_open (License): Likewise.
29532 * modules/read-file (License): Likewise.
29533 * modules/striconv (License): Likewise.
29534 * modules/strverscmp (License): Likewise.
29535 * modules/vasprintf (License): Likewise.
29536 * modules/crypto/des (License): Likewise.
29537 * modules/crypto/gc (License): Likewise.
29538 * modules/crypto/gc-arcfour (License): Likewise.
29539 * modules/crypto/gc-arctwo (License): Likewise.
29540 * modules/crypto/gc-des (License): Likewise.
29541 * modules/crypto/gc-hmac-md5 (License): Likewise.
29542 * modules/crypto/gc-hmac-sha1 (License): Likewise.
29543 * modules/crypto/gc-md2 (License): Likewise.
29544 * modules/crypto/gc-md4 (License): Likewise.
29545 * modules/crypto/gc-md5 (License): Likewise.
29546 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
29547 * modules/crypto/gc-random (License): Likewise.
29548 * modules/crypto/gc-rijndael (License): Likewise.
29549 * modules/crypto/gc-sha1 (License): Likewise.
29550 * modules/crypto/md2 (License): Likewise.
29551 * modules/crypto/md4 (License): Likewise.
29553 2007-07-30 Jim Meyering <jim@meyering.net>
29555 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
29556 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
29557 it has valid stat data. This bug would cause du not to count the
29558 sizes of inaccessible directories.
29559 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
29560 in <http://bugzilla.redhat.com/250077>.
29562 2007-07-25 Peter O'Gorman <peter@pogma.com>
29563 Bruno Haible <bruno@clisp.org>
29565 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
29566 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
29567 #include_next, gives a diagnostic about it, but reports no error in
29569 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
29571 2007-07-24 Ben Pfaff <blp@gnu.org>
29573 Improve name: "count-one-bits" is better than "popcount".
29574 * MODULES.html.sh: Update name.
29575 * lib/popcount.h: Renamed lib/count-one-bits.h.
29576 (popcount): Renamed count_one_bits.
29577 (popcountl): Renamed count_one_bits_l.
29578 (popcountll): Renamed count_one_bits_ll.
29579 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
29580 * modules/popcount: Renamed module/count-one-bits.
29581 * modules/popcount-tests: Renamed module/count-one-bits-tests.
29582 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
29584 2007-07-23 Ben Pfaff <blp@gnu.org>
29586 * lib/popcount.h (popcount32): Reduce size of constants, to allow
29587 better code generation, and add U to large constants to avoid
29588 warnings, in non-GCC case.
29589 Suggested by Bruno Haible.
29591 2007-07-23 Ben Pfaff <blp@gnu.org>
29593 * lib/popcount.h: Use verify_true instead of if...abort.
29594 * modules/popcount: Depend on verify module.
29595 Suggested by Jim Meyering.
29597 2007-07-23 Bruno Haible <bruno@clisp.org>
29599 * gnulib-tool (func_import): Create a .cvsignore file also when the
29600 directory is not yet in CVS but the toplevel directory is. When
29601 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
29602 Reported by Karl Berry.
29604 2007-07-22 Ben Pfaff <blp@gnu.org>
29606 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
29608 Suggested by Eric Blake.
29610 2007-07-22 Ben Pfaff <blp@gnu.org>
29612 New module: popcount.
29613 * MODULES.html.sh: Add popcount.
29614 * modules/popcount: New file.
29615 * modules/popcount-tests: New file.
29616 * tests/test-popcount.c: New file.
29617 * lib/popcount.h: New file.
29618 * m4/popcount.m4: New file.
29620 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
29622 * build-aux/announce-gen: Update to GPLv3.
29624 * build-aux/config.guess: Update from config.
29626 2007-07-21 Bruno Haible <bruno@clisp.org>
29628 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
29629 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
29631 2007-07-20 Jim Meyering <jim@meyering.net>
29633 * check-module: Diagnose a self-dependency.
29635 2007-07-19 Bruno Haible <bruno@clisp.org>
29637 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
29639 Reported by Eric Blake.
29641 2007-07-18 Bruno Haible <bruno@clisp.org>
29643 * gnulib-tool: New options --po-base, --po-domain.
29644 (func_usage): Document them.
29645 (pobase, po_domain): New variables.
29646 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
29647 DEFAULT_TEXT_DOMAIN.
29648 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
29649 (func_import): Consider pobase and po_domain. Create a po/ directory.
29650 (func_create_testdir): Set pobase and po_domain to empty.
29651 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
29652 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
29654 2007-07-18 Bruno Haible <bruno@clisp.org>
29656 * gnulib-tool (func_get_automake_snippet): Synthesize also an
29657 EXTRA_DIST augmentation for files in build-aux/.
29659 2007-07-16 Bruno Haible <bruno@clisp.org>
29661 * modules/lseek (License): Use the synonymous term "LGPLv2+".
29662 * modules/getdelim (License): Likewise.
29664 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
29666 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
29667 * modules/d-type (License): Likewise.
29668 * modules/extensions (License): Likewise.
29669 * modules/fnmatch (License): Likewise.
29670 * modules/fseeko (License): Likewise.
29671 * modules/getaddrinfo (License): Likewise.
29672 * modules/getline (License): Likewise.
29673 * modules/getlogin_r (License): Likewise.
29674 * modules/getpass (License): Likewise.
29675 * modules/gettimeofday (License): Likewise.
29676 * modules/glob (License): Likewise.
29677 * modules/inet_ntop (License): Likewise.
29678 * modules/malloc (License): Likewise.
29679 * modules/malloca (License): Likewise.
29680 * modules/memmem (License): Likewise.
29681 * modules/mempcpy (License): Likewise.
29682 * modules/memset (License): Likewise.
29683 * modules/minmax (License): Likewise.
29684 * modules/mktime (License): Likewise.
29685 * modules/netinet_in (License): Likewise.
29686 * modules/pathmax (License): Likewise.
29687 * modules/poll (License): Likewise.
29688 * modules/regex (License): Likewise.
29689 * modules/snprintf (License): Likewise.
29690 * modules/stdbool (License): Likewise.
29691 * modules/stdint (License): Likewise.
29692 * modules/stdio (License): Likewise.
29693 * modules/strcase (License): Likewise.
29694 * modules/strcasestr (License): Likewise.
29695 * modules/strdup (License): Likewise.
29696 * modules/string (License): Likewise.
29697 * modules/strndup (License): Likewise.
29698 * modules/strnlen (License): Likewise.
29699 * modules/strpbrk (License): Likewise.
29700 * modules/strptime (License): Likewise.
29701 * modules/strsep (License): Likewise.
29702 * modules/sys_select (License): Likewise.
29703 * modules/sys_socket (License): Likewise.
29704 * modules/sys_stat (License): Likewise.
29705 * modules/sys_time (License): Likewise.
29706 * modules/time (License): Likewise.
29707 * modules/time_r (License): Likewise.
29708 * modules/timegm (License): Likewise.
29709 * modules/unistd (License): Likewise.
29710 * modules/vsnprintf (License): Likewise.
29711 * modules/wctype (License): Likewise.
29713 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29715 * modules/argz (License): LGPLv2+.
29717 2007-07-15 Karl Berry <karl@gnu.org>
29719 * doc/gnulib.texi: revise node structure per new fdl.texi.
29721 2007-07-14 Bruno Haible <bruno@clisp.org>
29723 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
29725 * lib/uniname/uninames.h: Regenerated.
29727 2007-07-14 Karl Berry <karl@gnu.org>
29729 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
29730 omitting sectioning and index commands.
29732 2007-07-13 Bruno Haible <bruno@clisp.org>
29734 New gnulib-tool option --more-symlinks.
29735 * gnulib-tool (func_usage): Document --more-symlinks.
29736 (do_copyrights): New variable.
29737 Recognize option --more-symlinks.
29738 (func_import): Don't add a copyright notice transform to
29739 sed_transform_lib_file if do_copyrights is empty.
29741 2007-07-13 Bruno Haible <bruno@clisp.org>
29743 * lib/vasnprintf.c (decimal_point_char): Define also if
29744 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
29745 && !NEED_PRINTF_DIRECTIVE_A.
29746 Reported by Clemens Koller <clemens.koller@anagramm.de> via
29747 Gary V. Vaughan <gary@gnu.org>.
29749 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
29751 * lib/inttypes_.h: Undo previous change, since it was fixed
29752 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
29754 2007-07-13 Bruno Haible <bruno@clisp.org>
29756 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
29757 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
29759 2007-07-13 Jim Meyering <jim@meyering.net>
29761 df: Don't fail for Tru64's "file-on-file mount".
29762 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
29763 so we fall through and use statfs instead. Details here:
29764 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
29765 Reported by Albert Chin.
29767 2007-07-13 Bruno Haible <bruno@clisp.org>
29769 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
29770 * modules/configmake (License): Likewise.
29771 * modules/gettext (License): Likewise.
29772 * modules/gettext-h (License): Likewise.
29773 * modules/include_next (License): Likewise.
29774 * modules/link-warning (License): Likewise.
29775 * modules/localcharset (License): Likewise.
29776 * modules/localename (License): Likewise.
29777 * modules/lock (License): Likewise.
29778 * modules/relocatable-lib-lgpl (License): Likewise.
29779 * modules/size_max (License): Likewise.
29780 * modules/vasnprintf (License): Likewise.
29781 * modules/wchar (License): Likewise.
29782 * modules/xsize (License): Likewise.
29784 2007-07-13 Bruno Haible <bruno@clisp.org>
29786 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
29787 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
29789 2007-07-12 Bruno Haible <bruno@clisp.org>
29791 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
29792 in the modules files.
29794 2007-07-11 Karl Berry <karl@gnu.org>
29796 * MODULES.html.sh (func_module): use
29797 sed -e '\|^'"${includefile}"'$|d'
29798 instead of /.../d, to avoid errors on $includefile's containing /.
29800 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
29802 * gnulib-tool (func_import): Avoid duplication of --avoid
29804 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
29805 names to `_' in variable names.
29807 2007-07-10 Eric Blake <ebb9@byu.net>
29809 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
29810 * NEWS: Document this change.
29812 2007-07-08 Bruno Haible <bruno@clisp.org>
29814 Update to Unicode 5.0.
29815 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
29816 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
29817 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
29818 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
29819 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
29820 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
29821 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
29822 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
29823 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
29824 U+10A3F, U+1D242..U+1D244.
29825 (nonspacing_table_ind): Update.
29826 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
29827 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
29829 2007-07-08 Bruno Haible <bruno@clisp.org>
29831 Update to Unicode 5.0.
29832 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
29833 code transform. Extend the name index field of unicode_name_to_code and
29834 unicode_code_to_name from 16 to 24 bits.
29835 * lib/uniname/uniname.c (unicode_character_name,
29836 unicode_name_character): Add the range 0x12xxx to the code transform.
29837 * lib/uniname/uninames.h: Regenerated.
29838 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
29840 2007-07-07 Bruno Haible <bruno@clisp.org>
29842 * modules/wcwidth-tests: New file.
29843 * tests/test-wcwidth.c: New file.
29845 Work around MacOS X wcwidth() bug.
29846 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
29847 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
29848 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
29849 original wcwidth in non-UTF-8 locales.
29850 * modules/wcwidth (Depends-on): Add localcharset, streq,
29852 * doc/functions/wcwidth.texi: Update.
29854 2007-07-07 Bruno Haible <bruno@clisp.org>
29856 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
29857 (wcwidth): New declaration.
29858 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
29860 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
29861 here. Prepare for creating <wchar.h> unconditionally.
29862 * modules/wchar (Depends-on): Add link-warning.
29863 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
29864 REPLACE_WCWIDTH, and GL_LINK_WARNING.
29865 * lib/wcwidth.h: Remove file.
29866 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
29867 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
29868 * modules/wcwidth (Files): Remove lib/wcwidth.h.
29869 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
29870 (Include): Replace wcwidth.h with <wchar.h>.
29871 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
29872 * lib/mbchar.h: Don't include wcwidth.h.
29873 * lib/mbswidth.c: Likewise.
29874 * NEWS: Mention the change.
29876 2007-07-07 Bruno Haible <bruno@clisp.org>
29878 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
29879 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
29880 definition with an external declaration.
29881 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
29882 defined as a function. Remove AC_C_INLINE requirement.
29883 * modules/wcwidth (Files): Add lib/wcwidth.c.
29884 (Makefile.am): Remove redundant statement.
29886 2007-07-07 Bruno Haible <bruno@clisp.org>
29888 * MODULES.html.sh (Unicode string functions): Add the new modules.
29890 * tests/uniwidth/test-u32-strwidth.c: New file.
29891 * modules/uniwidth/u32-strwidth-tests: New file.
29893 * lib/uniwidth/u32-strwidth.c: New file.
29894 * modules/uniwidth/u32-strwidth: New file.
29896 * tests/uniwidth/test-u16-strwidth.c: New file.
29897 * modules/uniwidth/u16-strwidth-tests: New file.
29899 * lib/uniwidth/u16-strwidth.c: New file.
29900 * modules/uniwidth/u16-strwidth: New file.
29902 * tests/uniwidth/test-u8-strwidth.c: New file.
29903 * modules/uniwidth/u8-strwidth-tests: New file.
29905 * lib/uniwidth/u8-strwidth.c: New file.
29906 * modules/uniwidth/u8-strwidth: New file.
29908 * tests/uniwidth/test-u32-width.c: New file.
29909 * modules/uniwidth/u32-width-tests: New file.
29911 * lib/uniwidth/u32-width.c: New file.
29912 * modules/uniwidth/u32-width: New file.
29914 * tests/uniwidth/test-u16-width.c: New file.
29915 * modules/uniwidth/u16-width-tests: New file.
29917 * lib/uniwidth/u16-width.c: New file.
29918 * modules/uniwidth/u16-width: New file.
29920 * tests/uniwidth/test-u8-width.c: New file.
29921 * modules/uniwidth/u8-width-tests: New file.
29923 * lib/uniwidth/u8-width.c: New file.
29924 * modules/uniwidth/u8-width: New file.
29926 * tests/uniwidth/test-uc_width.c: New file.
29927 * modules/uniwidth/width-tests: New file.
29929 * lib/uniwidth/width.c: New file, from GNU libiconv.
29930 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
29931 * modules/uniwidth/width: New file.
29933 * lib/uniwidth.h: New file, from GNU libiconv.
29934 * modules/uniwidth/base: New file.
29936 2007-07-07 Bruno Haible <bruno@clisp.org>
29938 * lib/uniname.h: New file, from GNU gettext.
29939 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
29940 * lib/uniname/uninames.h: New file, from GNU gettext.
29941 * lib/uniname/uniname.c: New file, from GNU gettext.
29942 * tests/uniname/test-uninames.sh: New file.
29943 * tests/uniname/test-uninames.c: New file, from GNU gettext.
29944 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
29945 * modules/uniname/base: New file.
29946 * modules/uniname/uniname: New file.
29947 * modules/uniname/uniname-tests: New file.
29948 * MODULES.html.sh (Unicode string functions): Add the new modules.
29950 2007-07-06 Bruno Haible <bruno@clisp.org>
29952 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
29954 2007-07-06 Bruno Haible <bruno@clisp.org>
29956 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
29957 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
29958 includes <cygwin/sys_time.h> which includes <sys/select.h> which
29959 include <sys/time.h>.
29960 Reported by Eric Blake.
29962 2007-07-06 Eric Blake <ebb9@byu.net>
29964 Fix testing canonicalize on cygwin.
29965 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
29966 Revert patch from 2007-06-19.
29967 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
29968 canonicalize module is also in use.
29969 * tests/test-canonicalize.c: New file.
29970 * tests/test-canonicalize.sh: Likewise.
29971 * modules/canonicalize-tests: Likewise.
29973 2007-07-06 Jim Meyering <jim@meyering.net>
29975 * lib/getugroups.c (getugroups): Detect getgrent failure.
29976 Adjust comment to reflect reality: this function may return -1.
29978 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
29980 * build-aux/bootstrap (TP_URL,get_translations): Update to use
29981 the new TP address.
29983 (gnulib_mk): New variable.
29985 2007-07-05 Jim Meyering <jim@meyering.net>
29987 Don't let endgrent clobber errno, no matter how improbable.
29988 * lib/getugroups.c (getugroups): Save and restore errno around
29991 Close the group DB even when failing with 2^31 or more members.
29992 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
29994 2007-07-04 Jim Meyering <jim@meyering.net>
29996 * lib/getugroups.h: New file.
29997 * lib/getugroups.c: Include "getugroups.h".
29998 Remove uses of "register" keyword.
29999 Move local variable, "cp", down into scope where used.
30000 Give "username" parameter the "const" attribute.
30001 * modules/getugroups (Files): Add lib/getugroups.h
30003 2007-07-04 Karl Berry <karl@gnu.org>
30005 * MODULES.html.sh (func_all_modules): Complete rename of
30006 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
30008 2007-07-02 Bruno Haible <bruno@clisp.org>
30010 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
30011 mode, when inttypes.h comes from gnulib.
30012 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
30014 2007-07-02 Simon Josefsson <simon@josefsson.org>
30016 * NEWS: Mention lgpl module name change.
30018 * modules/lgpl-2.1: Renamed from lgpl.
30020 * NEWS: Mention gpl module name change.
30022 * modules/gpl-3.0: New file, based on gpl-2.0.
30024 * modules/gpl-2.0: Renamed from gpl.
30026 * modules/gpl: Fix filename, doc/gpl.texi is now found at
30029 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
30031 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
30032 #define __STDC_LIMIT_MACROS temporarily while including
30033 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
30034 Problem reported by Joel E. Denny in
30035 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
30037 2007-07-01 Bruno Haible <bruno@clisp.org>
30039 * lib/unistdio.h: New file.
30040 * lib/unistdio/u-asnprintf.h: New file.
30041 * lib/unistdio/u-asprintf.h: New file.
30042 * lib/unistdio/u-printf-args.c: New file.
30043 * lib/unistdio/u-printf-args.h: New file.
30044 * lib/unistdio/u-printf-parse.h: New file.
30045 * lib/unistdio/u-snprintf.h: New file.
30046 * lib/unistdio/u-sprintf.h: New file.
30047 * lib/unistdio/u-vasprintf.h: New file.
30048 * lib/unistdio/u-vsnprintf.h: New file.
30049 * lib/unistdio/u-vsprintf.h: New file.
30050 * lib/unistdio/ulc-asnprintf.c: New file.
30051 * lib/unistdio/ulc-asprintf.c: New file.
30052 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
30053 * lib/unistdio/ulc-printf-parse.c: New file.
30054 * lib/unistdio/ulc-snprintf.c: New file.
30055 * lib/unistdio/ulc-sprintf.c: New file.
30056 * lib/unistdio/ulc-vasnprintf.c: New file.
30057 * lib/unistdio/ulc-vasprintf.c: New file.
30058 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
30059 * lib/unistdio/ulc-vsnprintf.c: New file.
30060 * lib/unistdio/ulc-vsprintf.c: New file.
30061 * lib/unistdio/u8-asnprintf.c: New file.
30062 * lib/unistdio/u8-asprintf.c: New file.
30063 * lib/unistdio/u8-printf-parse.c: New file.
30064 * lib/unistdio/u8-snprintf.c: New file.
30065 * lib/unistdio/u8-sprintf.c: New file.
30066 * lib/unistdio/u8-vasnprintf.c: New file.
30067 * lib/unistdio/u8-vasprintf.c: New file.
30068 * lib/unistdio/u8-vsnprintf.c: New file.
30069 * lib/unistdio/u8-vsprintf.c: New file.
30070 * lib/unistdio/u8-u8-asnprintf.c: New file.
30071 * lib/unistdio/u8-u8-asprintf.c: New file.
30072 * lib/unistdio/u8-u8-snprintf.c: New file.
30073 * lib/unistdio/u8-u8-sprintf.c: New file.
30074 * lib/unistdio/u8-u8-vasnprintf.c: New file.
30075 * lib/unistdio/u8-u8-vasprintf.c: New file.
30076 * lib/unistdio/u8-u8-vsnprintf.c: New file.
30077 * lib/unistdio/u8-u8-vsprintf.c: New file.
30078 * lib/unistdio/u16-asnprintf.c: New file.
30079 * lib/unistdio/u16-asprintf.c: New file.
30080 * lib/unistdio/u16-printf-parse.c: New file.
30081 * lib/unistdio/u16-snprintf.c: New file.
30082 * lib/unistdio/u16-sprintf.c: New file.
30083 * lib/unistdio/u16-vasnprintf.c: New file.
30084 * lib/unistdio/u16-vasprintf.c: New file.
30085 * lib/unistdio/u16-vsnprintf.c: New file.
30086 * lib/unistdio/u16-vsprintf.c: New file.
30087 * lib/unistdio/u16-u16-asnprintf.c: New file.
30088 * lib/unistdio/u16-u16-asprintf.c: New file.
30089 * lib/unistdio/u16-u16-snprintf.c: New file.
30090 * lib/unistdio/u16-u16-sprintf.c: New file.
30091 * lib/unistdio/u16-u16-vasnprintf.c: New file.
30092 * lib/unistdio/u16-u16-vasprintf.c: New file.
30093 * lib/unistdio/u16-u16-vsnprintf.c: New file.
30094 * lib/unistdio/u16-u16-vsprintf.c: New file.
30095 * lib/unistdio/u32-asnprintf.c: New file.
30096 * lib/unistdio/u32-asprintf.c: New file.
30097 * lib/unistdio/u32-printf-parse.c: New file.
30098 * lib/unistdio/u32-snprintf.c: New file.
30099 * lib/unistdio/u32-sprintf.c: New file.
30100 * lib/unistdio/u32-vasnprintf.c: New file.
30101 * lib/unistdio/u32-vasprintf.c: New file.
30102 * lib/unistdio/u32-vsnprintf.c: New file.
30103 * lib/unistdio/u32-vsprintf.c: New file.
30104 * lib/unistdio/u32-u32-asnprintf.c: New file.
30105 * lib/unistdio/u32-u32-asprintf.c: New file.
30106 * lib/unistdio/u32-u32-snprintf.c: New file.
30107 * lib/unistdio/u32-u32-sprintf.c: New file.
30108 * lib/unistdio/u32-u32-vasnprintf.c: New file.
30109 * lib/unistdio/u32-u32-vasprintf.c: New file.
30110 * lib/unistdio/u32-u32-vsnprintf.c: New file.
30111 * lib/unistdio/u32-u32-vsprintf.c: New file.
30112 * tests/unistdio/test-ulc-asnprintf1.c: New file.
30113 * tests/unistdio/test-ulc-asnprintf1.h: New file.
30114 * tests/unistdio/test-ulc-printf1.h: New file.
30115 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
30116 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
30117 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
30118 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
30119 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
30120 * tests/unistdio/test-ulc-vasprintf1.c: New file.
30121 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
30122 * tests/unistdio/test-ulc-vsprintf1.c: New file.
30123 * tests/unistdio/test-u8-asnprintf1.c: New file.
30124 * tests/unistdio/test-u8-asnprintf1.h: New file.
30125 * tests/unistdio/test-u8-printf1.h: New file.
30126 * tests/unistdio/test-u8-vasnprintf1.c: New file.
30127 * tests/unistdio/test-u8-vasnprintf2.c: New file.
30128 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
30129 * tests/unistdio/test-u8-vasnprintf3.c: New file.
30130 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
30131 * tests/unistdio/test-u8-vasprintf1.c: New file.
30132 * tests/unistdio/test-u8-vsnprintf1.c: New file.
30133 * tests/unistdio/test-u8-vsprintf1.c: New file.
30134 * tests/unistdio/test-u16-asnprintf1.c: New file.
30135 * tests/unistdio/test-u16-asnprintf1.h: New file.
30136 * tests/unistdio/test-u16-printf1.h: New file.
30137 * tests/unistdio/test-u16-vasnprintf1.c: New file.
30138 * tests/unistdio/test-u16-vasnprintf2.c: New file.
30139 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
30140 * tests/unistdio/test-u16-vasnprintf3.c: New file.
30141 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
30142 * tests/unistdio/test-u16-vasprintf1.c: New file.
30143 * tests/unistdio/test-u16-vsnprintf1.c: New file.
30144 * tests/unistdio/test-u16-vsprintf1.c: New file.
30145 * tests/unistdio/test-u32-asnprintf1.c: New file.
30146 * tests/unistdio/test-u32-asnprintf1.h: New file.
30147 * tests/unistdio/test-u32-printf1.h: New file.
30148 * tests/unistdio/test-u32-vasnprintf1.c: New file.
30149 * tests/unistdio/test-u32-vasnprintf2.c: New file.
30150 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
30151 * tests/unistdio/test-u32-vasnprintf3.c: New file.
30152 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
30153 * tests/unistdio/test-u32-vasprintf1.c: New file.
30154 * tests/unistdio/test-u32-vsnprintf1.c: New file.
30155 * tests/unistdio/test-u32-vsprintf1.c: New file.
30156 * modules/unistdio/base: New file.
30157 * modules/unistdio/u-printf-args: New file.
30158 * modules/unistdio/ulc-asnprintf: New file.
30159 * modules/unistdio/ulc-asprintf: New file.
30160 * modules/unistdio/ulc-fprintf: New file.
30161 * modules/unistdio/ulc-printf-parse: New file.
30162 * modules/unistdio/ulc-snprintf: New file.
30163 * modules/unistdio/ulc-sprintf: New file.
30164 * modules/unistdio/ulc-vasnprintf: New file.
30165 * modules/unistdio/ulc-vasprintf: New file.
30166 * modules/unistdio/ulc-vfprintf: New file.
30167 * modules/unistdio/ulc-vsnprintf: New file.
30168 * modules/unistdio/ulc-vsprintf: New file.
30169 * modules/unistdio/u8-asnprintf: New file.
30170 * modules/unistdio/u8-asprintf: New file.
30171 * modules/unistdio/u8-printf-parse: New file.
30172 * modules/unistdio/u8-snprintf: New file.
30173 * modules/unistdio/u8-sprintf: New file.
30174 * modules/unistdio/u8-vasnprintf: New file.
30175 * modules/unistdio/u8-vasprintf: New file.
30176 * modules/unistdio/u8-vsnprintf: New file.
30177 * modules/unistdio/u8-vsprintf: New file.
30178 * modules/unistdio/u8-u8-asnprintf: New file.
30179 * modules/unistdio/u8-u8-asprintf: New file.
30180 * modules/unistdio/u8-u8-snprintf: New file.
30181 * modules/unistdio/u8-u8-sprintf: New file.
30182 * modules/unistdio/u8-u8-vasnprintf: New file.
30183 * modules/unistdio/u8-u8-vasprintf: New file.
30184 * modules/unistdio/u8-u8-vsnprintf: New file.
30185 * modules/unistdio/u8-u8-vsprintf: New file.
30186 * modules/unistdio/u16-asnprintf: New file.
30187 * modules/unistdio/u16-asprintf: New file.
30188 * modules/unistdio/u16-printf-parse: New file.
30189 * modules/unistdio/u16-snprintf: New file.
30190 * modules/unistdio/u16-sprintf: New file.
30191 * modules/unistdio/u16-vasnprintf: New file.
30192 * modules/unistdio/u16-vasprintf: New file.
30193 * modules/unistdio/u16-vsnprintf: New file.
30194 * modules/unistdio/u16-vsprintf: New file.
30195 * modules/unistdio/u16-u16-asnprintf: New file.
30196 * modules/unistdio/u16-u16-asprintf: New file.
30197 * modules/unistdio/u16-u16-snprintf: New file.
30198 * modules/unistdio/u16-u16-sprintf: New file.
30199 * modules/unistdio/u16-u16-vasnprintf: New file.
30200 * modules/unistdio/u16-u16-vasprintf: New file.
30201 * modules/unistdio/u16-u16-vsnprintf: New file.
30202 * modules/unistdio/u16-u16-vsprintf: New file.
30203 * modules/unistdio/u32-asnprintf: New file.
30204 * modules/unistdio/u32-asprintf: New file.
30205 * modules/unistdio/u32-printf-parse: New file.
30206 * modules/unistdio/u32-snprintf: New file.
30207 * modules/unistdio/u32-sprintf: New file.
30208 * modules/unistdio/u32-vasnprintf: New file.
30209 * modules/unistdio/u32-vasprintf: New file.
30210 * modules/unistdio/u32-vsnprintf: New file.
30211 * modules/unistdio/u32-vsprintf: New file.
30212 * modules/unistdio/u32-u32-asnprintf: New file.
30213 * modules/unistdio/u32-u32-asprintf: New file.
30214 * modules/unistdio/u32-u32-snprintf: New file.
30215 * modules/unistdio/u32-u32-sprintf: New file.
30216 * modules/unistdio/u32-u32-vasnprintf: New file.
30217 * modules/unistdio/u32-u32-vasprintf: New file.
30218 * modules/unistdio/u32-u32-vsnprintf: New file.
30219 * modules/unistdio/u32-u32-vsprintf: New file.
30220 * modules/unistdio/ulc-asnprintf-tests: New file.
30221 * modules/unistdio/ulc-vasnprintf-tests: New file.
30222 * modules/unistdio/ulc-vasprintf-tests: New file.
30223 * modules/unistdio/ulc-vsnprintf-tests: New file.
30224 * modules/unistdio/ulc-vsprintf-tests: New file.
30225 * modules/unistdio/u8-asnprintf-tests: New file.
30226 * modules/unistdio/u8-vasnprintf-tests: New file.
30227 * modules/unistdio/u8-vasprintf-tests: New file.
30228 * modules/unistdio/u8-vsnprintf-tests: New file.
30229 * modules/unistdio/u8-vsprintf-tests: New file.
30230 * modules/unistdio/u16-asnprintf-tests: New file.
30231 * modules/unistdio/u16-vasnprintf-tests: New file.
30232 * modules/unistdio/u16-vasprintf-tests: New file.
30233 * modules/unistdio/u16-vsnprintf-tests: New file.
30234 * modules/unistdio/u16-vsprintf-tests: New file.
30235 * modules/unistdio/u32-asnprintf-tests: New file.
30236 * modules/unistdio/u32-vasnprintf-tests: New file.
30237 * modules/unistdio/u32-vasprintf-tests: New file.
30238 * modules/unistdio/u32-vsnprintf-tests: New file.
30239 * modules/unistdio/u32-vsprintf-tests: New file.
30240 * MODULES.html.sh (Unicode string functions): Add the new modules.
30242 2007-07-01 Bruno Haible <bruno@clisp.org>
30244 * lib/sprintf.c (sprintf): Limit the available length estimation,
30245 to avoid address wraparound.
30246 * lib/vsprintf.c (vsprintf): Likewise.
30247 * modules/sprintf-posix (Dependencies): Add stdint.
30248 * modules/vsprintf-posix (Dependencies): Likewise.
30250 2007-07-01 Bruno Haible <bruno@clisp.org>
30252 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
30253 Windows PATH as well. Conservative double-quoting. Comments.
30255 2007-07-01 Bruno Haible <bruno@clisp.org>
30256 Eric Blake <ebb9@byu.net>
30257 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30259 * gnulib-tool (self_abspathname): Fix algorithm to cope with
30260 empty components in $PATH, denoting '.'.
30262 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30264 * gnulib-tool: Fix indentation.
30265 (func_create_megatestdir): Likewise.
30266 Report by Bruno Haible.
30268 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30270 Sync from Automake.
30271 * build-aux/gnupload: Fix shell portability issues with for loops.
30272 Report by Karl Berry.
30274 2007-06-29 Simon Josefsson <simon@josefsson.org>
30276 * build-aux/maint.mk (POURL): Use translationproject.org.
30278 2007-06-27 Simon Josefsson <simon@josefsson.org>
30279 Bruno Haible <bruno@clisp.org>
30281 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
30282 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
30283 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
30284 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
30285 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
30287 2007-06-27 Bruno Haible <bruno@clisp.org>
30289 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
30290 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
30292 2007-06-26 Karl Berry <karl@gnu.org>
30294 * MODULES.html.sh: remove xreadlink-with-size.
30296 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
30298 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
30299 method that I hope also handles the double-include problem noted
30301 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
30303 2007-06-23 Bruno Haible <bruno@clisp.org>
30305 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30306 Don't let the 'mostlyclean' target fail if the last subdirectory could
30308 Reported by Karl Berry.
30310 2007-06-23 Bruno Haible <bruno@clisp.org>
30312 * gnulib-tool (echo): Add a speedier workaround for ksh.
30313 * tests/test-echo.sh: Likewise.
30315 2007-06-23 Bruno Haible <bruno@clisp.org>
30317 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
30318 * tests/test-echo.sh: Likewise.
30320 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30322 * gnulib-tool (IFS): Initialize early, so we don't set it to
30324 (self_abspathname): Rewrite algorithm to set it, reindent.
30325 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
30326 (func_create_megatestdir): Merge some sed scripts.
30328 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
30330 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
30331 exposed by Sun Studio 11 cc on Solaris 8.
30333 2007-06-22 Bruno Haible <bruno@clisp.org>
30335 * gnulib-tool (echo): Ensure the echo primitive does not interpret
30337 * tests/test-echo.sh: New file.
30339 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30341 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
30342 simplify `sed_replace_build_aux' scripts, they are portable but
30343 echoing them with `echo' is not.
30344 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
30346 2007-06-21 Karl Berry <karl@gnu.org>
30348 * config/srclist.txt: guess we can't handle the licenses via
30349 srclist at the moment.
30351 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
30353 * MODULES.html.sh: Add include_next.
30354 * modules/include_next: New file.
30356 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
30358 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
30360 (gl_CHECK_NEXT_HEADERS): New macro.
30361 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
30362 the obsolescent gl_ABSOLUTE_HEADER.
30363 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
30364 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
30365 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
30366 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30367 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30368 * m4/math_h.m4 (gl_MATH_H): Likewise.
30369 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
30370 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30371 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
30372 * m4/stdint.m4 (gl_STDINT_H): Likewise.
30373 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
30374 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
30375 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
30376 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30377 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30378 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30379 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30380 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
30381 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
30382 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
30383 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30384 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
30385 * m4/inttypes.m4 (gl_INTTYPES_H): Define
30386 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
30387 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
30388 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
30389 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
30390 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
30391 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
30392 * lib/float_.h: Likewise.
30393 * lib/inttypes_.h: Likewise.
30394 * lib/math_.h: Likewise.
30395 * lib/search_.h: Likewise.
30396 * lib/signal_.h: Likewise.
30397 * lib/stdint_.h: Likewise.
30398 * lib/stdio_.h: Likewise.
30399 * lib/stdlib_.h: Likewise.
30400 * lib/string_.h: Likewise.
30401 * lib/sys_stat_.h: Likewise.
30402 * lib/sys_time_.h: Likewise.
30403 * lib/time_.h: Likewise.
30404 * lib/unistd_.h: Likewise.
30405 * lib/wchar_.h: Likewise.
30406 * lib/wctype_.h: Likewise.
30407 * lib/dirent_.h: Likewise.
30408 * lib/iconv_.h: Likewise.
30409 * lib/locale_.h: Likewise.
30410 * lib/netinet_in_.h: Likewise.
30411 * lib/sys_select_.h: Likewise.
30412 * lib/sys_socket_.h: Likewise.
30413 * lib/sysexits_.h: Likewise.
30414 * modules/fcntl (Depends-on): Depend on include_next, not
30416 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
30417 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
30418 * modules/fchdir: Likewise.
30419 * modules/float: Likewise.
30420 * modules/iconv_open: Likewise.
30421 * modules/inttypes: Likewise.
30422 * modules/locale: Likewise.
30423 * modules/math: Likewise.
30424 * modules/netinet_in: Likewise.
30425 * modules/search: Likewise.
30426 * modules/signal: Likewise.
30427 * modules/stdint: Likewise.
30428 * modules/stdio: Likewise.
30429 * modules/stdlib: Likewise.
30430 * modules/string: Likewise.
30431 * modules/sys_select: Likewise.
30432 * modules/sys_socket: Likewise.
30433 * modules/sys_stat: Likewise.
30434 * modules/sys_time: Likewise.
30435 * modules/sysexits: Likewise.
30436 * modules/time: Likewise.
30437 * modules/unistd: Likewise.
30438 * modules/wchar: Likewise.
30439 * modules/wctype: Likewise.
30440 * modules/sys_stat: Change maintainer to "all".
30441 * modules/unistd: Likewise.
30443 2007-06-20 Karl Berry <karl@gnu.org>
30445 * config/srclist.txt: track www changes in license files.
30447 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
30449 * build-aux/bootstrap: Remove stray dot.
30450 Make sure build_aux settings are honored when linking
30451 gnulib_extra_files.
30453 2007-06-19 Eric Blake <ebb9@byu.net>
30455 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
30456 Allow compilation on cygwin.
30458 2007-06-19 Jim Meyering <jim@meyering.net>
30460 xreadlink-with-size: Remove module. No longer used.
30461 Ex-callers now use xreadlink or mreadlink-with-size.
30462 * modules/xreadlink-with-size: Remove module.
30463 * lib/xreadlink-with-size.c: Remove file.
30464 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
30465 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
30466 just before the function definition *is* accurate.
30468 Eliminate one way canonicalize_filename_mode could exit.
30469 * lib/canonicalize.c (canonicalize_filename_mode):
30470 Use mreadlink_with_size, not xreadlink_with_size.
30472 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
30474 Detect porting problems to FreeBSD/arm, which has time_t wider than
30475 long int. Original problem reported for GNU diff by Xin Li in
30476 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
30477 * modules/getdate (Depends-on): Add intprops, verify.
30478 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
30479 is an integer type no wider than long int.
30481 2007-06-18 Jim Meyering <jim@meyering.net>
30483 New module: mreadlink-with-size.
30484 * MODULES.html.sh: Add mreadlink-with-size.
30485 * modules/mreadlink-with-size: New module
30486 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
30487 not xreadlink-with-size.
30488 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
30490 2007-06-16 Bruno Haible <bruno@clisp.org>
30492 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
30493 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
30494 Reported by Gary V. Vaughan <gary@gnu.org>.
30496 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
30498 Revamp lchown so that it lives in unistd.h where it belongs.
30499 * lib/lchown.h: Remove.
30500 * lib/dirchownmod.c: Don't include lib/lchown.h.
30501 * lib/fchownat.c: Likewise.
30502 * lib/openat.c: Likewise.
30503 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
30504 does not follow symlinks.
30505 (EOPNOTSUPP): Define if not defined.
30506 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
30508 (lchown): New decl.
30509 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
30510 Do not check for lchown decl.
30511 Set REPLACE_LCHOWN.
30512 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
30514 * modules/chown: Make it clear it follows symlinks.
30515 * modules/lchown: Make it clear it doesn't follow symlinks.
30516 (Files): Remove lib/lchown.h
30517 (Depends-on): Add unistd.
30518 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
30519 (Include): Include <unistd.h>, not "lchown.h".
30520 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
30523 2007-06-15 Jim Meyering <jim@meyering.net>
30525 Change license (GPL to LGPL) of fsusage and dependents.
30526 * modules/fsusage (License): Change to LGPL.
30527 * modules/full-read (License): Likewise.
30528 * modules/full-write (License): Likewise.
30529 * modules/safe-read (License): Likewise.
30530 * modules/safe-write (License): Likewise.
30532 2007-06-14 Ben Pfaff <blp@gnu.org>
30534 Missing part of allocsa -> malloca transition.
30535 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
30538 2007-06-12 Bruno Haible <bruno@clisp.org>
30540 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
30541 to ia64, x86_64, i386.
30542 Reported by Eric Blake.
30544 2007-06-12 Bruno Haible <bruno@clisp.org>
30546 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
30547 cross-compiling to x86_64.
30549 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
30551 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
30552 glitch reported by Ralf Wildenhues in
30553 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
30555 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
30558 2007-06-11 Bruno Haible <bruno@clisp.org>
30560 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
30561 replacement string.
30562 Reported by Eric Blake.
30564 2007-06-10 Bruno Haible <bruno@clisp.org>
30566 Prepare vasnprintf code for use with Unicode strings.
30567 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
30568 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
30570 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
30571 a_u32_string variants.
30572 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
30573 * lib/printf-args.c: Don't include config.h and the specification
30574 header if PRINTF_FETCHARGS is already defined.
30575 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
30576 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
30577 TYPE_U16_STRING, TYPE_U32_STRING.
30578 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
30579 u16_directive, u16_directives, u32_directive, u32_directives): New
30581 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
30583 * lib/printf-parse.c: Don't include config.h and the specification
30584 header if PRINTF_PARSE is already defined. Eliminate the set of
30585 parameters for WIDE_CHAR_VERSION; the user of this file must provide
30586 them now. Include c-ctype.h.
30587 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
30588 directive and CHAR_T_ONLY_ASCII.
30589 * lib/vasnprintf.c: Don't include config.h and the specification header
30590 if VASNPRINTF is already defined.
30591 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
30592 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
30593 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
30594 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
30595 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
30596 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
30598 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
30599 pad_ourselves also in this case, with the 'c' and 's' directives, and
30600 with a different notion of "width".
30601 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
30603 2007-06-10 Bruno Haible <bruno@clisp.org>
30605 * modules/unistr/u32-mbsnlen: New file.
30606 * lib/unistr/u32-mbsnlen.c: New file.
30608 * modules/unistr/u16-mbsnlen: New file.
30609 * lib/unistr/u16-mbsnlen.c: New file.
30611 * modules/unistr/u8-mbsnlen: New file.
30612 * lib/unistr/u8-mbsnlen.c: New file.
30614 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
30617 2007-06-10 Bruno Haible <bruno@clisp.org>
30619 * lib/string_.h (mbsnlen): New declaration.
30620 * lib/mbsnlen.c: New file.
30621 * m4/mbsnlen.m4: New file.
30622 * modules/mbsnlen: New file.
30623 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
30624 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
30625 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
30627 2007-06-10 Bruno Haible <bruno@clisp.org>
30629 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
30631 2007-06-10 Bruno Haible <bruno@clisp.org>
30633 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
30634 * lib/mbuiter.h: Likewise.
30636 2007-06-10 Bruno Haible <bruno@clisp.org>
30638 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
30641 2007-06-10 Karl Berry <karl@gnu.org>
30643 * config/srclist.txt: remove gettext entries, Bruno prefers
30644 to update individually.
30646 2007-06-10 Bruno Haible <bruno@clisp.org>
30648 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
30649 'maxlen'. Ensure only length + width bytes are allocated, not
30650 length + 1 + width.
30652 2007-06-09 Bruno Haible <bruno@clisp.org>
30654 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
30655 (CHAR_T): Remove macro.
30656 (VASNPRINTF): Update.
30658 2007-06-09 Bruno Haible <bruno@clisp.org>
30660 * MODULES.html.sh (Unicode string functions): Add the new modules.
30662 * modules/uniconv/u32-conv-to-enc: New file.
30663 * lib/uniconv/u32-conv-to-enc.c: New file.
30664 * modules/uniconv/u32-conv-to-enc-tests: New file.
30665 * tests/uniconv/test-u32-conv-to-enc.c: New file.
30667 * modules/uniconv/u16-conv-to-enc: New file.
30668 * lib/uniconv/u16-conv-to-enc.c: New file.
30669 * lib/uniconv/u-conv-to-enc.h: New file.
30670 * modules/uniconv/u16-conv-to-enc-tests: New file.
30671 * tests/uniconv/test-u16-conv-to-enc.c: New file.
30673 * modules/uniconv/u8-conv-to-enc: New file.
30674 * lib/uniconv/u8-conv-to-enc.c: New file.
30675 * modules/uniconv/u8-conv-to-enc-tests: New file.
30676 * tests/uniconv/test-u8-conv-to-enc.c: New file.
30678 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
30679 u32_conv_to_encoding): New declarations.
30681 2007-06-09 Bruno Haible <bruno@clisp.org>
30683 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
30685 2007-06-09 Bruno Haible <bruno@clisp.org>
30687 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
30688 * modules/malloca: Renamed from modules/allocsa, updated.
30689 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
30690 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
30691 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
30692 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
30693 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
30694 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
30695 * modules/xmalloca: Renamed from modules/xallocsa, updated.
30696 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
30697 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
30698 * modules/c-strcasestr (Depends-on): Update.
30699 * lib/c-strcasestr.c: Update.
30700 * modules/c-strstr (Depends-on): Update.
30701 * lib/c-strstr.c: Update.
30702 * modules/canonicalize-lgpl (Depends-on): Update.
30703 * lib/canonicalize-lgpl.c: Update.
30704 * modules/clean-temp (Depends-on): Update.
30705 * lib/clean-temp.c: Update.
30706 * modules/csharpcomp (Depends-on): Update.
30707 * lib/csharpcomp.c: Update.
30708 * modules/csharpexec (Depends-on): Update.
30709 * lib/csharpexec.c: Update.
30710 * modules/javacomp (Depends-on): Update.
30711 * lib/javacomp.c: Update.
30712 * modules/javaexec (Depends-on): Update.
30713 * lib/javaexec.c: Update.
30714 * modules/mbscasestr (Depends-on): Update.
30715 * lib/mbscasestr.c: Update.
30716 * modules/mbsstr (Depends-on): Update.
30717 * lib/mbsstr.c: Update.
30718 * modules/setenv (Depends-on): Update.
30719 * lib/setenv.c: Update.
30720 * modules/strcasestr (Depends-on): Update.
30721 * lib/strcasestr.c: Update.
30722 * modules/striconveha (Depends-on): Update.
30723 * lib/striconveha.c: Update.
30724 * modules/relocatable-prog-wrapper (Files): Update.
30725 * lib/relocwrapper.c: Update.
30726 * build-aux/install-reloc: Update.
30727 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
30729 2007-06-08 Bruno Haible <bruno@clisp.org>
30732 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
30733 * lib/fpurge.c (fpurge): Likewise.
30734 * lib/freading.c (freading): Likewise.
30735 * lib/fseeko.c (rpl_fseeko): Likewise.
30736 * lib/fseterr.c (fseterr): Likewise.
30737 * lib/fwriting.c (fwriting): Likewise.
30738 * tests/test-fflush.c (main): Avoid a failure on uClibc.
30740 2007-06-08 Bruno Haible <bruno@clisp.org>
30742 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
30743 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
30744 * modules/gettext (Files): Add m4/intlmacosx.m4.
30746 2007-06-07 Bruno Haible <bruno@clisp.org>
30748 * modules/localename-tests: New file.
30749 * tests/test-localename.c: New file.
30751 New module 'localename'.
30752 * lib/localename.h: New file.
30753 * lib/localename.c: New file, from GNU gettext.
30754 * m4/localename.m4: New file.
30755 * modules/localename: New file.
30757 2007-06-07 Bruno Haible <bruno@clisp.org>
30759 Work around the lack of <wchar.h> on some builds of uClibc.
30760 * doc/headers/wchar.texi: Update.
30761 * lib/wchar_.h: Include <wchar.h> only if it exists.
30762 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
30763 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
30764 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
30766 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
30767 * modules/mbfile (Depends-on): Add wchar.
30768 * modules/mbiter (Depends-on): Likewise.
30769 * modules/mbuiter (Depends-on): Likewise.
30770 Reported by Simon Josefsson.
30772 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
30774 Work around problem reported by Steven M. Schweda in
30775 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
30776 Tru64 5.1B with the Compaq compiler environment installed declares
30777 an 'isblank' function but does not define it in the C library.
30778 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
30779 * lib/regex_internal.h (isblank): Likewise.
30780 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
30781 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30783 2007-06-05 Bruno Haible <bruno@clisp.org>
30785 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
30787 * modules/printf-safe: New file.
30788 * modules/fprintf-posix (Depends-on): Add printf-safe.
30789 * modules/printf-posix (Depends-on): Likewise.
30790 * modules/snprintf-posix (Depends-on): Likewise.
30791 * modules/sprintf-posix (Depends-on): Likewise.
30792 * modules/vasnprintf-posix (Depends-on): Likewise.
30793 * modules/vasprintf-posix (Depends-on): Likewise.
30794 * modules/vfprintf-posix (Depends-on): Likewise.
30795 * modules/vprintf-posix (Depends-on): Likewise.
30796 * modules/vsnprintf-posix (Depends-on): Likewise.
30797 * modules/vsprintf-posix (Depends-on): Likewise.
30798 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
30799 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
30800 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
30801 "no" on i386, x86_64, ia64.
30802 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
30803 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30804 on i386, x86_64, ia64.
30805 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
30806 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30807 on i386, x86_64, ia64.
30808 * tests/test-vasnprintf-posix.c: Include float.h.
30809 (LDBL80_WORDS): New macro.
30810 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30811 on i386, x86_64, ia64.
30812 * tests/test-vasprintf-posix.c: Include float.h.
30813 (LDBL80_WORDS): New macro.
30814 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30815 on i386, x86_64, ia64.
30816 * tests/test-snprintf-posix.c: Include float.h.
30817 * tests/test-sprintf-posix.c: Likewise.
30818 * tests/test-vsnprintf-posix.c: Likewise.
30819 * tests/test-vsprintf-posix.c: Likewise.
30821 2007-06-05 Bruno Haible <bruno@clisp.org>
30823 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
30824 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
30825 non-IEEE numbers on i386, x86_64, ia64.
30826 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
30827 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
30828 * tests/test-isnanl.h: Include float.h.
30829 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
30831 2007-06-05 Bruno Haible <bruno@clisp.org>
30833 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
30834 also the %a / %A. Handle the %a / %A code before this extra handling.
30836 2007-06-05 Bruno Haible <bruno@clisp.org>
30838 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
30839 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
30841 2007-06-05 Bruno Haible <bruno@clisp.org>
30843 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
30844 typo in variable name.
30846 2007-06-05 Eric Blake <ebb9@byu.net>
30848 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
30849 Reported by Simon Josefsson.
30851 2007-06-04 Bruno Haible <bruno@clisp.org>
30853 Avoid test failures on some PowerPC platforms.
30854 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
30855 Define differently for PowerPC.
30856 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
30857 Reported by Gary V. Vaughan <gary@gnu.org>.
30859 2007-06-02 Bruno Haible <bruno@clisp.org>
30861 Fix test-stdint failure on FreeBSD/ia64.
30862 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
30863 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
30864 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
30865 * doc/headers/stdint.texi: Update.
30867 2007-06-01 Bruno Haible <bruno@clisp.org>
30869 * tests/test-binary-io.c (main): Pass a third argument to open().
30870 Reported by Gary V. Vaughan <gary@gnu.org>.
30872 2007-06-01 Bruno Haible <bruno@clisp.org>
30874 * doc/functions/frexpl.texi: Update for mingw.
30876 2007-06-01 Bruno Haible <bruno@clisp.org>
30878 * tests/test-lseek.c (main): Disable test of errno for invalid third
30880 * doc/functions/lseek.texi: Update.
30881 Reported by Gary V. Vaughan <gary@gnu.org>.
30883 2007-05-28 Bruno Haible <bruno@clisp.org>
30885 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
30887 2007-05-31 Eric Blake <ebb9@byu.net>
30889 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
30892 2007-05-30 Eric Blake <ebb9@byu.net>
30893 and Bruno Haible <bruno@clisp.org>
30895 Work around mingw test failures exposed by m4-1.4.9b.
30896 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
30897 * tests/test-unistd.c: Disable uid_t and git_t tests for the
30900 2007-05-30 Bruno Haible <bruno@clisp.org>
30902 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
30903 assuming that they are closed. Needed on HP-UX 11.
30905 2007-05-29 Bruno Haible <bruno@clisp.org>
30907 Fix a problem with #include_next.
30908 * lib/dirent_.h: Split the double-inclusion guard.
30909 * lib/fcntl_.h: Likewise.
30910 * lib/float_.h: Likewise.
30911 * lib/iconv_.h: Likewise.
30912 * lib/inttypes_.h: Likewise.
30913 * lib/locale_.h: Likewise.
30914 * lib/math_.h: Likewise.
30915 * lib/netinet_in_.h: Likewise.
30916 * lib/search_.h: Likewise.
30917 * lib/signal_.h: Likewise.
30918 * lib/stdint_.h: Likewise.
30919 * lib/stdio_.h: Likewise.
30920 * lib/stdlib_.h: Likewise.
30921 * lib/string_.h: Likewise.
30922 * lib/sys_select_.h: Likewise.
30923 * lib/sys_socket_.h: Likewise.
30924 * lib/sys_stat_.h: Likewise.
30925 * lib/sys_time_.h: Likewise.
30926 * lib/sysexits_.h: Likewise.
30927 * lib/time_.h: Likewise.
30928 * lib/unistd_.h: Likewise.
30929 * lib/wchar_.h: Likewise.
30930 * lib/wctype_.h: Likewise.
30932 2007-05-29 Bruno Haible <bruno@clisp.org>
30934 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
30937 2007-05-29 Bruno Haible <bruno@clisp.org>
30939 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
30941 Reported by Eric Blake.
30943 2007-05-29 Bruno Haible <bruno@clisp.org>
30945 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
30948 2007-05-29 Eric Blake <ebb9@byu.net>
30949 Bruno Haible <bruno@clisp.org>
30951 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
30954 2007-05-28 Eric Blake <ebb9@byu.net>
30956 * modules/closein-tests (test_closein_LDADD): Support test on
30957 cygwin with libtool.
30959 2007-05-28 Bruno Haible <bruno@clisp.org>
30961 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
30962 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30963 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30964 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30965 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30966 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30967 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30968 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30969 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30971 2007-05-28 Eric Blake <ebb9@byu.net>
30973 Unconditionally include <config.h> in unit tests.
30974 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
30975 * tests/test-allocsa.c, tests/test-arcfour.c,
30976 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
30977 tests/test-array_list.c, tests/test-array_oset.c,
30978 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
30979 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
30980 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
30981 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
30982 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
30983 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
30984 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
30985 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
30986 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
30987 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
30988 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
30989 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
30990 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
30991 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
30992 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
30993 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
30994 test-md5.c, test-memmem.c, test-printf-posix.c,
30995 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
30996 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
30997 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
30998 test-strcasestr.c, test-striconv.c, test-striconveh.c,
30999 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
31000 test-vasnprintf-posix2.c, test-vasnprintf.c,
31001 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
31002 test-vfprintf-posix.c, test-vprintf-posix.c,
31003 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
31004 test-xvasprintf.c: Likewise.
31006 2007-05-28 Bruno Haible <bruno@clisp.org>
31008 * gnulib-tool (func_import): Remember the --with-tests command-line
31009 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
31010 Reported by Eric Blake.
31012 2007-05-28 Bruno Haible <bruno@clisp.org>
31014 * modules/ftell-tests: New file.
31015 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
31016 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
31018 * lib/ftell.c: New file.
31019 * modules/ftell: New file.
31020 * m4/ftell.m4: New file.
31021 * doc/functions/ftell.texi: Update.
31022 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
31024 * lib/stdio_.h (rpl_ftell): New declaration.
31025 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
31028 2007-05-28 Eric Blake <ebb9@byu.net>
31030 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
31032 2007-05-28 Bruno Haible <bruno@clisp.org>
31034 * modules/fseek-tests: New file.
31035 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
31036 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
31038 * lib/fseek.c: New file.
31039 * modules/fseek: New file.
31040 * m4/fseek.m4: New file.
31041 * doc/functions/fseek.texi: Update.
31042 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
31044 * lib/stdio_.h (rpl_fseek): New declaration.
31045 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
31048 2007-05-28 Bruno Haible <bruno@clisp.org>
31050 * lib/stdio_.h (fflush): More comments.
31052 2007-05-28 Bruno Haible <bruno@clisp.org>
31054 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
31057 2007-05-28 Eric Blake <ebb9@byu.net>
31059 Improve lseek module.
31060 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
31061 * lib/unistd_.h (lseek): Scale back link warning message.
31062 * tests/test-lseek.c: Beef up test.
31063 * tests/test-lseek.sh: Exercise more facets of lseek.
31064 Reported by Bruno Haible.
31066 2007-05-28 Bruno Haible <bruno@clisp.org>
31068 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
31071 2007-05-27 Bruno Haible <bruno@clisp.org>
31073 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
31075 2007-05-27 Bruno Haible <bruno@clisp.org>
31077 * modules/openmp: New file.
31078 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
31081 2007-05-26 Bruno Haible <bruno@clisp.org>
31083 * modules/chdir-long (Depends-on): Add fchdir.
31084 * modules/chdir-safer (Depends-on): Likewise.
31085 * modules/fts (Depends-on): Likewise.
31086 * modules/fts-lgpl (Depends-on): Likewise.
31087 * modules/openat (Depends-on): Likewise.
31088 * modules/savewd (Depends-on): Likewise.
31090 2007-05-24 Eric Blake <ebb9@byu.net>
31092 Fix lseek on mingw.
31093 * modules/lseek: New module.
31094 * m4/lseek.m4: New file.
31095 * lib/lseek.c: New file.
31096 * modules/lseek-tests: New file.
31097 * tests/test-lseek.c: New file.
31098 * tests/test-lseek.sh: New file.
31099 * MODULES.html.sh: Document lseek module.
31100 * modules/fflush (Depends-on): Add lseek, fseeko.
31101 * modules/fseeko (Depends-on): Likewise.
31102 * modules/ftello (Depends-on): Likewise.
31103 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
31105 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
31107 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
31108 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
31109 * lib/ftello.c (rpl_ftello): Likewise.
31110 * tests/test-fseeko.c (main): Test this.
31111 * tests/test-fseeko.sh: Likewise.
31112 * tests/test-ftello.c (main): Likewise.
31113 * tests/test-ftello.sh: Likewise.
31114 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
31115 implies replacing fseek.
31116 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
31118 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
31119 * modules/unistd (Makefile.am): Likewise.
31120 * lib/unistd_.h (lseek): Declare a replacement.
31121 * doc/functions/lseek.texi (lseek): Document this fix.
31122 * doc/functions/fseek.texi (fseek): Likewise.
31123 * doc/functions/ftell.texi (ftell): Likewise.
31125 2007-05-24 Bruno Haible <bruno@clisp.org>
31127 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
31128 in the printed representation of a NaN.
31129 * tests/test-vasprintf-posix.c (test_function): Likewise.
31130 * tests/test-snprintf-posix.h (test_function): Likewise.
31131 * tests/test-sprintf-posix.h (test_function): Likewise.
31132 Reported by Eric Blake.
31134 2007-05-23 Eric Blake <ebb9@byu.net>
31136 Fix fseeko/ftello on cygwin 1.5.24.
31137 * doc/functions/fseeko.texi (fseeko): Document the fix.
31138 * doc/functions/ftello.texi (ftello): Document the fix.
31139 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
31140 * doc/functions/stdout.text (stdout): New file.
31141 * doc/functions/stderr.text (stderr): New file.
31142 * doc/gnulib.texi (Function Substitutes): Use new files.
31143 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
31145 * tests/test-ftello.c (main): Likewise for ftello.
31146 * tests/test-fseeko.sh: New file.
31147 * tests/test-ftello.sh: New file.
31148 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
31149 with seekable stdin.
31150 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
31151 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
31152 (gl_REPLACE_FSEEKO): New macro.
31153 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
31154 * modules/fseeko (Files): Distribute fseeko.c.
31155 * modules/ftello (Files): Distribute ftello.c.
31156 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
31158 * lib/ftello.c (rpl_ftello): New file.
31159 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
31161 (gl_STDIN_LARGE_OFFSET): New macro.
31162 * modules/stdio (Makefile.am): Perform the replacement.
31163 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
31165 2007-05-23 Bruno Haible <bruno@clisp.org>
31167 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
31168 GNULIB_POSIXCHECK is defined.
31170 2007-05-21 Bruno Haible <bruno@clisp.org>
31172 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
31173 Check also the output for NaN arguments. When cross-compiling, guess
31175 * lib/vasnprintf.c: Update comments.
31176 * tests/test-vasnprintf-posix.c (strisnan): New function.
31177 (test_function): Use it.
31178 * tests/test-vasprintf-posix.c (strisnan): New function.
31179 (test_function): Use it.
31180 * tests/test-snprintf-posix.h (strisnan): New function.
31181 (test_function): Use it.
31182 * tests/test-sprintf-posix.h (strisnan): New function.
31183 (test_function): Use it.
31184 Reported by Eric Blake.
31186 2007-05-20 Bruno Haible <bruno@clisp.org>
31188 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
31189 numbers that fails on BeOS.
31190 * doc/functions/frexpl.texi: Update.
31192 2007-05-20 Jim Meyering <jim@meyering.net>
31194 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
31195 forced upon us by glibc-2.6.
31197 2007-05-20 Bruno Haible <bruno@clisp.org>
31199 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
31200 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
31201 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
31202 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
31203 NEED_PRINTF_INFINITE.
31204 (is_infinitel): New function.
31205 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
31206 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
31207 gl_PREREQ_VASNPRINTF_INFINITE.
31208 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
31209 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31210 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
31211 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
31212 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
31213 gl_PREREQ_VASNPRINTF_INFINITE.
31214 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31215 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31216 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31217 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31218 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31219 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31220 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31221 * doc/functions/fprintf.texi: Update.
31222 * doc/functions/printf.texi: Update.
31223 * doc/functions/snprintf.texi: Update.
31224 * doc/functions/sprintf.texi: Update.
31225 * doc/functions/vfprintf.texi: Update.
31226 * doc/functions/vprintf.texi: Update.
31227 * doc/functions/vsnprintf.texi: Update.
31228 * doc/functions/vsprintf.texi: Update.
31230 2007-05-20 Bruno Haible <bruno@clisp.org>
31232 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
31233 was not found in libc.
31234 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31236 2007-05-20 Bruno Haible <bruno@clisp.org>
31238 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
31239 printed as "-nan" instead of "nan".
31240 * tests/test-vasprintf-posix.c (test_function): Likewise.
31241 * tests/test-snprintf-posix.h (test_function): Likewise.
31242 * tests/test-sprintf-posix.h (test_function): Likewise.
31243 Needed for HP-UX 11.
31245 2007-05-20 Jim Meyering <jim@meyering.net>
31247 Fix buggy test for the fchownat-deref bug.
31248 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
31249 symlink required for the run-test. Without it, this test would
31250 always declare that fchownat doesn't work, and client code would
31251 unnecessarily use the replacement function with fixed libc.
31252 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
31253 Reported by Greg Schafer.
31255 2007-05-19 Bruno Haible <bruno@clisp.org>
31257 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
31258 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
31259 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
31260 Needed for IRIX 6.5 and Solaris 2.5.1.
31262 2007-05-19 Bruno Haible <bruno@clisp.org>
31264 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
31265 (test_function): Skip tests involving -0.0 on platforms where
31267 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
31268 (test_function): Skip tests involving -0.0 on platforms where
31270 * tests/test-snprintf-posix.h (have_minus_zero): New function.
31271 (test_function): Skip tests involving -0.0 on platforms where
31273 * tests/test-sprintf-posix.h (have_minus_zero): New function.
31274 (test_function): Skip tests involving -0.0 on platforms where
31276 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
31278 * tests/test-printf-posix.h (test_function): Likewise.
31279 * tests/test-printf-posix.output: Remove all -0.0 related results.
31280 Needed for IRIX 6.5.
31282 2007-05-19 Bruno Haible <bruno@clisp.org>
31284 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
31285 printed as "nan0x7fffffff" instead of "nan".
31286 * tests/test-vasprintf-posix.c (test_function): Likewise.
31287 * tests/test-snprintf-posix.h (test_function): Likewise.
31288 * tests/test-sprintf-posix.h (test_function): Likewise.
31289 * tests/test-fprintf-posix.h (NaN): Remove macro.
31290 (test_function): Remove all NaN related tests.
31291 * tests/test-printf-posix.h (NaN): Remove macro.
31292 (test_function): Remove all NaN related tests.
31293 * tests/test-printf-posix.output: Remove all NaN related results.
31294 Needed for IRIX 6.5.
31296 2007-05-19 Bruno Haible <bruno@clisp.org>
31298 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
31299 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31301 2007-05-19 Bruno Haible <bruno@clisp.org>
31303 * lib/float_.h: New file.
31304 * m4/float_h.m4: New file.
31305 * modules/float: New file.
31306 * modules/isnanl (Dependencies): Add float.
31307 * modules/isnanl-nolibm (Dependencies): Likewise.
31308 * modules/mathl (Dependencies): Likewise.
31309 * modules/printf-frexpl (Dependencies): Likewise.
31310 * modules/signbit (Dependencies): Likewise.
31311 * modules/vasnprintf (Dependencies): Likewise.
31312 * doc/headers/float.texi: Update.
31314 2007-05-19 Jim Meyering <jim@meyering.net>
31316 * lib/utimens.c (gl_futimens): Rename from futimens,
31317 now that glibc-2.6 declares futimens.
31318 * lib/utimens.h: Likewise.
31320 2007-05-19 Bruno Haible <bruno@clisp.org>
31322 Avoid test failures on mingw.
31323 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
31324 * tests/test-printf-posix.sh: Likewise.
31325 * tests/test-vfprintf-posix.sh: Likewise.
31326 * tests/test-vprintf-posix.sh: Likewise.
31328 2007-05-19 Bruno Haible <bruno@clisp.org>
31330 Fix *printf result for NaN, Inf, -0.0 on mingw.
31331 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
31332 * lib/vasnprintf.c: Include math.h and isnan.h.
31333 (is_infinite_or_zero): New function.
31334 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
31335 values in the %f, %F, %e, %E, %g, %G directives.
31336 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
31337 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31338 gl_PRINTF_INFINITE and test its result. Invoke
31339 gl_PREREQ_VASNPRINTF_INFINITE.
31340 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31341 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31342 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31343 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31344 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31345 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31346 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31347 * doc/functions/fprintf.texi: Update.
31348 * doc/functions/printf.texi: Update.
31349 * doc/functions/snprintf.texi: Update.
31350 * doc/functions/sprintf.texi: Update.
31351 * doc/functions/vfprintf.texi: Update.
31352 * doc/functions/vprintf.texi: Update.
31353 * doc/functions/vsnprintf.texi: Update.
31354 * doc/functions/vsprintf.texi: Update.
31356 2007-05-19 Bruno Haible <bruno@clisp.org>
31358 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
31359 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
31360 Instead of multiplying with 10^k, set extra_zeroes to k.
31361 (scale10_round_long_double): Remove function.
31363 2007-05-18 Bruno Haible <bruno@clisp.org>
31365 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
31366 introduced on 2007-05-06.
31368 2007-05-18 Bruno Haible <bruno@clisp.org>
31370 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
31372 * tests/test-vasprintf-posix.c (test_function): Likewise.
31373 * tests/test-snprintf-posix.h (test_function): Likewise.
31374 * tests/test-sprintf-posix.h (test_function): Likewise.
31376 2007-05-18 Bruno Haible <bruno@clisp.org>
31378 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
31379 (strmatch): New function.
31380 (test_function): Test the %f directive on numbers of various exponents.
31381 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
31382 (strmatch): New function.
31383 (test_function): Test the %f directive on numbers of various exponents.
31384 * tests/test-snprintf-posix.h (strmatch): New function.
31385 (test_function): Test the %f directive on numbers of various exponents.
31386 * tests/test-sprintf-posix.h (strmatch): New function.
31387 (test_function): Test the %f directive on numbers of various exponents.
31388 * tests/test-snprintf-posix.c (SIZEOF): New macro.
31389 * tests/test-sprintf-posix.c (SIZEOF): New macro.
31390 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
31391 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
31393 2007-05-18 Bruno Haible <bruno@clisp.org>
31395 Add support for 'long double' number output.
31396 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
31397 * lib/vasnprintf.c: Include math.h and float+.h.
31398 (mp_limb_t): New type.
31399 (GMP_LIMB_BITS): New macro.
31400 (mp_twolimb_t): New type.
31401 (GMP_TWOLIMB_BITS): New macro.
31403 (multiply, divide, convert_to_decimal, decode_long_double,
31404 scale10_round_long_double, scale10_round_decimal_long_double,
31405 floorlog10l): New functions.
31406 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
31407 for the %f, %F, %e, %E, %g, %G directives.
31408 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
31409 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31410 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
31411 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
31412 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31413 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31414 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31415 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31416 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31417 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31418 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31419 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
31420 * modules/snprintf-posix (Depends-on): Likewise.
31421 * modules/sprintf-posix (Depends-on): Likewise.
31422 * modules/vasnprintf-posix (Depends-on): Likewise.
31423 * modules/vasprintf-posix (Depends-on): Likewise.
31424 * modules/vfprintf-posix (Depends-on): Likewise.
31425 * modules/vsnprintf-posix (Depends-on): Likewise.
31426 * modules/vsprintf-posix (Depends-on): Likewise.
31427 * modules/vasnprintf (Files): Add lib/float+.h.
31428 * doc/functions/fprintf.texi: Update.
31429 * doc/functions/printf.texi: Update.
31430 * doc/functions/snprintf.texi: Update.
31431 * doc/functions/sprintf.texi: Update.
31432 * doc/functions/vfprintf.texi: Update.
31433 * doc/functions/vprintf.texi: Update.
31434 * doc/functions/vsnprintf.texi: Update.
31435 * doc/functions/vsprintf.texi: Update.
31437 2007-05-18 Bruno Haible <bruno@clisp.org>
31439 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
31441 2007-05-18 Bruno Haible <bruno@clisp.org>
31443 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
31444 for printing 64-bit integers. Needed for mingw.
31446 2007-05-18 Bruno Haible <bruno@clisp.org>
31448 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
31449 gl_FUNC_FREXPL_WORKS.
31450 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
31452 2007-05-18 Bruno Haible <bruno@clisp.org>
31454 * modules/frexpl-nolibm-tests: New file.
31456 * modules/frexpl-nolibm: New file.
31457 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
31459 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
31461 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
31462 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
31463 GCC 4.2, which otherwise issues a lot of warnings.
31464 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
31465 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
31467 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
31468 * modules/iconv_open (iconv.h): Likewise.
31469 * modules/locale (locale.h): Likewise.
31470 * modules/netinet_in (netinet/in.h): Likewise.
31471 * modules/sys_select (sys_select.h): Likewise.
31472 * modules/sys_socket (sys/socket.h): Likewise.
31473 * modules/sys_stat (sys/stat.h): Likewise.
31474 * modules/sysexits (sysexits.h): Likewise.
31475 * modules/unistd (unistd.h): Likewise.
31477 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31479 * modules/closein-tests (Makefile.am): Distribute
31482 2007-05-17 Bruno Haible <bruno@clisp.org>
31484 * tests/test-printf-posix.output: Renamed from
31485 tests/test-fprintf-posix.out.
31486 * modules/fprintf-posix-tests: Update.
31487 * modules/printf-posix-tests: Update.
31488 * modules/vfprintf-posix-tests: Update.
31489 * modules/vprintf-posix-tests: Update.
31490 * tests/test-fprintf-posix.sh: Update.
31491 * tests/test-printf-posix.sh: Update.
31492 * tests/test-vfprintf-posix.sh: Update.
31493 * tests/test-vprintf-posix.sh: Update.
31494 Reported by Ralf Wildenhues.
31496 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
31498 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
31499 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
31500 GCC 4.2, which otherwise issues a lot of warnings.
31501 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
31502 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
31503 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
31504 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
31505 it should no longer be needed.
31506 * lib/string_.h: Likewise.
31507 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
31508 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
31509 * modules/inttypes (inttypes.h): Likewise.
31510 * modules/math (math.h): Likewise.
31511 * modules/search (search.h): Likewise.
31512 * modules/signal (signal.h): Likewise.
31513 * modules/stdint (stdint.h): Likewise.
31514 * modules/stdio (stdio.h): Likewise.
31515 * modules/stdlib (stdlib.h): Likewise.
31516 * modules/string (string.h): Likewise.
31517 * modules/sys_time (sys/time.h): Likewise.
31518 * modules/time (time.h): Likewise.
31519 * modules/wchar (wchar.h): Likewise.
31520 * modules/wctype (wtype.h): Likewise.
31522 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
31524 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
31526 2007-05-13 Bruno Haible <bruno@clisp.org>
31528 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
31529 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31530 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
31531 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
31532 (gl_PREREQ_STRTOK_R): Don't require it here.
31534 2007-05-13 Bruno Haible <bruno@clisp.org>
31536 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
31537 when used in C++ mode.
31539 2007-05-12 Bruno Haible <bruno@clisp.org>
31541 * lib/linebuffer.h: Tweak doc.
31542 * lib/linebuffer.c: Likewise.
31544 2007-05-12 James Youngman <jay@gnu.org>
31546 * lib/linebuffer.c (readlinebuffer_delim): New function,
31547 like readlinebuffer, but use a caller-specified delimiter.
31548 (readlinebuffer): Just call readlinebuffer_delim with '\n'
31550 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
31552 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
31554 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
31555 * modules/openat (Files): Remove openat-die.c.
31556 (Depends-on): Add openat-die.
31557 * modules/openat-die: New module.
31559 2007-05-06 Bruno Haible <bruno@clisp.org>
31561 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
31562 Update with info about Cygwin.
31563 * doc/functions/fprintf.texi: Update.
31564 * doc/functions/printf.texi: Update.
31565 * doc/functions/snprintf.texi: Update.
31566 * doc/functions/sprintf.texi: Update.
31567 * doc/functions/vfprintf.texi: Update.
31568 * doc/functions/vprintf.texi: Update.
31569 * doc/functions/vsnprintf.texi: Update.
31570 * doc/functions/vsprintf.texi: Update.
31571 Reported by Eric Blake.
31573 2007-05-06 Bruno Haible <bruno@clisp.org>
31575 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
31576 padding ourselves for the floating-point directives.
31577 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
31578 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
31579 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31580 gl_PRINTF_FLAG_ZERO and test its result. Invoke
31581 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
31582 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31583 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
31584 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31585 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31586 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31587 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31588 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31589 * tests/test-snprintf-posix.h (test_function): Also check the width
31590 and some flags in the %f directive.
31591 * tests/test-sprintf-posix.h (test_function): Likewise.
31592 * tests/test-vasnprintf-posix.c (test_function): Likewise.
31593 * tests/test-vasprintf-posix.c (test_function): Likewise.
31594 * doc/functions/fprintf.texi: Update.
31595 * doc/functions/printf.texi: Update.
31596 * doc/functions/snprintf.texi: Update.
31597 * doc/functions/sprintf.texi: Update.
31598 * doc/functions/vfprintf.texi: Update.
31599 * doc/functions/vprintf.texi: Update.
31600 * doc/functions/vsnprintf.texi: Update.
31601 * doc/functions/vsprintf.texi: Update.
31603 2007-05-06 Bruno Haible <bruno@clisp.org>
31605 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
31606 pass the ' flag character to sprintf or snprintf.
31607 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
31608 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
31609 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31610 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
31611 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
31612 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31613 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
31614 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31615 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31616 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31617 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31618 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31619 * tests/test-snprintf-posix.h (test_function): Also check the grouping
31621 * tests/test-sprintf-posix.h (test_function): Likewise.
31622 * tests/test-vasnprintf-posix.c (test_function): Likewise.
31623 * tests/test-vasprintf-posix.c (test_function): Likewise.
31624 * doc/functions/fprintf.texi: Update.
31625 * doc/functions/printf.texi: Update.
31626 * doc/functions/snprintf.texi: Update.
31627 * doc/functions/sprintf.texi: Update.
31628 * doc/functions/vfprintf.texi: Update.
31629 * doc/functions/vprintf.texi: Update.
31630 * doc/functions/vsnprintf.texi: Update.
31631 * doc/functions/vsprintf.texi: Update.
31633 2007-05-01 Bruno Haible <bruno@clisp.org>
31635 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
31637 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
31639 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
31640 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
31642 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
31644 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
31645 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
31646 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
31648 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
31650 * lib/argp-help.c (struct hol_entry): New member `ord'.
31651 (HOL_ENTRY_PTRCMP): Use ord for comparison
31652 (hol_sort): Initialize ord.
31654 2007-05-01 Bruno Haible <bruno@clisp.org>
31656 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
31657 Reported by Eric Blake.
31658 * doc/gnulib.texi (Function Substitutes): Update.
31660 2007-05-01 Bruno Haible <bruno@clisp.org>
31662 * doc/functions.texi: Remove file, now redundant through
31663 doc/functions/*.texi.
31665 2007-05-01 Bruno Haible <bruno@clisp.org>
31667 * modules/argp (Depends-on): Add sleep.
31669 2007-05-01 Bruno Haible <bruno@clisp.org>
31671 * modules/sleep-tests: New file.
31672 * tests/test-sleep.c: New file.
31674 * modules/sleep: New file.
31675 * lib/sleep.c: New file.
31676 * m4/sleep.m4: New file.
31677 * lib/unistd_.h (sleep): New declaration.
31678 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
31680 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
31681 * doc/functions/sleep.texi: Document the sleep module.
31683 2007-05-01 Bruno Haible <bruno@clisp.org>
31685 * lib/sigprocmask.h: Remove file.
31686 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
31687 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
31688 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
31689 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
31690 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
31691 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
31692 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
31693 HAVE_SIGSET_T as a shell variable.
31694 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
31695 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
31696 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
31697 (Depends-on): Add signal. Remove verify.
31698 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
31699 (Include): Mention <signal.h> instead of sigprocmask.h.
31700 * NEWS: Mention the change.
31701 * lib/fatal-signal.c: Don't include sigprocmask.h.
31703 2007-05-01 Bruno Haible <bruno@clisp.org>
31705 * modules/signal: New file.
31706 * lib/signal_.h: New file.
31707 * m4/signal_h.m4: New file.
31709 2007-05-01 Bruno Haible <bruno@clisp.org>
31711 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
31712 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
31713 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
31714 HAVE_WCTYPE_CTMP_BUG into wctype.h.
31716 2007-05-01 Bruno Haible <bruno@clisp.org>
31718 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
31720 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
31721 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
31722 * modules/sys_stat (Makefile.am): Substitute their values into
31725 2007-05-01 Bruno Haible <bruno@clisp.org>
31727 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
31728 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
31729 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
31731 2007-05-01 Bruno Haible <bruno@clisp.org>
31733 * doc/header/assert.texi: Undo last change: don't mention the gnulib
31734 'assert' module here.
31736 2007-05-01 Bruno Haible <bruno@clisp.org>
31738 * doc/functions/*.texi: New files.
31739 * doc/functions/google-ranking.txt: New file.
31740 * doc/gnulib.texi (Function Substitutes): New chapter.
31741 (ctime, inet_ntoa): Remove sections.
31742 * doc/ctime.texi: Remove file.
31743 * doc/inet_ntoa.texi: Remove file.
31744 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
31746 (%.info): New rule, specifying a --reference-limit.
31748 2007-05-01 Bruno Haible <bruno@clisp.org>
31750 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
31752 2007-05-01 Bruno Haible <bruno@clisp.org>
31754 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
31755 the portability of 'mkdir' to mingw systems.
31757 2007-05-01 Bruno Haible <bruno@clisp.org>
31759 * doc/headers/google-ranking.txt: New file.
31761 2007-04-30 Eric Blake <ebb9@byu.net>
31763 Prefer fseeko to fseek.
31764 * modules/getpass (Depends-on): Add fseeko.
31765 * lib/getpass.c (getpass): Use fseeko, not fseek.
31767 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
31769 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
31770 assumes the sorting is stable, while most qsort implementations
31771 are not. Use argument addresses to ensure they never compare as
31774 * tests/test-argp-2.sh (usage-indent test): Fix output
31775 (func_compare): Restore diff options
31776 * tests/test-argp.c: Restore #include "progname.h"
31778 2007-04-29 Bruno Haible <bruno@clisp.org>
31780 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
31781 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31782 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
31783 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31784 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
31785 (configure.ac): Define CHECK_SNPRINTF_POSIX.
31786 (TESTS, check_PROGRAMS): Add test-snprintf.
31787 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
31788 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
31789 (TESTS, check_PROGRAMS): Add test-vsnprintf.
31790 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
31791 assertions that fail on HP-UX, OSF/1, or IRIX.
31792 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
31794 2007-04-29 Bruno Haible <bruno@clisp.org>
31796 * MODULES.html.sh (posix_functions): Remove 'contents'.
31798 2007-04-29 Karl Berry <karl@gnu.org>
31800 * config/srclist.txt (gendocs_template_min): new entry.
31802 2007-04-29 Bruno Haible <bruno@clisp.org>
31804 Work around fpurge bug on BSD systems.
31805 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
31806 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
31807 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
31808 fpurge to rpl_fpurge if the system already has this function.
31809 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
31810 the case where the system already has this function. Correct invariants
31812 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
31815 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
31817 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
31818 proposed by Sven Verdoolaege.
31820 * tests/test-argp.c: Fix option ordering. Test deeply clustered
31822 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
31823 (usage and help tests): Update
31825 2007-04-29 Bruno Haible <bruno@clisp.org>
31827 * tests/test-fflush.c (main): Use a file of size 17, not 10.
31828 Print more information in case of failure. Disable a test on BeOS.
31830 2007-04-29 Bruno Haible <bruno@clisp.org>
31832 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
31833 This helps debugging on systems on which no gdb is available.
31835 2007-04-29 Bruno Haible <bruno@clisp.org>
31837 * lib/freading.h: Improve comments.
31838 * lib/fwriting.h: Likewise.
31839 * tests/test-freading.c (main): Don't check freading immediately after
31840 repositioning. Needed for glibc.
31842 2007-04-29 Bruno Haible <bruno@clisp.org>
31844 * lib/freading.c (freading): Trivial simplification.
31846 2007-04-28 Bruno Haible <bruno@clisp.org>
31848 * tests/test-fwriting.c (main): Also test the interaction between
31849 fflush and fwriting.
31850 * modules/fwriting-tests (Depends-on): Add fflush.
31852 * tests/test-freading.c (main): Also test the interaction between
31853 fflush and freading.
31854 * modules/freading-tests (Depends-on): Add fflush.
31856 2007-04-28 Bruno Haible <bruno@clisp.org>
31858 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
31860 Suggested by Eric Blake.
31862 2007-04-28 Jim Meyering <jim@meyering.net>
31864 Avoid false-negative in gl_STDINT_H's C99 conformance test.
31865 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
31866 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
31868 2007-04-27 Eric Blake <ebb9@byu.net>
31870 * doc/headers/assert.texi (assert.h): Document assert module use.
31872 2007-04-27 Bruno Haible <bruno@clisp.org>
31874 * doc/headers/*.texi: New files.
31875 * doc/gnulib.texi (Header File Substitutes): New chapter.
31876 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
31878 (standards.info ,standards.html, standards.dvi): Update dependencies.
31879 (mostlyclean, clean): New targets.
31881 2007-04-27 Bruno Haible <bruno@clisp.org>
31883 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
31884 * modules/sysexits (Files, Makefile.am): Update.
31886 * lib/sys_socket_.h: Renamed from lib/socket_.h.
31887 * modules/sys_socket (Files, Makefile.am): Update.
31889 * lib/sys_stat_.h: Renamed from lib/stat_.h.
31890 * modules/sys_stat (Files, Makefile.am): Update.
31892 2007-04-27 Eric Blake <ebb9@byu.net>
31894 * lib/freading.h: Improve comments.
31895 * lib/fwriting.h: Likewise.
31896 * lib/fflush.c: Likewise.
31898 Fix closein for mingw.
31899 * modules/closein-tests: Add tests for closein.
31900 * tests/test-closein.c: New file.
31901 * tests/test-closein.sh: Likewise.
31902 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
31903 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
31905 2007-04-27 Bruno Haible <bruno@clisp.org>
31907 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
31909 * lib/math_.h [__DECC]: Likewise.
31910 * lib/stdio_.h [__DECC]: Likewise.
31911 * lib/stdlib_.h [__DECC]: Likewise.
31912 * lib/string_.h [__DECC]: Likewise.
31913 * lib/time_.h [__DECC]: Likewise.
31914 * lib/wchar_.h [__DECC]: Likewise.
31915 * lib/wctype_.h [__DECC]: Likewise.
31917 2007-04-27 Bruno Haible <bruno@clisp.org>
31919 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
31921 2007-04-27 Bruno Haible <bruno@clisp.org>
31923 * lib/fflush.c: Add comments.
31924 * modules/fpurge-tests (Depends-on): Add fflush.
31925 * modules/freadable-tests (Depends-on): Likewise.
31926 * modules/fwritable-tests (Depends-on): Likewise.
31928 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
31930 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
31931 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
31932 Report by Bruno Haible <bruno@clisp.org>.
31934 2007-04-26 Eric Blake <ebb9@byu.net>
31936 Fix fflush on mingw.
31937 * modules/fflush (Depends-on): Add freading.
31938 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
31941 2007-04-26 Eric Blake <ebb9@byu.net>
31942 and Bruno Haible <bruno@clisp.org>
31944 Implement freading and fwriting.
31945 * lib/freading.c: New file.
31946 * lib/freading.h: Likewise.
31947 * m4/freading.m4: Likewise.
31948 * modules/freading: Likewise.
31949 * modules/freading-tests: Likewise.
31950 * tests/test-freading.c: Likewise.
31951 * lib/fwriting.c: New file.
31952 * lib/fwriting.h: Likewise.
31953 * m4/fwriting.m4: Likewise.
31954 * modules/fwriting: Likewise.
31955 * modules/fwriting-tests: Likewise.
31956 * tests/test-fwriting.c: Likewise.
31957 * MODULES.html.sh (File stream based Input/Output): Mention them.
31959 2007-04-26 Bruno Haible <bruno@clisp.org>
31961 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
31962 'long' when we assume it.
31963 Suggested by Eric Blake.
31965 2007-04-26 Bruno Haible <bruno@clisp.org>
31967 Ensure fseeko, ftello are declared on glibc systems.
31968 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
31969 * modules/fseeko (configure.ac-early): Likewise.
31970 * modules/ftello (configure.ac-early): Likewise.
31971 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
31972 AC_FUNC_FSEEKO for this.
31973 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
31974 (gl_CHECK_FSEEKO): Remove macro.
31976 2007-04-26 Bruno Haible <bruno@clisp.org>
31978 * tests/test-fflush.c (main): Also check the ftell result after
31979 fflush and fseek/fseeko.
31980 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
31981 file descriptor position cache in the stream.
31982 * lib/fseeko.c (rpl_fseeko): Likewise.
31984 2007-04-26 Bruno Haible <bruno@clisp.org>
31986 * modules/fflush-tests (Depends-on): Add fseeko.
31988 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
31989 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31991 * lib/argz_.h: ensure error_t definition is obtained in same
31992 mechanism system argz.h would have.
31993 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
31994 argz facilities are known bad. Err on the side of caution if
31997 2007-04-25 Eric Blake <ebb9@byu.net>
31999 * lib/fpurge.c (includes): Use stdlib.h for free.
32000 * tests/test-fflush.c (main): Also test fflush-fseeko.
32002 2007-04-25 Bruno Haible <bruno@clisp.org>
32004 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
32005 * lib/fseeko.c: New file.
32006 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
32007 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
32008 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
32010 (gl_FUNC_FSEEKO): Invoke it.
32011 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
32012 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
32013 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
32015 2007-04-25 Bruno Haible <bruno@clisp.org>
32017 * modules/fflush (Depends-on): Add ftello.
32019 2007-04-25 Bruno Haible <bruno@clisp.org>
32021 * modules/ftello-tests: New file.
32022 * tests/test-ftello.c: New file.
32024 * modules/ftello: New file.
32025 * m4/ftello.m4: New file.
32026 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
32028 * lib/stdio_.h (ftello): New declaration.
32029 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
32032 2007-04-25 Bruno Haible <bruno@clisp.org>
32034 * modules/fseeko-tests: New file.
32035 * tests/test-fseeko.c: New file.
32037 * modules/fseeko: New file.
32038 * m4/fseeko.m4: New file.
32039 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
32041 * lib/stdio_.h (fseeko): New declaration.
32042 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
32045 2007-04-25 Bruno Haible <bruno@clisp.org>
32047 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
32049 2007-04-25 Bruno Haible <bruno@clisp.org>
32051 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
32052 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
32053 * tests/test-unistd.c: Likewise.
32054 * tests/test-fcntl.c: Likewise.
32056 2007-04-23 Eric Blake <ebb9@byu.net>
32058 * lib/fflush.c: Fix missing include.
32059 Reported by Bruno Haible.
32061 2007-04-23 Bruno Haible <bruno@clisp.org>
32063 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
32064 Reported by Eric Blake.
32066 2007-04-23 Bruno Haible <bruno@clisp.org>
32068 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
32070 2007-04-23 Bruno Haible <bruno@clisp.org>
32072 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
32074 2007-04-23 Bruno Haible <bruno@clisp.org>
32076 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
32077 Needed on HP-UX 11.
32079 2007-04-16 Eric Blake <ebb9@byu.net>
32081 Make fflush rely on fpurge.
32082 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
32083 open coding all variants.
32084 * modules/fflush (Depends-on): Add fpurge and unistd.
32085 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
32086 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
32088 Fix --with-tests compilation on cygwin.
32089 * modules/argmatch-tests (Makefile.am): List gnulib library first
32091 * modules/argp-tests (Makefile.am): Likewise.
32092 * modules/array-list-tests (Makefile.am): Likewise.
32093 * modules/array-oset-tests (Makefile.am): Likewise.
32094 * modules/avltree-list-tests (Makefile.am): Likewise.
32095 * modules/avltree-oset-tests (Makefile.am): Likewise.
32096 * modules/avltreehash-list-tests (Makefile.am): Likewise.
32097 * modules/carray-list-tests (Makefile.am): Likewise.
32098 * modules/dirname-tests (Makefile.am): Likewise.
32099 * modules/frexp-tests (Makefile.am): Likewise.
32100 * modules/isnanl-tests (Makefile.am): Likewise.
32101 * modules/linked-list-tests (Makefile.am): Likewise.
32102 * modules/linkedhash-list-tests (Makefile.am): Likewise.
32103 * modules/lock-tests (Makefile.am): Likewise.
32104 * modules/rbtree-list-tests (Makefile.am): Likewise.
32105 * modules/rbtree-oset-tests (Makefile.am): Likewise.
32106 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
32107 * modules/tls-tests (Makefile.am): Likewise.
32108 * modules/tsearch-tests (Makefile.am): Likewise.
32109 * modules/xvasprintf-tests (Makefile.am): Likewise.
32111 Fix fpurge for cygwin.
32112 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
32114 * modules/fpurge-tests (Depends-on): Clean up trash.
32116 2007-04-16 Simon Josefsson <simon@josefsson.org>
32118 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
32120 * m4/autobuild.m4: Re-indent.
32122 2007-04-13 Bruno Haible <bruno@clisp.org>
32124 * modules/fpurge-tests: New file.
32125 * tests/test-fpurge.c: New file.
32127 * modules/fpurge: New file.
32128 * lib/fpurge.h: New file.
32129 * lib/fpurge.c: New file.
32130 * m4/fpurge.m4: New file.
32132 2007-04-13 Bruno Haible <bruno@clisp.org>
32134 * modules/fbufmode-tests: New file.
32135 * tests/test-fbufmode.c: New file.
32137 * modules/fbufmode: New file.
32138 * lib/fbufmode.h: New file.
32139 * lib/fbufmode.c: New file.
32140 * m4/fbufmode.m4: New file.
32142 2007-04-13 Bruno Haible <bruno@clisp.org>
32144 * modules/fwritable-tests: New file.
32145 * tests/test-fwritable.c: New file.
32147 * modules/fwritable: New file.
32148 * lib/fwritable.h: New file.
32149 * lib/fwritable.c: New file.
32150 * m4/fwritable.m4: New file.
32152 2007-04-13 Bruno Haible <bruno@clisp.org>
32154 * modules/freadable-tests: New file.
32155 * tests/test-freadable.c: New file.
32157 * modules/freadable: New file.
32158 * lib/freadable.h: New file.
32159 * lib/freadable.c: New file.
32160 * m4/freadable.m4: New file.
32162 2007-04-13 Bruno Haible <bruno@clisp.org>
32164 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
32167 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
32169 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
32170 gzip bootstrap.conf to avoid dragging in i18n machinery.
32171 (gnulib_tool_option): Use it.
32173 2007-04-13 Bruno Haible <bruno@clisp.org>
32175 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
32177 * tests/test-vasprintf-posix.c (test_function): Likewise.
32178 * tests/test-snprintf-posix.h (test_function): Likewise.
32179 * tests/test-sprintf-posix.h (test_function): Likewise.
32180 * tests/test-fprintf-posix.h (test_function): Likewise.
32181 * tests/test-printf-posix.h (test_function): Likewise.
32182 * tests/test-fprintf-posix.out: Likewise.
32184 2007-04-13 Bruno Haible <bruno@clisp.org>
32186 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
32187 * modules/tls-tests (configure.ac): Likewise.
32188 Reported by Arto C. Nirkko <anirkko@insel.ch>.
32190 2007-04-13 Bruno Haible <bruno@clisp.org>
32192 * lib/tls.c (glthread_tls_get): Fix return type.
32193 Patch by Arto C. Nirkko <anirkko@insel.ch>.
32195 2007-04-12 Eric Blake <ebb9@byu.net>
32197 * modules/gettime (Depends-on): Remove gettime.
32198 Reported by Dmitry V. Levin.
32200 2007-04-12 Bruno Haible <bruno@clisp.org>
32202 * modules/fflush (Include): Mention <stdio.h>.
32203 * modules/strtoimax (Include): Mention <inttypes.h>.
32204 * modules/strtoumax (Include): Likewise.
32206 2007-04-12 Eric Blake <ebb9@byu.net>
32208 * .cvsignore: New file.
32209 * .gitignore: Likewise.
32211 2007-04-12 Bruno Haible <bruno@clisp.org>
32213 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
32214 not before, since $(LDADD) often contains libgnu.a.
32215 * modules/striconv-tests (test_striconv_LDADD): Likewise.
32216 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
32217 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
32220 2007-04-12 Eric Blake <ebb9@byu.net>
32222 Work around glibc's failure to flush stdin on fclose.
32223 * lib/closein.c (close_stdin): Flush stdin before closing.
32225 Work around glibc's failure to reset seekable stdin on exit.
32226 * modules/closein: New module.
32227 * lib/closein.c: New file.
32228 * lib/closein.h: Likewise.
32229 * m4/closein.m4: Likewise.
32230 * MODULES.html.sh (File stream based Input/Output): Document it.
32232 2007-04-12 Simon Josefsson <simon@josefsson.org>
32234 * gnulib-tool: Rename generated 'autobuild' script to
32235 'do-autobuild' in --create-megatestdir output.
32237 * doc/gnulib.texi (Build robot for gnulib): Fix.
32239 2007-04-12 Simon Josefsson <simon@josefsson.org>
32241 * modules/sysexits (Depends-on): Add absolute-header.
32243 2007-04-12 Eric Blake <ebb9@byu.net>
32245 No need to preserve errno on success.
32246 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
32247 Reported by Bruno Haible.
32249 2007-04-12 Simon Josefsson <simon@josefsson.org>
32251 * MODULES.html.sh (Support for maintaining and releasing
32252 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
32254 2007-04-12 Simon Josefsson <simon@josefsson.org>
32256 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
32258 2007-04-12 Simon Josefsson <simon@josefsson.org>
32260 * modules/autobuild: New module.
32262 * m4/autobuild.m4: New file.
32264 2007-04-11 Bruno Haible <bruno@clisp.org>
32266 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
32267 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
32268 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
32269 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
32270 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32271 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32272 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32273 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32274 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32275 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32276 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
32277 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32278 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32279 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
32280 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32281 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32282 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
32283 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32284 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32285 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
32286 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32287 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32288 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
32289 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32290 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32291 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
32292 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32293 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32294 Reported by Eric Blake.
32296 2007-04-11 Bruno Haible <bruno@clisp.org>
32298 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
32300 2007-04-10 Bruno Haible <bruno@clisp.org>
32302 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
32303 for NaN and Infinity. Needed on FreeBSD 6.1.
32304 * tests/test-vasnprintf-posix.c (test_function): Undo last change
32305 regarding results for "%010a" of Infinity and NaN.
32306 * tests/test-vasprintf-posix.c (test_function): Likewise.
32307 * tests/test-snprintf-posix.h (test_function): Likewise.
32308 * tests/test-sprintf-posix.h (test_function): Likewise.
32309 * tests/test-fprintf-posix.h (test_function): Likewise.
32310 * tests/test-printf-posix.h (test_function): Likewise.
32311 * tests/test-fprintf-posix.out: Likewise.
32313 2007-04-10 Bruno Haible <bruno@clisp.org>
32315 * modules/locale-tests: New file.
32316 * tests/test-locale.c: New file.
32318 * modules/locale: New file.
32319 * lib/locale_.h: New file.
32320 * m4/locale_h.m4: New file.
32322 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
32323 Bruno Haible <bruno@clisp.org>
32325 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
32326 be determined, test for availability of the copysignf, copysign,
32327 copysignl functions.
32328 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
32329 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
32330 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
32332 2007-04-09 Eric Blake <ebb9@byu.net>
32334 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
32335 * modules/stdio (Makefile.am): Support fflush.
32336 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32337 * modules/fflush: New file.
32338 * lib/fflush.c: Likewise.
32339 * m4/fflush.m4: Likewise.
32340 * modules/fflush-tests: New test.
32341 * tests/test-fflush.c: Likewise.
32342 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
32344 2007-04-06 Bruno Haible <bruno@clisp.org>
32346 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
32347 (VASNPRINTF): Use signbit for faster determination whether to print a
32349 * modules/vasnprintf (Files): Remove lib/float+.h.
32350 * modules/fprintf-posix (Depends-on): Add signbit.
32351 * modules/snprintf-posix (Depends-on): Likewise.
32352 * modules/sprintf-posix (Depends-on): Likewise.
32353 * modules/vasnprintf-posix (Depends-on): Likewise.
32354 * modules/vasprintf-posix (Depends-on): Likewise.
32355 * modules/vfprintf-posix (Depends-on): Likewise.
32356 * modules/vsnprintf-posix (Depends-on): Likewise.
32357 * modules/vsprintf-posix (Depends-on): Likewise.
32359 2007-04-06 Bruno Haible <bruno@clisp.org>
32361 * tests/test-frexp.c (main): Test also the sign bit of zero results.
32362 * tests/test-frexpl.c (main): Likewise.
32363 * tests/test-ldexpl.c (main): Likewise.
32364 * modules/frexp-tests (Depends-on): Add signbit.
32365 * modules/frexpl-tests (Depdends-on): Likewise.
32366 * modules/ldexpl-tests (Depdends-on): Likewise.
32368 2007-04-06 Bruno Haible <bruno@clisp.org>
32370 * modules/signbit-tests: New file.
32371 * tests/test-signbit.c: New file.
32373 * modules/signbit: New file.
32374 * lib/signbitf.c: New file.
32375 * lib/signbitd.c: New file.
32376 * lib/signbitl.c: New file.
32377 * m4/signbit.m4: New file.
32378 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
32379 (signbit): New macro.
32380 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
32382 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
32383 REPLACE_FREXPL into math.h.
32385 2007-04-06 Bruno Haible <bruno@clisp.org>
32387 * modules/isnanf-nolibm-tests: New file.
32388 * tests/test-isnanf.c: New file.
32390 * modules/isnanf-nolibm: New file.
32391 * lib/isnanf.h: New file.
32392 * lib/isnanf.c: New file.
32393 * lib/isnan.c: Consider the USE_FLOAT macro.
32394 * m4/isnanf.m4: New file.
32396 2007-04-06 Bruno Haible <bruno@clisp.org>
32398 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
32399 (Link): New section.
32401 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
32403 2007-04-06 Bruno Haible <bruno@clisp.org>
32405 Assume the 'long double' type.
32406 * m4/longdouble.m4: Remove file.
32407 * config/srclist.txt: Don't mention longdouble.m4.
32408 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
32409 * lib/float+.h: Likewise.
32410 * lib/frexp.c: Likewise.
32411 * lib/printf-args.h: Likewise.
32412 * lib/printf-args.c: Likewise.
32413 * lib/printf-frexp.c: Likewise.
32414 * lib/printf-parse.c: Likewise.
32415 * lib/vasnprintf.c: Likewise.
32416 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
32417 * m4/intl.m4: Likewise.
32418 * m4/isnanl.m4: Likewise.
32419 * m4/printf.m4: Likewise.
32420 * m4/printf-frexpl.m4: Likewise.
32421 * m4/vasnprintf.m4: Likewise.
32422 * modules/allocsa (Files): Remove m4/longdouble.m4.
32423 * modules/gettext (Files): Likewise.
32424 * modules/relocatable-prog-wrapper (Files): Likewise.
32425 * modules/vasnprintf (Files): Likewise.
32426 * modules/isnanl (Files): Likewise.
32427 (Include): Simplify.
32428 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
32429 (Include): Simplify.
32430 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
32431 (Include): Simplify.
32432 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
32433 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32434 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
32435 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32436 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
32437 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32438 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
32439 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32440 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
32441 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32442 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
32443 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32444 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
32445 * tests/test-isnanl.c: Likewise.
32446 * tests/test-snprintf-posix.h: Likewise.
32447 * tests/test-sprintf-posix.h: Likewise.
32448 * tests/test-vasnprintf-posix.c: Likewise.
32449 * tests/test-vasnprintf-posix2.c: Likewise.
32450 * tests/test-vasprintf-posix.c: Likewise.
32452 2007-04-06 Bruno Haible <bruno@clisp.org>
32454 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
32455 * lib/math_.h [__DECC]: Include the overridden include file through
32456 #include_next, outside the double-inclusion guard.
32457 * lib/stdio_.h [__DECC]: Likewise.
32458 * lib/stdlib_.h [__DECC]: Likewise.
32459 * lib/string_.h [__DECC]: Likewise.
32460 * lib/time_.h [__DECC]: Likewise.
32461 * lib/wchar_.h [__DECC]: Likewise.
32462 * lib/wctype_.h [__DECC]: Likewise.
32463 * lib/inttypes_.h [__DECC]: Likewise.
32464 Reported by Albert Chin <china@thewrittenword.com> in
32465 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
32467 2007-04-04 Eric Blake <ebb9@byu.net>
32469 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
32472 2007-04-04 Bruno Haible <bruno@clisp.org>
32474 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
32475 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
32477 2007-04-04 Bruno Haible <bruno@clisp.org>
32479 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
32480 results for "%010a" of Infinity and NaN.
32481 * tests/test-vasprintf-posix.c (test_function): Likewise.
32482 * tests/test-snprintf-posix.h (test_function): Likewise.
32483 * tests/test-sprintf-posix.h (test_function): Likewise.
32484 * tests/test-fprintf-posix.h (test_function): Remove these tests.
32485 * tests/test-printf-posix.h (test_function): Likewise.
32486 * tests/test-fprintf-posix.out: Update.
32487 Needed for FreeBSD 6.1.
32489 2007-04-04 Bruno Haible <bruno@clisp.org>
32491 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
32492 directly used by the gnulib modules nor by gnulib-tool.
32494 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
32496 * DEPENDENCIES: Give overall description of version dependency
32497 desirability. Use more-typical names for apps.
32498 Add shell, coreutils, diffutils, grep, tar, gzip.
32500 2007-04-04 Simon Josefsson <simon@josefsson.org>
32502 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
32504 2007-04-04 Karl Berry <karl@gnu.org>
32506 * MODULES.html.sh (func_module): missing '.
32508 2007-04-03 Bruno Haible <bruno@clisp.org>
32510 * modules/argmatch-tests (Makefile.am): New variable
32511 test_argmatch_LDADD.
32512 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
32513 * modules/array-list-tests (Makefile.am): New variable
32514 test_array_list_LDADD.
32515 * modules/array-oset-tests (Makefile.am): New variable
32516 test_array_oset_LDADD.
32517 * modules/avltree-list-tests (Makefile.am): New variable
32518 test_avltree_list_LDADD.
32519 * modules/avltree-oset-tests (Makefile.am): New variable
32520 test_avltree_oset_LDADD.
32521 * modules/avltreehash-list-tests (Makefile.am): New variable
32522 test_avltreehash_list_LDADD.
32523 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
32524 test_canonicalize_lgpl_LDADD.
32525 * modules/carray-list-tests (Makefile.am): New variable
32526 test_carray_list_LDADD.
32527 * modules/dirname-tests (Makefile.am): New variable
32528 test_dirname_LDADD.
32529 * modules/linked-list-tests (Makefile.am): New variable
32530 test_linked_list_LDADD.
32531 * modules/linkedhash-list-tests (Makefile.am): New variable
32532 test_linkedhash_list_LDADD.
32533 * modules/rbtree-list-tests (Makefile.am): New variable
32534 test_rbtree_list_LDADD.
32535 * modules/rbtree-oset-tests (Makefile.am): New variable
32536 test_rbtree_oset_LDADD.
32537 * modules/rbtreehash-list-tests (Makefile.am): New variable
32538 test_rbtreehash_list_LDADD.
32539 * modules/xvasprintf-tests (Makefile.am): New variable
32540 test_xvasprintf_LDADD.
32541 Reported by Eric Blake.
32543 2007-04-03 Eric Blake <ebb9@byu.net>
32545 * DEPENDENCIES: Weaken m4 requirements.
32547 2007-04-03 Bruno Haible <bruno@clisp.org>
32549 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
32550 * modules/isnanl-tests (configure.ac): Likewise.
32552 2007-04-03 Ben Pfaff <blp@gnu.org>
32554 * modules/iconv_open: Add $(srcdir)/ to source directory
32555 references in Makefile fragments that call gperf, to fix VPATH
32558 2007-04-03 Bruno Haible <bruno@clisp.org>
32560 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
32561 * lib/ldexpl.c: Undo last change.
32563 2007-04-03 Bruno Haible <bruno@clisp.org>
32565 * modules/printf-frexpl (Depends-on): Undo last change.
32566 (Files): Add m4/ldexpl.m4.
32568 2007-04-03 Bruno Haible <bruno@clisp.org>
32570 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
32571 * modules/isnanl (Link): New section.
32573 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
32574 * modules/frexp (Link): New section.
32576 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
32577 * modules/frexpl (Link): New section.
32579 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
32580 * modules/ldexpl (Link): New section.
32582 2007-04-03 Bruno Haible <bruno@clisp.org>
32584 * modules/TEMPLATE-EXTENDED: New file.
32585 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
32587 2007-04-03 Bruno Haible <bruno@clisp.org>
32589 * DEPENDENCIES: New file.
32590 Suggested by Simon Josefsson.
32592 2007-04-03 Bruno Haible <bruno@clisp.org>
32594 * doc/gnulib.texi: Escape @.
32596 2007-04-03 James Youngman <jay@gnu.org>
32597 and Paul Eggert <eggert@cs.ucla.edu>
32599 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
32600 birthtime on all systems that have birthtime, not just those which
32601 use st_birthtimensec rather than st_birthtim. Putting zero in
32602 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
32603 that the birth time is not available for files on an NFS mount.
32605 2007-04-03 Simon Josefsson <simon@josefsson.org>
32607 * modules/memxor: Move back from crypto/, suggested by Bruno.
32608 * modules/crypto/hmac-sha1: Fix memxor dependency.
32610 * modules/crypto/gc: Moved from ../.
32612 2007-04-02 Eric Blake <ebb9@byu.net>
32614 * lib/ldexpl.c (includes): Avoid libm.
32616 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
32618 2007-04-02 Bruno Haible <bruno@clisp.org>
32620 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
32623 2007-04-02 Bruno Haible <bruno@clisp.org>
32625 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
32626 x86 or x86_64 platforms running MacOS X.
32627 Reported by Ryan Schmidt <@ryandesign.com>.
32629 2007-04-02 Bruno Haible <bruno@clisp.org>
32631 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
32634 2007-04-01 Simon Josefsson <simon@josefsson.org>
32636 * modules/crypto/arcfour: Moved from ../.
32637 * modules/crypto/arcfour-tests: Moved from ../.
32638 * modules/crypto/arctwo: Moved from ../.
32639 * modules/crypto/arctwo-tests: Moved from ../.
32640 * modules/crypto/des: Moved from ../.
32641 * modules/crypto/des-tests: Moved from ../.
32642 * modules/crypto/gc-arcfour: Moved from ../.
32643 * modules/crypto/gc-arcfour-tests: Moved from ../.
32644 * modules/crypto/gc-arctwo: Moved from ../.
32645 * modules/crypto/gc-arctwo-tests: Moved from ../.
32646 * modules/crypto/gc-des: Moved from ../.
32647 * modules/crypto/gc-des-tests: Moved from ../.
32648 * modules/crypto/gc-hmac-md5: Moved from ../.
32649 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
32650 * modules/crypto/gc-hmac-sha1: Moved from ../.
32651 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
32652 * modules/crypto/gc-md2: Moved from ../.
32653 * modules/crypto/gc-md2-tests: Moved from ../.
32654 * modules/crypto/gc-md4: Moved from ../.
32655 * modules/crypto/gc-md4-tests: Moved from ../.
32656 * modules/crypto/gc-md5: Moved from ../.
32657 * modules/crypto/gc-md5-tests: Moved from ../.
32658 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
32659 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
32660 * modules/crypto/gc-random: Moved from ../.
32661 * modules/crypto/gc-rijndael: Moved from ../.
32662 * modules/crypto/gc-rijndael-tests: Moved from ../.
32663 * modules/crypto/gc-sha1: Moved from ../.
32664 * modules/crypto/gc-sha1-tests: Moved from ../.
32665 * modules/crypto/gc-tests: Moved from ../.
32666 * modules/crypto/hmac-md5: Moved from ../.
32667 * modules/crypto/hmac-md5-tests: Moved from ../.
32668 * modules/crypto/hmac-sha1: Moved from ../.
32669 * modules/crypto/hmac-sha1-tests: Moved from ../.
32670 * modules/crypto/md2: Moved from ../.
32671 * modules/crypto/md2-tests: Moved from ../.
32672 * modules/crypto/md4: Moved from ../.
32673 * modules/crypto/md4-tests: Moved from ../.
32674 * modules/crypto/md5: Moved from ../.
32675 * modules/crypto/md5-tests: Moved from ../.
32676 * modules/crypto/memxor: Moved from ../.
32677 * modules/crypto/rijndael: Moved from ../.
32678 * modules/crypto/rijndael-tests: Moved from ../.
32679 * modules/crypto/sha1: Moved from ../.
32681 2007-03-30 James Youngman <jay@gnu.org>
32683 * tests/test-stat-time.c (prepare_test): use chmod() rather than
32684 rename() to change the ctime of a file (because ctime is unaffected
32685 by rename on jfs2 on AIX 5.1).
32686 (main): Start by doing cleanup, in case a previous run failed leaving
32689 2007-03-31 Bruno Haible <bruno@clisp.org>
32691 Support old proprietary implementations of iconv.
32692 * modules/iconv_open: New file.
32693 * lib/iconv_.h: New file.
32694 * m4/iconv_h.m4: New file.
32695 * lib/iconv_open.c: New file.
32696 * lib/iconv_open-aix.gperf: New file.
32697 * lib/iconv_open-hpux.gperf: New file.
32698 * lib/iconv_open-irix.gperf: New file.
32699 * lib/iconv_open-osf.gperf: New file.
32700 * m4/iconv_open.m4: New file.
32701 * modules/linebreak (Depends-on): Add iconv_open.
32702 * modules/striconv (Depends-on): Likewise.
32703 * modules/striconveh (Depends-on): Likewise.
32704 * modules/unicodeio (Depends-on): Likewise.
32705 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
32707 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
32708 conversion if cd is (iconv_t)(-1).
32709 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
32712 2007-03-31 Bruno Haible <bruno@clisp.org>
32714 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
32715 work on Solaris either. Protect also second use of "autodetect_jp".
32717 2007-03-31 Bruno Haible <bruno@clisp.org>
32719 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
32720 the function is not present.
32722 2007-03-31 Bruno Haible <bruno@clisp.org>
32724 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
32725 the function is not present.
32727 2007-03-31 Bruno Haible <bruno@clisp.org>
32729 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
32730 a bug in HP-UX iconv_open().
32732 2007-03-31 Bruno Haible <bruno@clisp.org>
32734 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
32735 (Mathematics <math.h>): New section, add fpieee.
32736 (Input/output <stdio.h>): Add fseterr.
32737 (Mathematics <math.h>): New section, add printf-frexp.
32738 (Container data structures): Add sublist.
32739 (Core language properties): Add fpucw, inline.
32740 (Functions for greatest-width integer types <inttypes.h>): Add
32741 imaxabs, imaxdiv, inttypes.
32742 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
32743 isnanl-nolibm, ldexp.
32744 (Mathematics <math.h>): New section, add printf-frexpl.
32745 (Support for systems lacking POSIX:2001): Add fprintf-posix,
32746 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
32747 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
32748 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
32749 (Unicode string functions): Add unistr/u*-mbtoucr.
32750 (Java): Add javacomp-script, javaexec-script.
32751 (C#): Add csharpcomp-script, csharpexec-script.
32752 (Support for building libraries and executables): Add havelib,
32754 (Support for maintaining and releasing projects): Renamed from
32755 'Support for maintaining and release projects'. Add announce-gen.
32757 2007-03-31 Bruno Haible <bruno@clisp.org>
32759 * README: Talk primarily about git.
32760 (git and CVS): Renamed from CVS.
32761 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
32762 gnulib is available through git.
32763 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
32765 2007-03-30 Bruno Haible <bruno@clisp.org>
32767 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
32768 * lib/poll_.h: Likewise.
32769 * lib/stat_.h: Likewise.
32770 * lib/sys_time_.h: Likewise.
32771 * lib/sysexit_.h: Likewise.
32772 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
32773 * lib/stdbool_.h: Likewise.
32774 * lib/byteswap_.h: Add double-inclusion guard.
32776 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
32778 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
32780 2007-03-30 Karl Berry <karl@gnu.org>
32782 * config/srclist-update: double space after USA in the license
32783 substitution, since that's how it's usually (?) written.
32785 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
32787 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
32788 reported by Bruno Haible.
32790 2007-03-29 Bruno Haible <bruno@clisp.org>
32792 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
32793 a bug in AIX iconv().
32795 2007-03-29 Bruno Haible <bruno@clisp.org>
32797 * modules/ldexpl-tests: New file.
32798 * tests/test-ldexpl.c: New file.
32800 2007-03-29 Bruno Haible <bruno@clisp.org>
32802 * lib/ldexpl.c: Include fpucw.h.
32803 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
32805 * modules/ldexpl (Depends-on): Add fpucw.
32807 2007-03-29 Bruno Haible <bruno@clisp.org>
32809 * modules/ldexpl: New file.
32810 * m4/ldexpl.m4: New file.
32811 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
32813 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
32815 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
32817 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
32818 gl_FUNC_LDEXPL_WORKS.
32819 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
32820 * modules/mathl (Files): Remove lib/ldexpl.c.
32821 (Depends-on): Add ldexpl.
32823 2007-03-29 Bruno Haible <bruno@clisp.org>
32825 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
32827 2007-03-29 Bruno Haible <bruno@clisp.org>
32829 * tests/test-striconveh.c (main): Don't assume that a direct conversion
32830 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
32831 and possibly also HP-UX.
32832 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
32833 work on AIX, IRIX, HP-UX, OSF/1.
32834 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
32835 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
32836 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
32837 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
32838 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
32839 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
32841 2007-03-29 Bruno Haible <bruno@clisp.org>
32843 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
32845 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
32847 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
32848 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
32850 2007-03-29 Eric Blake <ebb9@byu.net>
32852 * lib/acl-internal.h: Remove redundant include.
32853 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
32854 Cygwin when a file is locked.
32856 2007-03-29 Bruno Haible <bruno@clisp.org>
32858 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
32860 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
32862 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
32864 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
32865 try to remove a parent directory if the child couldn't be removed
32866 (except for the first rmdir, which could fail because the child
32867 doesn't exist). Problem reported by Jeff Blaine in
32868 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
32870 2007-03-28 Bruno Haible <bruno@clisp.org>
32872 * lib/striconveh.c (utf8conv_carefully): New function.
32873 (mem_cd_iconveh_internal): Invoke it.
32875 2007-03-28 Bruno Haible <bruno@clisp.org>
32877 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
32878 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
32880 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
32881 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
32884 2007-03-28 Bruno Haible <bruno@clisp.org>
32886 * modules/unistr/u8-mbtoucr: New file.
32887 * lib/unistr/u8-mbtoucr.c: New file.
32888 * modules/unistr/u16-mbtoucr: New file.
32889 * lib/unistr/u16-mbtoucr.c: New file.
32890 * modules/unistr/u16-mbtoucr: New file.
32891 * lib/unistr/u16-mbtoucr.c: New file.
32892 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
32894 2007-03-27 Simon Josefsson <simon@josefsson.org>
32895 Bruno Haible <bruno@clisp.org>
32897 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
32898 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
32899 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
32901 * m4/stdio_h.m4: Add stubs for vasprintf too.
32903 * modules/stdio: Support vasprintf in sed command.
32905 * modules/vasprintf: Depend on stdio for prototypes. Remove
32906 vasprintf.h. Add stdio module indicator.
32908 * lib/stdio_.h: Declare asprintf and vasprintf, based on
32911 * lib/vasprintf.h: File removed.
32913 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
32914 * lib/vasprintf.c: Ditto.
32915 * lib/xvasprintf.c: Ditto.
32916 * tests/test-vasprintf-posix.c: Ditto.
32917 * tests/test-vasprintf.c: Ditto.
32919 2007-03-27 Bruno Haible <bruno@clisp.org>
32921 Make vasnprintf multithread-safe.
32922 * lib/vasnprintf.c (decimal_point_char): New function.
32923 (VASNPRINTF): Use it.
32924 Suggested by Simon Josefsson.
32926 2007-03-27 Eric Blake <ebb9@byu.net>
32928 Support sub-second birthtime on cygwin.
32929 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
32930 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
32931 (get_stat_birthtime): Also work with st_birthtim.
32933 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
32935 * lib/stat-time.h (USE_BIRTHTIME): Remove.
32936 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
32937 (get_stat_birthtime_ns): Do not try to use "spare" fields.
32938 (get_stat_birthtime_ns): Simplify compile-time tests.
32939 (get_stat_birthtime): Change the API to look like
32940 get_stat_mtime etc., except return a negative tv_nsec on error.
32941 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
32942 Don't check for "spare" fields.
32943 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
32944 or for struct stat.st_birthtime, as these tests aren't used.
32945 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
32947 2007-03-27 Bruno Haible <bruno@clisp.org>
32949 * lib/stat-time.h: Include <sys/stat.h>.
32951 2007-03-27 James Youngman <jay@gnu.org>
32953 * lib/stat-time.h (get_stat_birthtime): New function for
32954 retrieving st_birthtime as provided by UFS2 (hence *BSD).
32955 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
32957 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
32958 * modules/stat-time-test: New file.
32959 * tests/test-stat-time.c: New test, devised by Bruno Haible.
32961 2007-03-26 Bruno Haible <bruno@clisp.org>
32963 Better support of signalling NaNs.
32964 * lib/atanl.c: Include isnanl.h.
32965 (atanl): Perform test for NaN at the beginning of the function and
32966 through a call to isnanl.
32967 * lib/cosl.c: Include isnanl.h.
32968 (cosl): Perform test for NaN at the beginning of the function and
32969 through a call to isnanl.
32970 * lib/ldexpl.c: Include isnanl.h.
32971 (ldexpl): Perform test for NaN through a call to isnanl.
32972 * lib/logl.c: Include isnanl.h.
32973 (logl): Perform test for NaN at the beginning of the function and
32974 through a call to isnanl.
32975 * lib/sinl.c: Include isnanl.h.
32976 (sinl): Perform test for NaN at the beginning of the function and
32977 through a call to isnanl.
32978 * lib/sqrtl.c: Include isnanl.h.
32979 (sqrtl): Perform test for NaN at the beginning of the function and
32980 through a call to isnanl.
32981 * lib/tanl.c: Include isnanl.h.
32982 (tanl): Perform test for NaN at the beginning of the function and
32983 through a call to isnanl.
32984 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
32985 * modules/mathl (Depends-on): Add isnanl.
32987 2007-03-26 Eric Blake <ebb9@byu.net>
32989 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
32990 regression in logic sense of previous patch.
32992 2007-03-26 Bruno Haible <bruno@clisp.org>
32994 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
32995 unportable shell command "if ! ...".
32996 Reported by Ralf Wildenhues.
32998 2007-03-25 Bruno Haible <bruno@clisp.org>
33000 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
33001 <sysexits.h> file, and only add EX_CONFIG.
33002 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
33003 absolute file name and whether it is sufficient. Substitute also
33004 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
33005 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
33006 ABSOLUTE_SYSEXITS_H into sysexits.h.
33008 2007-03-25 Bruno Haible <bruno@clisp.org>
33010 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
33013 2007-03-25 Bruno Haible <bruno@clisp.org>
33015 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
33016 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
33018 2007-03-25 Bruno Haible <bruno@clisp.org>
33020 * lib/vasnprintf.c: Include langinfo.h.
33021 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
33023 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
33024 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
33025 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33026 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33027 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33028 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33029 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33030 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
33031 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33032 Reported by Simon Josefsson.
33034 2007-03-25 Bruno Haible <bruno@clisp.org>
33036 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
33037 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
33038 * modules/vasnprintf (Depends-on): Add stdint.
33040 2007-03-25 Bruno Haible <bruno@clisp.org>
33042 * modules/fpieee: New file.
33043 * m4/fpieee.m4: New file.
33044 * modules/isnan-nolibm (Depends-on): Add fpieee.
33045 * modules/isnanl-nolibm (Depends-on): Add fpieee.
33046 * modules/isnanl (Depends-on): Add fpieee.
33048 2007-03-25 Bruno Haible <bruno@clisp.org>
33050 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
33052 2007-03-25 Bruno Haible <bruno@clisp.org>
33054 Avoid test failures on IRIX 6.5.
33055 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
33057 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
33061 2007-03-25 Bruno Haible <bruno@clisp.org>
33063 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
33064 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
33065 exists but doesn't work.
33066 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
33067 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
33068 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
33069 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
33071 2007-03-25 Bruno Haible <bruno@clisp.org>
33073 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
33074 returns inf. Needed on IRIX 6.5.
33076 2007-03-25 Bruno Haible <bruno@clisp.org>
33078 * tests/test-frexpl.c: Include isnanl-nolibm.h.
33079 (main): Use isnanl instead of x != x idiom.
33080 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
33082 * tests/test-frexp.c: Include isnan.h.
33083 (main): Use isnan instead of x != x idiom.
33084 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
33086 2007-03-25 Bruno Haible <bruno@clisp.org>
33088 * tests/test-frexp.c (NaN): New function/macro.
33089 (main): Use it instead of 0.0 / 0.0.
33090 * tests/test-isnan.c (NaN): New function/macro.
33091 (main): Use it instead of 0.0 / 0.0.
33092 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
33093 (test_function): Use it instead of 0.0 / 0.0.
33094 * tests/test-vasprintf-posix.c (NaN): New function/macro.
33095 (test_function): Use it instead of 0.0 / 0.0.
33096 * tests/test-snprintf-posix.h (NaN): New function/macro.
33097 (test_function): Use it instead of 0.0 / 0.0.
33098 * tests/test-sprintf-posix.h (NaN): New function/macro.
33099 (test_function): Use it instead of 0.0 / 0.0.
33100 * tests/test-fprintf-posix.h (NaN): New function/macro.
33101 (test_function): Use it instead of 0.0 / 0.0.
33102 * tests/test-printf-posix.h (NaN): New function/macro.
33103 (test_function): Use it instead of 0.0 / 0.0.
33105 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
33107 2007-03-25 Bruno Haible <bruno@clisp.org>
33109 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
33111 2007-03-25 Bruno Haible <bruno@clisp.org>
33113 * lib/regexec.c (merge_state_with_log): Make static.
33115 2007-03-25 Bruno Haible <bruno@clisp.org>
33117 * lib/trigl.c (kernel_rem_pio2): Make static.
33119 2007-03-25 Bruno Haible <bruno@clisp.org>
33121 * lib/sincosl.c (sincosl_table): Make static.
33123 2007-03-25 Bruno Haible <bruno@clisp.org>
33125 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
33126 if the compiler does not support C99.
33128 2007-03-25 Bruno Haible <bruno@clisp.org>
33130 * modules/time (Makefile.am): Ensure all rule action lines start with a
33133 2007-03-24 Bruno Haible <bruno@clisp.org>
33135 * modules/tsearch-tests: New file.
33136 * tests/test-tsearch.sh: New file.
33137 * tests/test-tsearch.c: New file, mostly copied from glibc.
33139 * modules/search-tests: New file.
33140 * tests/test-search.c: New file.
33142 * modules/search: New file.
33143 * lib/search_.h: New file, incorporating lib/tsearch.h.
33144 * m4/search_h.m4: New file.
33145 * lib/tsearch.h: Remove file.
33146 * lib/tsearch.c: Include search.h instead of tsearch.h.
33147 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
33149 * modules/tsearch (Files): Remove lib/tsearch.h.
33150 (Depends-on): Add search.
33151 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
33152 (Include): Change tsearch.h into search.h.
33154 2007-03-24 Bruno Haible <bruno@clisp.org>
33156 * modules/fpucw: New file.
33157 * lib/fpucw.h: New file.
33158 * lib/frexp.c: Include fpucw.h.
33159 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
33161 * lib/printf-frexp.c: Include fpucw.h.
33162 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
33164 * lib/vasnprintf.c: Include fpucw.h.
33165 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
33166 'long double' calculations.
33167 * tests/test-frexpl.c: Include fpucw.h.
33168 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
33169 * tests/test-printf-frexpl.c: Include fpucw.h.
33170 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
33171 * modules/frexpl (Depends-on): Add fpucw.
33172 * modules/printf-frexpl (Depends-on): Likewise.
33173 * modules/fprintf-posix (Depends-on): Likewise.
33174 * modules/snprintf-posix (Depends-on): Likewise.
33175 * modules/sprintf-posix (Depends-on): Likewise.
33176 * modules/vasnprintf-posix (Depends-on): Likewise.
33177 * modules/vasprintf-posix (Depends-on): Likewise.
33178 * modules/vfprintf-posix (Depends-on): Likewise.
33179 * modules/vsnprintf-posix (Depends-on): Likewise.
33180 * modules/vsprintf-posix (Depends-on): Likewise.
33181 * modules/frexpl-tests (Depends-on): Likewise.
33182 * modules/printf-frexpl-tests (Depends-on): Likewise.
33184 2007-03-24 Bruno Haible <bruno@clisp.org>
33186 * lib/float+.h: New file.
33187 * lib/isnan.c: Include float+.h.
33189 (FUNC): Compare only SIZE bytes of the value.
33190 * lib/vasnprintf.c: Include float+.h.
33191 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
33192 SIZEOF_LDBL or SIZEOF_DBL bytes.
33193 * modules/isnan-nolibm (Files): Add lib/float+.h.
33194 * modules/isnanl-nolibm (Files): Add lib/float+.h.
33195 * modules/isnanl (Files): Add lib/float+.h.
33196 * modules/vasnprintf (Files): Add lib/float+.h.
33198 2007-03-24 Bruno Haible <bruno@clisp.org>
33200 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
33201 include isnanl-nolibm.h.
33203 2007-03-24 Bruno Haible <bruno@clisp.org>
33205 * tests/test-read-file.c (main): Don't produce spurious output for
33206 expected situations. Make the test fail if it encountered unexpected
33209 2007-03-24 Bruno Haible <bruno@clisp.org>
33211 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
33212 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
33214 2007-03-24 Bruno Haible <bruno@clisp.org>
33216 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
33218 2007-03-24 Bruno Haible <bruno@clisp.org>
33220 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
33221 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
33223 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
33224 * modules/utf8-ucs4: Turn into a symbolic link to module
33227 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
33229 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
33230 unistr/u8-mbtouc-unsafe.
33232 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
33233 * modules/utf16-ucs4: Turn into a symbolic link to module
33236 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
33238 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
33239 unistr/u16-mbtouc-unsafe.
33241 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
33242 * modules/ucs4-utf8: Turn into a symbolic link to module
33245 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
33246 * modules/ucs4-utf16: Turn into a symbolic link to module
33249 2007-03-24 Bruno Haible <bruno@clisp.org>
33251 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
33252 Enable the function only if HAVE_INLINE.
33253 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
33254 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
33255 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
33256 Enable the function only if HAVE_INLINE.
33257 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
33258 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
33259 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
33260 Enable the function only if HAVE_INLINE.
33261 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
33262 Enable the function only if HAVE_INLINE.
33263 * modules/utf8-ucs4: Update.
33264 * modules/utf8-ucs4-unsafe: Update.
33265 * modules/utf16-ucs4: Update.
33266 * modules/utf16-ucs4-unsafe: Update.
33267 * modules/ucs4-utf8: Update.
33268 * modules/ucs4-utf16: Update.
33270 2007-03-24 Bruno Haible <bruno@clisp.org>
33272 * lib/utf8-ucs4.h: Remove file.
33273 * lib/utf8-ucs4-unsafe.h: Remove file.
33274 * lib/utf16-ucs4.h: Remove file.
33275 * lib/utf16-ucs4-unsafe.h: Remove file.
33276 * lib/ucs4-utf8.h: Remove file.
33277 * lib/ucs4-utf16.h: Remove file.
33278 * lib/unistr.h: Include their previous contents.
33279 * m4/utf-ucs4.m4: Remove file.
33280 * m4/ucs4-utf.m4: Remove file.
33281 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
33282 (Depends-on): Add unistr/base.
33283 (configure.ac): Remove gl_UTF_UCS4.
33284 (Makefile.am): Update.
33285 (Include): Change to unistr.h.
33286 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
33287 (Depends-on): Add unistr/base.
33288 (configure.ac): Remove gl_UTF_UCS4.
33289 (Makefile.am): Update.
33290 (Include): Change to unistr.h.
33291 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
33292 (Depends-on): Add unistr/base.
33293 (configure.ac): Remove gl_UTF_UCS4.
33294 (Makefile.am): Update.
33295 (Include): Change to unistr.h.
33296 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
33297 (Depends-on): Add unistr/base.
33298 (configure.ac): Remove gl_UTF_UCS4.
33299 (Makefile.am): Update.
33300 (Include): Change to unistr.h.
33301 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
33302 (Depends-on): Add unistr/base.
33303 (configure.ac): Remove gl_UCS4_UTF.
33304 (Makefile.am): Update.
33305 (Include): Change to unistr.h.
33306 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
33307 (Depends-on): Add unistr/base.
33308 (configure.ac): Remove gl_UCS4_UTF.
33309 (Makefile.am): Update.
33310 (Include): Change to unistr.h.
33311 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
33312 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
33313 utf8-ucs4-unsafe.h.
33314 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
33315 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
33316 utf16-ucs4-unsafe.h.
33317 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
33318 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
33319 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
33320 * lib/unistr/u8-strchr.c: Likewise.
33321 * lib/unistr/u8-strrchr.c: Likewise.
33322 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
33323 * lib/unistr/u16-strchr.c: Likewise.
33324 * lib/unistr/u16-strrchr.c: Likewise.
33325 * lib/striconveh.c: Update.
33326 * lib/linebreak.c: Update.
33328 2007-03-24 Bruno Haible <bruno@clisp.org>
33330 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
33331 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
33333 2007-03-22 Bruno Haible <bruno@clisp.org>
33335 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
33337 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
33339 * MODULES.html.sh (File system functions): New module write-any-file.
33340 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
33341 * m4/write-any-file.m4: New files.
33343 2007-03-23 Eric Blake <ebb9@byu.net>
33345 * gnulib-tool: Rearrange space-tab sequences, since some editors
33348 2007-03-23 Eric Blake <ebb9@byu.net>
33350 * lib/version-etc.c (version_etc_va): Update license wording to
33351 be more concise. Recommended by Richard Stallman.
33353 2007-03-22 Bruno Haible <bruno@clisp.org>
33355 * lib/poll.c (MSG_PEEK): New fallback definition.
33357 2007-03-22 Bruno Haible <bruno@clisp.org>
33359 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
33360 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
33362 Fixes a compilation error on BeOS.
33364 2007-03-22 Bruno Haible <bruno@clisp.org>
33366 * modules/frexpl-tests: New file.
33367 * tests/test-frexpl.c: New file.
33369 * modules/frexpl: New file.
33370 * m4/frexpl.m4: New file.
33371 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
33372 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
33373 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
33374 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
33375 (Depends-on): Add frexpl. Remove isnanl-nolibm.
33376 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
33378 2007-03-22 Bruno Haible <bruno@clisp.org>
33380 * lib/frexpl.c: Share code with lib/frexp.c.
33381 * modules/mathl (Files): Add lib/frexp.c.
33382 (Depends-on): Add isnanl-nolibm.
33384 2007-03-22 Bruno Haible <bruno@clisp.org>
33386 * modules/printf-frexp (Files): Add m4/frexp.m4.
33387 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
33388 only if the found frexp function actually works.
33390 2007-03-22 Bruno Haible <bruno@clisp.org>
33392 * lib/frexp.c: Remove older implementation that uses divisions.
33394 2007-03-21 Bruno Haible <bruno@clisp.org>
33396 * modules/frexp-tests: New file.
33397 * tests/test-frexp.c: New file.
33399 * modules/frexp: New file.
33400 * lib/frexp.c: New file.
33401 * m4/frexp.m4: New file.
33402 * lib/math_.h (frexp): New declaration.
33403 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
33405 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
33407 2007-03-21 Bruno Haible <bruno@clisp.org>
33409 * modules/isnanl-tests: New file.
33410 * tests/test-isnanl.c: New file.
33412 * modules/isnanl: New file.
33413 * lib/isnanl.h: New file.
33414 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
33415 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
33416 gl_FUNC_ISNANL_WORKS.
33417 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
33420 2007-03-21 Bruno Haible <bruno@clisp.org>
33422 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
33425 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
33426 * lib/vasnprintf.c: Update.
33427 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
33428 tests/test-isnanl.h, remove tests/test-isnanl.c.
33429 (Makefile.am): Update.
33430 * tests/test-isnanl-nolibm.c: New file.
33431 * tests/test-isnanl.h: New file.
33432 * tests/test-isnanl.c: Remove file.
33434 2007-03-21 Jim Meyering <jim@meyering.net>
33436 When trying to open ".", treat ESTALE like EACCES.
33437 * lib/savewd.c (savewd_save): Resort to forking not just upon
33438 failure with EACCES, but also when errno is ESTALE.
33440 2007-03-20 Bruno Haible <bruno@clisp.org>
33442 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
33443 Needed on AIX 5.1. Reported by Matthew Woehlke.
33445 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
33447 Suggestions by Bruno Haible:
33448 * lib/acl-internal.h: Include "gettext.h" rather than rolling
33450 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
33451 * modules/acl (Depends-on): Add gettext.
33453 2007-03-19 Bruno Haible <bruno@clisp.org>
33455 * modules/iconvme: Remove file.
33456 * lib/iconvme.h: Remove file.
33457 * lib/iconvme.c: Remove file.
33458 * m4/iconvme.m4: Remove file.
33460 2007-03-19 Bruno Haible <bruno@clisp.org>
33462 * doc/relocatable-maint.texi: Break long shell script line.
33463 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
33465 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
33467 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
33468 handle file_has_acl.
33469 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
33470 * lib/acl.c: Move header inclusions and related macro defns into
33471 lib/acl-internal.h.
33472 (S_ISLNK): Remove defn, since that's now done for us.
33473 (file_has_acl): Move to lib/file-has-acl.c.
33474 Call acl_trivial if available. This is the crucial part of the fix.
33475 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
33476 shared within the library. Rewrite a bit, partly to make it compatible
33477 with the GNU coding style.
33478 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
33479 Remove unnecessary double-quotes.
33480 Don't test for acl_to_text; the build will catch that.
33481 Replace acl_entries if it doesn't exist and it is needed.
33482 Check for -lsec and acl_trivial (as used on Solaris 10).
33483 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
33484 lib/file-has-acl.c.
33485 (Depends-on): Add sys_stat, for S_ISLNK.
33487 2007-03-19 Ben Pfaff <blp@gnu.org>
33489 * doc/gnulib.texi: Fix typos.
33490 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
33492 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
33494 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
33495 If size is zero here, buf must be zero.
33497 2007-03-19 Simon Josefsson <simon@josefsson.org>
33499 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
33502 2007-03-18 Bruno Haible <bruno@clisp.org>
33504 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
33505 Suggested by Eric Blake.
33507 2007-03-18 Ben Pfaff <blp@gnu.org>
33509 * doc/relocatable.texi: Recommend using as prefix a directory
33510 that does not exist and will never be created. Based on
33511 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
33514 2007-03-17 Bruno Haible <bruno@clisp.org>
33516 * lib/fchownat.c: Include lchown.h.
33518 2007-03-17 Bruno Haible <bruno@clisp.org>
33520 Fix endless loop when the given allocated size was > INT_MAX.
33521 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
33522 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
33523 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
33524 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
33525 * lib/sprintf.c (sprintf): Likewise.
33527 2007-03-17 Bruno Haible <bruno@clisp.org>
33529 * tests/test-argp-2.sh (func_compare): Output a context diff.
33531 2007-03-17 Bruno Haible <bruno@clisp.org>
33533 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
33534 locale's decimal-point character.
33536 2007-03-17 Bruno Haible <bruno@clisp.org>
33538 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
33539 before comparing it. Needed because on some platforms (e.g. x86) a
33540 'long double' occupies less bytes than sizeof (long double).
33542 2007-03-17 Bruno Haible <bruno@clisp.org>
33544 * tests/test-crc.c (main): Make printf statements 64-bit clean.
33545 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
33546 * tests/test-getaddrinfo.c (simple): Likewise.
33547 * tests/test-read-file.c (main): Likewise.
33549 2007-03-17 Bruno Haible <bruno@clisp.org>
33551 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
33553 2007-03-17 Bruno Haible <bruno@clisp.org>
33555 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
33558 2007-03-17 Bruno Haible <bruno@clisp.org>
33560 * tests/test-c-strcasecmp.c: Include c-strcase.h.
33561 * tests/test-c-strncasecmp.c: Likewise.
33563 2007-03-17 Bruno Haible <bruno@clisp.org>
33565 * modules/stdlib (Depends-on): Add unistd.
33566 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
33567 Needed for MacOS X 10.3.
33569 2007-03-17 Bruno Haible <bruno@clisp.org>
33571 * lib/unistr/u-strdup.h: Include <stdlib.h>.
33573 2007-03-17 Bruno Haible <bruno@clisp.org>
33575 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
33577 2007-03-17 Bruno Haible <bruno@clisp.org>
33579 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
33580 to reflect files copied from gnulib (with or without modifications).
33581 Suggested by Jim Meyering.
33583 2007-03-17 Eric Blake <ebb9@byu.net>
33585 * NEWS: Document stdlib change from 2007-02-18.
33587 2007-03-17 Jim Meyering <jim@meyering.net>
33589 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
33590 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
33591 someone uses a name containing shell meta-characters.
33592 Reported by Alfred M. Szmidt.
33594 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
33596 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
33598 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
33599 and copy gettext configuration files only if configure.ac contains
33600 a use of AM_GNU_GETTEXT_VERSION.
33602 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
33604 * build-aux/bootstrap (gnulib_name): New variable.
33605 (gnulib_tool_options): Use it.
33607 2007-03-13 Simon Josefsson <simon@josefsson.org>
33609 * tests/test-des.c: Use new namespace.
33611 2007-03-15 Bruno Haible <bruno@clisp.org>
33613 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
33614 Reported by James Youngman <jay@gnu.org>.
33616 2007-03-15 Bruno Haible <bruno@clisp.org>
33618 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
33619 declared prototype. Needed with cc on OSF/1 5.1.
33621 2007-03-15 Bruno Haible <bruno@clisp.org>
33623 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
33624 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
33625 (struct gl_list_implementation): Add dispose_fn argument to the
33626 'create_empty', 'create' methods.
33627 (struct gl_list_impl_base): Add field 'dispose_fn'.
33628 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
33630 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
33631 dispose_fn argument.
33632 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
33633 dispose_fn on the dropped values.
33634 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
33635 dispose_fn argument.
33636 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
33638 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
33639 (gl_tree_remove_node): Call dispose_fn on the dropped value.
33640 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
33641 (gl_tree_remove_node): Call dispose_fn on the dropped value.
33642 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
33644 (gl_tree_list_free): Call dispose_fn on the dropped values.
33645 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
33646 the dropped values.
33647 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
33648 Add dispose_fn argument.
33649 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
33650 Call dispose_fn on the dropped values.
33651 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
33652 Add dispose_fn argument.
33653 (gl_sublist_create): Initialize the 'dispose_fn' field.
33654 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
33655 * tests/test-array_list.c (main): Update.
33656 * tests/test-carray_list.c (main): Update.
33657 * tests/test-avltree_list.c (main): Update.
33658 * tests/test-rbtree_list.c (main): Update.
33659 * tests/test-avltreehash_list.c (main): Update.
33660 * tests/test-rbtreehash_list.c (main): Update.
33661 * tests/test-linked_list.c (main): Update.
33662 * tests/test-linkedhash_list.c (main): Update.
33663 * tests/test-array_oset.c (main): Update.
33665 2007-03-15 Bruno Haible <bruno@clisp.org>
33667 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
33668 (gl_oset_create_empty): Add dispose_fn argument.
33669 (struct gl_oset_implementation): Add dispose_fn argument to
33670 'create_empty' method.
33671 (struct gl_oset_impl_base): Add dispose_fn field.
33672 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
33673 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
33674 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
33676 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
33677 (gl_tree_oset_free): Call dispose_fn on the dropped values.
33678 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
33680 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
33682 * tests/test-array_oset.c (main): Update.
33683 * tests/test-avltree_oset.c (main): Update.
33684 * tests/test-rbtree_oset.c (main): Update.
33685 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
33687 2007-03-13 Bruno Haible <bruno@clisp.org>
33689 * tests/test-stdbool.c (i): Update after last patch.
33691 2007-03-12 Bruno Haible <bruno@clisp.org>
33693 * lib/quotearg.c: Include <wctype.h> early, before the definition of
33694 the iswprint macro. Needed on Solaris 2.5.1.
33696 2007-03-12 Bruno Haible <bruno@clisp.org>
33698 * tests/test-printf-frexp.c (main): Declare x as volatile.
33700 2007-03-12 Simon Josefsson <simon@josefsson.org>
33702 * doc/gnulib.texi (Build robot for gnulib): New section.
33704 2007-03-12 Jim Meyering <jim@meyering.net>
33706 * build-aux/bootstrap: New file.
33707 * build-aux/bootstrap.conf: New file, from coreutils.
33709 2007-03-11 Bruno Haible <bruno@clisp.org>
33711 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
33713 2007-03-12 Simon Josefsson <simon@josefsson.org>
33715 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
33716 avoid collisions with 'des_setkey'. Reported by Bruno Haible
33717 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
33719 2007-03-11 Bruno Haible <bruno@clisp.org>
33721 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
33722 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
33724 2007-03-11 Bruno Haible <bruno@clisp.org>
33726 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
33727 formula. Needed for SunPRO C 5.0.
33729 2007-03-11 Bruno Haible <bruno@clisp.org>
33731 * modules/long-options (Depends-on): Add getopt.
33733 2007-03-11 Bruno Haible <bruno@clisp.org>
33735 * modules/modechange (Depends-on): Add stdbool.
33737 2007-03-11 Bruno Haible <bruno@clisp.org>
33739 * modules/i-ring (Depends-on): Add stdbool.
33741 2007-03-11 Bruno Haible <bruno@clisp.org>
33743 * modules/gc-des (Depends-on): Add stdbool.
33745 2007-03-11 Bruno Haible <bruno@clisp.org>
33747 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
33749 2007-03-11 Bruno Haible <bruno@clisp.org>
33751 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
33753 2007-03-11 Bruno Haible <bruno@clisp.org>
33755 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
33757 2007-03-11 Bruno Haible <bruno@clisp.org>
33759 * lib/vasnprintf.c (sprintf): Undefine.
33761 2007-03-11 Bruno Haible <bruno@clisp.org>
33763 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
33764 initializers in SunPRO C and Compaq C compilers.
33766 2007-03-11 Bruno Haible <bruno@clisp.org>
33768 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
33769 decrementing code ANSI C compliant.
33771 2007-03-11 Bruno Haible <bruno@clisp.org>
33773 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
33774 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
33776 2007-03-11 Bruno Haible <bruno@clisp.org>
33778 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
33779 <stdbool.h> substitute doesn't pass.
33781 2007-03-11 Bruno Haible <bruno@clisp.org>
33783 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
33785 2007-03-11 Bruno Haible <bruno@clisp.org>
33787 * gnulib-tool (func_create_megatestdir): Create also an autobuild
33788 script, for submission to autobuild.josefsson.org.
33790 2007-03-10 Bruno Haible <bruno@clisp.org>
33792 * modules/canonicalize-lgpl-tests: New file.
33793 * tests/test-canonicalize-lgpl.sh: New file.
33794 * tests/test-canonicalize-lgpl.c: New file.
33796 * modules/c-strcase-tests: New file.
33797 * tests/test-c-strcase.sh: New file.
33798 * tests/test-c-strcasecmp.c: New file.
33799 * tests/test-c-strncasecmp.c: New file.
33801 * modules/atexit-tests: New file.
33802 * tests/test-atexit.sh: New file.
33803 * tests/test-atexit.c: New file.
33805 2007-03-10 Bruno Haible <bruno@clisp.org>
33807 * tests/test-binary-io.sh: Use temporary filenames that are not so
33808 likely to clash with those of other tests (in a parallel make).
33809 * tests/test-binary-io.c: Likewise.
33811 2007-03-10 Bruno Haible <bruno@clisp.org>
33813 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
33814 fallback; use #error instead.
33815 Suggested by Simon Josefsson.
33817 2007-03-10 Bruno Haible <bruno@clisp.org>
33819 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
33820 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
33821 first and the last.
33823 2007-03-10 Bruno Haible <bruno@clisp.org>
33825 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
33827 2007-03-10 Bruno Haible <bruno@clisp.org>
33829 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
33831 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
33832 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
33833 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
33835 2007-03-10 Bruno Haible <bruno@clisp.org>
33837 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
33839 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
33842 2007-03-09 Eric Blake <ebb9@byu.net>
33843 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
33845 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
33846 types are not being provided by gnulib.
33847 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
33848 types are supported.
33850 2007-03-10 Bruno Haible <bruno@clisp.org>
33852 * lib/stdio_.h (__attribute__): New macro.
33853 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
33854 vsprintf): Specify __attribute__ __format__ for GCC.
33855 Suggested by Eric Blake.
33857 2007-03-09 Bruno Haible <bruno@clisp.org>
33859 * modules/printf-posix-tests: New file.
33860 * tests/test-printf-posix.sh: New file.
33861 * tests/test-printf-posix.c: New file.
33863 * modules/printf-posix: New file.
33864 * lib/printf.c: New file.
33865 * m4/printf-posix-rpl.m4: New file.
33866 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
33868 * lib/stdio_.h (printf): New declaration.
33869 (format, __format__, ____printf____, ____scanf____, ____strftime____,
33870 ____strfmon____): New macros.
33871 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
33874 2007-03-09 Bruno Haible <bruno@clisp.org>
33876 * tests/test-vasnprintf-posix2.sh: New file.
33877 * tests/test-vasnprintf-posix2.c: New file.
33878 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
33879 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
33880 (Makefile.am): Activate test-vasnprintf-posix2.sh.
33882 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
33883 a locale dependent decimal point, rather than always '.'.
33885 2007-03-09 Eric Blake <ebb9@byu.net>
33887 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
33888 spite of platforms like Tandem/NSK that define it to -1.
33890 2007-03-08 Bruno Haible <bruno@clisp.org>
33892 * modules/vprintf-posix-tests: New file.
33893 * tests/test-vprintf-posix.sh: New file.
33894 * tests/test-vprintf-posix.c: New file.
33895 * tests/test-printf-posix.h: New file.
33897 * modules/vprintf-posix: New file.
33898 * lib/vprintf.c: New file.
33899 * m4/vprintf-posix.m4: New file.
33900 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
33902 * lib/stdio_.h (vprintf): New declaration.
33903 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
33906 2007-03-08 Bruno Haible <bruno@clisp.org>
33908 * modules/fprintf-posix-tests: New file.
33909 * tests/test-fprintf-posix.sh: New file.
33910 * tests/test-fprintf-posix.c: New file.
33912 * modules/fprintf-posix: New file.
33913 * lib/fprintf.c: New file.
33914 * m4/fprintf-posix.m4: New file.
33915 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
33917 * lib/stdio_.h (fprintf): New declaration.
33918 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
33921 2007-03-08 Bruno Haible <bruno@clisp.org>
33923 * modules/vfprintf-posix-tests: New file.
33924 * tests/test-vfprintf-posix.sh: New file.
33925 * tests/test-vfprintf-posix.c: New file.
33926 * tests/test-fprintf-posix.h: New file.
33927 * tests/test-fprintf-posix.out: New file.
33929 * modules/vfprintf-posix: New file.
33930 * lib/vfprintf.c: New file.
33931 * m4/vfprintf-posix.m4: New file.
33932 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
33934 * lib/stdio_.h (vfprintf): New declaration.
33935 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
33938 2007-03-08 Bruno Haible <bruno@clisp.org>
33940 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
33942 2007-03-08 Bruno Haible <bruno@clisp.org>
33944 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
33945 instead of 'expr' invocations.
33946 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33947 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33948 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33949 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33950 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33951 Suggested by Paul Eggert.
33953 2007-03-08 Bruno Haible <bruno@clisp.org>
33955 * modules/fseterr-tests: New file.
33956 * tests/test-fseterr.c: New file.
33958 * modules/fseterr: New file.
33959 * lib/fseterr.h: New file.
33960 * lib/fseterr.c: New file.
33962 2007-03-08 Bruno Haible <bruno@clisp.org>
33964 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
33965 * lib/getopt_.h: Likewise.
33966 * lib/mbswidth.h: Likewise.
33967 * lib/setenv.h: Likewise.
33968 * lib/vasnprintf.h: Likewise.
33969 * lib/vasprintf.h: Likewise.
33970 * lib/verror.h: Likewise.
33971 * lib/xsetenv.h: Likewise.
33972 * lib/xvasprintf.h: Likewise.
33974 2007-03-08 Jim Meyering <jim@meyering.net>
33976 * users.txt: Add parted.
33978 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
33980 2007-03-07 Bruno Haible <bruno@clisp.org>
33982 * m4/printf.m4: Make the shell script snippets copy&pastable.
33984 2007-03-02 Bruno Haible <bruno@clisp.org>
33986 * lib/netinet_in_.h: New file.
33987 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
33988 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
33989 * modules/netinet_in (Files): Add lib/netinet_in_.h.
33990 (Depends-on): Add absolute-header.
33991 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
33994 2007-03-03 Bruno Haible <bruno@clisp.org>
33996 * lib/sys_select_.h: New file.
33997 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
33998 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
33999 * modules/sys_select (Files): Add lib/sys_select_.h.
34000 (Depends-on): Add absolute-header.
34001 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
34004 2007-03-02 Bruno Haible <bruno@clisp.org>
34006 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
34007 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
34009 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
34010 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
34011 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
34012 * modules/sys_socket (Depends-on): Add absolute-header.
34013 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
34014 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
34015 (Include): Remove requirement of inclusion of <sys/types.h>.
34017 2007-03-02 Bruno Haible <bruno@clisp.org>
34019 * lib/byteswap_.h (bswap_32): Fix formula.
34021 2007-03-06 Bruno Haible <bruno@clisp.org>
34023 * modules/sprintf-posix-tests: New file.
34024 * tests/test-sprintf-posix.c: New file.
34026 * modules/sprintf-posix: New file.
34027 * lib/sprintf.c: New file.
34028 * m4/sprintf-posix.m4: New file.
34029 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
34031 * lib/stdio_.h (sprintf): New declaration.
34032 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
34035 2007-03-06 Bruno Haible <bruno@clisp.org>
34037 * modules/vsprintf-posix-tests: New file.
34038 * tests/test-vsprintf-posix.c: New file.
34039 * tests/test-sprintf-posix.h: New file.
34041 * modules/vsprintf-posix: New file.
34042 * lib/vsprintf.c: New file.
34043 * m4/vsprintf-posix.m4: New file.
34044 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
34046 * lib/stdio_.h (vsprintf): New declaration.
34047 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
34050 2007-03-06 Bruno Haible <bruno@clisp.org>
34052 * modules/vsnprintf (Depend-on): Remove minmax.
34054 2007-03-06 Bruno Haible <bruno@clisp.org>
34056 * modules/snprintf-posix-tests: New file.
34057 * tests/test-snprintf-posix.c: New file.
34059 * modules/snprintf-posix: New file.
34060 * m4/snprintf-posix.m4: New file.
34061 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
34063 (gl_FUNC_SNPRINTF): Invoke it.
34064 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
34065 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
34067 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
34069 2007-03-06 Bruno Haible <bruno@clisp.org>
34071 * modules/vsnprintf-posix-tests: New file.
34072 * tests/test-vsnprintf-posix.c: New file.
34073 * tests/test-snprintf-posix.h: New file.
34075 * modules/vsnprintf-posix: New file.
34076 * m4/vsnprintf-posix.m4: New file.
34077 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
34079 (gl_FUNC_VSNPRINTF): Invoke it.
34080 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
34081 * lib/stdio_.h (vsnprintf): Define as a replacement if
34082 REPLACE_VSNPRINTF is set.
34083 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
34085 2007-03-06 Bruno Haible <bruno@clisp.org>
34087 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
34088 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
34090 2007-03-06 Bruno Haible <bruno@clisp.org>
34092 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
34093 (asinl): Declare also if HAVE_DECL_ASINL is set.
34094 (atanl): Declare also if HAVE_DECL_ATANL is set.
34095 (ceill): Declare also if HAVE_DECL_CEILL is set.
34096 (cosl): Declare also if HAVE_DECL_COSL is set.
34097 (expl): Declare also if HAVE_DECL_EXPL is set.
34098 (floorl): Declare also if HAVE_DECL_FLOORL is set.
34099 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
34100 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
34101 (logl): Declare also if HAVE_DECL_LOGL is set.
34102 (sinl): Declare also if HAVE_DECL_SINL is set.
34103 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
34104 (tanl): Declare also if HAVE_DECL_TANL is set.
34105 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
34106 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
34107 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
34108 declaration of frexpl, ldexpl.
34109 * modules/printf-frexpl (Depends-on): Add math.
34110 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
34112 2007-03-05 Bruno Haible <bruno@clisp.org>
34114 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
34115 frexpl and ldexpl are declared.
34116 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
34118 2007-03-05 Bruno Haible <bruno@clisp.org>
34120 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
34121 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
34123 2007-03-05 Bruno Haible <bruno@clisp.org>
34125 * lib/stdio_.h: Include <stddef.h>.
34127 2007-03-05 Bruno Haible <bruno@clisp.org>
34129 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
34131 2007-03-05 Bruno Haible <bruno@clisp.org>
34133 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
34134 NetBSD 4, from Ralf Wildenhues.
34136 2007-03-04 Bruno Haible <bruno@clisp.org>
34138 * lib/vasprintf.h: Update #if logic for the case when the functions
34139 exist but are overridden.
34141 2007-03-04 Bruno Haible <bruno@clisp.org>
34143 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
34144 implementations: glibc-2.4 and MacOS X 10.3.
34145 * tests/test-vasnprintf-posix.c (test_function): Test also the case
34146 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
34147 * tests/test-vasprintf-posix.c (test_function): Likewise.
34149 2007-03-04 Bruno Haible <bruno@clisp.org>
34151 * modules/vasprintf-posix-tests: New file.
34152 * tests/test-vasprintf-posix.c: New file.
34154 * modules/vasprintf-posix: New file.
34155 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
34157 * m4/vasprintf-posix.m4: New file.
34158 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
34160 (gl_FUNC_VASPRINTF): Invoke it.
34161 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
34163 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
34165 2007-03-04 Bruno Haible <bruno@clisp.org>
34167 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
34168 REPLACE_GETTIMEOFDAY.
34169 * modules/sys_time (Makefile.am): Likewise.
34170 * m4/sys_time_h.m4: Likewise.
34171 * m4/gettimeofday.m4: Likewise.
34173 2007-03-04 Bruno Haible <bruno@clisp.org>
34175 * modules/vasnprintf-posix-tests: New file.
34176 * tests/test-vasnprintf-posix.c: New file.
34178 * modules/vasnprintf-posix: New file.
34179 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
34181 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
34182 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
34183 REPLACE_VASNPRINTF is defined.
34184 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
34185 gl_FUNC_VASNPRINTF.
34186 (gl_FUNC_VASNPRINTF): Invoke it.
34187 * m4/vasnprintf-posix.m4: New file.
34188 * m4/printf.m4: New file.
34190 2007-03-04 Bruno Haible <bruno@clisp.org>
34192 Compile progreloc.c only if --enable-relocatable is specified.
34193 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
34194 if --enable-relocatable was specified.
34195 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
34198 2007-03-04 Jim Meyering <jim@meyering.net>
34200 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
34201 Use it consistently, rather than enumerating errno constants.
34203 2007-03-04 Bruno Haible <bruno@clisp.org>
34205 * modules/xvasprintf-tests: New file.
34206 * tests/test-xvasprintf.c: New file.
34208 * modules/vasprintf-tests: New file.
34209 * tests/test-vasprintf.c: New file.
34211 * modules/vasnprintf-tests: New file.
34212 * tests/test-vasnprintf.c: New file.
34214 * modules/vsnprintf-tests: New file.
34215 * tests/test-vsnprintf.c: New file.
34217 * modules/snprintf-tests: New file.
34218 * tests/test-snprintf.c: New file.
34220 2007-03-04 Bruno Haible <bruno@clisp.org>
34222 Compile relocatable.c only if --enable-relocatable is specified.
34223 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
34224 gl_RELOCATABLE_LIBRARY.
34225 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
34226 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
34227 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
34228 gl_RELOCATABLE_LIBRARY.
34229 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
34230 (Makefile.am): Remove lib_SOURCES.
34231 * modules/relocatable-lib-lgpl (configure.ac): Invoke
34232 gl_RELOCATABLE_LIBRARY.
34233 (Makefile.am): Remove lib_SOURCES.
34234 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
34236 * modules/relocatable-prog-wrapper (configure.ac): Invoke
34237 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
34239 2007-03-04 Bruno Haible <bruno@clisp.org>
34241 * modules/argmatch-tests: New file.
34242 * tests/test-argmatch.c: New file.
34244 * tests/test-allocsa.c (main): Halve the number of loop runs.
34246 * modules/alloca-opt-tests: New file.
34247 * tests/test-alloca-opt.c: New file.
34249 2007-03-04 Jim Meyering <jim@meyering.net>
34251 Work around difference between Linux ACLs and Solaris 10 ZFS.
34252 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
34255 2007-03-03 Bruno Haible <bruno@clisp.org>
34257 * modules/relocatable-prog (Depends-on): Add back progreloc's
34258 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
34260 2007-03-03 Bruno Haible <bruno@clisp.org>
34262 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
34263 * modules/relocatable-lib: New file.
34265 2007-03-03 Bruno Haible <bruno@clisp.org>
34267 * modules/relocatable-prog: Renamed from modules/relocatable.
34268 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
34270 2007-03-03 Bruno Haible <bruno@clisp.org>
34272 * modules/relocatable-script (Files): Add doc/relocatable.texi,
34273 m4/relocatable-lib.m4.
34274 (Depends-on): Remove 'relocatable'.
34275 (configure.ac): Add gl_RELOCATABLE_NOP.
34277 2007-03-03 Bruno Haible <bruno@clisp.org>
34279 * modules/relocatable-prog-wrapper: New file.
34280 * modules/relocatable (Depends-on): Add it. Remove all other
34281 dependencies except progname.
34282 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
34284 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
34285 (gl_FUNC_STRERROR): Nop.
34286 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
34288 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
34289 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
34291 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
34292 (gl_FUNC_READLINK): Update.
34294 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
34296 2007-03-03 Bruno Haible <bruno@clisp.org>
34298 * lib/xreadlink.c: Include <unistd.h> unconditionally.
34299 * modules/xreadlink (Depends-on): Add unistd.
34300 * modules/xreadlink-with-size (Depends-on): Likewise.
34302 2007-03-03 Bruno Haible <bruno@clisp.org>
34304 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
34305 extracted from gt_FUNC_SETENV.
34306 (gt_FUNC_SETENV): Remove macro.
34307 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
34308 remove gt_FUNC_SETENV.
34310 2007-03-03 Bruno Haible <bruno@clisp.org>
34312 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
34313 ENABLE_RELOCATABLE here.
34314 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
34316 2007-03-03 Bruno Haible <bruno@clisp.org>
34318 * modules/rbtreehash-list-tests (Depends-on): Add progname.
34319 * tests/test-rbtreehash_list.c: Include progname.h.
34320 (main): Call set_program_name.
34322 * modules/rbtree-oset-tests (Depends-on): Add progname.
34323 * tests/test-rbtree_oset.c: Include progname.h.
34324 (main): Call set_program_name.
34326 * modules/rbtree-list-tests (Depends-on): Add progname.
34327 * tests/test-rbtree_list.c: Include progname.h.
34328 (main): Call set_program_name.
34330 * modules/linked-list-tests (Depends-on): Add progname.
34331 * tests/test-linked_list.c: Include progname.h.
34332 (main): Call set_program_name.
34334 2007-03-03 Bruno Haible <bruno@clisp.org>
34336 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
34337 All uses of __restrict changed to _Restrict_.
34338 * lib/glob_.h (__restrict): Remove macro.
34340 2007-03-02 Bruno Haible <bruno@clisp.org>
34342 * modules/gettext (configure.ac): Require gettext infrastructure
34343 from version 0.16.1.
34345 2007-03-02 Bruno Haible <bruno@clisp.org>
34347 * modules/linkedhash-list-tests (Depends-on): Add progname.
34348 * tests/test-linkedhash_list.c: Include progname.h.
34349 (main): Call set_program_name.
34351 * modules/carray-list-tests (Depends-on): Add progname.
34352 * tests/test-carray_list.c: Include progname.h.
34353 (main): Call set_program_name.
34355 * modules/avltreehash-list-tests (Depends-on): Add progname.
34356 * tests/test-avltreehash_list.c: Include progname.h.
34357 (main): Call set_program_name.
34359 * modules/avltree-oset-tests (Depends-on): Add progname.
34360 * tests/test-avltree_oset.c: Include progname.h.
34361 (main): Call set_program_name.
34363 * modules/avltree-list-tests (Depends-on): Add progname.
34364 * tests/test-avltree_list.c: Include progname.h.
34365 (main): Call set_program_name.
34367 * modules/array-oset-tests (Depends-on): Add progname.
34368 * tests/test-array_oset.c: Include progname.h.
34369 (main): Call set_program_name.
34371 * modules/array-list-tests (Depends-on): Add progname.
34372 * tests/test-array_list.c: Include progname.h.
34373 (main): Call set_program_name.
34375 * modules/argp-tests (Depends-on): Add progname.
34376 * tests/test-argp.c: Include argp.h first. Include progname.h.
34377 (main): Call set_program_name.
34379 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
34381 * doc/gnulib-tool.texi (Initial import): Reword description of
34382 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
34383 limited effect even if defined after the first system include.
34385 2007-03-01 Bruno Haible <bruno@clisp.org>
34387 * build-aux/config.libpath: Update to libtool-1.5.22.
34388 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34390 2007-03-01 Bruno Haible <bruno@clisp.org>
34392 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
34394 Reported by Ralf Wildenhues.
34396 2007-03-01 Bruno Haible <bruno@clisp.org>
34398 * build-aux/install-reloc: Remove object files left over by some
34400 Reported by Ralf Wildenhues.
34402 2007-03-01 Bruno Haible <bruno@clisp.org>
34404 * build-aux/install-reloc: Break long lines.
34406 2007-03-01 Bruno Haible <bruno@clisp.org>
34408 * doc/relocatable.texi: Document that it may not work on OpenBSD.
34409 Reported by Ralf Wildenhues.
34411 2007-03-01 Bruno Haible <bruno@clisp.org>
34413 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
34414 include ordering constraints.
34416 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
34418 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
34419 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
34420 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
34421 as another example.
34422 * lib/time_.h: Fix misspelling.
34423 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
34424 Require gl_HEADER_TIME_H_DEFAULTS.
34425 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
34426 * m4/time_r.m4 (gl_TIME_R): Likewise.
34427 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
34429 2007-03-01 Bruno Haible <bruno@clisp.org>
34431 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
34432 * m4/utimens.m4 (gl_UTIMENS): Likewise.
34434 2007-03-01 Jim Meyering <jim@meyering.net>
34436 * modules/xreadlink (Maintainer): Add my name.
34437 * modules/xreadlink-with-size (Depends-on): Alphabetize.
34439 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
34440 Bruno Haible <bruno@clisp.org>
34442 * build-aux/install-reloc: Compile also c-ctype.c.
34443 * build-aux/relocatable.sh.in: New file.
34444 * doc/relocatable.texi: New file.
34445 * doc/relocatable-maint.texi: New file.
34446 * doc/gnulib.texi: Include relocatable-maint.texi.
34447 * lib/progreloc.c: Include unistd.h unconditionally.
34448 * lib/relocwrapper.c: Include unistd.h unconditionally.
34450 (add_dotbin): Use c_tolower.
34451 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
34452 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
34453 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
34454 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
34455 to m4/relocatable-lib.m4.
34456 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
34457 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
34458 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
34459 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
34460 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
34461 * modules/relocatable: New file.
34462 * modules/relocatable-lib: New file.
34463 * modules/relocatable-script: New file.
34465 2007-02-28 Bruno Haible <bruno@clisp.org>
34467 Import --enable-relocatable infrastructure.
34468 * build-aux/config.libpath: New file, from GNU gettext.
34469 * build-aux/install-reloc: New file, from GNU gettext.
34470 * build-aux/reloc-ldflags: New file, from GNU gettext.
34471 * lib/relocatable.h: New file, from GNU gettext.
34472 * lib/relocatable.c: New file, from GNU gettext.
34473 * lib/relocwrapper.c: New file, from GNU gettext.
34474 * m4/relocatable.m4: New file, from GNU gettext.
34476 2007-02-28 Bruno Haible <bruno@clisp.org>
34478 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
34480 * modules/xreadlink: New file, from GNU gettext with modifications.
34481 * lib/xreadlink.c: New file, from GNU gettext.
34482 * lib/xreadlink.h: Add comments.
34483 (xreadlink): New declaration.
34485 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
34486 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
34487 lib/xreadlink-with-size.c.
34488 (configure.ac): Remove gl_XREADLINK invocation.
34489 (Makefile.am): Augment lib_SOURCES.
34490 * m4/xreadlink.m4: Remove file.
34491 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
34492 (xreadlink_with_size): Renamed from xreadink.
34493 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
34494 * modules/canonicalize (Depends-on): Replace xreadlink with
34495 xreadlink-with-size.
34496 * lib/canonicalize.c (canonicalize_filename_mode): Update.
34498 2007-02-25 Jim Meyering <jim@meyering.net>
34500 * build-aux/announce-gen: When complaining about excess arguments,
34503 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
34505 * README: Document signed integer overflow situation more
34508 2007-02-25 Bruno Haible <bruno@clisp.org>
34510 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
34511 'a' or 'A' conversion.
34513 2007-02-25 Bruno Haible <bruno@clisp.org>
34515 * modules/filename: Renamed from modules/pathname.
34516 (Files): Replace lib/pathname.h with lib/filename.h. Replace
34517 lib/concatpath.c with lib/concat-filename.c.
34518 (Makefile.am): Update.
34519 (Include): Replace pathname.h with filename.h.
34520 * lib/filename.h: Renamed from lib/pathname.h.
34521 (concatenated_filename): Renamed from concatenated_pathname.
34522 * lib/concat-filename.c: Renamed from lib/concatpath.c.
34523 (concatenated_filename): Renamed from concatenated_pathname.
34524 * lib/findprog.c: Include filename.h instead of pathname.h.
34525 (find_in_path): Update.
34526 * lib/javacomp.c: Include filename.h instead of pathname.h.
34527 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
34528 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
34529 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
34530 is_oldgcj_14_13_usable, is_javac_usable): Update.
34531 * lib/javaexec.c: Include filename.h instead of pathname.h.
34532 (execute_java_class): Update.
34533 * modules/findprog: Update.
34534 * modules/javacomp: Update.
34535 * modules/javaexec: Update.
34536 * MODULES.html.sh (File system functions): Add 'filename', remove
34539 2007-02-25 Bruno Haible <bruno@clisp.org>
34541 * modules/printf-frexpl-tests: New file.
34542 * tests/test-printf-frexpl.c: New file.
34544 * modules/printf-frexpl: New file.
34545 * lib/printf-frexpl.h: New file.
34546 * lib/printf-frexpl.c: New file.
34547 * m4/printf-frexpl.m4: New file.
34549 2007-02-25 Bruno Haible <bruno@clisp.org>
34551 * modules/printf-frexp-tests: New file.
34552 * tests/test-printf-frexp.c: New file.
34554 * modules/printf-frexp: New file.
34555 * lib/printf-frexp.h: New file.
34556 * lib/printf-frexp.c: New file.
34557 * m4/printf-frexp.m4: New file.
34559 2007-02-25 Bruno Haible <bruno@clisp.org>
34561 Assume automake >= 1.10 for the tests.
34562 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
34563 * modules/arctwo-tests: Likewise.
34564 * modules/argp-tests: Likewise.
34565 * modules/avltree-list-tests: Likewise.
34566 * modules/avltree-oset-tests: Likewise.
34567 * modules/avltreehash-list-tests: Likewise.
34568 * modules/carray-list-tests: Likewise.
34569 * modules/crc-tests: Likewise.
34570 * modules/des-tests: Likewise.
34571 * modules/gc-arcfour-tests: Likewise.
34572 * modules/gc-arctwo-tests: Likewise.
34573 * modules/gc-des-tests: Likewise.
34574 * modules/gc-hmac-md5-tests: Likewise.
34575 * modules/gc-hmac-sha1-tests: Likewise.
34576 * modules/gc-md2-tests: Likewise.
34577 * modules/gc-md4-tests: Likewise.
34578 * modules/gc-md5-tests: Likewise.
34579 * modules/gc-pbkdf2-sha1-tests: Likewise.
34580 * modules/gc-rijndael-tests: Likewise.
34581 * modules/gc-sha1-tests: Likewise.
34582 * modules/gc-tests: Likewise.
34583 * modules/getaddrinfo-tests: Likewise.
34584 * modules/hmac-md5-tests: Likewise.
34585 * modules/hmac-sha1-tests: Likewise.
34586 * modules/linked-list-tests: Likewise.
34587 * modules/linkedhash-list-tests: Likewise.
34588 * modules/lock-tests: Likewise.
34589 * modules/md2-tests: Likewise.
34590 * modules/md4-tests: Likewise.
34591 * modules/md5-tests: Likewise.
34592 * modules/rbtree-list-tests: Likewise.
34593 * modules/rbtree-oset-tests: Likewise.
34594 * modules/rbtreehash-list-tests: Likewise.
34595 * modules/read-file-tests: Likewise.
34596 * modules/rijndael-tests: Likewise.
34597 * modules/stdint-tests: Likewise.
34598 * modules/tls-tests: Likewise.
34600 2007-02-24 Bruno Haible <bruno@clisp.org>
34602 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
34603 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
34604 function; instead check whether isnan with a double argument links.
34605 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
34606 function; instead check whether isnan with a 'long double' argument
34608 Reported by Eric Blake <ebb9@byu.net>.
34610 2007-02-24 Bruno Haible <bruno@clisp.org>
34612 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
34614 * lib/isnanl.c: Remove all code. Just include isnan.c.
34615 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
34617 2007-02-25 Jim Meyering <jim@meyering.net>
34619 Avoid conflicting types for 'unsetenv' on FreeBSD.
34620 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
34621 conflicting with FreeBSD's (5.0 and 6.1) function declaration
34624 2007-02-24 Bruno Haible <bruno@clisp.org>
34626 * modules/isnanl-nolibm-tests: New file.
34627 * tests/test-isnanl.c: New file.
34629 * modules/isnanl-nolibm: New file.
34630 * lib/isnanl.h: New file.
34631 * lib/isnanl.c: New file.
34632 * m4/isnanl.m4: New file.
34634 2007-02-24 Bruno Haible <bruno@clisp.org>
34636 * modules/isnan-nolibm-tests: New file.
34637 * tests/test-isnan.c: New file.
34639 * modules/isnan-nolibm: New file.
34640 * lib/isnan.h: New file.
34641 * lib/isnan.c: New file.
34642 * m4/isnan.m4: New file.
34644 2007-02-24 Bruno Haible <bruno@clisp.org>
34646 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
34647 assume that an exponent fits in 20 bits.
34649 2007-02-24 Jim Meyering <jim@meyering.net>
34651 * m4/regex.m4: Update the description of the configure-time option,
34652 --without-included-regex, to state accurately what the defaults are,
34653 and perhaps to give people an idea why using this option is risky.
34655 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
34657 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
34658 loops on small arguments. This attempts to avoid the problem
34659 Bruno Haible reported for AIX 4.3.2 in
34660 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
34662 2007-02-23 Bruno Haible <bruno@clisp.org>
34664 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
34665 Needed for help2man.
34667 2007-02-23 Karl Berry <karl@gnu.org>
34669 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
34670 exists, foo.h should be cvs-ignored, not committed.
34672 2007-02-23 Eric Blake <ebb9@byu.net>
34674 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
34675 * lib/stat-time.h (includes): Likewise.
34676 * lib/utimecmp.c (includes): Likewise.
34677 * lib/utimens.h (includes): Likewise.
34678 * lib/getdate.y (includes): Also include "timespec.h" for use
34679 internal to the module.
34680 * modules/utimens (Depends-on): Revert yesterday's patch.
34681 * modules/nanosleep (Depends-on): Add missing dependency.
34683 2007-02-22 Bruno Haible <bruno@clisp.org>
34685 * lib/glob.c: Don't include getlogin_r.h.
34687 2007-02-22 Jim Meyering <jim@meyering.net>
34689 * modules/utimens (Depends-on): Add timespec, required for
34690 utimens.h's inclusion of timespec.h.
34692 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
34694 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
34695 long unreadable paths in GNU/Linux. Problem reported by Andreas
34697 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
34698 I'll try to think of a better way to fix the Solaris problem.
34700 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
34701 like glibc; on Solaris 10, it fails with errno == EINVAL.
34702 POSIX says the behavior is unspecified if the first argument is NULL,
34703 so play it safe and never pass NULL to the system getcwd.
34705 2007-02-21 Jim Meyering <jim@meyering.net>
34707 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
34708 of gettimeofday. It would conflict with the one now always
34709 provided via sys_time_.h. Reported by Matthew Woehlke, as
34710 an IRIX 6.5 build failure.
34712 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
34714 Minor fixups to port to Solaris 10 with Sun C 5.8.
34715 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
34716 * modules/getcwd (Depends-on): Add dirfd.
34717 * lib/putenv.c (putenv): #undef it.
34718 (rpl_putenv): New decl.
34719 (malloc, free): Include <stdlib.h> rather than prototyping separately.
34721 2007-02-20 Bruno Haible <bruno@clisp.org>
34723 * modules/stdio-tests: New file.
34724 * tests/test-stdio.c: New file.
34726 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
34727 (Depends-on): Add stdio.
34728 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34729 (Include): Use <stdio.h> instead of vsnprintf.h.
34730 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
34731 HAVE_DECL_VSNPRINTF.
34732 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
34734 * modules/snprintf (Files): Remove lib/snprintf.h.
34735 (Depends-on): Add stdio.
34736 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34737 (Include): Use <stdio.h> instead of snprintf.h.
34738 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
34739 HAVE_DECL_SNPRINTF.
34740 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
34741 * lib/getaddrinfo.c: Likewise.
34743 * modules/stdio: New file.
34744 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
34745 * lib/snprintf.h: Remove file.
34746 * lib/vsnprintf.h: Remove file.
34747 * lib/.cppi-disable: Remove snprintf.h.
34748 * m4/stdio_h.m4: New file.
34749 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
34751 2007-02-20 Jim Meyering <jim@meyering.net>
34753 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
34754 used by e.g., mingw. From Bruno Haible.
34756 2007-02-19 Bruno Haible <bruno@clisp.org>
34758 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
34760 Reported by Ben Pfaff <blp@cs.stanford.edu>.
34762 2007-02-19 Bruno Haible <bruno@clisp.org>
34764 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
34767 2007-02-19 Bruno Haible <bruno@clisp.org>
34769 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
34771 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
34773 2007-02-19 Jim Meyering <jim@meyering.net>
34775 Don't use FD after a successful "fdopendir (fd)".
34776 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
34777 Reset it by calling dirfd on the just-obtained DIR*.
34779 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
34780 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
34782 2007-02-18 Bruno Haible <bruno@clisp.org>
34784 * lib/readlink.c: Include <unistd.h>.
34785 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
34787 * modules/readlink (Depends-on): Add unistd.
34788 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34789 (Include): Add <unistd.h>.
34791 * lib/getlogin_r.h: Remove file.
34792 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
34793 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
34794 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
34795 HAVE_DECL_GETLOGIN_R.
34796 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
34797 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34798 (Include): Use <unistd.h> instead of getlogin_r.h.
34800 * lib/getcwd.h: Remove file.
34801 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
34802 * lib/xgetcwd.c: Likewise.
34803 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
34804 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
34805 * modules/getcwd (Files): Remove lib/getcwd.h.
34806 (Depends-on): Add unistd.
34807 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34808 (Include): Use <unistd.h> instad of getcwd.h.
34810 * lib/ftruncate.c: Include <unistd.h> first.
34811 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
34812 Set HAVE_FTRUNCATE.
34813 * modules/ftruncate (Depends-on): Add unistd.
34814 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34816 * lib/fchdir.c: Include <unistd.h> first.
34817 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
34818 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
34819 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
34820 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34821 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
34823 * lib/dup2.c: Include <unistd.h> first.
34824 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
34826 * modules/dup2 (Depends-on): Add unistd.
34827 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34829 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
34830 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
34831 REPLACE_CHOWN. Don't define chown as a macro here.
34832 * modules/chown (Depends-on): Add unistd.
34833 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34835 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
34836 Add definition for GL_LINK_WARNING.
34837 (chown, dup2): New declarations.
34838 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
34840 (ftruncate): New declaration.
34841 (getcwd): New declaration, taken from old getcwd.h.
34842 (getlogin_r): New declaration, taken from old getlogin_r.h.
34843 (readlink): New declaration.
34844 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
34845 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
34846 (gl_PREREQ_UNISTD): Remove macro.
34847 (gl_UNISTD_MODULE_INDICATOR): New macro.
34848 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
34849 many new variables. Don't set UNISTD_H.
34850 * modules/unistd (Description): Change.
34851 (Depends-on): Add link-warning.
34852 (configure.ac): Update.
34853 (Makefile.am): Create unistd.h always. Substitute many new variables
34856 2007-02-18 Bruno Haible <bruno@clisp.org>
34858 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
34859 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
34861 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
34862 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
34863 * lib/getsubopt.h: Remove file.
34864 * modules/getsubopt (Files): Remove lib/getsubopt.h.
34865 (Depends-on): Add stdlib.
34866 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34867 (Includes): Use <stdlib.h> instead of getsubopt.h.
34868 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
34869 Set HAVE_GETSUBOPT.
34870 * lib/getsubopt.c: Don't include getsubopt.h.
34872 2007-02-18 Bruno Haible <bruno@clisp.org>
34874 * modules/fchdir (Depends-on): Add dup2.
34876 2007-02-18 Bruno Haible <bruno@clisp.org>
34878 * lib/stdlib_.h: Handle glibc's special invocation convention
34881 2007-02-18 Bruno Haible <bruno@clisp.org>
34883 * modules/stdlib-tests: New file.
34884 * tests/test-stdlib.c: New file.
34886 * modules/mkstemp (Files): Remove lib/mkstemp.h.
34887 (Depends-on): Add stdlib.
34888 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34889 (Includes): Use <stdlib.h> instead of mkstemp.h.
34890 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
34891 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
34892 * lib/mkstemp.c: Don't include mkstemp.h.
34893 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
34894 * lib/stdlib--.h: Don't include mkstemp.h.
34896 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
34897 (Depends-on): Add stdlib.
34898 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34899 (Includes): Use <stdlib.h> instead of mkdtemp.h.
34900 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
34902 * lib/mkdtemp.c: Don't include mkdtemp.h.
34903 * lib/clean-temp.c: Don't include mkdtemp.h.
34905 * modules/exit (Files): Remove lib/exit.h.
34906 (Depends-on): Add stdlib.
34907 (Makefile.am): Remove lib_SOURCES.
34908 (Include): Use <stdlib.h> instead of exit.h.
34909 * lib/argmatch.c: Don't include exit.h.
34910 * lib/execute.c: Likewise.
34911 * lib/pagealign_alloc.c: Likewise.
34912 * lib/pipe.c: Likewise.
34913 * lib/wait-process.c: Likewise.
34914 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
34915 * lib/exitfail.c: Likewise.
34916 * lib/savewd.c: Likewise.
34917 * lib/xsetenv.c: Likewise.
34919 * modules/stdlib: New file.
34920 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
34921 and extra comments about mkstemp().
34922 * lib/exit.h: Remove file.
34923 * lib/mkdtemp.h: Remove file.
34924 * lib/mkstemp.h: Remove file.
34925 * m4/stdlib_h.m4: New file.
34926 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
34928 2007-02-18 Bruno Haible <bruno@clisp.org>
34930 * modules/math-tests: New file.
34931 * tests/test-math.c: New file.
34933 * modules/math: New file.
34934 * modules/mathl (Files): Remove lib/mathl.h.
34935 (Depends-on): Add math.
34936 (Makefile.am): Don't mention mathl.h.
34937 (Include): Use <math.h> instead of mathl.h.
34938 * lib/math_.h: New file.
34939 * lib/mathl.h: Remove file.
34940 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
34942 * lib/asinl.c: Likewise.
34943 * lib/atanl.c: Likewise.
34944 * lib/ceill.c: Likewise.
34945 * lib/cosl.c: Likewise.
34946 * lib/expl.c: Likewise.
34947 * lib/floorl.c: Likewise.
34948 * lib/frexpl.c: Likewise.
34949 * lib/ldexpl.c: Likewise.
34950 * lib/logl.c: Likewise.
34951 * lib/sincosl.c: Likewise.
34952 * lib/sinl.c: Likewise.
34953 * lib/sqrtl.c: Likewise.
34954 * lib/tanl.c: Likewise.
34955 * lib/trigl.c: Likewise.
34956 * m4/math_h.m4: New file.
34957 * MODULES.html.sh (Mathematics): Add math.
34959 2007-02-17 Bruno Haible <bruno@clisp.org>
34961 * modules/wctype-tests: New file.
34962 * tests/test-wctype.c: New file.
34964 * modules/wchar-tests: New file.
34965 * tests/test-wchar.c: New file.
34967 * modules/unistd-tests: New file.
34968 * tests/test-unistd.c: New file.
34970 * modules/time-tests: New file.
34971 * tests/test-time.c: New file.
34973 * modules/sysexits-tests: New file.
34974 * tests/test-sysexits.c: New file.
34976 * modules/sys_time-tests: New file.
34977 * tests/test-sys_time.c: New file.
34979 * modules/sys_stat-tests: New file.
34980 * tests/test-sys_stat.c: New file.
34982 * modules/sys_socket-tests: New file.
34983 * tests/test-sys_socket.c: New file.
34985 * modules/sys_select-tests: New file.
34986 * tests/test-sys_select.c: New file.
34988 * modules/string-tests: New file.
34989 * tests/test-string.c: New file.
34991 * modules/stdbool-tests: New file.
34992 * tests/test-stdbool.c: New file.
34994 * modules/netinet_in-tests: New file.
34995 * tests/test-netinet_in.c: New file.
34997 * modules/inttypes-tests: New file.
34998 * tests/test-inttypes.c: New file.
35000 * modules/fcntl-tests: New file.
35001 * tests/test-fcntl.c: New file.
35003 * modules/byteswap-tests: New file.
35004 * tests/test-byteswap.c: New file.
35006 * modules/arpa_inet-tests: New file.
35007 * tests/test-arpa_inet.c: New file.
35009 2007-02-17 Bruno Haible <bruno@clisp.org>
35011 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
35012 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
35013 if the corresponding module is not enabled. Emit link warnings if
35014 the function is used nevertheless.
35015 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
35016 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
35017 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
35018 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
35019 * modules/inttypes (Depends-on): Add link-warning.
35020 (Makefile.am): Copy the contents of build-aux/link-warning.h into
35021 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
35022 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
35023 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
35024 * modules/imaxdiv (configure.ac): Likewise.
35025 * modules/strtoimax (configure.ac): Likewise.
35026 * modules/strtoumax (configure.ac): Likewise.
35028 2007-02-17 Bruno Haible <bruno@clisp.org>
35030 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
35031 gl_STRING_MODULE_INDICATOR_DEFAULTS.
35032 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
35033 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
35035 2007-02-17 Bruno Haible <bruno@clisp.org>
35037 * modules/link-warning: New file.
35038 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
35039 * lib/string_.h (GL_LINK_WARNING): Remove definition.
35040 * modules/string (Depends-on): Add link-warning.
35041 (Makefile.am): Copy the contents of build-aux/link-warning.h into
35043 * MODULES.html.sh (Support for building libraries and executables): Add
35046 2007-02-17 Bruno Haible <bruno@clisp.org>
35048 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
35049 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
35050 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
35053 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
35054 Bruno Haible <bruno@clisp.org>
35056 * modules/tmpfile: New file.
35057 * lib/tmpfile.c: New file.
35058 * m4/tmpfile.m4: New file.
35059 * MODULES.html.sh (func_all_modules): New section "Input/output".
35061 2007-02-15 Bruno Haible <bruno@clisp.org>
35063 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
35064 (supports_delete_on_close): New function.
35065 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
35067 2007-02-14 Bruno Haible <bruno@clisp.org>
35069 * modules/mbspcasecmp-tests: New file.
35070 * tests/test-mbspcasecmp.sh: New file.
35071 * tests/test-mbspcasecmp.c: New file.
35073 New module mbspcasecmp.
35074 * modules/mbspcasecmp: New file.
35075 * lib/mbspcasecmp.c: New file.
35076 * lib/string_.h (strncasecmp): Change warning message.
35077 (mbspcasecmp): New declaration.
35078 * m4/mbspcasecmp.m4: New file.
35079 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35080 GNULIB_MBSPCASECMP.
35081 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
35082 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
35084 2007-02-14 Bruno Haible <bruno@clisp.org>
35086 * modules/mbsncasecmp-tests: New file.
35087 * tests/test-mbsncasecmp.sh: New file.
35088 * tests/test-mbsncasecmp.c: New file.
35090 New module mbsncasecmp.
35091 * modules/mbsncasecmp: New file.
35092 * lib/mbsncasecmp.c: New file.
35093 * lib/string_.h (mbsncasecmp): New declaration.
35094 * m4/mbsncasecmp.m4: New file.
35095 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35096 GNULIB_MBSNCASECMP.
35097 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
35098 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
35100 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
35102 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
35103 Verify that it doesn't overlap with our flags.
35104 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
35105 do not have the desired effect in multibyte locales; instead, use
35107 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
35108 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
35109 we don't require GNU fnmatch ourselves (if our users require it, they
35110 should do so explicitly).
35112 Fix regex code so it doesn't rely on strcasecmp.
35113 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
35114 Otherwise, include gnulib's langinfo.h.
35115 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
35116 undesirable behavior in non-C locales. Instead, rely on localecharset.
35117 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
35118 * modules/regex (FILES): Remove m4/codeset.m4.
35119 (Depends-on): Add localcharset. Remove strcase.
35121 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35123 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
35124 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
35126 2007-02-13 Bruno Haible <bruno@clisp.org>
35128 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
35129 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35131 2007-02-12 Bruno Haible <bruno@clisp.org>
35133 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
35134 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
35135 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
35136 time warning rather than a link error.
35138 2007-02-12 Bruno Haible <bruno@clisp.org>
35140 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
35141 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35142 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35144 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
35146 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
35149 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
35151 New module 'time', so that apps can include <time.h> as per
35152 POSIX and GNU instead of separate include files like time_r.h
35153 and timegm.h. This implementation tries out a simpler approach
35154 for replacing decls in standard include files (as compared to
35155 the string module), somewhat as an experiment.
35157 * config/srclist.txt: Comment out mktime.c for now.
35158 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
35159 since it doesn't apply any more. Use generic wording instead.
35160 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
35162 * lib/time_.h, m4/time_h.m4, modules/time: New files.
35163 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
35164 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
35165 Don't include <sys/types.h>; no longer needed since we assume C89.
35166 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
35167 * lib/strftime.c: Likewise.
35168 * lib/time_r.c: Likewise.
35169 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
35170 * lib/nanosleep.c: Include <time.h> first, to check interface.
35171 * lib/strptime.c: Likewise.
35172 * lib/time_r.c: Likewise.
35173 * lib/timegm.c: Likewise.
35174 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
35176 * lib/timegm.c: Don't include timegm.h; no longer needed.
35177 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
35178 time.h now handles any problems in that area.
35179 (struct timespec, nanosleep): Remove; time.h now arranges for these.
35180 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
35181 that time.h defines struct timespec.
35182 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
35183 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
35185 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
35186 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
35187 needed. Set REPLACE_LOCALTIME.
35188 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
35189 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
35190 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
35191 nanosleep; time_h.m4 now does that. Don't require
35192 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
35193 module handles this now.
35194 * modules/getdate (Depends-on): Remove timespec. Add time.
35195 * modules/nanosleep (Depends-on): Likewise.
35196 * modules/stat-time (Depends-on): Likewise.
35197 * modules/nanosleep (Include): Include time.h, not timespec.h.
35198 * modules/strptime (Files): Remove lib/strptime.h.
35199 (Depends-on): Add extensions, time.
35200 (Include): Include time.h, not strptime.h.
35201 * modules/time_r (Files): Remove lib/time_r.h.
35202 (Depends-on): Add time.
35203 (Include): Include time.h, not time_r.h.
35204 * modules/timegm: Likewise.
35205 * modules/timespec (Description): Now does timespec-related decls
35206 of our own, instead of struct timespec itself.
35207 (Depends-on): Add time; remove extensions.
35208 (Maintainer): Add self.
35209 * modules/utimecmp (Depends-on): Add time; remove timespec.
35210 * modules/utimens (Depends-on): Likewise.
35211 * modules/xnanosleep (Depends-on): Likewise.
35213 2007-02-11 Bruno Haible <bruno@clisp.org>
35215 * lib/c-strstr.c: Include allocsa.h.
35216 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
35217 * lib/c-strcasestr.c: Include allocsa.h.
35218 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
35219 * lib/strcasestr.c: Include allocsa.h.
35220 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
35221 * lib/mbsstr.c: Include allocsa.h.
35222 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
35223 allocsa/freesa instead of malloc/free.
35224 * lib/mbscasestr.c: Include allocsa.h.
35225 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
35226 allocsa/freesa instead of malloc/free.
35227 * modules/c-strstr (Depends-on): Add allocsa.
35228 * modules/c-strcasestr (Depends-on): Likewise.
35229 * modules/strcasestr (Depends-on): Likewise.
35230 * modules/mbsstr (Depends-on): Likewise.
35231 * modules/mbscasestr (Depends-on): Likewise.
35233 2007-02-11 Bruno Haible <bruno@clisp.org>
35235 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
35237 * modules/mbsspn-tests: New file.
35238 * tests/test-mbsspn.sh: New file.
35239 * tests/test-mbsspn.c: New file.
35241 2007-02-11 Bruno Haible <bruno@clisp.org>
35243 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
35245 * modules/mbspbrk-tests: New file.
35246 * tests/test-mbspbrk.sh: New file.
35247 * tests/test-mbspbrk.c: New file.
35249 2007-02-11 Bruno Haible <bruno@clisp.org>
35251 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
35254 * modules/mbscspn-tests: New file.
35255 * tests/test-mbscspn.sh: New file.
35256 * tests/test-mbscspn.c: New file.
35258 2007-02-11 Bruno Haible <bruno@clisp.org>
35260 * modules/mbscasecmp-tests: New file.
35261 * tests/test-mbscasecmp.sh: New file.
35262 * tests/test-mbscasecmp.c: New file.
35264 2007-02-11 Bruno Haible <bruno@clisp.org>
35266 Ensure O(n) worst-case complexity of mbscasestr.
35267 * lib/mbscasestr.c: Include stdbool.h.
35268 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
35270 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
35271 the bookkeeping indicates that it's worth it.
35272 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
35274 * modules/mbscasestr-tests: New file.
35275 * tests/test-mbscasestr1.c: New file.
35276 * tests/test-mbscasestr2.sh: New file.
35277 * tests/test-mbscasestr2.c: New file.
35278 * tests/test-mbscasestr3.sh: New file.
35279 * tests/test-mbscasestr3.c: New file.
35280 * tests/test-mbscasestr4.sh: New file.
35281 * tests/test-mbscasestr4.c: New file.
35282 * m4/locale-tr.m4: New file.
35284 2007-02-11 Bruno Haible <bruno@clisp.org>
35286 Ensure O(n) worst-case complexity of mbsstr.
35287 * lib/mbsstr.c: Include stdbool.h.
35288 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
35290 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
35291 bookkeeping indicates that it's worth it.
35292 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
35294 * modules/mbsstr-tests: New file.
35295 * tests/test-mbsstr1.c: New file.
35296 * tests/test-mbsstr2.sh: New file.
35297 * tests/test-mbsstr2.c: New file.
35298 * tests/test-mbsstr3.sh: New file.
35299 * tests/test-mbsstr3.c: New file.
35300 * m4/locale-fr.m4: New file.
35302 2007-02-11 Bruno Haible <bruno@clisp.org>
35304 * lib/mbsrchr.c (mbsrchr): Fix bug.
35306 * modules/mbsrchr-tests: New file.
35307 * tests/test-mbsrchr.sh: New file.
35308 * tests/test-mbsrchr.c: New file.
35310 2007-02-11 Bruno Haible <bruno@clisp.org>
35312 * lib/mbschr.c (mbschr): Fix bug.
35314 * modules/mbschr-tests: New file.
35315 * tests/test-mbschr.sh: New file.
35316 * tests/test-mbschr.c: New file.
35317 * m4/locale-zh.m4: New file.
35319 2007-02-11 Bruno Haible <bruno@clisp.org>
35321 Support for copying multibyte string iterators.
35322 * lib/mbiter.h: Include <string.h>.
35323 (mbiter_multi_copy): New function.
35324 (mbi_copy): New macro.
35325 * lib/mbuiter.h: Include <string.h>.
35326 (mbuiter_multi_copy): New function.
35327 (mbui_copy): New macro.
35329 2007-02-11 Bruno Haible <bruno@clisp.org>
35332 * modules/mbslen: New file.
35333 * lib/mbslen.c: New file.
35334 * lib/string_.h (mbslen): New declaration.
35335 * m4/mbslen.m4: New file.
35336 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35338 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
35339 * MODULES.html.sh (Internationalization functions): Add mbslen.
35341 2007-02-11 Bruno Haible <bruno@clisp.org>
35343 Ensure O(n) worst-case complexity of strcasestr substitute.
35344 * lib/strcasestr.c: Include stdbool.h.
35345 (knuth_morris_pratt): New function.
35346 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
35347 bookkeeping indicates that it's worth it.
35348 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
35350 * modules/strcasestr-tests: New file.
35351 * tests/test-strcasestr.c: New file.
35353 2007-02-11 Bruno Haible <bruno@clisp.org>
35355 Ensure O(n) worst-case complexity of c_strcasestr.
35356 * lib/c-strcasestr.c: Include stdbool.h, string.h.
35357 (knuth_morris_pratt): New function.
35358 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
35359 the bookkeeping indicates that it's worth it.
35360 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
35362 * modules/c-strcasestr-tests: New file.
35363 * tests/test-c-strcasestr.c: New file.
35365 2007-02-11 Bruno Haible <bruno@clisp.org>
35367 Ensure O(n) worst-case complexity of c_strstr.
35368 * lib/c-strstr.c: Include stdbool.h, string.h.
35369 (knuth_morris_pratt): New function.
35370 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
35371 bookkeeping indicates that it's worth it.
35372 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
35374 * lib/c-strstr.c: Complete rewrite for maintainability.
35376 * modules/c-strstr-tests: New file.
35377 * tests/test-c-strstr.c: New file.
35379 2007-02-11 Bruno Haible <bruno@clisp.org>
35381 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
35382 5.2.1 and earlier, whereby \055 was treated just like the range
35384 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
35386 2007-02-08 Bruno Haible <bruno@clisp.org>
35388 * modules/regex (Depends-on): Add stdbool.
35389 Reported by Dalibor Topic <robilad@kaffe.org>.
35391 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
35393 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
35394 Prefer returning from main to exiting from it.
35395 Remove unnecessary parens after sizeof.
35397 2007-02-05 Bruno Haible <bruno@clisp.org>
35400 * modules/mbssep: New file.
35401 * lib/mbssep.c: New file.
35402 * lib/string_.h (strsep): Add a conditional link warning.
35403 (mbssep): New declaration.
35404 * m4/mbssep.m4: New file.
35405 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35407 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
35408 * MODULES.html.sh (Internationalization functions): Add mbssep.
35410 2007-02-05 Bruno Haible <bruno@clisp.org>
35412 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
35413 Optimize search in case of 1 delimiter.
35415 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
35417 * lib/acl.h: Include sys/types.h before sys/acl.h.
35419 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
35421 Merge upstream fix for glibc bugzilla #3957:
35423 2007-02-05 Jakub Jelinek <jakub@redhat.com>
35425 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
35426 bit for RE_HAT_LISTS_NOT_NEWLINE.
35427 (build_charclass_op): Remove bogus comment.
35429 2007-02-05 Simon Josefsson <simon@josefsson.org>
35431 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
35433 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
35435 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
35436 * lib/memmem.c [!defined _LIBC]: Include config.h.
35438 2007-02-04 Bruno Haible <bruno@clisp.org>
35440 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
35443 2007-02-04 Bruno Haible <bruno@clisp.org>
35445 New module mbstok_r.
35446 * modules/mbstok_r: New file.
35447 * lib/mbstok_r.c: New file.
35448 * lib/string_.h (strtok_r): Change argument names to match the
35449 comments. Add a conditional link warning.
35450 (mbstok_r): New declaration.
35451 * m4/mbstok_r.m4: New file.
35452 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35454 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
35455 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
35457 2007-02-04 Bruno Haible <bruno@clisp.org>
35460 * modules/mbsspn: New file.
35461 * lib/mbsspn.c: New file.
35462 * lib/string_.h (strspn): Add a conditional link warning.
35463 (mbsspn): New declaration.
35464 * m4/mbsspn.m4: New file.
35465 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35467 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
35468 * MODULES.html.sh (Internationalization functions): Add mbsspn.
35470 2007-02-04 Bruno Haible <bruno@clisp.org>
35472 New module mbspbrk.
35473 * modules/mbspbrk: New file.
35474 * lib/mbspbrk.c: New file.
35475 * lib/string_.h (strpbrk): Add a conditional link warning.
35476 (mbspbrk): New declaration.
35477 * m4/mbspbrk.m4: New file.
35478 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35480 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
35481 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
35483 2007-02-04 Bruno Haible <bruno@clisp.org>
35485 New module mbscspn.
35486 * modules/mbscspn: New file.
35487 * lib/mbscspn.c: New file.
35488 * lib/string_.h (strcspn): Add a conditional link warning.
35489 (mbscspn): New declaration.
35490 * m4/mbscspn.m4: New file.
35491 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35493 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
35494 * MODULES.html.sh (Internationalization functions): Add mbscspn.
35496 2007-02-04 Bruno Haible <bruno@clisp.org>
35498 New module mbscasestr, reduced goal of strcasestr.
35499 * modules/mbscasestr: New file.
35500 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
35501 (mbscasestr): Renamed from strcasestr.
35502 * lib/strcasestr.c: Don't include mbuiter.h.
35503 (strcasestr): Remove support for multibyte locales.
35504 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
35505 Change the conditional link warning.
35506 (mbscasestr): New declaration.
35507 * m4/mbscasestr.m4: New file.
35508 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
35509 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
35510 REPLACE_STRCASESTR.
35511 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
35512 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35513 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
35514 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
35515 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
35516 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
35517 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
35518 (Depends-on): Remove mbuiter.
35519 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
35521 2007-02-04 Bruno Haible <bruno@clisp.org>
35523 Simplify handling of strncasecmp.
35524 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
35525 the conditional link warning.
35526 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35527 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
35528 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
35529 * modules/strcase (configure.ac): Don't invoke
35530 gl_STRING_MODULE_INDICATOR.
35531 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
35533 2007-02-04 Bruno Haible <bruno@clisp.org>
35535 New module mbscasecmp, reduced goal of strcasecmp.
35536 * modules/mbscasecmp: New file.
35537 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
35538 (mbscasecmp): Renamed from strcasecmp.
35539 * lib/strcasecmp.c: Don't include mbuiter.h.
35540 (strcasecmp): Remove support for multibyte locales.
35541 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
35542 Change the conditional link warning.
35543 (mbscasecmp): New declaration.
35544 * m4/mbscasecmp.m4: New file.
35545 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
35546 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
35547 REPLACE_STRCASECMP.
35548 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
35549 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35551 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
35552 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
35553 * modules/strcase (Files): Remove m4/mbrtowc.m4.
35554 (Depends-on): Remove mbuiter.
35555 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
35557 2007-02-04 Bruno Haible <bruno@clisp.org>
35559 New module mbsstr. Remove module strstr.
35560 * modules/mbsstr: New file.
35561 * modules/strstr: Remove file.
35562 * lib/mbsstr.c: Renamed from lib/strstr.c.
35563 (mbsstr): Renamed from strstr.
35564 * lib/string_.h (strstr): Remove declaration. Change the conditional
35566 (mbsstr): New declaration.
35567 * m4/mbsstr.m4: New file.
35568 * m4/strstr.m4: Remove file.
35569 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35571 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
35572 Don't initialize GNULIB_STRSTR.
35573 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
35574 substitute GNULIB_STRSTR and REPLACE_STRSTR.
35575 * MODULES.html.sh (Internationalization functions): Add mbsstr.
35576 (Support for systems lacking ANSI C 89): Remove strstr.
35578 2007-02-04 Bruno Haible <bruno@clisp.org>
35580 New module mbsrchr.
35581 * modules/mbsrchr: New file.
35582 * lib/mbsrchr.c: New file.
35583 * lib/string_.h (strrchr): Add a conditional link warning.
35584 (mbsrchr): New declaration.
35585 * m4/mbsrchr.m4: New file.
35586 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35588 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
35589 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
35591 2007-02-04 Bruno Haible <bruno@clisp.org>
35594 * modules/mbschr: New file.
35595 * lib/mbschr.c: New file.
35596 * lib/string_.h (strchr): Add a conditional link warning.
35597 (mbschr): New declaration.
35598 * m4/mbschr.m4: New file.
35599 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35601 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
35602 * MODULES.html.sh (Internationalization functions): Add mbschr.
35604 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
35606 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
35608 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
35610 2007-02-04 Bruno Haible <bruno@clisp.org>
35612 New module description section 'configure.ac-early'.
35613 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
35614 (func_get_autoconf_early_snippet): New function.
35615 (func_import, func_create_testdir): Use it. Remove special cases for
35616 modules 'extensions' and 'lock'.
35617 * modules/extensions (configure.ac-early): Require
35618 gl_USE_SYSTEM_EXTENSIONS.
35619 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
35621 2007-02-04 Bruno Haible <bruno@clisp.org>
35623 Make use of gcj-4.3's -fsource and -ftarget option.
35624 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
35625 and if so try the options -fsource and -ftarget.
35626 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
35627 source_version, ftarget_option, target_version arguments.
35628 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
35629 (is_envjavac_oldgcj_14_14_usable): Renamed from
35630 is_envjavac_gcj_14_14_usable.
35631 (is_envjavac_oldgcj_14_13_usable): Renamed from
35632 is_envjavac_gcj_14_13_usable.
35633 (is_gcj_present): Update.
35634 (is_gcj_43, is_gcj43_usable): New functions.
35635 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
35636 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
35637 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
35638 try the options -fsource and -ftarget.
35640 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
35642 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
35643 checking code. Set N = ceil (1.5 * N) rather than to a slightly
35646 2007-02-03 Jim Meyering <jim@meyering.net>
35648 Give tools a better chance to allocate space for very large buffers.
35649 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
35651 Make pwd and readlink work also when run with an unreadable parent dir
35652 on systems with openat support.
35653 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
35654 provided getcwd function, even when we have openat support.
35655 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
35657 2007-02-02 Bruno Haible <bruno@clisp.org>
35659 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
35660 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
35661 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
35662 portability problems if one of these functions is only used on specific
35664 Reported by Paul Eggert.
35666 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
35668 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
35669 is causing more trouble than it's curing.
35670 * lib/regex_internal.h (__mempcpy): Remove.
35671 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
35672 (and make the code a tad smaller to boot).
35673 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
35675 2007-02-02 Jim Meyering <jim@meyering.net>
35677 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
35678 section, not in the Makefile.am: one.
35680 2007-02-02 Eric Blake <ebb9@byu.net>
35682 * lib/strchrnul.c: Always include config.h first.
35684 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
35685 gnulib strstr is not necessary here.
35687 2007-02-02 Simon Josefsson <simon@josefsson.org>
35689 * m4/socklen.m4: Fix typo.
35691 2007-02-02 Eric Blake <ebb9@byu.net>
35693 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
35694 * modules/netinet_in (Makefile.am): Likewise.
35696 2007-02-01 Bruno Haible <bruno@clisp.org>
35698 * lib/string_.h (GL_LINK_WARNING): New macro.
35699 (strcasecmp, strstr, strcasestr): If provided by the system,
35700 conditionally define as a macro that leads to a warning instead of to
35702 (strncasecmp): Conditionally define as a macro that leads to a warning.
35704 2007-02-01 Karl Berry <karl@gnu.org>
35706 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
35708 2007-02-01 Bruno Haible <bruno@clisp.org>
35710 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
35713 2007-02-01 Eric Blake <ebb9@byu.net>
35715 * modules/regex (Depends-on): Revert dependence on mempcpy.
35716 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
35717 module's definition of mempcpy.
35718 Reported by Paul Eggert.
35720 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
35722 * lib/string_.h: If the gnulib module XYZ is not present, undefine
35723 the symbol XYZ before redefining it. This fixes a problem with
35724 programs that don't use XYZ, when compiled on systems that define
35725 XYZ to something else.
35727 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
35729 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
35730 occurs when "mkdir -m foo" creates a setgid directory that is (1)
35731 writeable to group or other and (2) is intended to have a special
35732 mode bit that is set or cleared. In such a case, the directory
35733 should be neither group- nor other-writeable until the special
35734 mode bits are right.
35736 2007-01-31 Eric Blake <ebb9@byu.net>
35738 * modules/mountlist (Depends-on): Add strstr.
35740 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
35742 * modules/string (Makefile.am): Remove redundant replacement.
35743 * modules/regex (Depends-on): Add mempcpy.
35745 2007-01-31 Bruno Haible <bruno@clisp.org>
35747 New module description field 'Link'.
35748 * gnulib-tool (func_usage): Document --extract-link-directive.
35749 (sed_extract_prog): Recognize 'Link' directive.
35750 (func_get_link_directive): New function.
35751 (func_import): Show summary of link directives.
35752 Handle --extract-link-directive option.
35753 * modules/acl (Link): New section.
35754 * modules/clock-time (Link): New section.
35755 * modules/euidaccess (Link): New section.
35756 * modules/gettext (Link): New section.
35757 * modules/iconv (Link): New section.
35758 * modules/lock (Link): New section.
35759 * modules/nanosleep (Link): New section.
35760 * modules/readline (Link): New section.
35762 2007-01-27 Bruno Haible <bruno@clisp.org>
35764 Enforce the use of gnulib modules for unportable <string.h> functions.
35765 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
35766 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
35767 (gl_HEADER_STRING_H_BODY): Require it.
35768 * lib/string_.h: If the gnulib module XYZ is not present, redefine
35769 the symbol XYZ to one that gives a link error.
35770 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
35771 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
35772 * modules/mempcpy (configure.ac): Likewise.
35773 * modules/memrchr (configure.ac): Likewise.
35774 * modules/stpcpy (configure.ac): Likewise.
35775 * modules/stpncpy (configure.ac): Likewise.
35776 * modules/strcase (configure.ac): Likewise.
35777 * modules/strcasestr (configure.ac): Likewise.
35778 * modules/strchrnul (configure.ac): Likewise.
35779 * modules/strdup (configure.ac): Likewise.
35780 * modules/strndup (configure.ac): Likewise.
35781 * modules/strnlen (configure.ac): Likewise.
35782 * modules/strpbrk (configure.ac): Likewise.
35783 * modules/strsep (configure.ac): Likewise.
35784 * modules/strstr (configure.ac): Likewise.
35785 * modules/strtok_r (configure.ac): Likewise.
35787 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
35789 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
35791 2007-01-30 Jim Meyering <jim@meyering.net>
35793 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
35795 2007-01-29 Bruno Haible <bruno@clisp.org>
35797 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
35798 * lib/execute.c: Likewise.
35799 * lib/pipe.c: Likewise.
35800 * lib/printf-args.h: Likewise.
35801 * lib/printf-args.c: Likewise.
35802 * lib/printf-parse.c: Likewise.
35803 * lib/vasnprintf.c: Likewise.
35805 2007-01-29 Eric Blake <ebb9@byu.net>
35807 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
35810 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
35812 * lib/strptime.h (strptime): Use 'restrict' for args where
35813 POSIX requires this.
35814 * lib/strptime.c (strptime): Likewise.
35815 Change license notice from LGPL to GPL, since gnulib-tool will
35816 change this as needed.
35817 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
35819 Include "strptime.h" first, to check interface.
35820 Do not #undef _LIBC and _NL_CURRENT.
35821 Do not include <stdlib.h>; no longer needed.
35822 Include "time_r.h" and declare ptime_locale_status
35823 only if _LIBC is not defined.
35824 (__P): Remove unused macro.
35825 (match_string): Bring back glibc version, but use it only if _LIBC
35827 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
35828 Remove unnecessary assertion and abort() call.
35829 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
35830 * m4/strptime.m4: Fix serial number comment.
35831 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
35832 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
35833 (Depends-on): Add time_r.
35835 2007-01-29 Bruno Haible <bruno@clisp.org>
35837 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35839 * modules/strptime (Depends-on): Add stdbool.
35840 * lib/strptime.h: Include <time.h> always. Add comments.
35842 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
35844 * modules/strptime: New file.
35845 * lib/strptime.h: New file.
35846 * lib/strptime.c: New file.
35847 * m4/strptime.m4: New file.
35849 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
35851 * MODULES.html.sh: New module mpsort.
35852 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
35854 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
35855 a circularity problem with HP-UX ia64 reported by Bob Proulx in
35856 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
35858 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
35860 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
35862 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
35863 the parameter matches the prototype.
35865 2007-01-28 Jim Meyering <jim@meyering.net>
35867 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
35868 sys/time.h here, reverting that part of the previous patch:
35869 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
35871 2007-01-28 Bruno Haible <bruno@clisp.org>
35873 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
35874 value of $(SYS_TIME_H).
35875 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
35876 remove it conditionally, too. [added by Jim Meyering]
35877 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
35878 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
35879 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
35880 GETTIMEOFDAY_REPLACEMENT to 1.
35882 2007-01-28 Bruno Haible <bruno@clisp.org>
35884 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
35885 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
35886 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
35887 Set UNISTD_H instead of UNISTD_H2.
35888 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
35890 2007-01-28 Bruno Haible <bruno@clisp.org>
35892 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
35893 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
35895 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35897 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
35898 (func_create_testdir): Ensure C locale for `grep' and `tr'
35900 (func_create_megatestdir): Avoid one `grep'. Fix bug in
35901 ACLOCAL_AMFLAGS parsing state machine.
35903 2007-01-27 Bruno Haible <bruno@clisp.org>
35905 * modules/unistr/base: Update.
35907 2007-01-27 Bruno Haible <bruno@clisp.org>
35909 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
35910 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
35911 * modules/unistr/u32-mbtouc-unsafe: Renamed from
35912 modules/unistr/u32-mbtouc.
35913 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
35914 * lib/unistr.h: Update.
35915 * lib/linebreak.c: Update.
35916 * modules/unistr/u32-mbtouc: Renamed from
35917 modules/unistr/u32-mbtouc-safe.
35918 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
35919 * lib/unistr.h: Update.
35920 * lib/unistr/u32-to-u8.c: Update.
35921 * lib/unistr/u32-to-u16.c: Update.
35923 2007-01-27 Bruno Haible <bruno@clisp.org>
35925 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
35926 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
35927 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
35928 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
35929 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
35930 * modules/unistr/u16-mbtouc-unsafe: Renamed from
35931 modules/unistr/u16-mbtouc.
35932 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
35933 * lib/unistr.h: Update.
35934 * lib/linebreak.c: Update.
35935 * modules/linebreak: Update.
35936 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
35937 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
35938 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
35939 * modules/unistr/u16-mbtouc: Renamed from
35940 modules/unistr/u16-mbtouc-safe.
35941 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
35942 * lib/unistr.h: Update.
35943 * lib/unistr/u16-to-u8.c: Update.
35944 * modules/unistr/u16-to-u8: Update.
35945 * lib/unistr/u16-to-u32.c: Update.
35946 * modules/unistr/u16-to-u32: Update.
35948 2007-01-27 Bruno Haible <bruno@clisp.org>
35950 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
35951 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
35952 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
35953 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
35954 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
35955 * modules/unistr/u8-mbtouc-unsafe: Renamed from
35956 modules/unistr/u8-mbtouc.
35957 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
35958 * lib/unistr.h: Update.
35959 * lib/striconveh.c: Update.
35960 * modules/striconveh: Update.
35961 * lib/linebreak.c: Update.
35962 * modules/linebreak: Update.
35963 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
35964 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
35965 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
35966 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
35967 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
35968 * lib/unistr.h: Update.
35969 * lib/striconveh.c: Update.
35970 * modules/striconveh: Update.
35971 * lib/unistr/u8-to-u16.c: Update.
35972 * modules/unistr/u8-to-u16: Update.
35973 * lib/unistr/u8-to-u32.c: Update.
35974 * modules/unistr/u8-to-u32: Update.
35976 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35979 * lib/argz.c: Do not include strings.h nor memory.h, include
35980 string.h unconditionally. Patch by Simon Josefsson.
35982 2007-01-27 Bruno Haible <bruno@clisp.org>
35984 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
35985 from gl_HEADER_STRING_H_BODY.
35986 (gl_HEADER_STRING_H_BODY): Require it.
35987 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
35988 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
35989 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
35990 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
35991 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35992 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
35993 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35994 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
35995 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
35996 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35997 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
35998 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
35999 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
36000 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
36001 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
36003 2007-01-27 Bruno Haible <bruno@clisp.org>
36005 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
36006 check_PROGRAMS into noinst_PROGRAMS.
36007 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
36008 check_PROGRAMS in this case.
36009 (func_import): Set for_test to false.
36010 (func_create_testdir): Set for_test to true.
36012 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
36013 Bruno Haible <bruno@clisp.org>
36015 * modules/strcasestr (Files): Remove lib/strcasestr.h.
36016 (Depends-on): Add string.
36017 (Includes): Use <string.h> instead of strcasestr.h.
36018 * modules/string (Makefile.am): Also substitute the value of
36019 REPLACE_STRCASESTR.
36020 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
36021 assume strcasestr is declared in <string.h> not <strings.h>. Also
36022 set REPLACE_STRCASESTR.
36023 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
36024 REPLACE_STRCASESTR.
36025 * lib/strcasestr.h: Remove file.
36026 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
36027 * lib/string_.h (strcasestr): New declaration.
36029 2007-01-27 Bruno Haible <bruno@clisp.org>
36031 * lib/string_.h: Use 'extern'.
36033 2007-01-27 Jim Meyering <jim@meyering.net>
36035 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
36036 of set-but-not-used local, "q".
36038 * lib/mempcpy.c: Include <config.h> before <string.h>.
36039 This fixes a compilation error on HP-UX, due to the system's
36040 "restrict"-using mempcpy prototype.
36042 2007-01-26 Bruno Haible <bruno@clisp.org>
36044 Small optimization.
36045 * lib/javacomp.c: Include c-strstr.h.
36046 (is_envjavac_gcj): Use c_strstr instead of strstr.
36047 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
36049 2007-01-26 Bruno Haible <bruno@clisp.org>
36051 * MODULES.html.sh (Unicode string functions): Add the new modules.
36053 * modules/uniconv/u32-strconv-to-locale: New file.
36054 * lib/uniconv/u32-strconv-to-locale.c: New file.
36056 * modules/uniconv/u16-strconv-to-locale: New file.
36057 * lib/uniconv/u16-strconv-to-locale.c: New file.
36059 * modules/uniconv/u8-strconv-to-locale: New file.
36060 * lib/uniconv/u8-strconv-to-locale.c: New file.
36062 * modules/uniconv/u32-strconv-from-locale: New file.
36063 * lib/uniconv/u32-strconv-from-locale.c: New file.
36065 * modules/uniconv/u16-strconv-from-locale: New file.
36066 * lib/uniconv/u16-strconv-from-locale.c: New file.
36068 * modules/uniconv/u8-strconv-from-locale: New file.
36069 * lib/uniconv/u8-strconv-from-locale.c: New file.
36071 * modules/uniconv/u32-strconv-to-enc: New file.
36072 * lib/uniconv/u32-strconv-to-enc.c: New file.
36073 * modules/uniconv/u32-strconv-to-enc-tests: New file.
36074 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
36076 * modules/uniconv/u16-strconv-to-enc: New file.
36077 * lib/uniconv/u16-strconv-to-enc.c: New file.
36078 * lib/uniconv/u-strconv-to-enc.h: New file.
36079 * modules/uniconv/u16-strconv-to-enc-tests: New file.
36080 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
36082 * modules/uniconv/u8-strconv-to-enc: New file.
36083 * lib/uniconv/u8-strconv-to-enc.c: New file.
36084 * modules/uniconv/u8-strconv-to-enc-tests: New file.
36085 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
36087 * modules/uniconv/u32-strconv-from-enc: New file.
36088 * lib/uniconv/u32-strconv-from-enc.c: New file.
36089 * modules/uniconv/u32-strconv-from-enc-tests: New file.
36090 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
36092 * modules/uniconv/u16-strconv-from-enc: New file.
36093 * lib/uniconv/u16-strconv-from-enc.c: New file.
36094 * modules/uniconv/u16-strconv-from-enc-tests: New file.
36095 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
36097 * modules/uniconv/u8-strconv-from-enc: New file.
36098 * lib/uniconv/u8-strconv-from-enc.c: New file.
36099 * lib/uniconv/u-strconv-from-enc.h: New file.
36100 * modules/uniconv/u8-strconv-from-enc-tests: New file.
36101 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
36103 * modules/uniconv/u32-conv-from-enc: New file.
36104 * lib/uniconv/u32-conv-from-enc.c: New file.
36105 * modules/uniconv/u32-conv-from-enc-tests: New file.
36106 * tests/uniconv/test-u32-conv-from-enc.c: New file.
36108 * modules/uniconv/u16-conv-from-enc: New file.
36109 * lib/uniconv/u16-conv-from-enc.c: New file.
36110 * lib/uniconv/u-conv-from-enc.h: New file.
36111 * modules/uniconv/u16-conv-from-enc-tests: New file.
36112 * tests/uniconv/test-u16-conv-from-enc.c: New file.
36114 * modules/uniconv/u8-conv-from-enc: New file.
36115 * lib/uniconv/u8-conv-from-enc.c: New file.
36116 * modules/uniconv/u8-conv-from-enc-tests: New file.
36117 * tests/uniconv/test-u8-conv-from-enc.c: New file.
36119 * modules/uniconv/base: New file.
36120 * lib/uniconv.h: New file.
36122 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
36124 * doc/gnulib-tool.texi (Initial import): Update to match current
36125 behavior with strdup module.
36126 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
36127 * lib/memmem.h: Remove; all uses removed. This is now done
36129 * lib/mempcpy.h: Likewise.
36130 * lib/memrchr.h: Likewise.
36131 * lib/stpcpy.h: Likewise.
36132 * lib/stpncpy.h: Likewise.
36133 * lib/strcase.h: Likewise.
36134 * lib/strchrnul.h: Likewise.
36135 * lib/strdup.h: Likewise.
36136 * lib/strndup.h: Likewise.
36137 * lib/strnlen.h: Likewise.
36138 * lib/strpbrk.h: Likewise.
36139 * lib/strsep.h: Likewise.
36140 * lib/strstr.h: Likewise.
36141 * lib/strtok_r.h: Likewise.
36142 * lib/string_.h: New file.
36143 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
36144 Rely on <string.h> instead.
36145 * lib/canon-host.c: Likewise.
36146 * lib/chdir-long.c: Likewise.
36147 * lib/concatpath.c: Likewise.
36148 * lib/exclude.c: Likewise.
36149 * lib/fchdir.c: Likewise.
36150 * lib/getaddrinfo.c: Likewise.
36151 * lib/getcwd.c: Likewise.
36152 * lib/getsubopt.c: Likewise.
36153 * lib/glob.c: Likewise.
36154 * lib/hard-locale.c: Likewise.
36155 * lib/iconvme.c: Likewise.
36156 * lib/javacomp.c: Likewise.
36157 * lib/mempcpy.c: Likewise.
36158 * lib/memrchr.c: Likewise.
36159 * lib/regex_internal.h: Likewise.
36160 * lib/stpncpy.c: Likewise.
36161 * lib/strcasecmp.c: Likewise.
36162 * lib/strchrnul.c: Likewise.
36163 * lib/strdup.c: Likewise.
36164 * lib/striconv.c: Likewise.
36165 * lib/striconveh.c: Likewise.
36166 * lib/striconveha.c: Likewise.
36167 * lib/strncasecmp.c: Likewise.
36168 * lib/strndup.c: Likewise.
36169 * lib/strnlen.c: Likewise.
36170 * lib/strsep.c: Likewise.
36171 * lib/strstr.c: Likewise.
36172 * lib/strtok_r.c: Likewise.
36173 * lib/userspec.c: Likewise.
36174 * lib/w32spawn.h: Likewise.
36175 * lib/xstrndup.c: Likewise.
36176 * lib/mountlist.c (strstr): Remove decl.
36177 * m4/string_h.m4: New file.
36178 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
36179 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
36180 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
36181 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
36182 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
36183 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
36184 Set REPLACE_STRCASECMP if necessary.
36185 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
36186 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
36187 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
36188 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
36189 HAVE_DECL_STRDUP if necessary.
36190 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
36191 since gl_FUNC_STRNDUP does that now.
36192 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
36193 Check for decl here...
36194 (gl_PREREQ_STRNLEN): ... not here.
36195 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
36196 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
36197 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
36198 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
36200 * modules/string: New file.
36201 * modules/memmem (Files): Remove special-purpose include file.
36202 (Depends-on): Add string.
36203 (Include): Include <string.h>, not the removed file.
36204 * modules/mempcpy: Likewise.
36205 * modules/memrchr: Likewise.
36206 * modules/stpcpy: Likewise.
36207 * modules/stpncpy: Likewise.
36208 * modules/strcase: Likewise.
36209 * modules/strchrnul: Likewise.
36210 * modules/strdup: Likewise.
36211 * modules/strndup: Likewise.
36212 * modules/strnlen: Likewise.
36213 * modules/strpbrk: Likewise.
36214 * modules/strsep: Likewise.
36215 * modules/strstr: Likewise.
36216 * modules/strtok_r: Likewise.
36217 * tests/test-dirname.c: Don't include "strdup.h", since
36218 <string.h> now suffices.
36219 * tests/test-memmem.c: Don't include "memmem.h", since
36220 <string.h> now suffices.
36222 2007-01-25 Bruno Haible <bruno@clisp.org>
36224 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
36227 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
36228 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
36229 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
36230 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
36232 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
36233 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
36234 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
36235 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
36236 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
36237 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
36239 2007-01-24 Bruno Haible <bruno@clisp.org>
36241 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
36242 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
36243 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
36244 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
36246 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
36247 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
36248 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
36249 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
36250 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
36251 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
36253 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
36255 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
36256 Reported by Ralf Wildenhues.
36258 2007-01-24 Bruno Haible <bruno@clisp.org>
36260 Drop AC_REQUIRE calls that are redundant with the module dependencies.
36261 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
36263 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
36264 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
36265 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
36267 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
36269 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
36270 Don't use 'exit'; just return from 'main'.
36271 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
36273 * lib/fnmatch_.h: Readjust white space and comments to match
36274 glibc, to avoid spurious diffs.
36276 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
36278 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
36279 2004-12-01 change by Jakub Jelinek, since this code won't compile
36280 if !LIBC. Problem reported by Bob Proulx.
36282 2007-01-23 Bruno Haible <bruno@clisp.org>
36284 * lib/striconveh.c: Include c-strcaseeq.h.
36285 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
36286 * modules/striconveh (Depends-on): Add c-strcaseeq.
36288 2007-01-23 Bruno Haible <bruno@clisp.org>
36290 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
36292 * modules/c-strcaseeq: New file.
36293 * lib/c-strcaseeq.h: New file.
36295 * modules/streq: New file.
36296 * lib/streq.h: New file.
36298 2007-01-23 Bruno Haible <bruno@clisp.org>
36300 * modules/striconveha-tests: New file.
36301 * tests/test-striconveha.c: New file.
36303 * lib/striconveha.h: Include <stdbool.h>.
36304 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
36305 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
36306 (mem_iconveha_notranslit): Renamed from mem_iconveha.
36307 (mem_iconveha): New function.
36308 (str_iconveha_notranslit): Renamed from str_iconveha.
36309 (str_iconveha): New function.
36310 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
36313 2007-01-23 Bruno Haible <bruno@clisp.org>
36315 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
36316 encodings without forgiving before trying any encoding with handler.
36317 (str_iconveha): Try all encodings without forgiving before trying any
36318 encoding with handler.
36320 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
36322 Import the following changes from libc.
36324 2005-10-14 Ulrich Drepper <drepper@redhat.com>
36326 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
36328 2004-12-01 Jakub Jelinek <jakub@redhat.com>
36330 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
36331 normal_bracket label.
36333 2004-09-01 Jakub Jelinek <jakub@redhat.com>
36336 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
36337 to normal_bracket after fetching the next character.
36339 2007-01-22 Bruno Haible <bruno@clisp.org>
36341 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
36343 * lib/striconveh.c (iconv_carefully_1): New function.
36344 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
36346 (str_cd_iconveh): Update.
36347 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
36348 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
36349 * tests/test-striconveh.c (MAGIC): New macro.
36350 (new_offsets): New function.
36351 (main): Test call with and without offsets.
36353 2007-01-22 Bruno Haible <bruno@clisp.org>
36355 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
36356 * modules/sys_select (Makefile.am): Likewise.
36357 * modules/sys_socket (Makefile.am): Likewise.
36358 * modules/sys_time (Makefile.am): Likewise.
36360 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
36362 * modules/gettimeofday (License): Change from GPL to LGPL, since
36363 gettimeofday is a library function.
36365 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
36367 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
36369 2007-01-21 Bruno Haible <bruno@clisp.org>
36371 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
36373 2007-01-21 Bruno Haible <bruno@clisp.org>
36375 * modules/striconveha: New file.
36376 * lib/striconveha.h: New file.
36377 * lib/striconveha.c: New file.
36378 * MODULES.html.sh (Internationalization functions): Add striconveha.
36379 * lib/striconv.c (str_iconv): Optimize the case of an empty input
36381 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
36383 2007-01-21 Bruno Haible <bruno@clisp.org>
36385 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
36386 * lib/striconveh.c (str_iconveh): Likewise.
36388 2007-01-21 Bruno Haible <bruno@clisp.org>
36390 * lib/striconveh.h (mem_iconveh): New declaration.
36391 * lib/striconveh.c (mem_iconveh): New function.
36392 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
36394 2007-01-21 Bruno Haible <bruno@clisp.org>
36396 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
36398 * lib/striconveh.h (mem_cd_iconveh): Change specification.
36399 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
36400 original result buffer.
36401 (str_cd_iconveh): Update.
36402 * tests/test-striconveh.c (main): Update.
36404 * lib/striconv.h (mem_cd_iconv): Change specification.
36405 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
36407 (str_cd_iconv): Update.
36408 * tests/test-striconv.c (main): Update.
36410 2007-01-21 Bruno Haible <bruno@clisp.org>
36412 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
36414 2007-01-20 Jim Meyering <jim@meyering.net>
36416 * lib/userspec.c (parse_with_separator): If a user or group string
36417 starts with "+", skip the corresponding name-to-ID look-up, since
36418 such a look-up must fail: user and group names may not include "+".
36420 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
36422 * lib/poll.c: Include sys/time.h and time.h unconditionally,
36423 since we now assume the sys_time module.
36424 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
36425 check for sys/time.h; no longer needed.
36426 * modules/poll (Depends-on): Depend on sys_time.
36428 2007-01-18 Bruno Haible <bruno@clisp.org>
36430 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
36431 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
36433 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
36436 * tests/test-gettimeofday.c: Include <time.h>.
36437 (dummy): Remove variable.
36439 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
36440 gl_HEADER_SYS_TIME_H.
36441 (gl_HEADER_SYS_TIME_H): New macro.
36443 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
36444 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36445 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
36446 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
36447 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36448 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
36449 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
36450 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36451 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
36452 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
36453 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36455 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
36456 last change; it caused a compilation error when cross-compiling to
36459 2007-01-18 Jim Meyering <jim@meyering.net>
36461 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
36462 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
36463 than the race-prone "test -d sys || mkdir sys".
36464 (configure.ac): Use AC_PROG_MKDIR_P.
36465 * modules/sys_select: Likewise.
36466 * modules/sys_socket: Likewise.
36467 * modules/sys_time: Likewise.
36469 2007-01-18 Eric Blake <ebb9@byu.net>
36471 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
36472 replace gettimeofday.
36473 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
36474 name, to avoid infinite recursion.
36476 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
36478 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
36480 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
36481 assume timespec.h defines struct timeval.
36482 * lib/settime.c: Likewise.
36483 * lib/utimens.c: Likewise.
36484 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
36485 since we now assume the gettimeofday module.
36486 * lib/tempname.c (__gen_tempname): Likewise.
36487 * lib/gettimeofday.h: Remove.
36488 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
36489 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
36490 Include <time.h>, for 'time()'.
36491 (localtime_buffer_addr): Also use this workaround if
36492 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
36493 to simplify the uses. All uses changed.
36494 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
36495 that #undef is inside {}, and 'const' follows type name consistently.
36496 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
36497 (gettimeofday): Do not use the maximum possible value for
36498 tv->tv_usec, since that might break usages other than ls.c.
36499 Instead, we'll leave ls.c alone. This undoes today's patch
36500 by Bruno. Add a compile-time warning for 1s-clock resolution;
36501 we've never observed the problem but might as well keep the
36503 * lib/nanosleep.c: Include timespec.h first, for interface check.
36504 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
36505 now assume the sys_time module.
36506 * lib/tempname.c: Likewise.
36507 * lib/timespec.h: Likewise.
36508 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
36510 * lib/strftime.c: Likewise.
36511 * lib/timespec.h: Likewise.
36512 * lib/posixtm.c: Include posixtm.h first, for interface check.
36513 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
36514 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
36515 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
36516 * lib/sys_time_.h: New file.
36517 * lib/timespec.h (struct timespec): Use long int, not long.
36518 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
36519 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
36520 Remove obsolescent call to AC_HEADER_TIME.
36521 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
36522 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36523 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
36524 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
36526 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
36527 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
36528 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
36529 into the sys_time module. Check for gettimeofday just once.
36530 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
36531 for gettimeofday signature to just check the signature. Merely
36532 compile it, since linking doesn't test signature. Improve test for
36533 whether gettimeofday.o is actually needed.
36534 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
36535 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
36536 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
36537 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36538 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
36539 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
36540 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
36541 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
36542 than worrying about sys/time.h.
36543 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36544 Don't bother worrying about TIME_WITH_SYS_TIME.
36545 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36546 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
36547 * m4/sys_time_h.m4: New file.
36548 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
36549 Don't include sys/time.h. Return from main rather than exiting.
36550 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
36552 * modules/gethrxtime (Depends-on): Add sys_time.
36553 * modules/gettime (Depends-on): Likewise.
36554 * modules/gettimeofday (Depends-on): Likewise.
36555 * modules/nanosleep (Depends-on): Likewise.
36556 * modules/settime (Depends-on): Likewise.
36557 * modules/tempname (Depends-on): Likewise.
36558 * modules/utimens (Depends-on): Likewise.
36559 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
36560 (Include:) Change back to <sys/time.h>.
36561 (Maintainer:) Add self.
36562 * modules/sys_time: New file.
36563 * modules/tempname (Depends-on): Add gettimeofday.
36564 * tests/test-gettimeofday.c: Include <sys/time.h>
36565 rather than gettimeofday.h.
36567 2007-01-17 Bruno Haible <bruno@clisp.org>
36569 * gnulib-tool (func_get_license): Revert last patch. Instead, let
36570 the license default to GPL.
36571 (func_create_testdir): Don't complain if a module is LGPL and its
36572 tests module depends on GPLed modules.
36574 2007-01-17 Bruno Haible <bruno@clisp.org>
36576 * lib/gettimeofday.c (gettimeofday): Add code for the case
36577 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
36578 maximum possible value for tv->tv_usec, rather than the minimum one.
36580 2005-10-08 Martin Lambers <marlam@marlam.de>
36581 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
36582 2007-01-16 Bruno Haible <bruno@clisp.org>
36584 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
36585 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
36586 gl_FUNC_GETTIMEOFDAY.
36587 (Include): Add gettimeofday.h.
36588 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
36589 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
36590 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
36591 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
36592 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
36593 * lib/gettimeofday.h: New file.
36594 * lib/gettimeofday.c: Include <sys/timeb.h>.
36595 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
36596 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36597 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
36598 fall back on time().
36600 * tests/test-gettimeofday.c: New file.
36601 * modules/gettimeofday-tests: New file.
36603 2007-01-16 Eric Blake <ebb9@byu.net>
36605 * modules/fnmatch (Depends-on): Depend on wchar.
36606 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
36607 * m4/fnmatch.m4: Likewise.
36608 * modules/mbchar (Makefile.am): Assume <wchar.h>.
36609 * m4/mbchar.m4: Likewise.
36610 * modules/mbswidth (Depends-on): Depend on wchar.
36611 * lib/mbswidth.c: Assume <wchar.h>.
36612 * m4/mbswidth.m4: Likewise.
36613 * modules/quotearg (Depends-on): Depend on wchar.
36614 * lib/quotearg.c: Assume <wchar.h>.
36615 * m4/quotearg.m4: Likewise.
36616 * modules/regex (Depends-on): Depend on wchar.
36617 * lib/regex_internal.h: Assume <wchar.h>.
36618 * m4/regex.m4: Likewise.
36619 * modules/stdint (Depends-on): Depend on wchar.
36620 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
36621 * m4/stdint.m4: Likewise.
36622 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
36623 * modules/strftime (Depends-on): Depend on wchar.
36624 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
36625 * modules/strtol (Depends-on): Depend on wchar.
36626 * lib/strtol.c: Assume <wchar.h>.
36627 * modules/wcwidth (Depends-on): Depend on wchar.
36628 * lib/wcwidth.h: Assume <wchar.h>.
36629 * m4/wcwidth.m4: Likewise.
36631 2007-01-16 Bruno Haible <bruno@clisp.org>
36633 * modules/csharpexec-script: New, created from...
36634 * modules/csharpexec: ... this.
36636 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
36638 * modules/javaexec-script: New, created from...
36639 * modules/javaexec: ... this.
36641 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
36643 * modules/poll (Dependencies): Add sys_select.
36645 2007-01-15 Jim Meyering <jim@meyering.net>
36647 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
36648 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
36649 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
36650 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
36652 2007-01-15 Bruno Haible <bruno@clisp.org>
36654 * modules/striconveh: New file.
36655 * lib/striconveh.h: New file.
36656 * lib/striconveh.c: New file.
36657 * MODULES.html.sh (Internationalization functions): Add striconveh.
36659 * modules/striconveh-tests: New file.
36660 * tests/test-striconveh.c: New file.
36662 2007-01-15 Bruno Haible <bruno@clisp.org>
36664 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
36665 not from GNU libiconv or GNU libc.
36667 2007-01-15 Bruno Haible <bruno@clisp.org>
36669 * doc/gnulib-intro.texi (Copyright): Explain the different license
36670 terms for module descriptions, autoconf macros, tests, documentation.
36672 2007-01-14 Bruno Haible <bruno@clisp.org>
36674 * modules/striconv-tests: New file.
36675 * tests/test-striconv.c: New file.
36677 2007-01-14 Bruno Haible <bruno@clisp.org>
36679 * modules/iconv-tests: New file.
36680 * tests/test-iconv.c: New file.
36682 2007-01-14 Bruno Haible <bruno@clisp.org>
36684 * gnulib-tool (func_get_license): For test modules, use the license of
36687 2007-01-14 Bruno Haible <bruno@clisp.org>
36689 * modules/iconv (Include): Clarify that <iconv.h> can only be included
36690 if iconv is found to exist.
36692 2007-01-14 Bruno Haible <bruno@clisp.org>
36694 * modules/c-ctype-tests: New file.
36695 * tests/test-c-ctype.c: New file.
36697 2007-01-14 Bruno Haible <bruno@clisp.org>
36699 * modules/binary-io-tests: New file.
36700 * tests/test-binary-io.sh: New file.
36701 * tests/test-binary-io.c: New file.
36703 2007-01-14 Bruno Haible <bruno@clisp.org>
36705 * modules/array-oset-tests: New file.
36706 * tests/test-array_oset.c: New file.
36708 2007-01-14 Bruno Haible <bruno@clisp.org>
36710 * modules/array-list-tests: New file.
36711 * tests/test-array_list.c: New file.
36713 2007-01-14 Bruno Haible <bruno@clisp.org>
36715 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
36717 Reported by Simon Josefsson in
36718 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
36720 2007-01-14 Bruno Haible <bruno@clisp.org>
36722 * modules/allocsa-tests: New file.
36723 * tests/test-allocsa.c: New file.
36725 2007-01-14 Bruno Haible <bruno@clisp.org>
36727 * modules/fchdir (Depends-on): Add absolute-header.
36728 * modules/unistd (Depends-on): Likewise.
36730 2006-12-30 Bruno Haible <bruno@clisp.org>
36732 * modules/fchdir: New file.
36733 * modules/unistd (Files): Add lib/unistd_.h.
36734 (Makefile.am): Generate unistd.h from unistd_.h.
36735 * lib/fchdir.c: New file.
36736 * lib/dirent_.h: New file.
36737 * lib/unistd_.h: New file.
36738 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
36739 * m4/fchdir.m4: New file.
36740 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
36741 (gl_HEADER_UNISTD): Invoke it.
36742 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
36744 * lib/backupfile.c (opendir, closedir): Undefine.
36745 * lib/chown.c (open, close): Undefine.
36746 * lib/clean-temp.c (open, close): Undefine.
36747 * lib/copy-file.c (open, close): Undefine.
36748 * lib/execute.c (open, close): Undefine.
36749 * lib/fsusage.c (open, close): Undefine.
36750 * lib/gc-gnulib.c (open, close): Undefine.
36751 * lib/getcwd.c (opendir, closedir): Undefine.
36752 * lib/glob.c (opendir, closedir): Undefine.
36753 * lib/javacomp.c (open, close): Undefine.
36754 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
36755 * lib/openat-proc.c (open, close): Undefine.
36756 * lib/pagealign_alloc.c (open, close): Undefine.
36757 * lib/pipe.c (open, close): Undefine.
36758 * lib/progreloc.c (open, close): Undefine.
36759 * lib/savedir.c (opendir, closedir): Undefine.
36760 * lib/utime.c (open, close): Undefine.
36761 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
36763 2007-01-10 Bruno Haible <bruno@clisp.org>
36765 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
36767 2007-01-12 Eric Blake <ebb9@byu.net>
36769 Provide a robust <wchar.h>. Further simplifications are now
36770 possible in other modules, but not included here.
36771 * modules/wchar: New module.
36772 * m4/wchar.m4: New file.
36773 * lib/wchar_.h: Likewise.
36774 * modules/mbchar (Depends-on): Depend on wchar, as the first use
36776 * MODULES.html.sh (Extended multibyte and wide character utilities):
36779 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
36781 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
36782 to a reasonable default for memory allocation.
36783 (xreadlink): Don't allocate a huge buffer, to work around a buggy
36784 file system that reports garbage st_size values for symlinks.
36785 Problem reported by Liyang Hu.
36787 2007-01-11 Simon Josefsson <simon@josefsson.org>
36789 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
36790 Emacs .#* auto-save files).
36792 2007-01-11 Bruno Haible <bruno@clisp.org>
36794 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
36797 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
36799 Use @...@ consistently in lib/wctype_.h.
36800 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
36801 on it being set to 1 or 0.
36802 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
36803 go back to AC_SUBSTing it.
36804 * modules/wctype (Makefile.am): Undo previous change.
36806 2007-01-10 Eric Blake <ebb9@byu.net>
36808 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
36809 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
36810 * modules/wctype (Makefile.am): Likewise.
36811 Reported by Chris McGuire.
36813 2007-01-10 Jim Meyering <jim@meyering.net>
36815 fts.c: a small readability/maintainability improvement
36816 * lib/fts.c (fts_read): Make this code slightly more readable and
36817 maintainable by hoisting the "sp->fts_cur = p" assignments to
36818 immediately follow the statements that set P. Derived from
36819 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
36821 2007-01-10 Eric Blake <ebb9@byu.net>
36823 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
36824 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
36825 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
36826 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
36827 Reported by Chris McGuire.
36829 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36831 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
36834 2007-01-09 Bruno Haible <bruno@clisp.org>
36836 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
36837 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
36839 (func_module): Use them.
36841 2007-01-09 Bruno Haible <bruno@clisp.org>
36843 * modules/unistr/base: New file.
36844 * lib/unistr.h: New file.
36846 * modules/unistr/u8-to-u16: New file.
36847 * lib/unistr/u8-to-u16.c: New file.
36849 * modules/unistr/u8-to-u32: New file.
36850 * lib/unistr/u8-to-u32.c: New file.
36852 * modules/unistr/u16-to-u8: New file.
36853 * lib/unistr/u16-to-u8.c: New file.
36855 * modules/unistr/u16-to-u32: New file.
36856 * lib/unistr/u16-to-u32.c: New file.
36858 * modules/unistr/u32-to-u8: New file.
36859 * lib/unistr/u32-to-u8.c: New file.
36861 * modules/unistr/u32-to-u16: New file.
36862 * lib/unistr/u32-to-u16.c: New file.
36864 * modules/unistr/u8-check: New file.
36865 * modules/unistr/u16-check: New file.
36866 * modules/unistr/u32-check: New file.
36867 * lib/unistr/u8-check.c: New file.
36868 * lib/unistr/u16-check.c: New file.
36869 * lib/unistr/u32-check.c: New file.
36871 * modules/unistr/u8-chr: New file.
36872 * modules/unistr/u16-chr: New file.
36873 * modules/unistr/u32-chr: New file.
36874 * lib/unistr/u8-chr.c: New file.
36875 * lib/unistr/u16-chr.c: New file.
36876 * lib/unistr/u32-chr.c: New file.
36878 * modules/unistr/u8-cmp: New file.
36879 * modules/unistr/u16-cmp: New file.
36880 * modules/unistr/u32-cmp: New file.
36881 * lib/unistr/u8-cmp.c: New file.
36882 * lib/unistr/u16-cmp.c: New file.
36883 * lib/unistr/u32-cmp.c: New file.
36885 * modules/unistr/u8-cpy: New file.
36886 * modules/unistr/u16-cpy: New file.
36887 * modules/unistr/u32-cpy: New file.
36888 * lib/unistr/u8-cpy.c: New file.
36889 * lib/unistr/u16-cpy.c: New file.
36890 * lib/unistr/u32-cpy.c: New file.
36891 * lib/unistr/u-cpy.h: New file.
36893 * modules/unistr/u8-cpy-alloc: New file.
36894 * modules/unistr/u16-cpy-alloc: New file.
36895 * modules/unistr/u32-cpy-alloc: New file.
36896 * lib/unistr/u8-cpy-alloc.c: New file.
36897 * lib/unistr/u16-cpy-alloc.c: New file.
36898 * lib/unistr/u32-cpy-alloc.c: New file.
36899 * lib/unistr/u-cpy-alloc.h: New file.
36901 * modules/unistr/u8-endswith: New file.
36902 * modules/unistr/u16-endswith: New file.
36903 * modules/unistr/u32-endswith: New file.
36904 * lib/unistr/u8-endswith.c: New file.
36905 * lib/unistr/u16-endswith.c: New file.
36906 * lib/unistr/u32-endswith.c: New file.
36907 * lib/unistr/u-endswith.h: New file.
36909 * modules/unistr/u8-mblen: New file.
36910 * modules/unistr/u16-mblen: New file.
36911 * modules/unistr/u32-mblen: New file.
36912 * lib/unistr/u8-mblen.c: New file.
36913 * lib/unistr/u16-mblen.c: New file.
36914 * lib/unistr/u32-mblen.c: New file.
36916 * modules/unistr/u8-mbtouc: New file.
36917 * modules/unistr/u16-mbtouc: New file.
36918 * modules/unistr/u32-mbtouc: New file.
36919 * lib/unistr/u8-mbtouc.c: New file.
36920 * lib/unistr/u16-mbtouc.c: New file.
36921 * lib/unistr/u32-mbtouc.c: New file.
36923 * modules/unistr/u8-mbtouc-safe: New file.
36924 * modules/unistr/u16-mbtouc-safe: New file.
36925 * modules/unistr/u32-mbtouc-safe: New file.
36926 * lib/unistr/u8-mbtouc-safe.c: New file.
36927 * lib/unistr/u16-mbtouc-safe.c: New file.
36928 * lib/unistr/u32-mbtouc-safe.c: New file.
36930 * modules/unistr/u8-move: New file.
36931 * modules/unistr/u16-move: New file.
36932 * modules/unistr/u32-move: New file.
36933 * lib/unistr/u8-move.c: New file.
36934 * lib/unistr/u16-move.c: New file.
36935 * lib/unistr/u32-move.c: New file.
36936 * lib/unistr/u-move.h: New file.
36938 * modules/unistr/u8-next: New file.
36939 * modules/unistr/u16-next: New file.
36940 * modules/unistr/u32-next: New file.
36941 * lib/unistr/u8-next.c: New file.
36942 * lib/unistr/u16-next.c: New file.
36943 * lib/unistr/u32-next.c: New file.
36945 * modules/unistr/u8-prev: New file.
36946 * modules/unistr/u16-prev: New file.
36947 * modules/unistr/u32-prev: New file.
36948 * lib/unistr/u8-prev.c: New file.
36949 * lib/unistr/u16-prev.c: New file.
36950 * lib/unistr/u32-prev.c: New file.
36952 * modules/unistr/u8-set: New file.
36953 * modules/unistr/u16-set: New file.
36954 * modules/unistr/u32-set: New file.
36955 * lib/unistr/u8-set.c: New file.
36956 * lib/unistr/u16-set.c: New file.
36957 * lib/unistr/u32-set.c: New file.
36958 * lib/unistr/u-set.h: New file.
36960 * modules/unistr/u8-startswith: New file.
36961 * modules/unistr/u16-startswith: New file.
36962 * modules/unistr/u32-startswith: New file.
36963 * lib/unistr/u8-startswith.c: New file.
36964 * lib/unistr/u16-startswith.c: New file.
36965 * lib/unistr/u32-startswith.c: New file.
36966 * lib/unistr/u-startswith.h: New file.
36968 * modules/unistr/u8-stpcpy: New file.
36969 * modules/unistr/u16-stpcpy: New file.
36970 * modules/unistr/u32-stpcpy: New file.
36971 * lib/unistr/u8-stpcpy.c: New file.
36972 * lib/unistr/u16-stpcpy.c: New file.
36973 * lib/unistr/u32-stpcpy.c: New file.
36974 * lib/unistr/u-stpcpy.h: New file.
36976 * modules/unistr/u8-stpncpy: New file.
36977 * modules/unistr/u16-stpncpy: New file.
36978 * modules/unistr/u32-stpncpy: New file.
36979 * lib/unistr/u8-stpncpy.c: New file.
36980 * lib/unistr/u16-stpncpy.c: New file.
36981 * lib/unistr/u32-stpncpy.c: New file.
36982 * lib/unistr/u-stpncpy.h: New file.
36984 * modules/unistr/u8-strcat: New file.
36985 * modules/unistr/u16-strcat: New file.
36986 * modules/unistr/u32-strcat: New file.
36987 * lib/unistr/u8-strcat.c: New file.
36988 * lib/unistr/u16-strcat.c: New file.
36989 * lib/unistr/u32-strcat.c: New file.
36990 * lib/unistr/u-strcat.h: New file.
36992 * modules/unistr/u8-strchr: New file.
36993 * modules/unistr/u16-strchr: New file.
36994 * modules/unistr/u32-strchr: New file.
36995 * lib/unistr/u8-strchr.c: New file.
36996 * lib/unistr/u16-strchr.c: New file.
36997 * lib/unistr/u32-strchr.c: New file.
36999 * modules/unistr/u8-strcmp: New file.
37000 * modules/unistr/u16-strcmp: New file.
37001 * modules/unistr/u32-strcmp: New file.
37002 * lib/unistr/u8-strcmp.c: New file.
37003 * lib/unistr/u16-strcmp.c: New file.
37004 * lib/unistr/u32-strcmp.c: New file.
37006 * modules/unistr/u8-strcpy: New file.
37007 * modules/unistr/u16-strcpy: New file.
37008 * modules/unistr/u32-strcpy: New file.
37009 * lib/unistr/u8-strcpy.c: New file.
37010 * lib/unistr/u16-strcpy.c: New file.
37011 * lib/unistr/u32-strcpy.c: New file.
37012 * lib/unistr/u-strcpy.h: New file.
37014 * modules/unistr/u8-strcspn: New file.
37015 * modules/unistr/u16-strcspn: New file.
37016 * modules/unistr/u32-strcspn: New file.
37017 * lib/unistr/u8-strcspn.c: New file.
37018 * lib/unistr/u16-strcspn.c: New file.
37019 * lib/unistr/u32-strcspn.c: New file.
37020 * lib/unistr/u-strcspn.h: New file.
37022 * modules/unistr/u8-strdup: New file.
37023 * modules/unistr/u16-strdup: New file.
37024 * modules/unistr/u32-strdup: New file.
37025 * lib/unistr/u8-strdup.c: New file.
37026 * lib/unistr/u16-strdup.c: New file.
37027 * lib/unistr/u32-strdup.c: New file.
37028 * lib/unistr/u-strdup.h: New file.
37030 * modules/unistr/u8-strlen: New file.
37031 * modules/unistr/u16-strlen: New file.
37032 * modules/unistr/u32-strlen: New file.
37033 * lib/unistr/u8-strlen.c: New file.
37034 * lib/unistr/u16-strlen.c: New file.
37035 * lib/unistr/u32-strlen.c: New file.
37036 * lib/unistr/u-strlen.h: New file.
37038 * modules/unistr/u8-strmblen: New file.
37039 * modules/unistr/u16-strmblen: New file.
37040 * modules/unistr/u32-strmblen: New file.
37041 * lib/unistr/u8-strmblen.c: New file.
37042 * lib/unistr/u16-strmblen.c: New file.
37043 * lib/unistr/u32-strmblen.c: New file.
37045 * modules/unistr/u8-strmbtouc: New file.
37046 * modules/unistr/u16-strmbtouc: New file.
37047 * modules/unistr/u32-strmbtouc: New file.
37048 * lib/unistr/u8-strmbtouc.c: New file.
37049 * lib/unistr/u16-strmbtouc.c: New file.
37050 * lib/unistr/u32-strmbtouc.c: New file.
37052 * modules/unistr/u8-strncat: New file.
37053 * modules/unistr/u16-strncat: New file.
37054 * modules/unistr/u32-strncat: New file.
37055 * lib/unistr/u8-strncat.c: New file.
37056 * lib/unistr/u16-strncat.c: New file.
37057 * lib/unistr/u32-strncat.c: New file.
37058 * lib/unistr/u-strncat.h: New file.
37060 * modules/unistr/u8-strncmp: New file.
37061 * modules/unistr/u16-strncmp: New file.
37062 * modules/unistr/u32-strncmp: New file.
37063 * lib/unistr/u8-strncmp.c: New file.
37064 * lib/unistr/u16-strncmp.c: New file.
37065 * lib/unistr/u32-strncmp.c: New file.
37067 * modules/unistr/u8-strncpy: New file.
37068 * modules/unistr/u16-strncpy: New file.
37069 * modules/unistr/u32-strncpy: New file.
37070 * lib/unistr/u8-strncpy.c: New file.
37071 * lib/unistr/u16-strncpy.c: New file.
37072 * lib/unistr/u32-strncpy.c: New file.
37073 * lib/unistr/u-strncpy.h: New file.
37075 * modules/unistr/u8-strnlen: New file.
37076 * modules/unistr/u16-strnlen: New file.
37077 * modules/unistr/u32-strnlen: New file.
37078 * lib/unistr/u8-strnlen.c: New file.
37079 * lib/unistr/u16-strnlen.c: New file.
37080 * lib/unistr/u32-strnlen.c: New file.
37081 * lib/unistr/u-strnlen.h: New file.
37083 * modules/unistr/u8-strpbrk: New file.
37084 * modules/unistr/u16-strpbrk: New file.
37085 * modules/unistr/u32-strpbrk: New file.
37086 * lib/unistr/u8-strpbrk.c: New file.
37087 * lib/unistr/u16-strpbrk.c: New file.
37088 * lib/unistr/u32-strpbrk.c: New file.
37089 * lib/unistr/u-strpbrk.h: New file.
37091 * modules/unistr/u8-strrchr: New file.
37092 * modules/unistr/u16-strrchr: New file.
37093 * modules/unistr/u32-strrchr: New file.
37094 * lib/unistr/u8-strrchr.c: New file.
37095 * lib/unistr/u16-strrchr.c: New file.
37096 * lib/unistr/u32-strrchr.c: New file.
37098 * modules/unistr/u8-strspn: New file.
37099 * modules/unistr/u16-strspn: New file.
37100 * modules/unistr/u32-strspn: New file.
37101 * lib/unistr/u8-strspn.c: New file.
37102 * lib/unistr/u16-strspn.c: New file.
37103 * lib/unistr/u32-strspn.c: New file.
37104 * lib/unistr/u-strspn.h: New file.
37106 * modules/unistr/u8-strstr: New file.
37107 * modules/unistr/u16-strstr: New file.
37108 * modules/unistr/u32-strstr: New file.
37109 * lib/unistr/u8-strstr.c: New file.
37110 * lib/unistr/u16-strstr.c: New file.
37111 * lib/unistr/u32-strstr.c: New file.
37112 * lib/unistr/u-strstr.h: New file.
37114 * modules/unistr/u8-strtok: New file.
37115 * modules/unistr/u16-strtok: New file.
37116 * modules/unistr/u32-strtok: New file.
37117 * lib/unistr/u8-strtok.c: New file.
37118 * lib/unistr/u16-strtok.c: New file.
37119 * lib/unistr/u32-strtok.c: New file.
37120 * lib/unistr/u-strtok.h: New file.
37122 * modules/unistr/u8-uctomb: New file.
37123 * modules/unistr/u16-uctomb: New file.
37124 * modules/unistr/u32-uctomb: New file.
37125 * lib/unistr/u8-uctomb.c: New file.
37126 * lib/unistr/u16-uctomb.c: New file.
37127 * lib/unistr/u32-uctomb.c: New file.
37129 * MODULES.html.sh (Unicode string functions): Add the new modules.
37131 2007-01-08 Bruno Haible <bruno@clisp.org>
37133 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
37134 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
37137 2007-01-08 Karl Berry <karl@gnu.org>
37139 * doc/error.texi: mention that main() fns must set program_name
37140 when progname is used.
37142 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
37144 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
37145 WCTYPE_H is empty, for the benefit of builds from non-distclean
37146 directories. Problem reported by Eric Blake in
37147 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
37149 2007-01-08 Bruno Haible <bruno@clisp.org>
37151 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
37152 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
37153 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
37154 PROVIDE_CANONICALIZE_FILENAME_MODE.
37155 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
37157 2007-01-08 Bruno Haible <bruno@clisp.org>
37159 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
37160 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
37161 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
37162 * lib/fts.c: Likewise.
37163 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
37165 2006-12-25 Bruno Haible <bruno@clisp.org>
37167 * modules/utf8-ucs4-safe: New file.
37168 * lib/utf8-ucs4-safe.h: New file.
37169 * lib/unistr/utf8-ucs4-safe.c: New file.
37171 * modules/utf16-ucs4-safe: New file.
37172 * lib/utf16-ucs4-safe.h: New file.
37173 * lib/unistr/utf16-ucs4-safe.c: New file.
37175 * MODULES.html.sh (Unicode string functions): Add the new modules.
37177 2007-01-08 Bruno Haible <bruno@clisp.org>
37179 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
37180 (Depends-on): Add unitypes.
37181 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
37182 (u8_mbtouc_aux): Move out to separate file.
37183 (u8_mbtouc): Use ucs4_t, uint8_t types.
37184 * lib/unistr/utf8-ucs4.c: New file.
37186 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
37187 (Depends-on): Add unitypes.
37188 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
37189 (u16_mbtouc_aux): Move out to separate file.
37190 (u16_mbtouc): Use ucs4_t, uint16_t types.
37191 * lib/unistr/utf16-ucs4.c: New file.
37193 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
37194 (Depends-on): Add unitypes.
37195 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
37196 (u8_uctomb_aux): Move out to separate file.
37197 (u8_uctomb): Use ucs4_t, uint8_t types.
37198 * lib/unistr/ucs4-utf8.c: New file.
37200 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
37201 (Depends-on): Add unitypes.
37202 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
37203 (u16_uctomb_aux): Move out to separate file.
37204 (u16_uctomb): Use ucs4_t, uint16_t types.
37205 * lib/unistr/ucs4-utf16.c: New file.
37207 2006-12-25 Bruno Haible <bruno@clisp.org>
37209 * modules/unitypes: New file.
37210 * lib/unitypes.h: New file.
37211 * MODULES.html.sh (func_all_modules): New section "Unicode string
37212 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
37213 this section. Add unitypes.
37215 2007-01-08 Bruno Haible <bruno@clisp.org>
37217 Avoid variable names that conflict with those from libtool.
37218 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
37219 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
37220 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
37221 library_names_spec to acl_library_names_spec, hardcode_* to
37223 Reported by Ralf Wildenhues.
37225 2007-01-08 Bruno Haible <bruno@clisp.org>
37227 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
37229 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
37231 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
37232 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
37234 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
37236 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
37237 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
37238 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
37239 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
37241 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
37243 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
37244 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
37245 GC_USE_<algorithm>.
37246 * lib/gc-libgcrypt.c: Likewise.
37247 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
37248 * modules/gc-arctwo (configure.ac): Likewise.
37249 * modules/gc-des (configure.ac): Likewise.
37250 * modules/gc-hmac-md5 (configure.ac): Likewise.
37251 * modules/gc-hmac-sha1 (configure.ac): Likewise.
37252 * modules/gc-md2 (configure.ac): Likewise.
37253 * modules/gc-md4 (configure.ac): Likewise.
37254 * modules/gc-md5 (configure.ac): Likewise.
37255 * modules/gc-random (configure.ac): Likewise.
37256 * modules/gc-rijndael (configure.ac): Likewise.
37257 * modules/gc-sha1 (configure.ac): Likewise.
37259 2007-01-08 Bruno Haible <bruno@clisp.org>
37261 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
37263 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
37265 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
37267 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
37268 * modules/fcntl-safer (configure.ac): Likewise.
37269 * modules/fopen-safer (configure.ac): Likewise.
37270 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
37271 GNULIB_FWRITEERROR macro definition.
37273 2007-01-08 Bruno Haible <bruno@clisp.org>
37275 * m4/gnulib-common.m4: New file.
37276 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
37277 (func_get_filelist): Add m4/gnulib-common.m4.
37279 2007-01-08 Bruno Haible <bruno@clisp.org>
37281 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
37284 2007-01-08 Jim Meyering <jim@meyering.net>
37286 Use a more robust test for a "can't happen" condition.
37287 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
37288 narrowed the st_size value. Presuming the "can't happen" condition
37289 is true, that narrowing could conceivably convert an invalid st_size
37290 value into a valid one. Instead, use a change based on Matthew
37291 Woehlke's original patch.
37293 Slight readability improvement: use an assert-like macro
37294 in place of literal "abort ()" uses.
37295 * lib/fts.c (fts_assert): Define.
37296 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
37297 Use this macro instead of a bare 'abort'.
37299 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
37301 Don't worry about using IRIX 5.3's wctype.h broken definitions;
37302 simply work around them.
37303 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
37304 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
37305 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
37307 Don't bother to define as macros, since the standard doesn't require it.
37308 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
37309 longer worry about IRIX 5.3.
37310 (HAVE_WCTYPE_CTMP_BUG): Remove.
37312 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
37314 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
37315 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
37316 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
37317 Problems reported by Georg Schwarz for IRIX 5.3.
37319 * gnulib-tool (autoconf_minversion): Take the maximum version number
37320 found, not the minimum. Problem reported by James Youngman.
37322 2007-01-03 Karl Berry <karl@gnu.org>
37324 * doc/error.texi: new file, explaining interaction with progname.
37325 * doc/gnulib.texi: include it. Update copyright.
37327 2007-01-03 Simon Josefsson <simon@josefsson.org>
37329 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
37330 AC_CANONICAL_HOST, to improve autobuild outputs.
37332 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
37333 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37335 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
37336 sockets, server sockets, and other file descriptors. Count errors
37337 to compute the return value. Reorder the code a bit to be easier
37338 to follow. Don't set event bits that were not requested (except
37339 POLLERR and POLLHUP).
37341 2007-01-01 Bruno Haible <bruno@clisp.org>
37343 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
37345 2007-01-03 Jim Meyering <jim@meyering.net>
37347 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
37349 2007-01-02 Bruno Haible <bruno@clisp.org>
37351 * modules/settime (Include): Require timespec.h.
37352 * modules/nanosleep (Include): Likewise.
37354 2007-01-01 Bruno Haible <bruno@clisp.org>
37356 * gnulib-tool (func_emit_copyright_notice): Bump year.
37357 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
37359 2007-01-01 Bruno Haible <bruno@clisp.org>
37361 Improve support for OpenBSD.
37362 * build-aux/config.rpath (libname_spec): Export.
37363 (library_names_spec): New variable. Export.
37364 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
37365 library_names_spec from the config.rpath output. Locate shared library
37366 through the name pattern in library_names_spec.
37368 2007-01-01 Eric Blake <ebb9@byu.net>
37370 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
37372 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
37374 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
37375 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
37376 assume the C locale, and avoid an "eval" that could cause trouble.
37377 Problem with SORT reported by Bob Proulx.
37379 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
37380 Define. Trivial patch from Henning Nielsen Lund, originally
37381 sent to bug-grep@gnu.org today.
37383 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
37385 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
37386 struct stat. Problem reported by Henning Nielsen Lund.
37387 * lib/acl.c: Include acl.h first, to check interface. Don't
37388 bother to include sys/types.h and sys/stat.h again.
37390 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
37392 Import the following change from libc; problem reported by
37395 2005-10-13 Ulrich Drepper <drepper@redhat.com>
37398 * lib/argp.h: Remove __NTH for __argp_usage inline function.
37400 2006-12-28 Jim Meyering <jim@meyering.net>
37402 * build-aux/announce-gen: Do not assume that the package
37403 builds any of tar.gz, tar.bz2, and .xdelta files.
37404 Suggestion from Simon Josefsson.
37406 2006-12-28 Simon Josefsson <simon@josefsson.org>
37408 * modules/announce-gen: New file.
37410 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
37412 * lib/mbchar.h: Just include <wctype.h>; the wctype module
37413 handles its gotchas now.
37414 * lib/mbswidth.c: Likewise.
37415 * lib/wcwidth.h: Likewise.
37416 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
37417 and iswcntrl; the wctype module does this stuff now.
37418 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
37419 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37420 * modules/mbchar (Depends-on): Add wctype.
37421 * modules/mbswidth (Depends-on): Likewise.
37422 * modules/wcwidth (Depends-on): Likewise.
37424 2006-12-27 Eric Blake <ebb9@byu.net>
37426 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
37427 module uses more than what <wctype.h> is required to provide.
37429 2006-12-26 Eric Blake <ebb9@byu.net>
37431 * gnulib-tool (sed_extract_prog): Avoid space-tab.
37433 2006-12-26 Eric Blake <ebb9@byu.net>
37435 * modules/absolute-header: New module.
37436 * modules/fcntl (Depends-on): Depend on it.
37437 * modules/inttypes (Depends-on): Likewise.
37438 * modules/stdint (Depends-on): Likewise.
37439 * modules/sys_stat (Depends-on): Likewise.
37440 * modules/wctype (Depends-on): Likewise.
37441 * MODULES.html.sh (Support for building libraries and
37442 executables): Document it.
37444 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
37446 * gnulib-tool (SED): Remove, undoing previous change.
37447 The problem was that it broke coreutils on Solaris, because
37448 "sed --posix" leaked into a makefile.
37449 (sed): New alias, if 'alias' and GNU sed.
37451 2006-12-24 Jim Meyering <jim@meyering.net>
37453 Work around an fchownat bug in glibc-2.4:
37454 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
37455 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
37456 in spite of the -P option.
37457 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
37459 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
37460 * modules/openat (Files): Add lib/fchownat.c.
37461 * lib/openat.c (fchownat): Don't define here. Move to...
37462 * lib/fchownat.c: ...this new file.
37464 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
37466 Fix bug reported by Bruno Haible in
37467 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
37468 where quotearg.c didn't compile on Mac OS X 10.2 because it
37469 lacks <wchar.h> and wint_t.
37470 * lib/wctype_.h (__wctype_wint_t): New type.
37471 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
37472 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
37473 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
37474 Arg is now of type __wctype_wint_t, not wint_t.
37475 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
37476 substitute HAVE_WINT_T.
37477 * modules/wctype (Files): Add m4/wint_t.m4.
37478 (wctype.h): Substitute HAVE_WINT_T.
37480 2006-12-23 Bruno Haible <bruno@clisp.org>
37482 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
37484 2006-12-23 Bruno Haible <bruno@clisp.org>
37486 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
37488 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
37491 2006-12-22 Bruno Haible <bruno@clisp.org>
37493 * lib/copy-file.c: Include acl.h.
37494 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
37495 Close the file descriptors only after being done with copy_acl.
37496 * modules/copy-file (Depends-on): Add acl.
37498 2006-12-22 Bruno Haible <bruno@clisp.org>
37500 * gnulib-tool (SED): New variable.
37501 Use $SED instead of sed everywhere.
37503 2006-12-22 Bruno Haible <bruno@clisp.org>
37505 * modules/no-c++: New file.
37506 * m4/no-c++.m4: New file.
37507 * MODULES.html.sh (Support for building libraries and executables):
37510 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
37512 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
37513 Include <limits.h>, and use its INT_MAX to rewrite the
37514 j loop so that it does not overflow 'int'. Problem reported by
37516 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
37517 Play it safe by shifting left by 1 rather than multiplying by 2,
37518 as GCC is less likely to optimize this away when the value
37519 is signed (when it assumes overflow leads to undefined behavior).
37520 Also, don't assume time_t uses two's complement.
37522 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
37524 * MODULES.html.sh: New module wctype.
37525 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
37526 * lib/fnmatch.c: Don't bother to include <wchar.h> before
37527 <wctype.h>, since the new wctype module should fix this.
37528 * lib/quotearg.c: Include <wctype.h> unconditionally, since
37529 the wctype module should arrange for it.
37530 * lib/regex_internal.h: Likewise.
37531 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
37532 since the wctype module should handle this now.
37533 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
37534 * modules/fnmatch (Depends-on): Add wctype.
37535 * modules/quotearg (Depends-on): Likewise.
37536 * modules/regex (Depends-on): Likewise.
37538 2006-12-19 Bruno Haible <bruno@clisp.org>
37540 * lib/strdup.h [C++]: Wrap definitions in extern "C".
37541 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
37543 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37545 * modules/savewd (Depends-on): Fix dependency on fcntl.
37547 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
37549 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
37550 conforms to C99, rather than relying on the user's environment
37551 setting of STDINT_H.
37553 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
37554 and Eric Blake <ebb9@byu.net>
37556 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
37557 This is more consistent with the other defines here.
37558 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
37559 Port to z/OS. Problem reported by Paul Gilmartin.
37560 Change local vars to use gl_ prefix rather than ac_.
37561 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
37562 with other defines.
37563 * modules/double-slash-root: New module.
37564 * modules/dirname (Files): Remove m4/double-slash-root.m4.
37565 (Depends-on): Add double-slash-root.
37566 * MODULES.html.sh (File system functions): Mention new module.
37568 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
37570 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
37571 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
37572 This is for the benefit of gzip, which doesn't do i18n.
37574 2006-12-12 Jim Meyering <jim@meyering.net>
37576 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
37577 Reported by Andreas Schwab <schwab@suse.de>.
37579 2006-12-12 Bruno Haible <bruno@clisp.org>
37581 Merge these changes.
37582 2006-09-05 Bruno Haible <bruno@clisp.org>
37583 * lib/iconvme.c (iconv_string): No need to save and restore errno when
37584 iconv_alloc succeeded.
37585 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
37586 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
37587 test for " && dest " at the end - dest is always != NULL there. Call
37588 iconv with 4xNULL arguments initially, to reset the state. Call iconv
37589 with 2xNULL arguments, also to flush the state storage. Handle the
37590 IRIX iconv behaviour. Realloc the final result, to throw away unused
37593 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
37595 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
37596 and fchmodat unconditionally, since glibc 2.4 has them.
37597 Problem reported by Arkadiusz Miskiewicz.
37599 2006-12-10 Bruno Haible <bruno@clisp.org>
37601 * gnulib-tool (func_import): Show the include files only for those
37602 modules that are copied and specified.
37603 Reported by Karl Berry.
37605 2006-12-08 Jim Meyering <jim@meyering.net>
37607 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
37608 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
37610 * build-aux/announce-gen: Add two new options, both optional:
37611 --bootstrap-tools=TOOL_LIST
37612 a comma-separated list of tools, e.g.,
37613 autoconf,automake,bison,gnulib
37614 --gnulib-snapshot-date=DATE
37615 if gnulib is in the bootstrap tool list,
37616 then report this as the snapshot date.
37617 If not specified, use the current date/time.
37618 If you specify a date here, be sure it's UTC.
37620 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37622 * tests/test-argp-2.sh: Fix test to match actual output.
37623 (func_compare): Fix sed script to be portable.
37625 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
37627 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
37628 workaround for this case. It is not autoconfigured now; offhand
37629 it's hard to see how to autoconfigure it.
37631 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
37633 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
37634 a directory that is about to be chowned. Such a directory's
37635 initial file permissions should permit the owner only and this
37636 should not be changed until after the chown, since the group and
37637 other bits would be incorrect if they granted permission before
37640 Fix porting problem for iswctype reported by Georg Schwarz in:
37641 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
37642 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
37643 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
37644 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
37645 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37647 2006-12-03 Jim Meyering <jim@meyering.net>
37649 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
37650 p->fts_statp may not yet be defined.
37651 (fts_read): Instead, set it in the caller, once p->fts_statp is
37652 sure to be defined, and corresponds to a top-level directory.
37653 This bug made du -x fail. Here's the coreutils test case:
37654 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
37655 Reported by Mike Frysinger.
37657 2006-12-01 Jim Meyering <jim@meyering.net>
37659 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
37660 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
37661 Reported by Simon Josefsson.
37663 2006-11-30 Jim Meyering <jim@meyering.net>
37665 * m4/warning.m4: Use the all-permissive copyright notice
37666 recommended by RMS (rather than LGPL).
37667 * m4/vararrays.m4: Likewise.
37668 * m4/flexmember.m4: Likewise.
37670 2006-11-29 Bruno Haible <bruno@clisp.org>
37672 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
37673 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
37675 Reported by Simon Josefsson <simon@josefsson.org>.
37677 2006-11-28 James Youngman <jay@gnu.org>
37679 * README: Advise users that they might find the bug-gnulib@gnu.org
37680 and autotools-announce@gnu.org mailing lists useful.
37682 2006-11-28 Bruno Haible <bruno@clisp.org>
37684 * m4/ptrdiff_max.m4: Remove file.
37686 2006-11-21 Bruno Haible <bruno@clisp.org>
37688 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
37690 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37691 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
37693 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37694 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
37696 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37698 2006-11-28 Jim Meyering <jim@meyering.net>
37700 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
37701 warning from "gcc -Wshadow" about shadowing the builtin.
37703 2006-11-27 Bruno Haible <bruno@clisp.org>
37705 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
37707 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37709 2006-11-27 Bruno Haible <bruno@clisp.org>
37710 Paul Eggert <eggert@cs.ucla.edu>
37712 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
37714 2006-11-26 Bruno Haible <bruno@clisp.org>
37716 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
37717 noinst_LTLIBRARIES.
37719 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
37720 Bruno Haible <bruno@clisp.org>
37722 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
37723 if compiling with "gcc -ansi".
37725 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
37727 Fix some incompatibilities with gcc -ansi -pedantic.
37728 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
37729 if compiling pedantically with GCC, unless it's C99 or later.
37730 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
37731 it mishandles gcc -ansi -pedantic as well.
37732 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
37734 * lib/regexec.c (check_node_accept_bytes): Don't use auto
37735 initializers for struct if -pedantic, unless it's C99 or later.
37737 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
37739 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
37740 Don't close an fd more than once. Identical atimes indicate
37741 success, not failure.
37743 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
37745 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
37747 2006-11-23 Jim Meyering <jim@meyering.net>
37749 * build-aux/announce-gen: New file. From coreutils.
37751 2006-11-22 Jim Meyering <jim@meyering.net>
37753 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
37754 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
37755 (fts_read): Use a temporary to narrow the overused st_size member
37756 before using it in a switch statement. Reported by Matthew Woehlke.
37758 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
37759 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
37761 2006-11-20 Bruno Haible <bruno@clisp.org>
37763 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
37764 changequote instead of pairs of brackets.
37765 Reported by Andreas Schwab <schwab@suse.de>.
37767 2006-11-21 Jim Meyering <jim@meyering.net>
37769 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
37770 so as to remain compatible with older compilers.
37771 Patch from Michael Deutschmann.
37773 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
37775 * MODULES.html.sh (File system functions): Add openat.
37777 * lib/openat.h (rpl_fstatat): New macro, if
37778 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
37779 (fstatat): Define to rpl_fstatat under the same conditions,
37780 unless COMPILING_FSTATAT.
37781 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
37782 seems to have the bug.
37783 * lib/fstatat.c: New file.
37784 * modules/openat (Files): Add it.
37786 2006-11-20 Bruno Haible <bruno@clisp.org>
37788 * Makefile: New file.
37790 2006-11-20 Jim Meyering <jim@meyering.net>
37792 The beginnings of syntax-related checks for gnulib.
37793 * lib/Makefile: New file.
37794 * lib/t-idcache: New script. Ensure that the two halves of
37795 idcache.c stay in sync.
37797 * lib/idcache.c: Adjust comments in user- and group- portions to
37798 be more accurate, and to be consistent with one another.
37800 2006-11-20 Jim Meyering <jim@meyering.net>
37802 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
37803 continue using the flexible array member (thus, this module performs
37804 half as many malloc calls), with the addition that...
37805 (getgroup, getuser): Consistently record a non-match via an empty
37806 "name" string, and map an empty string match to a NULL return value.
37807 * modules/idcache (Depends-on): Re-add flexmember.
37809 * lib/idcache.c (getuser): Remove all uses of the register keyword.
37810 (getuidbyname, getgroup, getgidbyname): Likewise.
37812 Use cleaner syntax: NULL rather than 0.
37813 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
37815 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
37817 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
37818 It mishandled the case where the group was missing.
37819 Problem reported by Greg Schafer.
37820 * modules/idcache: Likewise.
37822 2006-11-18 Jim Meyering <jim@meyering.net>
37824 * check-module (%exempt_header): Add exception for some
37825 conditionally-included headers.
37827 * modules/i-ring (Depends-on): Add verify.
37828 (License): Change to LGPL.
37830 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
37832 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
37833 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
37834 and inttostr.h. Use snprintf rather than uinttostr, so that
37835 LGPLed code doesn't depend on GPLed.
37837 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
37839 * modules/inline (License): Change from GPL to LGPL.
37841 2006-11-17 Jim Meyering <jim@meyering.net>
37843 * modules/d-type (License): Switch to LGPL.
37845 2006-11-15 Bruno Haible <bruno@clisp.org>
37847 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
37849 2006-11-15 Eric Blake <ebb9@byu.net>
37851 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
37852 the module dependency.
37854 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37855 Bruno Haible <bruno@clisp.org>
37857 * gnulib-tool (func_create_testdir): Add license consistency check.
37859 2006-11-15 Eric Blake <ebb9@byu.net>
37861 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
37862 random "(cached)" in configure output.
37864 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37866 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
37867 test for conforming inttypes.h is both announced and cached.
37869 * MODULES.html.sh (seen_modules, seen_files): New variables.
37870 (func_module): Rewrite to use a few less gnulib-tool and sed
37871 invocations. Avoid a couple of quadratic algorithms for ...
37872 (missed_modules, missed_files): ... these, with ...
37873 (func_append, func_tmpdir): ... these new functions, from
37874 gnulib-tool. Analogously, install traps for cleanup.
37876 * tests/test-gc.c (main): Remove unused variables.
37877 * tests/test-read-file.c: Include stdlib.h, for 'free'.
37879 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
37881 * modules/inttostr (License): Change to LGPL.
37883 2006-11-14 Eric Blake <ebb9@byu.net>
37885 * modules/tempname (License): Change to LGPL.
37887 2006-11-14 Eric Blake <ebb9@byu.net>
37889 * doc/functions.texi (Function Portability): *printf functions on
37890 Cygwin now understand all POSIX size specifiers.
37892 2006-11-14 Bruno Haible <bruno@clisp.org>
37894 * modules/c-ctype (License): Change to LGPL.
37896 2006-11-12 Bruno Haible <bruno@clisp.org>
37898 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
37899 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
37900 for GNOME libraries, for which the include files are installed in
37901 subdirectories of $prefix/include.
37903 2006-11-12 Bruno Haible <bruno@clisp.org>
37905 * m4/lib-link.m4: Require at least autoconf-2.54.
37906 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
37907 name to underscores for the --with option.
37909 2006-11-13 Bruno Haible <bruno@clisp.org>
37911 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
37912 the tests directory.
37913 Reported by Ralf Wildenhues.
37915 2006-11-13 Bruno Haible <bruno@clisp.org>
37917 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
37918 (func_emit_initmacro_end): Undo the override here.
37919 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
37920 Works around the famous automake error in coreutils.
37922 2006-11-13 Eric Blake <ebb9@byu.net>
37924 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
37925 element, not its node.
37927 2006-11-12 Bruno Haible <bruno@clisp.org>
37929 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
37930 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
37932 2006-11-12 Bruno Haible <bruno@clisp.org>
37934 * gnulib-tool: New option --local-symlink.
37935 (func_usage): Document it.
37936 (lsymbolic): New variable.
37937 (func_import, func_create_testdir): If --symlink was not specified,
37938 test whether --local-symlink was specified and the file comes from
37939 the local_gnulib_dir.
37941 2006-11-12 Bruno Haible <bruno@clisp.org>
37943 * gnulib-tool (func_ln): New function.
37944 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
37946 2006-11-12 Bruno Haible <bruno@clisp.org>
37948 Finish support for source files in subdirectories.
37949 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
37950 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
37952 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
37954 2006-11-12 Bruno Haible <bruno@clisp.org>
37956 * gnulib-tool (func_get_automake_snippet): Synthesize also an
37957 EXTRA_lib_SOURCES augmentation.
37958 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
37960 2006-11-12 Jim Meyering <jim@meyering.net>
37962 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
37963 file descriptors. This also averts a failure on systems with
37964 native openat support when a traversed directory lacks "x" access.
37965 * lib/fts_.h: Include "i-ring.h"
37966 (struct FTS) [fts_fd_ring]: New member.
37967 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
37968 (FCHDIR): Add parentheses.
37969 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
37970 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
37971 When descending, rather than simply closing the previous
37972 fts_cwd_fd value, push that file descriptor onto the ring.
37973 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
37974 (fts_open): Initialize the new fd_ring member.
37975 (fts_close): Clear the ring.
37976 (fts_safe_changedir): When possible, use our new fd_ring to skip
37977 the diropen and fstat and dev/ino comparison that would normally
37978 accompany a virtual `chdir ("..")'.
37980 * modules/fts (Depends-on): Add i-ring.
37981 * modules/i-ring: New module.
37982 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
37983 * m4/i-ring.m4: New file.
37985 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37987 * gnulib-tool (func_create_testdir): Fix replacement of
37988 `build-aux' in configure.ac. Run autotools in gltests
37990 (func_create_testdir, func_create_megatestdir, test): There is
37991 no need for '--force' in most autotool invocations in a new
37992 tree. Actually fail the whole test if any of the tools, or the
37993 configure or make stages fail.
37995 Sync from Automake.
37996 * build-aux/gnupload: Revert last change. Add pointer to upload
37997 instructions of the GNU Maintenance Instructions.
37998 Suggestion by Karl Berry.
38000 2006-11-10 Jim Meyering <jim@meyering.net>
38002 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
38004 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
38006 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
38007 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
38008 (bind_textdomain_codeset) [! ENABLE_NLS]:
38009 Evaluate all the arguments. That way, callers get compatible behavior
38010 if the arguments have side effects. Also, it avoids some GCC
38011 diagnostics in some cases; Joel E. Denny reported problems when Bison
38012 was configured with --enable-gcc-warnigs.
38014 2006-11-10 Jim Meyering <jim@meyering.net>
38016 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
38017 relevant options in CFLAGS (like -O, -fno-inline) are taken into
38020 2006-11-10 Jim Meyering <jim@meyering.net>
38022 * modules/inline: New file/module.
38023 * modules/xalloc (Files): Remove m4/inline.m4.
38024 (Depends-on): Add inline, instead.
38025 * modules/oset: Likewise.
38026 * modules/list: Likewise.
38028 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
38030 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
38031 Problem reported by Matthew Woehlke.
38033 2006-11-09 Bruno Haible <bruno@clisp.org>
38035 * lib/tempname.c (gen_tempname): Remove variant that invokes
38037 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
38040 2006-11-08 Bruno Haible <bruno@clisp.org>
38042 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
38043 to 'yes' instead of 'cross-compiling'.
38045 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
38047 * lib/quotearg.h (quotearg_free): New decl.
38048 * lib/quotearg.c (quotearg_free): New function.
38049 (slot0, nslots, slotvec0, slotvec):
38050 Now file-scope so that quotearg_free can get at them.
38052 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38054 Sync from Automake.
38055 * build-aux/gnupload: Add missing 'gnu' to example URL.
38056 Report by Karl Berry.
38058 2006-11-08 Bruno Haible <bruno@clisp.org>
38060 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
38061 Suggested by Paul Eggert.
38063 2006-11-08 Jim Meyering <jim@meyering.net>
38065 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
38066 It's already included if !_LIBC.
38067 (fts_safe_changedir): Add a comment.
38069 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
38071 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
38072 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
38075 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
38076 definitions up, to avoid colliding with change below.
38077 (static_inline) [HAVE_INLINE]: New macro.
38078 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
38079 Provide extern decls when !HAVE_INLINE. Do not define unless
38080 static_inline is defined, either by us or by xmalloc.c. Use
38081 static_inline rather than static inline.
38082 (XCALLOC): Optimize sizeof(T) = 1 case.
38083 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
38085 2006-11-07 Bruno Haible <bruno@clisp.org>
38087 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
38088 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
38090 * modules/xalloc (Files): Add m4/inline.m4.
38092 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38094 * README: Fix typo.
38095 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
38096 (Miscellanous Notes): ...from this.
38098 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
38100 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
38101 Mention that offsetof should be used instead of sizeof.
38104 2006-11-07 Bruno Haible <bruno@clisp.org>
38106 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
38108 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
38110 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
38111 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
38112 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
38113 (gl_tree_add_before, gl_tree_add_after):
38114 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
38115 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
38116 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
38117 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
38118 (gl_linked_add_after, gl_linked_add_at): Likewise.
38119 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
38120 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
38121 (gl_tree_add_before, gl_tree_add_after): Likewise.
38122 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
38123 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
38124 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
38126 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38128 * lib/gl_oset.h: Use C comment style, not C++ comment style.
38130 2006-11-06 Bruno Haible <bruno@clisp.org>
38132 * m4/inline.m4: New file.
38133 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
38134 * modules/list (Files): Add m4/inline.m4.
38135 * modules/oset (Files): Likewise.
38137 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
38139 * lib/idcache.c: Include <stddef.h>, for offsetof.
38140 (struct userid.name): Change from char * to a flexible array member.
38142 * modules/idcache (Depends-on): Add flexmember.
38144 * MODULES.html.sh (Core language properties): New module flexmember.
38145 * modules/flexmember, m4/flexmember.m4: New files.
38147 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
38148 inline functions that are identical with the old xnmalloc_inline,
38149 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
38150 that we can avoid some unnecessary integer multiplications and
38151 divisions in the common case where the element size is known at
38153 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
38155 (xnboundedmalloc): Remove.
38156 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
38157 arguments, for consistency with rest of this header.
38158 (xcharalloc): Rewrite using XNMALLOC.
38159 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
38160 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
38161 versions have been moved to lib/xalloc.h and renamed to be the
38162 non-*_inline versions.
38163 (xmalloc, xrealloc): Implement without reference to the xnmalloc
38164 and xnrealloc functions, since those functions are now inline and
38166 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
38167 renaming described above.
38168 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
38169 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
38170 captures the dependency in AC_C_INLINE.
38172 New module canonicalize-lgpl, proposed by Charles Wilson in
38173 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
38174 with a few small changes afterwards.
38175 * MODULES.html.sh (File system functions): New module
38177 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
38178 and canonicalize_file_name.
38179 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
38180 * modules/canonicalize-lgpl: New files.
38182 2006-11-05 Bruno Haible <bruno@clisp.org>
38184 * gnulib-tool (func_import, func_create_testdir): Create directories
38185 also for files in subdirectories of lib/.
38187 2006-11-05 Bruno Haible <bruno@clisp.org>
38189 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
38192 2006-11-03 Bruno Haible <bruno@clisp.org>
38194 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
38195 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
38196 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
38197 (xnboundedmalloc): New inline function.
38198 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
38199 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
38201 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
38203 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
38204 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
38205 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
38207 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
38208 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
38210 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
38211 gl_tree_add_after): Use XMALLOC instead of xmalloc.
38212 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
38214 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
38215 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
38216 gl_tree_add_after): Use XMALLOC instead of xmalloc.
38217 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
38218 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
38219 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
38220 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
38222 2006-11-03 Bruno Haible <bruno@clisp.org>
38224 * lib/c-ctype.h [C++]: Define functions without name mangling.
38225 * lib/fwriteerror.h [C++]: Likewise.
38226 * lib/gcd.h [C++]: Likewise.
38227 * lib/linebreak.h [C++]: Likewise.
38229 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
38231 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
38232 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
38233 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
38234 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
38235 Check for functions and headers just once.
38236 Check for declaration of canonicalize_file_name.
38237 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
38239 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
38241 * gnulib-tool (func_import): Fix typo in actioncmd.
38243 2006-11-02 Bruno Haible <bruno@clisp.org>
38245 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
38246 newline sequence in the Makefile.am snippet as a space, like "make"
38248 Reported by Roger Persson <perrog@gmail.com>.
38250 2006-11-01 Bruno Haible <bruno@clisp.org>
38252 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
38253 already declared in <string.h>.
38254 * lib/strcase.h (strncasecmp): Don't declare it if yes.
38256 2006-11-01 Bruno Haible <bruno@clisp.org>
38258 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
38259 * lib/strcase.h: Include <string.h>.
38260 (strcasecmp): Define to rpl_strcasecmp here.
38262 2006-11-01 Bruno Haible <bruno@clisp.org>
38264 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
38266 2006-11-01 Eric Blake <ebb9@byu.net>
38268 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
38270 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
38272 2006-10-29 Bruno Haible <bruno@clisp.org>
38274 Make it compile in C++ mode.
38275 * lib/full-write.c (full_rw): Add a cast.
38277 2006-11-01 Bruno Haible <bruno@clisp.org>
38279 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
38280 be POSIX compliant.
38281 Reported by Roger Persson <perrog@gmail.com>.
38283 2006-11-01 Eric Blake <ebb9@byu.net>
38285 * lib/getopt_.h: Fix comments.
38287 2006-10-31 Eric Blake <ebb9@byu.net>
38289 * modules/tmpdir (Depends-on): Add sys_stat.
38290 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
38291 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
38292 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
38293 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
38296 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
38298 Avoid some C++ diagnostics reported by Bruno Haible.
38299 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
38301 (quotearg_alloc): Use xcharalloc rather than xmalloc.
38302 (struct slotvec): Move to top level.
38303 (quotearg_n_options): Rewrite to avoid xmalloc.
38304 * lib/xalloc.h (xcharalloc): New function.
38305 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
38306 [defined __cplusplus]: Add function template that provides result
38307 type propagation. This part of the change is from Bruno Haible.
38309 2006-10-29 Bruno Haible <bruno@clisp.org>
38311 Make it compile in C++ mode.
38312 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
38313 * lib/strnlen1.c (strnlen1): Cast memchr result.
38314 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
38315 * lib/clean-temp.c (string_equals, string_hash): Add casts.
38316 (create_temp_dir): Rename local variable 'template'.
38317 (compile_csharp_using_sscli): Add cast.
38318 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
38319 * lib/findprog.c (find_in_path): Likewise.
38320 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
38321 * lib/wait-process.c (register_slave_subprocess): Likewise.
38323 2006-10-22 Bruno Haible <bruno@clisp.org>
38325 * modules/tsearch: New file.
38326 * lib/tsearch.h: New file.
38327 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
38328 * m4/tsearch.m4: New file.
38329 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
38331 2006-10-29 Eric Blake <ebb9@byu.net>
38333 * lib/arcfour.c: Assume config.h.
38334 * lib/arctwo.c: Likewise.
38335 * lib/base64.c: Likewise.
38336 * lib/check-version.c: Likewise.
38337 * lib/crc.c: Likewise.
38338 * lib/des.c: Likewise.
38339 * lib/gc-gnulib.c: Likewise.
38340 * lib/gc-libgcrypt.c: Likewise.
38341 * lib/gc-pbkdf2-sha1.c: Likewise.
38342 * lib/getaddrinfo.c: Likewise.
38343 * lib/getdelim.c: Likewise.
38344 * lib/getline.c: Likewise.
38345 * lib/hmac-md5.c: Likewise.
38346 * lib/hmac-sha1.c: Likewise.
38347 * lib/iconvme.c: Likewise.
38348 * lib/md2.c: Likewise.
38349 * lib/md4.c: Likewise.
38350 * lib/memxor.c: Likewise.
38351 * lib/read-file.c: Likewise.
38352 * lib/readline.c: Likewise.
38353 * lib/rijndael-alg-fst.c: Likewise.
38354 * lib/rijndael-api-fst.c: Likewise.
38355 * lib/xgetdomainname.c: Likewise.
38357 2006-10-28 Eric Blake <ebb9@byu.net>
38359 * lib/xstrndup.c: Assume config.h.
38361 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
38363 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
38364 stat-macros.h is now for our own macros, whereas stat_h is for
38365 macros in the <sys/stat.h> name space.
38366 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
38367 (STAT_MACROS_H): Remove.
38368 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
38369 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
38370 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
38371 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
38372 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
38373 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
38374 Move these macros to ...
38375 * lib/stat_.h: here. Don't include stat-macros.h.
38376 * lib/canonicalize.c: Don't include stat-macros.h.
38377 * lib/chown.c: Likewise.
38378 * lib/euidaccess.c: Likewise.
38379 * lib/file-type.c: Likewise.
38380 * lib/filemode.c: Likewise.
38381 * lib/glob.c: Likewise.
38382 * lib/isapipe.c: Likewise.
38383 * lib/lchown.c: Likewise.
38384 * lib/lstat.c: Likewise.
38385 * lib/mkdir-p.c: Likewise.
38386 * lib/rmdir.c: Likewise.
38387 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
38388 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
38389 unless mkdir isn't declared, to speed up 'configure'.
38390 Always create sys/stat.h, since it's unlikely any real sys/stat.h
38391 would define all the S_* symbols.
38392 * modules/canonicalize (Depends-on):
38393 Depend on sys_stat, not stat-macros.
38394 * modules/chown: Likewise.
38395 * modules/euidaccess: Likewise.
38396 * modules/filemode: Likewise.
38397 * modules/file-type: Likewise.
38398 * modules/glob: Likewise.
38399 * modules/isapipe: Likewise.
38400 * modules/lchown: Likewise.
38401 * modules/lstat: Likewise.
38402 * modules/mkancesdirs: Likewise.
38403 * modules/rmdir: Likewise.
38404 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
38405 * modules/modechange: Likewise.
38406 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
38407 (configure.ac): Remove gl_STAT_MACROS.
38408 * modules/sys_stat (Depends-on): Remove stat-macros.
38410 2006-10-27 Bruno Haible <bruno@clisp.org>
38412 * m4/signed.m4: Remove file.
38413 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
38415 * modules/vasnprintf (Files): Remove m4/signed.m4.
38417 2006-10-27 Bruno Haible <bruno@clisp.org>
38419 Update to GNU gettext 0.16.
38420 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
38421 m4/inttypes-h.m4, m4/signed.m4.
38422 * m4/gettext.m4: Update to GNU gettext 0.16.
38423 * m4/intl.m4: New file, from GNU gettext.
38424 * m4/intldir.m4: New file, from GNU gettext.
38425 * config/srclist.txt: Update
38427 2006-10-27 Eric Blake <ebb9@byu.net>
38429 * MODULES.html.sh: Document tempname.
38430 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
38432 (Files): Move lib/tempname.c...
38433 * modules/tempname: ...to this new module.
38434 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
38435 (gl_PREREQ_TEMPNAME): Move...
38436 * m4/tempname.m4: ...to this new file.
38437 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
38438 * modules/sys_stat (Depends-on): Add stat-macros.
38439 * lib/stat_.h (includes): Pick up stat macros.
38440 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
38441 if stat macros are broken.
38442 * lib/tempname.c (includes): No need to include "stat-macros.h".
38443 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
38444 (direxists, __path_search) [!_LIBC]: Don't compile these in
38445 gnulib; the tmpdir module covers that.
38446 * lib/tempname.h: New file.
38448 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
38450 * COPYING: Explain how gnulib-tool converts licence headers.
38451 Almost all wording by Eric Blake.
38453 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
38455 * lib/mbchar.h (is_basic_table): Make read-only.
38456 * lib/mbchar.c (is_basic_table): Likewise.
38457 Reported by John Darrington.
38459 2006-10-25 Bruno Haible <bruno@clisp.org>
38461 * lib/progname.h (set_program_name): Undefine before defining.
38463 2006-10-25 Bruno Haible <bruno@clisp.org>
38465 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
38466 false for non-gcc C++ compilers.
38467 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38469 2006-10-24 Bruno Haible <bruno@clisp.org>
38471 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
38472 iconv implementations like Irix iconv.
38474 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
38476 * modules/vararrays: New file.
38477 * m4/vararrays.m4: New file, taken from diffutils.
38478 * MODULES.html.sh: New module vararrays.
38480 2006-10-24 Karl Berry <karl@gnu.org>
38482 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
38483 Don't call GNU Unix.
38485 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38487 * users.txt: Add Libtool.
38491 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
38493 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
38494 to gnulib's policy of including config.h unconditionally.
38496 2006-10-24 Bruno Haible <bruno@clisp.org>
38498 * modules/wcwidth (Files): Add m4/wint_t.m4.
38499 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
38500 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
38502 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
38504 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
38505 to pacify GCC with some -W flags enabled. Problem reported by
38508 2006-10-24 Jim Meyering <jim@meyering.net>
38510 * MODULES.html.sh: Remove uinttostr. It's not a module.
38511 Reported by Karl Berry.
38513 2006-10-23 Bruno Haible <bruno@clisp.org>
38515 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
38517 2006-10-24 Bruno Haible <bruno@clisp.org>
38519 * lib/gl_list.h: Use C comment style, not C++ comment style.
38521 2006-10-23 Eric Blake <ebb9@byu.net>
38523 * lib/getaddrinfo.c (includes): Add missing include.
38525 2006-10-23 Bruno Haible <bruno@clisp.org>
38526 Paul Eggert <eggert@cs.ucla.edu>
38528 Ability to rename obstack_free.
38529 * lib/obstack.h (__obstack_free): New macro. Declare instead of
38531 (obstack_free): Invoke the __obstack_free macro.
38532 * lib/obstack.c (obstack_free): Use __obstack_free macro.
38534 2006-10-23 Bruno Haible <bruno@clisp.org>
38535 Paul Eggert <eggert@cs.ucla.edu>
38537 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
38538 __argc, __argv from the declaration. (They are defined as macros on
38541 2006-10-22 Bruno Haible <bruno@clisp.org>
38543 * doc/gnulib-intro.texi: New file.
38544 * doc/gnulib.texi: Include it.
38546 2006-10-21 Bruno Haible <bruno@clisp.org>
38548 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
38549 "Introduction", "Miscellanous Notes", "Particular Modules".
38551 2006-10-21 Bruno Haible <bruno@clisp.org>
38553 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38554 Change mostlyclean-local rule to avoid sh syntax error from bash
38555 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
38557 2006-10-23 Jim Meyering <jim@meyering.net>
38559 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
38560 in place of snprintf.
38562 * modules/inttostr (Files): Add lib/uinttostr.c.
38563 * lib/uinttostr.c (inttostr): New file/function.
38564 * lib/inttostr.h (uinttostr): Declare.
38565 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
38566 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
38568 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
38570 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
38572 * lib/canonicalize.c (ELOOP): Define if not already defined.
38573 Problem reported by Bruno Haible in
38574 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
38576 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
38578 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
38579 Problem reported by Perry Smith and Ville Laurikari.
38581 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
38584 2006-10-19 Bruno Haible <bruno@clisp.org>
38586 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
38589 2006-10-19 Bruno Haible <bruno@clisp.org>
38591 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
38594 2006-10-19 Bruno Haible <bruno@clisp.org>
38596 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
38598 2006-10-19 Bruno Haible <bruno@clisp.org>
38600 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
38603 2006-10-19 Bruno Haible <bruno@clisp.org>
38605 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
38608 2006-10-19 Bruno Haible <bruno@clisp.org>
38610 * gnulib-tool (func_create_testdir): Don't include ftruncate and
38611 mountlist by default.
38613 2006-10-16 Bruno Haible <bruno@clisp.org>
38615 * lib/c-strstr.c: Include c-strstr.h.
38617 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
38619 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
38622 2006-10-18 Bruno Haible <bruno@clisp.org>
38624 * lib/lock.h [C++]: Wrap definitions in extern "C".
38626 2006-10-18 Bruno Haible <bruno@clisp.org>
38628 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
38631 2006-10-18 Bruno Haible <bruno@clisp.org>
38633 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
38635 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
38637 * lib/xstrtol.h: Include gettext.h.
38638 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
38639 Problem reported by Eric Blake.
38640 * modules/xstrtol (Depends-on): Add gettext-h.
38642 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
38644 * lib/strftime.c (advance): New macro.
38645 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
38646 incomplete type, so you can't add 0 to it. Problem and patch
38647 reported by Eelco Dolstra for dietlibc.
38649 2006-10-18 Jim Meyering <jim@meyering.net>
38651 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
38652 type for a local, and rename it: s/up/user_proc/.
38654 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
38656 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
38657 READ_UTMP_USER_PROCESS.
38658 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
38660 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
38662 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
38663 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
38665 2006-10-17 Eric Blake <ebb9@byu.net>
38667 * lib/sigprocmask.c (sigprocmask): Fix typo.
38669 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
38671 * modules/clean-temp (Makefile.am): Don't add to make output...
38672 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
38675 2006-10-17 Bruno Haible <bruno@clisp.org>
38677 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
38678 differently if DEFAULT_TEXT_DOMAIN is set.
38680 2006-10-16 Bruno Haible <bruno@clisp.org>
38682 * lib/clean-temp.c: Include fwriteerror.h.
38684 2006-10-16 Bruno Haible <bruno@clisp.org>
38686 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
38688 2006-10-16 Bruno Haible <bruno@clisp.org>
38690 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
38691 * lib/sigprocmask.h: Include <sys/types.h>.
38692 (sigset_t): Use the system's definition if present.
38694 2006-10-17 Eric Blake <ebb9@byu.net>
38696 * lib/xvasprintf.c (includes): Assume config.h.
38697 * lib/xasprintf.c (includes): Likewise.
38699 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
38701 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
38702 at least as wide as intmax_t.
38704 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
38706 (Imported from Automake.)
38707 * build-aux/gnupload: Update to version 1.1 of directive file.
38709 2006-10-16 Eric Blake <ebb9@byu.net>
38711 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
38712 match Automake 1.10a.
38714 2006-10-14 Bruno Haible <bruno@clisp.org>
38716 * modules/sigprocmask: New file.
38717 * lib/sigprocmask.h: New file.
38718 * lib/sigprocmask.c: New file.
38719 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
38720 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
38721 request sigprocmask.o.
38722 (gl_PREREQ_SIGPROCMASK): New macro.
38723 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
38724 (Depends-on): Add sigprocmask.
38725 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
38726 gt_SIGNALBLOCKING. Test for 'raise' only once.
38727 * lib/fatal-signal.c: Include sigprocmask.h.
38728 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
38729 unblock_fatal_signals): Define always.
38730 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38733 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
38735 Sync from Automake.
38736 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
38737 which incorrectly sets the mode of an existing destination
38738 directory. In some cases the unpatched install-sh could do the
38739 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
38740 system. We hope this is rare in practice, but it's clearly worth
38741 fixing. Problem reported by Alex Unleashed in
38742 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
38743 Also, don't bother to check for -m bugs unless we're using -m;
38744 suggested by Stepan Kasal.
38746 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38748 Sync from Automake.
38749 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
38750 `-c' flag, so they appear at the same position as in %FASTDEP%
38751 mode in depend2.am. Fixes build failure for FreeBSD's c89,
38752 which ignores unknown options only after the first non-option.
38753 Bug report against M4 by Nelson H. F. Beebe.
38755 2006-10-13 Jim Meyering <jim@meyering.net>
38757 Fix a bug in yesterday's change.
38758 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
38759 p->fts_statp->st_dev would be used uninitialized.
38760 Ensures that we always call fts_stat on the very first entry.
38761 Miklos Szeredi reported that find -xdev stopped working.
38763 2006-10-12 Bruno Haible <bruno@clisp.org>
38765 * gnulib-tool (func_get_automake_snippet): Append an automatically
38766 computed EXTRA_DIST augmentation.
38767 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
38768 * modules/alloca-opt (Makefile.am): Likewise.
38769 * modules/allocsa (Makefile.am): Likewise.
38770 * modules/arcfour (Makefile.am): Likewise.
38771 * modules/arctwo (Makefile.am): Likewise.
38772 * modules/argmatch (Makefile.am): Likewise.
38773 * modules/argz (Makefile.am): Likewise.
38774 * modules/atexit (Makefile.am): Likewise.
38775 * modules/backupfile (Makefile.am): Likewise.
38776 * modules/byteswap (Makefile.am): Likewise.
38777 * modules/c-strtod (Makefile.am): Likewise.
38778 * modules/c-strtold (Makefile.am): Likewise.
38779 * modules/calloc (Makefile.am): Likewise.
38780 * modules/canon-host (Makefile.am): Likewise.
38781 * modules/canonicalize (Makefile.am): Likewise.
38782 * modules/chdir-long (Makefile.am): Likewise.
38783 * modules/chdir-safer (Makefile.am): Likewise.
38784 * modules/check-version (Makefile.am): Likewise.
38785 * modules/chown (Makefile.am): Likewise.
38786 * modules/cloexec (Makefile.am): Likewise.
38787 * modules/close-stream (Makefile.am): Likewise.
38788 * modules/closeout (Makefile.am): Likewise.
38789 * modules/crc (Makefile.am): Likewise.
38790 * modules/csharpexec (Makefile.am): Likewise.
38791 * modules/cycle-check (Makefile.am): Likewise.
38792 * modules/des (Makefile.am): Likewise.
38793 * modules/dev-ino (Makefile.am): Likewise.
38794 * modules/dirfd (Makefile.am): Likewise.
38795 * modules/dirname (Makefile.am): Likewise.
38796 * modules/dup2 (Makefile.am): Likewise.
38797 * modules/eealloc (Makefile.am): Likewise.
38798 * modules/error (Makefile.am): Likewise.
38799 * modules/euidaccess (Makefile.am): Likewise.
38800 * modules/exclude (Makefile.am): Likewise.
38801 * modules/exitfail (Makefile.am): Likewise.
38802 * modules/fcntl-safer (Makefile.am): Likewise.
38803 * modules/fcntl (Makefile.am): Likewise.
38804 * modules/file-type (Makefile.am): Likewise.
38805 * modules/fileblocks (Makefile.am): Likewise.
38806 * modules/filemode (Makefile.am): Likewise.
38807 * modules/filenamecat (Makefile.am): Likewise.
38808 * modules/fnmatch (Makefile.am): Likewise.
38809 * modules/fopen-safer (Makefile.am): Likewise.
38810 * modules/fpending (Makefile.am): Likewise.
38811 * modules/fprintftime (Makefile.am): Likewise.
38812 * modules/free (Makefile.am): Likewise.
38813 * modules/fsusage (Makefile.am): Likewise.
38814 * modules/ftruncate (Makefile.am): Likewise.
38815 * modules/fts (Makefile.am): Likewise.
38816 * modules/gc-arcfour (Makefile.am): Likewise.
38817 * modules/gc-des (Makefile.am): Likewise.
38818 * modules/gc-hmac-md5 (Makefile.am): Likewise.
38819 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
38820 * modules/gc-md4 (Makefile.am): Likewise.
38821 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
38822 * modules/gc-sha1 (Makefile.am): Likewise.
38823 * modules/gc (Makefile.am): Likewise.
38824 * modules/getaddrinfo (Makefile.am): Likewise.
38825 * modules/getcwd (Makefile.am): Likewise.
38826 * modules/getdelim (Makefile.am): Likewise.
38827 * modules/getdomainname (Makefile.am): Likewise.
38828 * modules/getgroups (Makefile.am): Likewise.
38829 * modules/gethostname (Makefile.am): Likewise.
38830 * modules/gethrxtime (Makefile.am): Likewise.
38831 * modules/getline (Makefile.am): Likewise.
38832 * modules/getloadavg (Makefile.am): Likewise.
38833 * modules/getlogin_r (Makefile.am): Likewise.
38834 * modules/getndelim2 (Makefile.am): Likewise.
38835 * modules/getopt (Makefile.am): Likewise.
38836 * modules/getpagesize (Makefile.am): Likewise.
38837 * modules/getpass-gnu (Makefile.am): Likewise.
38838 * modules/getpass (Makefile.am): Likewise.
38839 * modules/getsubopt (Makefile.am): Likewise.
38840 * modules/gettime (Makefile.am): Likewise.
38841 * modules/gettimeofday (Makefile.am): Likewise.
38842 * modules/getugroups (Makefile.am): Likewise.
38843 * modules/getusershell (Makefile.am): Likewise.
38844 * modules/glob (Makefile.am): Likewise.
38845 * modules/group-member (Makefile.am): Likewise.
38846 * modules/hard-locale (Makefile.am): Likewise.
38847 * modules/hash (Makefile.am): Likewise.
38848 * modules/hmac-md5 (Makefile.am): Likewise.
38849 * modules/hmac-sha1 (Makefile.am): Likewise.
38850 * modules/human (Makefile.am): Likewise.
38851 * modules/idcache (Makefile.am): Likewise.
38852 * modules/imaxabs (Makefile.am): Likewise.
38853 * modules/imaxdiv (Makefile.am): Likewise.
38854 * modules/inet_ntop (Makefile.am): Likewise.
38855 * modules/inet_pton (Makefile.am): Likewise.
38856 * modules/intprops (Makefile.am): Likewise.
38857 * modules/inttostr (Makefile.am): Likewise.
38858 * modules/inttypes (Makefile.am): Likewise.
38859 * modules/isapipe (Makefile.am): Likewise.
38860 * modules/javaversion (Makefile.am): Likewise.
38861 * modules/lchmod (Makefile.am): Likewise.
38862 * modules/lchown (Makefile.am): Likewise.
38863 * modules/localcharset (Makefile.am): Likewise.
38864 * modules/long-options (Makefile.am): Likewise.
38865 * modules/lstat (Makefile.am): Likewise.
38866 * modules/malloc (Makefile.am): Likewise.
38867 * modules/mathl (Makefile.am): Likewise.
38868 * modules/mbchar (Makefile.am): Likewise.
38869 * modules/md2 (Makefile.am): Likewise.
38870 * modules/md4 (Makefile.am): Likewise.
38871 * modules/md5 (Makefile.am): Likewise.
38872 * modules/memcasecmp (Makefile.am): Likewise.
38873 * modules/memchr (Makefile.am): Likewise.
38874 * modules/memcmp (Makefile.am): Likewise.
38875 * modules/memcoll (Makefile.am): Likewise.
38876 * modules/memcpy (Makefile.am): Likewise.
38877 * modules/memmem (Makefile.am): Likewise.
38878 * modules/memmove (Makefile.am): Likewise.
38879 * modules/mempcpy (Makefile.am): Likewise.
38880 * modules/memrchr (Makefile.am): Likewise.
38881 * modules/memset (Makefile.am): Likewise.
38882 * modules/memxor (Makefile.am): Likewise.
38883 * modules/mkancesdirs (Makefile.am): Likewise.
38884 * modules/mkdir-p (Makefile.am): Likewise.
38885 * modules/mkdir (Makefile.am): Likewise.
38886 * modules/mkdtemp (Makefile.am): Likewise.
38887 * modules/mkstemp (Makefile.am): Likewise.
38888 * modules/mktime (Makefile.am): Likewise.
38889 * modules/modechange (Makefile.am): Likewise.
38890 * modules/mountlist (Makefile.am): Likewise.
38891 * modules/nanosleep (Makefile.am): Likewise.
38892 * modules/obstack (Makefile.am): Likewise.
38893 * modules/openat (Makefile.am): Likewise.
38894 * modules/pagealign_alloc (Makefile.am): Likewise.
38895 * modules/pathmax (Makefile.am): Likewise.
38896 * modules/physmem (Makefile.am): Likewise.
38897 * modules/poll (Makefile.am): Likewise.
38898 * modules/posixtm (Makefile.am): Likewise.
38899 * modules/posixver (Makefile.am): Likewise.
38900 * modules/putenv (Makefile.am): Likewise.
38901 * modules/quote (Makefile.am): Likewise.
38902 * modules/quotearg (Makefile.am): Likewise.
38903 * modules/raise (Makefile.am): Likewise.
38904 * modules/read-file (Makefile.am): Likewise.
38905 * modules/readline (Makefile.am): Likewise.
38906 * modules/readlink (Makefile.am): Likewise.
38907 * modules/readtokens (Makefile.am): Likewise.
38908 * modules/readutmp (Makefile.am): Likewise.
38909 * modules/realloc (Makefile.am): Likewise.
38910 * modules/regex (Makefile.am): Likewise.
38911 * modules/rename-dest-slash (Makefile.am): Likewise.
38912 * modules/rename (Makefile.am): Likewise.
38913 * modules/rijndael (Makefile.am): Likewise.
38914 * modules/rmdir (Makefile.am): Likewise.
38915 * modules/rpmatch (Makefile.am): Likewise.
38916 * modules/safe-read (Makefile.am): Likewise.
38917 * modules/safe-write (Makefile.am): Likewise.
38918 * modules/same-inode (Makefile.am): Likewise.
38919 * modules/same (Makefile.am): Likewise.
38920 * modules/save-cwd (Makefile.am): Likewise.
38921 * modules/savedir (Makefile.am): Likewise.
38922 * modules/setenv (Makefile.am): Likewise.
38923 * modules/settime (Makefile.am): Likewise.
38924 * modules/sha1 (Makefile.am): Likewise.
38925 * modules/sig2str (Makefile.am): Likewise.
38926 * modules/snprintf (Makefile.am): Likewise.
38927 * modules/stat-macros (Makefile.am): Likewise.
38928 * modules/stat-time (Makefile.am): Likewise.
38929 * modules/stdbool (Makefile.am): Likewise.
38930 * modules/stdint (Makefile.am): Likewise.
38931 * modules/stdlib-safer (Makefile.am): Likewise.
38932 * modules/stpcpy (Makefile.am): Likewise.
38933 * modules/stpncpy (Makefile.am): Likewise.
38934 * modules/strcase (Makefile.am): Likewise.
38935 * modules/strcasestr (Makefile.am): Likewise.
38936 * modules/strchrnul (Makefile.am): Likewise.
38937 * modules/strcspn (Makefile.am): Likewise.
38938 * modules/strdup (Makefile.am): Likewise.
38939 * modules/strerror (Makefile.am): Likewise.
38940 * modules/strftime (Makefile.am): Likewise.
38941 * modules/strndup (Makefile.am): Likewise.
38942 * modules/strnlen (Makefile.am): Likewise.
38943 * modules/strpbrk (Makefile.am): Likewise.
38944 * modules/strsep (Makefile.am): Likewise.
38945 * modules/strstr (Makefile.am): Likewise.
38946 * modules/strtod (Makefile.am): Likewise.
38947 * modules/strtoimax (Makefile.am): Likewise.
38948 * modules/strtok_r (Makefile.am): Likewise.
38949 * modules/strtol (Makefile.am): Likewise.
38950 * modules/strtoll (Makefile.am): Likewise.
38951 * modules/strtoul (Makefile.am): Likewise.
38952 * modules/strtoull (Makefile.am): Likewise.
38953 * modules/strtoumax (Makefile.am): Likewise.
38954 * modules/strverscmp (Makefile.am): Likewise.
38955 * modules/sys_socket (Makefile.am): Likewise.
38956 * modules/sys_stat (Makefile.am): Likewise.
38957 * modules/sysexits (Makefile.am): Likewise.
38958 * modules/time_r (Makefile.am): Likewise.
38959 * modules/timegm (Makefile.am): Likewise.
38960 * modules/timespec (Makefile.am): Likewise.
38961 * modules/tmpfile-safer (Makefile.am): Likewise.
38962 * modules/trim (Makefile.am): Likewise.
38963 * modules/unistd-safer (Makefile.am): Likewise.
38964 * modules/unlinkdir (Makefile.am): Likewise.
38965 * modules/unlocked-io (Makefile.am): Likewise.
38966 * modules/userspec (Makefile.am): Likewise.
38967 * modules/utime (Makefile.am): Likewise.
38968 * modules/utimecmp (Makefile.am): Likewise.
38969 * modules/utimens (Makefile.am): Likewise.
38970 * modules/vasnprintf (Makefile.am): Likewise.
38971 * modules/vasprintf (Makefile.am): Likewise.
38972 * modules/vsnprintf (Makefile.am): Likewise.
38973 * modules/xalloc (Makefile.am): Likewise.
38974 * modules/xgetcwd (Makefile.am): Likewise.
38975 * modules/xnanosleep (Makefile.am): Likewise.
38976 * modules/xreadlink (Makefile.am): Likewise.
38977 * modules/xstrtod (Makefile.am): Likewise.
38978 * modules/xstrtol (Makefile.am): Likewise.
38979 * modules/xstrtold (Makefile.am): Likewise.
38980 * modules/yesno (Makefile.am): Likewise.
38981 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
38983 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
38985 * modules/error (Makefile.am): Distribute files through
38986 EXTRA_DIST, not lib_SOURCES.
38988 2006-10-12 Eric Blake <ebb9@byu.net>
38990 * modules/error (Makefile.am): Distribute files in /lib.
38991 * modules/obstack (Makefile.am): Likewise.
38993 2006-10-12 Bruno Haible <bruno@clisp.org>
38995 * modules/acl (Makefile.am): Distribute all files in lib/ through
38997 * modules/arcfour (Makefile.am): Likewise.
38998 * modules/arctwo (Makefile.am): Likewise.
38999 * modules/argmatch (Makefile.am): Likewise.
39000 * modules/argz (Makefile.am): Likewise.
39001 * modules/atexit (Makefile.am): Likewise.
39002 * modules/backupfile (Makefile.am): Likewise.
39003 * modules/c-strtod (Makefile.am): Likewise.
39004 * modules/c-strtold (Makefile.am): Likewise.
39005 * modules/calloc (Makefile.am): Likewise.
39006 * modules/canon-host (Makefile.am): Likewise.
39007 * modules/canonicalize (Makefile.am): Likewise.
39008 * modules/chdir-long (Makefile.am): Likewise.
39009 * modules/chdir-safer (Makefile.am): Likewise.
39010 * modules/check-version (Makefile.am): Likewise.
39011 * modules/chown (Makefile.am): Likewise.
39012 * modules/cloexec (Makefile.am): Likewise.
39013 * modules/close-stream (Makefile.am): Likewise.
39014 * modules/closeout (Makefile.am): Likewise.
39015 * modules/crc (Makefile.am): Likewise.
39016 * modules/cycle-check (Makefile.am): Likewise.
39017 * modules/des (Makefile.am): Likewise.
39018 * modules/dirfd (Makefile.am): Likewise.
39019 * modules/dirname (Makefile.am): Likewise.
39020 * modules/dup2 (Makefile.am): Likewise.
39021 * modules/euidaccess (Makefile.am): Likewise.
39022 * modules/exclude (Makefile.am): Likewise.
39023 * modules/exitfail (Makefile.am): Likewise.
39024 * modules/fcntl-safer (Makefile.am): Likewise.
39025 * modules/file-type (Makefile.am): Likewise.
39026 * modules/fileblocks (Makefile.am): Likewise.
39027 * modules/filemode (Makefile.am): Likewise.
39028 * modules/filenamecat (Makefile.am): Likewise.
39029 * modules/fnmatch (Makefile.am): Likewise.
39030 * modules/fopen-safer (Makefile.am): Likewise.
39031 * modules/fpending (Makefile.am): Likewise.
39032 * modules/fprintftime (Makefile.am): Likewise.
39033 * modules/free (Makefile.am): Likewise.
39034 * modules/fsusage (Makefile.am): Likewise.
39035 * modules/ftruncate (Makefile.am): Likewise.
39036 * modules/fts (Makefile.am): Likewise.
39037 * modules/gc (Makefile.am): Likewise.
39038 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
39039 * modules/getaddrinfo (Makefile.am): Likewise.
39040 * modules/getcwd (Makefile.am): Likewise.
39041 * modules/getdelim (Makefile.am): Likewise.
39042 * modules/getdomainname (Makefile.am): Likewise.
39043 * modules/getgroups (Makefile.am): Likewise.
39044 * modules/gethostname (Makefile.am): Likewise.
39045 * modules/gethrxtime (Makefile.am): Likewise.
39046 * modules/getline (Makefile.am): Likewise.
39047 * modules/getloadavg (Makefile.am): Likewise.
39048 * modules/getlogin_r (Makefile.am): Likewise.
39049 * modules/getopt (Makefile.am): Likewise.
39050 * modules/getpass (Makefile.am): Likewise.
39051 * modules/getpass-gnu (Makefile.am): Likewise.
39052 * modules/getsubopt (Makefile.am): Likewise.
39053 * modules/gettime (Makefile.am): Likewise.
39054 * modules/gettimeofday (Makefile.am): Likewise.
39055 * modules/getugroups (Makefile.am): Likewise.
39056 * modules/getusershell (Makefile.am): Likewise.
39057 * modules/glob (Makefile.am): Likewise.
39058 * modules/group-member (Makefile.am): Likewise.
39059 * modules/hard-locale (Makefile.am): Likewise.
39060 * modules/hash (Makefile.am): Likewise.
39061 * modules/hmac-md5 (Makefile.am): Likewise.
39062 * modules/hmac-sha1 (Makefile.am): Likewise.
39063 * modules/human (Makefile.am): Likewise.
39064 * modules/idcache (Makefile.am): Likewise.
39065 * modules/imaxabs (Makefile.am): Likewise.
39066 * modules/imaxdiv (Makefile.am): Likewise.
39067 * modules/inet_ntop (Makefile.am): Likewise.
39068 * modules/inet_pton (Makefile.am): Likewise.
39069 * modules/inttostr (Makefile.am): Likewise.
39070 * modules/isapipe (Makefile.am): Likewise.
39071 * modules/lchown (Makefile.am): Likewise.
39072 * modules/long-options (Makefile.am): Likewise.
39073 * modules/lstat (Makefile.am): Likewise.
39074 * modules/malloc (Makefile.am): Likewise.
39075 * modules/mathl (Makefile.am): Likewise.
39076 * modules/mbchar (Makefile.am): Likewise.
39077 * modules/md2 (Makefile.am): Likewise.
39078 * modules/md4 (Makefile.am): Likewise.
39079 * modules/md5 (Makefile.am): Likewise.
39080 * modules/memcasecmp (Makefile.am): Likewise.
39081 * modules/memchr (Makefile.am): Likewise.
39082 * modules/memcmp (Makefile.am): Likewise.
39083 * modules/memcoll (Makefile.am): Likewise.
39084 * modules/memcpy (Makefile.am): Likewise.
39085 * modules/memmem (Makefile.am): Likewise.
39086 * modules/memmove (Makefile.am): Likewise.
39087 * modules/mempcpy (Makefile.am): Likewise.
39088 * modules/memrchr (Makefile.am): Likewise.
39089 * modules/memset (Makefile.am): Likewise.
39090 * modules/memxor (Makefile.am): Likewise.
39091 * modules/mkancesdirs (Makefile.am): Likewise.
39092 * modules/mkdir (Makefile.am): Likewise.
39093 * modules/mkdir-p (Makefile.am): Likewise.
39094 * modules/mkdtemp (Makefile.am): Likewise.
39095 * modules/mkstemp (Makefile.am): Likewise.
39096 * modules/mktime (Makefile.am): Likewise.
39097 * modules/modechange (Makefile.am): Likewise.
39098 * modules/mountlist (Makefile.am): Likewise.
39099 * modules/nanosleep (Makefile.am): Likewise.
39100 * modules/openat (Makefile.am): Likewise.
39101 * modules/pagealign_alloc (Makefile.am): Likewise.
39102 * modules/physmem (Makefile.am): Likewise.
39103 * modules/poll (Makefile.am): Likewise.
39104 * modules/posixtm (Makefile.am): Likewise.
39105 * modules/posixver (Makefile.am): Likewise.
39106 * modules/putenv (Makefile.am): Likewise.
39107 * modules/quote (Makefile.am): Likewise.
39108 * modules/quotearg (Makefile.am): Likewise.
39109 * modules/raise (Makefile.am): Likewise.
39110 * modules/read-file (Makefile.am): Likewise.
39111 * modules/readline (Makefile.am): Likewise.
39112 * modules/readlink (Makefile.am): Likewise.
39113 * modules/readtokens (Makefile.am): Likewise.
39114 * modules/readutmp (Makefile.am): Likewise.
39115 * modules/realloc (Makefile.am): Likewise.
39116 * modules/regex (Makefile.am): Likewise.
39117 * modules/rename (Makefile.am): Likewise.
39118 * modules/rename-dest-slash (Makefile.am): Likewise.
39119 * modules/rijndael (Makefile.am): Likewise.
39120 * modules/rmdir (Makefile.am): Likewise.
39121 * modules/rpmatch (Makefile.am): Likewise.
39122 * modules/safe-read (Makefile.am): Likewise.
39123 * modules/safe-write (Makefile.am): Likewise.
39124 * modules/same (Makefile.am): Likewise.
39125 * modules/save-cwd (Makefile.am): Likewise.
39126 * modules/savedir (Makefile.am): Likewise.
39127 * modules/setenv (Makefile.am): Likewise.
39128 * modules/settime (Makefile.am): Likewise.
39129 * modules/sha1 (Makefile.am): Likewise.
39130 * modules/sig2str (Makefile.am): Likewise.
39131 * modules/snprintf (Makefile.am): Likewise.
39132 * modules/stdlib-safer (Makefile.am): Likewise.
39133 * modules/stpcpy (Makefile.am): Likewise.
39134 * modules/stpncpy (Makefile.am): Likewise.
39135 * modules/strcase (Makefile.am): Likewise.
39136 * modules/strcasestr (Makefile.am): Likewise.
39137 * modules/strchrnul (Makefile.am): Likewise.
39138 * modules/strcspn (Makefile.am): Likewise.
39139 * modules/strdup (Makefile.am): Likewise.
39140 * modules/strerror (Makefile.am): Likewise.
39141 * modules/strftime (Makefile.am): Likewise.
39142 * modules/strndup (Makefile.am): Likewise.
39143 * modules/strnlen (Makefile.am): Likewise.
39144 * modules/strpbrk (Makefile.am): Likewise.
39145 * modules/strsep (Makefile.am): Likewise.
39146 * modules/strstr (Makefile.am): Likewise.
39147 * modules/strtod (Makefile.am): Likewise.
39148 * modules/strtoimax (Makefile.am): Likewise.
39149 * modules/strtok_r (Makefile.am): Likewise.
39150 * modules/strtol (Makefile.am): Likewise.
39151 * modules/strtoll (Makefile.am): Likewise.
39152 * modules/strtoul (Makefile.am): Likewise.
39153 * modules/strtoull (Makefile.am): Likewise.
39154 * modules/strtoumax (Makefile.am): Likewise.
39155 * modules/strverscmp (Makefile.am): Likewise.
39156 * modules/time_r (Makefile.am): Likewise.
39157 * modules/timegm (Makefile.am): Likewise.
39158 * modules/tmpfile-safer (Makefile.am): Likewise.
39159 * modules/unistd-safer (Makefile.am): Likewise.
39160 * modules/unlinkdir (Makefile.am): Likewise.
39161 * modules/userspec (Makefile.am): Likewise.
39162 * modules/utime (Makefile.am): Likewise.
39163 * modules/utimecmp (Makefile.am): Likewise.
39164 * modules/utimens (Makefile.am): Likewise.
39165 * modules/vasnprintf (Makefile.am): Likewise.
39166 * modules/vasprintf (Makefile.am): Likewise.
39167 * modules/vsnprintf (Makefile.am): Likewise.
39168 * modules/xalloc (Makefile.am): Likewise.
39169 * modules/xgetcwd (Makefile.am): Likewise.
39170 * modules/xnanosleep (Makefile.am): Likewise.
39171 * modules/xreadlink (Makefile.am): Likewise.
39172 * modules/xstrtod (Makefile.am): Likewise.
39173 * modules/xstrtol (Makefile.am): Likewise.
39174 * modules/xstrtold (Makefile.am): Likewise.
39175 * modules/yesno (Makefile.am): Likewise.
39177 2006-10-12 Jim Meyering <jim@meyering.net>
39179 * m4/getloadavg.m4: Revert the change below.
39181 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
39182 lib/getloadavg.c using "ls -L", not "test -f". The latter would
39183 fail with a symlink, which is what coreutils' ./bootstrap now
39184 creates by default.
39186 2006-10-12 Bruno Haible <bruno@clisp.org>
39188 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
39190 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
39191 MSVC and mingw explicitly.
39193 2006-10-11 Simon Josefsson <jas@extundo.com>
39194 Bruno Haible <bruno@clisp.org>
39196 Add support for multiple gnulib-tool invocations in the scope of a
39197 single configure.ac file.
39198 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
39199 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
39200 with the same contents as the _LIBADD variable.
39201 (func_emit_initmacro_start, func_emit_initmacro_end,
39202 func_emit_initmacro_done): New functions.
39203 (func_import, func_create_testdir): Invoke them. Allow the identifiers
39204 gl_LIBOBJS and gl_LTLIBOBJS.
39206 2006-10-11 Bruno Haible <bruno@clisp.org>
39208 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
39209 (func_create_testdir): Don't create po/Makefile.am, don't invoke
39210 autoreconf. Instead, invoke autopoint explicitly but move back the
39211 *.m4 files from gnulib.
39213 2006-10-11 Bruno Haible <bruno@clisp.org>
39215 * gnulib-tool (func_usage): Make module names after --create-testdir
39217 (func_create_testdir): If no module was specified, use nearly all
39220 2006-10-12 Jim Meyering <jim@meyering.net>
39222 Big performance improvement for fts-based tools that use FTS_NOSTAT.
39223 Avoid spurious inode-mismatch problems on non-POSIX file systems.
39224 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
39225 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
39226 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
39227 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
39228 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
39229 (fts_set_stat_required): New function.
39230 (fts_open): Defer the calls to fts_stat, if possible or requested.
39231 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
39232 into fts_stat itself.
39233 (fts_read): Perform any required (deferred) fts_stat call.
39234 (fts_build): Likewise, for the directory we're about to open and read.
39235 In the readdir loop, carefully decide whether each entry will require
39236 an eventual call to fts_stat, using dirent.d_type info if available.
39237 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
39238 a command line argument into this function. Update all callers.
39239 Map a return value of FTS_DOT to FTS_D for a command line argument.
39240 * modules/fts (Depends-on): Add d-type. Alphabetize.
39241 Thanks to Miklos Szeredi for his tenacity and for the initial
39242 bug report about "find" failing on a FUSE-based file system.
39244 * lib/fts.c (fts_open): Use consistent indentation.
39246 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
39248 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
39249 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
39250 reported by Jim Meyering. All uses of cache variables renamed
39251 to match Autoconf's.
39252 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
39255 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
39256 Fix misspelling in diagnostic.
39258 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
39260 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
39261 defined. Problem reported by Matthew Woehlke.
39263 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
39264 Add support for Tandem NonStop R series.
39265 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
39268 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
39269 (has_trailing_slash): Omit size arg; all callers changed.
39270 Omit 'inline', since it doesn't help performance and we'd
39271 need to configure it.
39272 Don't count //, ///, etc. as having a trailing slash.
39273 As a side effect, this removes a C99ism reported by Matthew Woehlke.
39274 (rpl_rename_dest_slash): On failure, use rename's errno rather
39275 than (in some cases) an incorrect or junk errno.
39276 Simplify code by removing need to compute length; this does
39277 cause it to make two passes instead of one over the file name,
39280 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
39281 change, since Autoconf's version may no longer be appropriate now
39282 that we are using CVS Autoconf's version. Add support for Tandem.
39284 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
39285 Bruno Haible <bruno@clisp.org>
39287 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
39288 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
39289 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
39290 gl_AC_TYPE_LONG_LONG.
39292 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
39293 instead of HAVE_LONG_LONG.
39294 * lib/printf-args.c (printf_fetchargs): Likewise.
39295 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
39296 * lib/vasnprintf.c (VASNPRINTF): Likewise.
39297 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
39298 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
39299 gl_AC_TYPE_LONG_LONG.
39301 2006-10-11 Bruno Haible <bruno@clisp.org>
39303 * m4/longlong.m4: Add comments.
39304 * m4/ulonglong.m4: Likewise.
39306 2006-10-10 Bruno Haible <bruno@clisp.org>
39308 Make it possible to #define stpcpy, strdup to aliases.
39309 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
39310 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
39312 2006-10-10 Bruno Haible <bruno@clisp.org>
39314 Make it possible to #define gcd to an alias.
39315 * lib/gcd.c: Include config.h.
39317 2006-10-10 Bruno Haible <bruno@clisp.org>
39319 Make it possible to #define c_isascii to an alias.
39320 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
39321 defined. Undefine the macros before defining them, to avoid gcc
39323 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
39324 define NO_C_CTYPE_MACROS early.
39326 2006-10-10 Bruno Haible <bruno@clisp.org>
39328 Make it possible to #define set_program_name to an alias.
39329 * lib/progname.c: Don't undefine set_program_name; instead, undefine
39330 ENABLE_RELOCATABLE early.
39332 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
39334 Port to Tandem NSK OSS, which has 64-bit signed int but at most
39335 32-bit unsigned int. Problem reported by Matthew Woehlke in:
39336 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
39337 More generally, don't assume that 64-bit signed int is available
39338 if unsigned int is, and vice versa.
39339 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
39340 unsigned symbols, not on their signed counterparts.
39341 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
39342 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
39343 (UINT64_C, UINTMAX_C):
39345 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
39346 unsigned counterparts.
39347 (Have_long_long, Unsigned): New macros.
39348 (Int): Renamed from INT.
39349 (strtoimax): Use the new macros.
39350 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
39351 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
39352 * modules/inttypes (inttypes.h): Substitute
39353 HAVE_UNSIGNED_LONG_LONG_INT.
39354 * modules/stdint (stdint.h): Likewise.
39355 (Files): Add m4/ulonglong.m4.
39357 2006-10-10 Bruno Haible <bruno@clisp.org>
39359 Fix a gcc -Wshadow warning.
39360 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
39362 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
39363 gl_linked_indexof_from_to): Likewise.
39364 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
39366 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
39368 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
39369 Reported by Eric Blake.
39371 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
39373 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
39374 for NetBSD. Problem reported by Bruno Haible.
39376 2006-10-09 Jim Meyering <jim@meyering.net>
39378 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
39379 Patch from Bruno Haible.
39381 2006-10-09 Jim Meyering <jim@meyering.net>
39383 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
39384 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
39385 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
39387 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
39389 Don't include <config.h> twice; this doesn't work in some cases,
39390 e.g., when config.h has "#define intmax_t long long int" and
39391 we include <config.h>, <inttypes.h>, <config.h> in that order.
39392 Problem reported by Matthew Woehlke in:
39393 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
39394 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
39395 * lib/fts-cycle.c: Don't include config.h.
39396 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
39397 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
39398 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
39399 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
39401 * lib/xstrtoumax.c: Likewise.
39402 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
39403 __strtol and the like, so that this module is more like its siblings.
39404 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
39405 Remove; no longer needed now that we assume gnulib inttypes.h.
39407 2006-10-08 Bruno Haible <bruno@clisp.org>
39409 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
39412 2006-10-07 Jim Meyering <jim@meyering.net>
39414 * modules/inttypes (inttypes.h): Revert what seems to have been
39415 an inadvertent part of today's change: use "|", not "/" in the
39416 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
39418 2006-10-07 Bruno Haible <bruno@clisp.org>
39420 * modules/sublist: New file.
39422 2006-10-07 Bruno Haible <bruno@clisp.org>
39424 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
39425 * modules/argz (argz.h): Likewise.
39426 * modules/arpa_inet (arpa/inet.h): Likewise.
39427 * modules/byteswap (byteswap.h): Likewise.
39428 * modules/configmake (configmake.h): Likewise.
39429 * modules/fcntl (fcntl.h): Likewise.
39430 * modules/fnmatch (fnmatch.h): Likewise.
39431 * modules/getopt (getopt.h): Likewise.
39432 * modules/glob (glob.h): Likewise.
39433 * modules/inttypes (inttypes.h): Likewise.
39434 * modules/netinet_in (netinet/in.h): Likewise.
39435 * modules/poll (poll.h): Likewise.
39436 * modules/stdbool (stdbool.h): Likewise.
39437 * modules/stdint (stdint.h): Likewise.
39438 * modules/sys_select (sys/select.h): Likewise.
39439 * modules/sys_socket (sys/socket.h): Likewise.
39440 * modules/sys_stat (sys/stat.h): Likewise.
39441 * modules/sysexits (sysexits.h): Likewise.
39442 * modules/unistd (unistd.h): Likewise.
39443 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39444 Add a "DO NOT EDIT" comment to the generated file.
39445 (func_import): Likewise for gnulib-comp.m4.
39447 2006-10-07 Bruno Haible <bruno@clisp.org>
39449 * lib/gl_sublist.h: New file.
39450 * lib/gl_sublist.c: New file.
39452 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
39454 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
39455 name (relative to the original working directory) and the file
39456 name component (relative to the temporary working directory). All
39458 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
39459 * lib/mkdir-p.c (make_dir_parents): Likewise.
39460 * lib/mkdir-p.h (make_dir_parents): Likewise.
39462 2006-10-06 Eric Blake <ebb9@byu.net>
39464 Define several macros for use by the clean-temp module.
39465 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
39466 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
39467 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
39469 * lib/clean-temp.h (close_stream_temp): New declaration.
39470 * lib/clean-temp.c (includes): Pull in headers according to what
39471 other modules are in use.
39472 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
39474 2006-10-06 Bruno Haible <bruno@clisp.org>
39476 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
39477 instead of fopen, fwriteerror.
39479 2006-10-06 Bruno Haible <bruno@clisp.org>
39481 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
39482 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
39484 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
39485 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
39486 Return an error indicator.
39487 Suggested by Eric Blake.
39489 2006-10-06 Bruno Haible <bruno@clisp.org>
39491 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
39492 Reported by Eric Blake.
39494 2006-10-06 Bruno Haible <bruno@clisp.org>
39496 * modules/closeout (Description): Mention stderr too.
39498 2006-10-06 Bruno Haible <bruno@clisp.org>
39499 and Paul Eggert <eggert@cs.ucla.edu>
39501 * lib/closeout.c (close_stdout): Also close stderr.
39502 * lib/closeout.h: Update comment.
39504 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
39506 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
39507 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
39508 * lib/dirchownmod.c: Include lchown.h.
39509 * lib/lchown.c: Don't include files that lchown.h now includes.
39510 Don't declare chown, since lchown.h now does that.
39511 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
39512 (lchown): Define to rpl_chown if lchown is declared but
39513 does not exist. Declare using a prototype if lchown is not
39514 declared. Add a copyright notice.
39515 * lib/mkstemp.h: Include <unistd.h>.
39516 * lib/openat.c: Include lchown.h.
39518 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
39519 we now test for that separately.
39520 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
39521 rather than O_NOFOLLOW, when testing whether it's possible to
39522 avoid a race condition reliably.
39523 * lib/savewd.c (savewd_chdir): Likewise.
39525 Remove macros that are no longer needed now that stdint.h is
39527 * lib/fsusage.c (UINTMAX_MAX): Remove.
39528 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
39529 * lib/utimecmp.c (SIZE_MAX): Remove.
39531 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
39533 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
39534 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
39537 2006-10-05 Bruno Haible <bruno@clisp.org>
39539 * lib/gl_list.h (gl_sortedlist_search_from_to,
39540 gl_sortedlist_indexof_from_to): New declarations.
39541 (gl_list_implementation): New fields sortedlist_search_from_to,
39542 sortedlist_indexof_from_to.
39543 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
39545 * lib/gl_list.c (gl_sortedlist_search_from_to,
39546 gl_sortedlist_indexof_from_to): New functions.
39547 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
39549 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
39550 (gl_array_sortedlist_search_from_to): New function.
39551 (gl_array_list_implementation): Update.
39552 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
39554 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
39555 (gl_carray_sortedlist_search_from_to): New function.
39556 (gl_carray_list_implementation): Update.
39557 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
39558 gl_linked_sortedlist_indexof_from_to): New functions.
39559 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
39560 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
39561 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
39562 gl_tree_sortedlist_indexof_from_to): New functions.
39563 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
39564 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
39566 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
39567 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
39570 2006-10-05 Bruno Haible <bruno@clisp.org>
39572 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
39573 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
39574 (struct gl_list_implementation): Add fields search_from_to,
39575 indexof_from_to. Remove fields search, indexof.
39576 (gl_list_search): Use the search_from_to method.
39577 (gl_list_search_from, gl_list_search_from_to): New functions.
39578 (gl_list_indexof): Use the indexof_from_to method.
39579 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
39580 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
39581 (gl_list_search_from, gl_list_search_from_to): New functions.
39582 (gl_list_indexof): Use the indexof_from_to method.
39583 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
39584 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
39585 gl_array_indexof. Add start_index, end_index arguments.
39586 (gl_array_search_from_to): Renamed from gl_array_search. Add
39587 start_index, end_index arguments.
39588 (gl_array_remove, gl_array_list_implementation): Update.
39589 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
39590 gl_carray_indexof. Add start_index, end_index arguments.
39591 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
39592 start_index, end_index arguments.
39593 (gl_carray_remove, gl_carray_list_implementation): Update.
39594 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
39595 gl_linked_search. Add start_index, end_index arguments.
39596 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
39597 start_index, end_index arguments.
39598 (gl_linked_remove): Update.
39599 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
39600 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
39601 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
39603 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
39604 gl_tree_search. Add start_index, end_index arguments.
39605 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
39606 start_index, end_index arguments.
39607 (gl_tree_remove): Update.
39608 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
39609 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
39610 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
39612 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
39613 gl_tree_search. Add start_index, end_index arguments.
39614 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
39615 start_index, end_index arguments.
39616 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
39618 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
39620 2006-10-05 Bruno Haible <bruno@clisp.org>
39622 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
39624 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
39625 fwriteerror_temp): New declarations.
39626 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
39627 (descriptors): New variable.
39628 (cleanup): First, close the descriptors.
39629 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
39630 fclose_temp, fwriteerror_temp): New functions.
39632 2006-10-04 Jim Meyering <jim@meyering.net>
39634 * lib/fts.c (fts_open): Tiny comment change.
39636 2006-10-04 Bruno Haible <bruno@clisp.org>
39638 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
39639 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
39641 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
39642 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
39643 gl_LOCK_EARLY_BODY.
39644 (gl_LOCK): Require gl_LOCK_BODY.
39646 2006-10-04 Bruno Haible <bruno@clisp.org>
39648 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
39649 (gl_oset_search_atleast): New declaration.
39650 (struct gl_oset_implementation): Add field 'search_atleast'.
39651 (gl_oset_search_atleast): New inline function.
39652 * lib/gl_oset.c (gl_oset_search_atleast): New function.
39653 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
39654 (gl_array_oset_implementation): Update.
39655 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
39656 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
39657 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
39659 2006-10-04 Bruno Haible <bruno@clisp.org>
39661 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
39663 2006-10-03 Bruno Haible <bruno@clisp.org>
39665 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
39666 from gl_avltreehash_list_implementation.
39668 2006-10-03 Bruno Haible <bruno@clisp.org>
39670 * lib/gl_oset.c (gl_oset_add): Fix return type.
39672 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
39674 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
39676 2006-10-02 Eric Blake <ebb9@byu.net>
39678 * modules/strnlen (Depends-on): Add extensions.
39680 2006-10-02 Eric Blake <ebb9@byu.net>
39682 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
39683 definition in 2.60+.
39685 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
39687 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
39690 2006-10-02 Bruno Haible <bruno@clisp.org>
39692 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
39693 to the AUTOMAKE_OPTIONS.
39694 Reported by Jim Meyering.
39696 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
39698 Work around bug in Solaris 10 /proc file system:
39699 /proc/self/fd/NNN/.. isn't the parent directory of
39700 the directory whose file descriptor is NNN. This needs to
39701 be worked around at run time, not compile time, since a
39702 program might be built on Solaris 8, where things work, and
39704 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
39705 to use the following interface instead:
39706 (OPENAT_BUFFER_SIZE): New macro.
39707 (openat_proc_name): New function.
39708 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
39709 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
39711 * lib/openat-proc.c: New file.
39712 * modules/openat (Files): Add lib/openat-proc.c.
39713 (Depends-on): Add same-inode, stdbool.
39714 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
39716 2006-09-29 Bruno Haible <bruno@clisp.org>
39718 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
39719 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
39720 argument. Set stdout_closed before testing for ferror, not after.
39721 (fwriteerror, fwriteerror_no_ebadf): New functions.
39723 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39725 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
39727 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
39729 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
39730 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
39732 2006-09-28 Jim Meyering <jim@meyering.net>
39734 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
39735 Include <unistd.h>.
39737 2006-09-28 Bruno Haible <bruno@clisp.org>
39739 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
39740 * modules/linkedhash-list (Depends-on): Likewise.
39741 * modules/rbtreehash-list (Depends-on): Likewise.
39743 2006-09-28 Bruno Haible <bruno@clisp.org>
39745 * lib/strndup.h: Simplify the redefinition of strndup.
39746 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
39747 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
39749 2006-09-28 Bruno Haible <bruno@clisp.org>
39751 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
39752 * lib/gl_linkedhash_list.c: Likewise.
39753 * lib/gl_rbtreehash_list.c: Likewise.
39755 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
39757 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
39760 * lib/__fpending.h: Don't include <stdio_ext.h> unless
39761 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
39762 it causes <stdio_ext.h> to cause a compile-time error.
39763 Problem reported by Nelson H. F. Beebe.
39764 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
39765 of HAVE_DECL___PENDING.
39767 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
39768 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
39771 2006-09-27 Jim Meyering <jim@meyering.net>
39773 This file could end up with a definition for a function
39774 named __strndup, rather than rpl_strndup on a system with
39775 incomplete weak_alias support.
39776 * lib/strndup.c (strndup): Rename from __strndup.
39777 Remove #defines that used to map __strndup to strndup.
39778 Don't use K&R prototypes.
39779 Remove LIBC-related code, since this file is not sync'd with glibc.
39780 * lib/strndup.h: Revamp, accordingly.
39781 * m4/strndup.m4: Modernize.
39783 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
39785 * modules/savewd (Depends-on): Add 'raise'.
39786 * lib/savewd.c: Include <signal.h>, for 'raise'.
39788 2006-09-26 Jim Meyering <jim@meyering.net>
39790 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
39791 when we detect Darwin 8.7.0's acl_get_file bug.
39792 Rearrange to perform the new (below) run-test while $LIBS
39793 contains any acl-related library. Set USE_ACL at the end.
39794 (gl_ACL_GET_FILE): New function.
39796 2006-09-26 Eric Blake <ebb9@byu.net>
39798 * lib/verror.c: Include <config.h> unconditionally.
39800 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
39802 * modules/clock-time (Maintainer): Add self.
39803 * modules/getlogin_r (Depends-on): Add extensions.
39805 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39807 * modules/clock-time: New module.
39808 * modules/nanosleep (Depends-on): Add clock-time.
39809 * modules/gethrxtime (Depends-on): Likewise.
39810 * modules/gettime (Depends-on): Likewise.
39811 * modules/settime (Depends-on): Likewise.
39813 * modules/fts-lgpl: Depend on openat.
39814 * modules/mkancesdirs: Depend on savewd.
39815 * modules/mkdir-p: Likewise.
39817 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39819 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
39821 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
39822 `gl_have_arbitrary_file_name_length_limit' to
39823 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
39824 actually works between configure runs.
39826 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39827 Bruno Haible <bruno@clisp.org>
39829 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
39831 2006-09-25 Jim Meyering <jim@meyering.net>
39833 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
39834 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
39836 2006-09-25 Eric Blake <ebb9@byu.net>
39838 * gnulib-tool (func_import, func_create_testdir): Fix typos in
39839 exec's in 2006-09-18 patch when shuffling fds.
39841 2006-09-25 Bruno Haible <bruno@clisp.org>
39843 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
39844 Reported by Jim Meyering.
39846 2006-09-24 Jim Meyering <jim@meyering.net>
39848 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
39849 compare a pointer against a literal "0". That caused failures with
39850 at least HP-UX's hpcc.
39852 2006-09-22 Simon Josefsson <jas@extundo.com>
39856 * modules/gc-hmac-sha1:
39857 * modules/gc-hmac-md5:
39859 * modules/gc-arcfour: Distribute more files.
39861 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39863 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
39864 (gl_linked_iterator_from_to): Initialize struct completely.
39865 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
39866 (gl_tree_iterator_from_to): Likewise
39867 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
39868 * lib/gl_array_list.c [lint] (gl_array_iterator)
39869 (gl_array_iterator_from_to): Likewise.
39870 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
39871 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
39872 (gl_carray_iterator_from_to): Likewise.
39874 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
39875 * lib/md4.c (md4_process_block): Remove unused variable.
39876 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
39877 parentheses for clarity.
39879 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39881 * modules/bison-i18n (Depends-on): Add gettext.
39883 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39885 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
39886 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
39887 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
39888 also add missing comma that caused broken test.
39889 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
39890 stdlib.h, for `abort'.
39891 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
39893 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
39894 include unistd.h if present, for `rmdir'.
39895 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
39897 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
39898 in the process include standard headers for prototypes.
39899 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
39900 gets declared on GNU/Linux.
39901 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
39902 unistd.h, for `rmdir'.
39903 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
39905 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
39907 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
39909 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
39911 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39913 * gnulib-tool (func_version): Create output all at once. This
39914 may help avoid triggering unnecessary SIGPIPEs, and at any
39915 rate it doesn't hurt.
39917 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39918 Bruno Haible <bruno@clisp.org>
39920 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
39921 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39922 * m4/signed.m4 (bh_C_SIGNED): Likewise.
39924 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
39925 (gl_FUNC_VASPRINTF): Invoke it.
39927 2006-09-22 Bruno Haible <bruno@clisp.org>
39929 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
39930 getloadavg.c as first argument.
39932 2006-09-22 Bruno Haible <bruno@clisp.org>
39934 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
39935 at the beginning of the gl_INIT macro.
39936 * modules/getloadavg (configure.ac): Pass $gl_source_base to
39939 2006-09-22 Bruno Haible <bruno@clisp.org>
39941 * gnulib-tool (func_create_megatestdir): Don't include the config-h
39943 Suggested by Ralf Wildenhues.
39945 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
39947 Import this patch from libc:
39949 2006-09-06 Jakub Jelinek <jakub@redhat.com>
39951 * lib/regex_internal.c (re_string_reconstruct): Handle
39952 offset < pstr->valid_raw_len && pstr->offsets_needed case.
39953 Ensure no bytes read before raw_mbs array. Pass a saved copy of
39954 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
39955 re_string_context_at.
39957 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
39959 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
39960 gl_REGEX now does it for us.
39961 (gl_REGEX): Add test taken from
39962 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
39964 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
39965 Check that large offsets work. Modernize Autoconf usages.
39966 Prefer "yes" to mean a good thing rather than a bad.
39967 Don't put "#define mkstemp" in config.h, as this might interfere
39968 with standard system headers that "#define mkstemp mkstemp64".
39970 * modules/mkstemp (Depends-on): Add extensions, so that
39971 mkstemp is visible on some platforms.
39972 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
39973 (Include): Change to "mkstemp.h" from <stdlib.h>.
39974 (Files): Add mkstemp.h.
39976 * lib/mkstemp.h: New file, since some standard headers
39978 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
39979 Include "mkstemp.h".
39980 Make the _LIBC code resemble glibc original more,
39981 e.g., use K&R style.
39982 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
39983 (mkstemp): Remove, since mkstemp.h does this for us.
39984 * lib/stdlib--.h: Include mkstemp.h.
39986 Import this patch from libc:
39988 2006-04-07 Ulrich Drepper <drepper@redhat.com>
39990 * lib/tempname.c (__gen_tempname): Change attempts_min
39991 into a macro. Use preprocessor to decide how to initialize
39992 attempts [Coverity CID 67].
39994 2006-09-20 Bruno Haible <bruno@clisp.org>
39996 * lib/mkdtemp.c: Import from libc.
39997 2006-04-07 Ulrich Drepper <drepper@redhat.com>
39998 * sysdeps/posix/tempname.c (__gen_tempname): Change
39999 attempts_min into a macro. Use preprocessor to decide how to
40000 initialize attempts [Coverity CID 67].
40001 2001-11-27 Paul Eggert <eggert@twinsun.com>
40002 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
40003 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
40005 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40007 * gnulib-tool (func_exit): New function, to allow to pass the
40008 exit status portably through the trap. Use everywhere.
40009 (--help, --version): Signal a write error.
40010 (trap): catch SIGPIPE, for write errors.
40011 Exit at the end of the trap, with the correct exit status.
40013 2006-09-19 Karl Berry <karl@gnu.org>
40015 * doc/gnulib.texi: note about the license texinfo files.
40017 2006-09-19 Eric Blake <ebb9@byu.net>
40019 * gnulib-tool: Avoid space-tab.
40021 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
40023 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
40024 that prevented coreutils 6.1 from building. Problem reported
40025 by Petter Reinholdtsen.
40027 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
40029 * gnulib-tool (avoidlist): Fix typo that broke options like
40030 --avoid=lock that are used by coreutils bootstrap.
40032 2006-09-18 Mark D. Baushke <mdb@gnu.org>
40034 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
40035 more systematically.
40037 2006-09-18 Jim Meyering <jim@meyering.net>
40039 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
40041 2006-09-18 Bruno Haible <bruno@clisp.org>
40043 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
40045 2006-09-18 Bruno Haible <bruno@clisp.org>
40047 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
40048 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
40049 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
40050 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
40051 * m4/gettext.m4: Require autoconf >= 2.52.
40052 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
40053 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
40054 of gl_cv_header_inttypes_h.
40056 2006-09-18 Bruno Haible <bruno@clisp.org>
40058 * lib/javaversion.c: Include configmake.h.
40060 2006-09-18 Bruno Haible <bruno@clisp.org>
40062 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
40063 avoid that the while loops be executed in a subshell.
40065 2006-09-18 Bruno Haible <bruno@clisp.org>
40067 * MODULES.html.sh (func_module): Break long lines.
40068 Suggested by Bruce Korb <bkorb@gnu.org>.
40070 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40072 Speed up by a factor of 1.12.
40073 * gnulib-tool (nl): New variable.
40074 (func_import): Rewrite include directive extraction to only read each
40077 2006-09-17 Bruno Haible <bruno@clisp.org>
40079 * modules/javaversion (Makefile.am): Remove DEFS setting.
40080 (Depends-on): Add configmake, for PKGDATADIR definition.
40082 2006-09-17 Bruno Haible <bruno@clisp.org>
40084 * gnulib-tool (func_create_testdir): Rewrite all files at once.
40086 2006-09-17 Bruno Haible <bruno@clisp.org>
40088 * gnulib-tool (func_append): New function, stolen from libtool.m4.
40089 (func_modules_transitive_closure, func_modules_add_dummy,
40090 func_modules_to_filelist, func_import, func_create_testdir,
40091 func_create_megatestdir, ...): Use it wherever possible.
40092 Suggested by Ralf Wildenhues.
40094 2006-09-16 Karl Berry <karl@gnu.org>
40096 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
40097 to avoid sectioning errors.
40098 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
40099 [ifinfo]: blank line after @center-ed titles.
40100 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
40101 Spell FSF address consistently with others.
40102 (These changes approved by rms.)
40104 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40106 Speed up by a factor of 1.61.
40107 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
40108 already checked module names again.
40110 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40112 Speed up by a factor of 1.13.
40113 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
40114 for new_files, and the input to func_add_or_update.
40116 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40118 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
40119 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
40121 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
40123 * modules/mkancesdirs (Depends-on): Add fcntl.
40124 * modules/savewd: New file.
40125 * MODULES.html.sh (File system functions): Add savewd.
40127 * modules/configmake (Makefile.am): Add support for the
40128 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
40130 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
40132 * m4/savewd.m4: New file.
40134 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
40136 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
40137 (dirchownmod): New arg FD. All callers changed.
40138 Use FD rather than opening the directory ourself, as opening is
40139 now the caller's responsibility.
40140 * lib/dirchownmod.h: Likewise.
40141 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
40142 hosts that require <sys/types.h> before <sys/stat.h>. Include
40143 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
40144 (test_dir): Remove.
40145 (mkancesdirs): Return length of prefix of FILE that has already
40146 been made, or -2 if there is a child doing the work. Redo
40147 algorithm so that it is O(N) rather than O(N**2). Optimize away
40148 ".", and treat ".." specially since it might stray back into
40149 already-created areas. Use a subprocess if necessary. New arg
40150 WD; all users changed. MAKE_DIR function should now return 1
40151 if it creates a directory that is not readable. Return -2 if
40152 a child process is spun off.
40153 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
40154 Adjust signature to match code.
40155 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
40156 (make_dir_parents): Use a subprocess if necessary. New arg WD;
40158 * lib/savewd.c, lib/savewd.h: New files.
40160 2006-09-15 Jim Meyering <jim@meyering.net>
40162 * modules/rename-dest-slash: New module.
40163 * MODULES.html.sh (posix_compat): Add it here.
40165 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
40167 2006-09-15 Jim Meyering <jim@meyering.net>
40169 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
40172 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
40174 2006-09-15 Jim Meyering <jim@meyering.net>
40176 * lib/rename-dest-slash.c (has_trailing_slash): Use
40177 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
40178 (rpl_rename_dest_slash): Perform the cheaper trailing slash
40179 test before testing whether SRC is a directory.
40180 Suggestions from Bruno Haible.
40182 Avoid a warning about an unused variable.
40183 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
40184 into the #ifdef block where it's used.
40186 * lib/rename-dest-slash.c: New file.
40188 2006-09-14 Bruno Haible <bruno@clisp.org>
40190 * lib/allocsa.c: Include <config.h> unconditionally.
40191 * lib/asnprintf.c: Likewise.
40192 * lib/asprintf.c: Likewise.
40193 * lib/c-strcasecmp.c: Likewise.
40194 * lib/c-strcasestr.c: Likewise.
40195 * lib/c-strncasecmp.c: Likewise.
40196 * lib/c-strstr.c: Likewise.
40197 * lib/classpath.c: Likewise.
40198 * lib/clean-temp.c: Likewise.
40199 * lib/concatpath.c: Likewise.
40200 * lib/copy-file.c: Likewise.
40201 * lib/csharpcomp.c: Likewise.
40202 * lib/csharpexec.c: Likewise.
40203 * lib/execute.c: Likewise.
40204 * lib/fatal-signal.c: Likewise.
40205 * lib/findprog.c: Likewise.
40206 * lib/fwriteerror.c: Likewise.
40207 * lib/gl_array_list.c: Likewise.
40208 * lib/gl_array_oset.c: Likewise.
40209 * lib/gl_avltree_list.c: Likewise.
40210 * lib/gl_avltree_oset.c: Likewise.
40211 * lib/gl_avltreehash_list.c: Likewise.
40212 * lib/gl_carray_list.c: Likewise.
40213 * lib/gl_linked_list.c: Likewise.
40214 * lib/gl_linkedhash_list.c: Likewise.
40215 * lib/gl_list.c: Likewise.
40216 * lib/gl_oset.c: Likewise.
40217 * lib/gl_rbtree_list.c: Likewise.
40218 * lib/gl_rbtree_oset.c: Likewise.
40219 * lib/gl_rbtreehash_list.c: Likewise.
40220 * lib/imaxabs.c: Likewise.
40221 * lib/imaxdiv.c: Likewise.
40222 * lib/javacomp.c: Likewise.
40223 * lib/javaexec.c: Likewise.
40224 * lib/javaversion.c: Likewise.
40225 * lib/linebreak.c: Likewise.
40226 * lib/localcharset.c: Likewise.
40227 * lib/lock.c: Likewise.
40228 * lib/mbchar.c: Likewise.
40229 * lib/mbswidth.c: Likewise.
40230 * lib/mkdtemp.c: Likewise.
40231 * lib/pipe.c: Likewise.
40232 * lib/printf-args.c: Likewise.
40233 * lib/printf-parse.c: Likewise.
40234 * lib/progname.c: Likewise.
40235 * lib/progreloc.c: Likewise.
40236 * lib/readlink.c: Likewise.
40237 * lib/sh-quote.c: Likewise.
40238 * lib/stpcpy.c: Likewise.
40239 * lib/stpncpy.c: Likewise.
40240 * lib/strcasecmp.c: Likewise.
40241 * lib/strcasestr.c: Likewise.
40242 * lib/strcspn.c: Likewise.
40243 * lib/striconv.c: Likewise.
40244 * lib/strncasecmp.c: Likewise.
40245 * lib/strnlen1.c: Likewise.
40246 * lib/strstr.c: Likewise.
40247 * lib/strtok_r.c: Likewise.
40248 * lib/tls.c: Likewise.
40249 * lib/tmpdir.c: Likewise.
40250 * lib/unicodeio.c: Likewise.
40251 * lib/unsetenv.c: Likewise.
40252 * lib/vasnprintf.c: Likewise.
40253 * lib/vasprintf.c: Likewise.
40254 * lib/wait-process.c: Likewise.
40255 * lib/xallocsa.c: Likewise.
40256 * lib/xsetenv.c: Likewise.
40257 * lib/xstriconv.c: Likewise.
40259 2006-09-13 Simon Josefsson <jas@extundo.com>
40261 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
40262 that internally, suggested by Ralf Wildenhues
40263 <Ralf.Wildenhues@gmx.de>.
40265 2006-09-13 Simon Josefsson <jas@extundo.com>
40267 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
40269 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40271 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
40273 * lib/_fpending.c: Include <config.h> unconditionally, since we no
40274 longer worry about uses that don't define HAVE_CONFIG_H.
40275 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
40276 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
40277 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
40278 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
40279 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
40280 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
40281 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
40282 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
40283 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
40284 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
40285 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
40286 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
40287 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
40288 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
40289 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
40290 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
40291 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
40292 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
40293 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
40294 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
40295 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
40296 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
40297 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
40298 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
40299 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
40300 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
40301 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
40302 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
40303 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
40304 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
40305 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
40306 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
40307 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
40308 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
40309 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
40310 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
40311 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
40312 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
40313 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
40314 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
40315 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
40318 2006-09-13 Eric Blake <ebb9@byu.net>
40320 * lib/getopt.c: Fix typo in last commit.
40322 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
40324 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
40327 2006-09-12 Jim Meyering <jim@meyering.net>
40329 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
40330 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
40331 Reported by Nelson H. F. Beebe.
40333 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
40335 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
40336 program_invocation_name and program_invocation_short_name are
40338 * lib/argp-namefrob.h: Move declarations of program_invocation_name
40339 and program_invocation_short_name to argp.h, so they are visible
40341 * lib/argp.h: Likewise
40343 2006-09-10 Bruno Haible <bruno@clisp.org>
40345 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
40346 m4/inttypes_h.m4, m4/uintmax_t.m4.
40348 2006-09-10 Bruno Haible <bruno@clisp.org>
40350 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
40351 gl_AC_TYPE_UINTMAX_T.
40353 2006-09-10 Bruno Haible <bruno@clisp.org>
40355 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
40357 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
40359 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
40360 convention. Text proposed by Bruno Haible.
40361 (struct argp_option): Document the use of N_() wrappers.
40363 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
40364 '\v', and translate the two parts separately, instead of feeding
40365 the whole string to gettext. This allows to exclude
40366 '\v' from the strings visible to the translator by writing doc
40367 strings as N_("..") "\v" N_("..").
40369 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
40371 * config/srclist.txt: Undo latest change; the bug was fixed.
40373 2006-09-09 Bruno Haible <bruno@clisp.org>
40375 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
40376 assignments if building a library without libtool.
40377 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
40378 in func_emit_lib_Makefile_am.
40379 (func_import): When building a static library libfoo.a, arrange to
40380 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
40381 (func_create_testdir): Likewise.
40382 * modules/gc (configure.ac, Makefile.am): If building statically,
40383 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
40384 * modules/iconvme (configure.ac, Makefile.am): Likewise.
40385 * modules/striconv (configure.ac, Makefile.am): Likewise.
40386 Based on a suggestion by Ralf Wildenhues.
40388 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
40390 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
40391 Check for unistd.h too, since Autoconf doesn't assume POSIX.
40394 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
40395 Add year_2050_test to catch glibc bug 2821
40396 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
40398 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
40399 Prefer #ifdef to #if.
40401 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
40402 Return from 'main' instead of calling 'exit'.
40404 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
40406 * lib/mktime.c (guess_time_tm): Fix bug where mktime
40407 returned the maximum time_t value rather than (time_t) -1.
40408 Problem originally reported by William Bardwell
40409 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
40411 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
40413 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
40416 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
40418 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
40421 2006-09-08 Jim Meyering <jim@meyering.net>
40423 Don't make generated files read-only. That would bother too many
40424 people. However, do retain the ability to work when targets are
40425 read-only: remove the destination and temporary files before writing
40426 them (when generated via sed or echo), or by using the -f option for
40427 both cp and mv commands. Suggestion to use -f from Paul Eggert.
40428 * modules/alloca-opt, modules/argz, modules/arpa_inet:
40429 * modules/byteswap, modules/configmake, modules/fcntl:
40430 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
40431 * modules/localcharset, modules/netinet_in, modules/poll:
40432 * modules/stdbool, modules/stdint, modules/sys_select:
40433 * modules/sys_socket, modules/sys_stat, modules/sysexits:
40435 2006-09-08 Jim Meyering <jim@meyering.net>
40437 Avoid new build failure on FreeBSD 6.0.
40438 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
40439 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
40440 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
40442 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40444 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
40446 2006-09-07 Jim Meyering <jim@meyering.net>
40448 Fix global typo in last change: use chmod u-w, not chmod u-x.
40449 Spotted by Paul Eggert and Bruce Korb.
40450 * modules/alloca-opt, modules/argz, modules/arpa_inet:
40451 * modules/byteswap, modules/configmake, modules/fcntl:
40452 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
40453 * modules/localcharset, modules/netinet_in, modules/poll:
40454 * modules/stdbool, modules/stdint, modules/sys_select:
40455 * modules/sys_socket, modules/sys_stat, modules/sysexits:
40457 2006-09-06 Jim Meyering <jim@meyering.net>
40459 Make generated files be read-only.
40460 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
40461 Ensure that each generated file is now read-only.
40462 * modules/argz: Likewise.
40463 * modules/arpa_inet: Likewise.
40464 * modules/byteswap: Likewise.
40465 * modules/configmake: Likewise.
40466 * modules/fcntl: Likewise.
40467 * modules/fnmatch: Likewise.
40468 * modules/getopt: Likewise.
40469 * modules/glob: Likewise.
40470 * modules/inttypes: Likewise.
40471 * modules/netinet_in: Likewise.
40472 * modules/poll: Likewise.
40473 * modules/stdbool: Likewise.
40474 * modules/stdint: Likewise.
40475 * modules/sys_select: Likewise.
40476 * modules/sys_socket: Likewise.
40477 * modules/sys_stat: Likewise.
40478 * modules/sysexits: Likewise.
40479 * modules/localcharset: Same as above, but continue using temporary
40480 file named "t-$@" (why different?) rather than the "$@-t" used
40483 * modules/sysexits (Makefile.am): Replace literal occurrences
40484 of "sysexit.h" more readable, and more consistent, "$@".
40486 2006-09-06 Bruno Haible <bruno@clisp.org>
40488 * modules/striconv: New file.
40489 * modules/xstriconv: New file.
40490 * MODULES.html.sh (Internationalization functions): Add striconv,
40493 2006-09-06 Bruno Haible <bruno@clisp.org>
40495 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
40496 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
40497 not using libtool correctly.
40499 2006-09-06 Bruno Haible <bruno@clisp.org>
40501 * lib/striconv.h: New file.
40502 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
40504 * lib/xstriconv.h: New file.
40505 * lib/xstriconv.c: New file.
40507 2006-09-06 Bruno Haible <bruno@clisp.org>
40509 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40512 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40514 * lib/argz_.h: Sync from Libtool.
40516 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
40517 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40519 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
40521 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
40523 * modules/trim: New file.
40525 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
40527 * lib/trim.h: New file.
40528 * lib/trim.c: New file.
40530 2006-09-05 Bruno Haible <bruno@clisp.org>
40532 * MODULES.html.sh (String handling): Add trim.
40534 2006-09-04 Karl Berry <karl@gnu.org>
40536 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
40537 until next release.
40539 2006-09-03 Bruno Haible <bruno@clisp.org>
40541 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
40544 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
40546 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
40547 not gl_GETLOADAVG. Omit unneeded semicolons.
40548 Problems reported by Ralf Wildenhues in
40549 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
40550 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
40551 at the end, which is the usual gnulib style.
40553 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
40554 of doing all the work ourselves.
40555 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
40556 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
40558 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
40560 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
40561 Problem reported by Ralf Wildenhues in
40562 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
40564 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
40565 HAVE_STRUCT_STATFS_F_FSTYPENAME.
40567 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
40569 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
40570 yesterday's patch by changing test -n to test -z.
40572 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
40574 * modules/getloadavg (Files): Add m4/getloadavg.m4.
40575 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
40576 the former is now obsolescent.
40578 * modules/chdir-long (Depends-on): Add fcntl.
40580 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
40582 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
40583 obsolescent, and programs should use gnulib instead.
40584 * m4/getloadavg.m4: New file, with contents taken from Autoconf
40585 but with prefixes changed.
40587 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
40589 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
40590 or stdbool.h, because they might not exist while configuring.
40592 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
40593 Don't include unistd.h or limits.h; not needed, since chdir-long.h
40595 (O_DIRECTORY): Remove.
40597 2006-08-31 Eric Blake <ebb9@byu.net>
40599 * gnulib-tool: Don't let emacs change spaces to TAB.
40601 2006-08-31 Bruno Haible <bruno@clisp.org>
40603 * gnulib-tool: When calling func_import more than once, do it in a
40605 Reported by Eric Blake <ebb9@byu.net>.
40607 2006-08-31 Bruno Haible <bruno@clisp.org>
40609 * gnulib-tool (nl): Remove variable.
40610 (sed_transform_lib_file): Use more robust test for config-h module.
40611 (func_import): Fix typo in 2006-08-25 patch.
40613 2006-08-31 Bruno Haible <bruno@clisp.org>
40615 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
40616 specified, augment Makefile.am variables instead of assigning them.
40618 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
40620 Work around a bug in both the Linux and SunOS 64-bit kernels:
40621 nanosleep mishandles sleeps for longer than 2**31 seconds.
40622 Problem reported by Frank v Waveren in
40623 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
40624 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
40625 Check for nanosleep bug.
40626 (LIB_NANOSLEEP): Append clock_gettime library if needed.
40628 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
40630 Work around a bug in both the Linux and SunOS 64-bit kernels:
40631 nanosleep mishandles sleeps for longer than 2**31 seconds.
40632 Problem reported by Frank v Waveren in
40633 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
40634 * lib/nanosleep.c (BILLION): New constant.
40635 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
40636 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
40639 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
40641 * modules/nanosleep (Depends-on): Add gettime.
40643 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
40644 and Simon Josefsson <jas@extundo.com>
40645 and Oskar Liljeblad <oskar@osk.mine.nu>
40647 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
40648 * gnulib-tool (func_import): New license type 'unmodifiable license
40650 * modules/fdl: Use it. Longer description.
40651 * module/gpl, module/lgpl: New files.
40653 2006-08-30 Jim Meyering <jim@meyering.net>
40655 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
40656 shadowing the parameter.
40658 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40662 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40664 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
40665 sharing with gnulib. Report by Eric Blake.
40667 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
40669 * modules/isapipe: New file.
40670 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
40672 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
40674 * modules/configmake (Makefile.am): Add a comment, and omit
40675 the CONFIGMAKE_ prefix from generated macro names. Suggested
40678 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
40680 * m4/isapipe.m4: New file.
40682 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
40684 * lib/isapipe.c, lib/isapipe.h: New files.
40686 2006-08-29 Jim Meyering <jim@meyering.net>
40688 * modules/configmake (Makefile.am): Make configmake.h depend on
40689 Makefile. Otherwise, a stale configmake.h could hang around.
40691 2006-08-29 Eric Blake <ebb9@byu.net>
40693 * lib/error.c (error_at_line, print_errno_message): Match libc, after
40694 resolution of upstream bug 3044.
40696 2006-08-29 Bruno Haible <bruno@clisp.org>
40698 * modules/localcharset (Depends-on): Add configmake.
40699 (Makefile.am): Remove setting of LIBDIR through DEFS.
40701 2006-08-29 Bruno Haible <bruno@clisp.org>
40703 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
40706 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
40708 * modules/fcntl: New file.
40709 * modules/chdir-safer (Depends-on): Add fcntl.
40710 * modules/fts: Likewise.
40711 * modules/mkdir-p: Likewise.
40713 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
40714 This undoes the most recent change, since we're now addressing the
40715 problem in a different way.
40717 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
40718 into output, since the output might be called Makefile.am even
40719 if $makefile_name is something different.
40720 (func_import): Use $makefile_am rather than
40721 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
40724 * modules/inttypes (Files): Add m4/inttypes-h.m4.
40726 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
40728 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
40729 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
40730 recent change to stdint.m4, since we're now addressing the problem in a
40733 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
40735 * m4/fcntl_h.m4: New file.
40737 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
40739 * lib/fcntl_.h: New file.
40740 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
40742 * lib/dirchownmod.c: Likewise.
40743 * lib/fts.c: Likewise.
40745 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
40746 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
40747 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
40748 just before including <inttypes.h>, to avoid circular inclusion.
40750 2006-08-28 Jim Meyering <jim@meyering.net>
40752 * doc/visibility.texi: Actually read and correct the grammar of the
40753 sentence affected by yesterday's change.
40755 2006-08-28 Eric Blake <ebb9@byu.net>
40757 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
40760 2006-08-28 Eric Blake <ebb9@byu.net>
40762 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
40764 2006-08-28 Eric Blake <ebb9@byu.net>
40766 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
40768 2006-08-28 Bruno Haible <bruno@clisp.org>
40770 * modules/c-strstr: New file, from GNU gettext.
40771 * MODULES.html.sh (String handling): Add c-strstr.
40773 2006-08-28 Bruno Haible <bruno@clisp.org>
40775 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
40777 Reported by Eric Blake.
40779 2006-08-28 Bruno Haible <bruno@clisp.org>
40781 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
40782 (VASNPRINTF): Return a string of length > INT_MAX without failing.
40783 * lib/vasprintf.c: Include errno.h, limits.h.
40784 (EOVERFLOW): New fallback definition.
40785 (vasprintf): Test here whether the string length is > INT_MAX.
40786 * lib/vsnprintf.c: Include errno.h, limits.h.
40787 (EOVERFLOW): New fallback definition.
40788 (vsnprintf): Fix bug when generated string was too long for the buffer.
40789 Test here whether the string length is > INT_MAX.
40791 2006-08-28 Bruno Haible <bruno@clisp.org>
40793 * lib/inttypes_.h (SCNX*): Remove definitions.
40794 Reported by Eric Blake.
40796 2006-08-28 Bruno Haible <bruno@clisp.org>
40798 * lib/c-strstr.h: New file, from GNU gettext.
40799 * lib/c-strstr.c: New file, from GNU gettext.
40801 2006-08-28 Bruno Haible <bruno@clisp.org>
40803 * gnulib-tool: Reorder some statements.
40805 2006-08-28 Bruno Haible <bruno@clisp.org>
40807 * gnulib-tool: New option --makefile-name.
40808 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
40810 (func_import): Write $makefile_name to the cache file, and read it from
40811 there unless explicitly specified. Use $makefile_name as file name
40812 instead of Makefile.am. Adjust the recommendations accordingly.
40814 2006-08-28 Bruno Haible <bruno@clisp.org>
40816 * gnulib-tool (func_verify_module): Check against misapplying patch.
40818 2006-08-28 Bruno Haible <bruno@clisp.org>
40820 * gnulib-tool (func_relativize, func_relconcat): New functions.
40821 Give an error if --local-dir is given with --update.
40822 Remove trailing slashes from $local_gnulib_dir.
40823 (func_import): Store the relativized $local_gnulib_dir in
40824 gnulib-cache.m4, and read it from there if not specified explicitly.
40826 2006-08-28 Bruno Haible <bruno@clisp.org>
40828 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
40829 is the current directory. Respect also $local_gnulib_dir.
40831 2006-08-28 Bruno Haible <bruno@clisp.org>
40832 Simon Josefsson <jas@extundo.com>
40835 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
40837 2006-08-27 Jim Meyering <jim@meyering.net>
40839 * doc/visibility.texi: Remove duplicate word: "pointer".
40841 2006-08-26 Bruno Haible <bruno@clisp.org>
40843 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
40844 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
40845 (Makefile.am): Create inttypes.h from inttypes_.h.
40846 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
40848 * modules/imaxabs: New file.
40850 * modules/imaxdiv: New file.
40852 2006-08-26 Bruno Haible <bruno@clisp.org>
40854 * m4/inttypes.m4: New file.
40855 * m4/_inttypes_h.m4: Remove file.
40856 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
40858 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
40860 * m4/imaxabs.m4: New file.
40862 * m4/imaxdiv.m4: New file.
40864 2006-08-26 Bruno Haible <bruno@clisp.org>
40866 * lib/inttypes_.h: New file.
40867 * lib/inttypes.h: Remove file.
40868 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
40870 * lib/imaxabs.c: New file.
40872 * lib/imaxdiv.c: New file.
40874 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
40876 New config-h module, so that "make" output needn't be cluttered
40877 by -DHAVE_CONFIG_H.
40878 * MODULES.html.sh (Support for building libraries and executables):
40880 * modules/config-h: New file.
40881 * gnulib-tool (nl, sed_transform_lib_file): New vars.
40882 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
40883 the config-h module is used.
40885 New configmake module, so that "make" output needn't be cluttered
40886 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
40887 * MODULES.html.sh (Support for building libraries and executables):
40889 * modules/configmake: New file.
40891 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
40893 * m4/config-h.m4: New file.
40895 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
40897 * config/srclist.txt: Add elisp-comp.
40899 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
40901 * MODULES.html.sh (Support for building libraries and executables):
40903 * build-aux/elisp-comp: New file.
40904 * modules/elisp-comp: New file.
40906 2006-08-24 Bruno Haible <bruno@clisp.org>
40908 * gnulib-tool (func_create_testdir): Use non-default values of
40909 sourcebase and m4base.
40911 2006-08-24 Bruno Haible <bruno@clisp.org>
40913 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
40916 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
40918 * modules/openat (Depends-on): Add lchown.
40920 2006-08-23 Bruno Haible <bruno@clisp.org>
40922 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
40923 of gl_LOCK_EARLY instead of gl_LOCK.
40925 2006-08-23 Bruno Haible <bruno@clisp.org>
40927 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
40929 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
40931 2006-08-23 Bruno Haible <bruno@clisp.org>
40933 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
40936 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
40937 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
40938 (gl_LOCK): New macro.
40940 2006-08-22 Simon Josefsson <jas@extundo.com>
40942 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
40945 2006-08-22 Simon Josefsson <jas@extundo.com>
40947 * MODULES.html.sh: Add "Support for maintaining and release
40950 * build-aux/gnupload: New file, from coreutils.
40952 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
40954 Avoid the need for AC_LIBSOURCES in m4 macros.
40955 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
40956 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
40957 * modules/check-version (EXTRA_DIST): Add check-version.h.
40958 * modules/crc (EXTRA_DIST): Add crc.h.
40959 * modules/des (EXTRA_DIST): Add des.h.
40960 * modules/gc (EXTRA_DIST): Add gc.h.
40961 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
40962 * modules/getline (EXTRA_DIST): Add getline.h.
40963 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
40964 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
40965 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
40966 * modules/md2 (EXTRA_DIST): Add md2.h.
40967 * modules/md4 (EXTRA_DIST): Add md4.h.
40968 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
40969 * modules/read-file (EXTRA_DIST): Add read-file.h.
40970 * modules/readline (EXTRA_DIST): Add readline.h.
40971 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
40972 rijndael-api-fst.h.
40974 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
40976 * m4/rijndael.m4 (gl_ARCFOUR):
40977 * m4/arctwo.m4 (gl_ARCTWO):
40978 * m4/check-version.m4 (gl_CHECK_VERSION):
40979 * m4/crc.m4 (gl_CRC):
40980 * m4/des.m4 (gl_DES):
40981 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
40982 * m4/gc.m4 (gl_GC):
40983 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
40984 * m4/getline.m4 (gl_FUNC_GETLINE):
40985 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
40986 * m4/hmac-md5.m4 (gl_HMAC_MD5):
40987 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
40988 * m4/md2.m4 (gl_MD2):
40989 * m4/md4.m4 (gl_MD4):
40990 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
40991 * m4/read-file.m4 (gl_FUNC_READ_FILE):
40992 * m4/readline.m4 (gl_FUNC_READLINE):
40993 * m4/rijndael.m4 (gl_RIJNDAEL):
40994 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
40995 to get the necessary .h files and whatnot.
40997 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
40999 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
41000 gnulib rather than the other way around.
41001 * config/srclistvars.sh (COREUTILS): Remove.
41003 2006-08-22 Jim Meyering <jim@meyering.net>
41005 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
41007 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
41009 2006-08-22 Eric Blake <ebb9@byu.net>
41011 * modules/regexprops-generic: New file.
41012 * MODULES.html.sh (Support for building documentation): List it.
41014 2006-08-22 Eric Blake <ebb9@byu.net>
41016 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
41017 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
41018 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
41019 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
41021 2006-08-22 Bruno Haible <bruno@clisp.org>
41023 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
41024 and lib_LTLIBRARIES like the other lib_* variables.
41026 2006-08-22 Bruno Haible <bruno@clisp.org>
41028 * build-aux/x-to-1.in: New file, from GNU gettext.
41030 2006-08-22 Bruno Haible <bruno@clisp.org>
41032 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
41035 2006-08-22 Bruno Haible <bruno@clisp.org>
41037 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
41040 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
41043 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
41045 Problem reported by Bruno Haible.
41047 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
41049 Avoid the need for AC_LIBSOURCES in m4 macros.
41050 * modules/acl (EXTRA_DIST): Add acl.h.
41051 * modules/argmatch (Files): Add m4/argmatch.m4.
41052 (configure.ac): Add gl_ARGMATCH.
41053 (EXTRA_DIST): Renamed from lib_SOURCES, for
41054 consistency with the other modules. Remove argmatch.c.
41055 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
41056 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
41057 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
41058 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
41059 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
41060 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
41061 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
41062 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
41063 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
41064 * modules/closeout (EXTRA_DIST): Add closeout.h.
41065 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
41066 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
41067 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
41068 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
41069 dirname.h; remove basename.c and stripslash.c.
41070 * modules/exclude (EXTRA_DIST): Add exclude.h.
41071 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
41072 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
41073 * modules/file-type (EXTRA_DIST): Add file-type.h.
41074 * modules/filemode (EXTRA_DIST): Add filemode.h.
41075 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
41076 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
41077 * modules/fpending (EXTRA_DIST): Add __fpending.h.
41078 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
41079 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
41080 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
41081 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
41082 * modules/getdate (EXTRA_DIST): Add getdate.c.
41083 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
41084 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
41085 * modules/getpass (EXTRA_DIST): Add getpass.h.
41086 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
41087 * modules/group-member (EXTRA_DIST): Add group-member.h.
41088 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
41089 * modules/hash (EXTRA_DIST): Add hash.h.
41090 * modules/human (EXTRA_DIST): Add human.h.
41091 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
41092 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
41093 * modules/lchown (EXTRA_DIST): Add lchown.h.
41094 * modules/long-options (EXTRA_DIST): Add long-options.h.
41095 * modules/lstat (EXTRA_DIST): Add lstat.h.
41096 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
41097 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
41098 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
41099 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
41100 * modules/memxor (EXTRA_DIST): Add memxor.h.
41101 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
41102 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
41103 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
41104 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
41105 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
41106 * modules/physmem (EXTRA_DIST): Add physmem.h.
41107 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
41108 * modules/posixver (EXTRA_DIST): Add posixver.h.
41109 * modules/quote (EXTRA_DIST): Add quote.h.
41110 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
41111 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
41112 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
41113 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
41114 regex_internal.h regexec.c.
41115 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
41116 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
41117 * modules/same (EXTRA_DIST): Add same.h.
41118 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
41119 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
41120 * modules/savedir (EXTRA_DIST): Add savedir.h.
41121 * modules/sha1 (EXTRA_DIST): Add sha1.h.
41122 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
41123 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
41124 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
41125 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
41126 * modules/strdup (EXTRA_DIST): Add strdup.h.
41127 * modules/strftime (EXTRA_DIST): Add strftime.h.
41128 * modules/strndup (EXTRA_DIST): Add strndup.h.
41129 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
41130 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
41131 * modules/time_r (EXTRA_DIST): Add time_r.h.
41132 * modules/timespec (EXTRA_DIST): Add timespec.h.
41133 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
41134 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
41135 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
41136 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
41137 * modules/userspec (EXTRA_DIST): Add userspec.h.
41138 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
41139 * modules/utimens (EXTRA_DIST): Add utimens.h.
41140 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
41141 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
41142 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
41143 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
41144 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
41145 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
41146 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
41147 * modules/yesno (EXTRA_DIST): Add yesno.h.
41149 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
41151 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
41153 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
41154 * m4/dev-ino.m4, same-inode.m4: Remove.
41156 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
41157 * m4/acl.m4 (AC_FUNC_ACL):
41158 * m4/backupfile.m4 (gl_BACKUPFILE):
41159 * m4/c-strtod.m4 (gl_C99_STRTOLD):
41160 * m4/canon-host.m4 (gl_CANON_HOST):
41161 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41162 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
41163 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
41164 * m4/cloexec.m4 (gl_CLOEXEC):
41165 * m4/close-stream.m4 (gl_CLOSE_STREAM):
41166 * m4/closeout.m4 (gl_CLOSEOUT):
41167 * m4/dirfd.m4 (gl_FUNC_DIRFD):
41168 * m4/dirname.m4 (gl_DIRNAME):
41169 * m4/exclude.m4 (gl_EXCLUDE):
41170 * m4/exitfail.m4 (gl_EXITFAIL):
41171 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
41172 * m4/file-type.m4 (gl_FILE_TYPE):
41173 * m4/filemode.m4 (gl_FILEMODE):
41174 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
41175 * m4/fpending.m4 (gl_FUNC_FPENDING):
41176 * m4/fprintftime.m4 (gl_FPRINTFTIME):
41177 * m4/fts.m4 (gl_FUNC_FTS):
41178 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
41179 * m4/getdate.m4 (gl_GETDATE):
41180 * m4/gethrxtime.m4 (gl_GETHRXTIME):
41181 * m4/getpagesize.m4 (gl_GETPAGESIZE):
41182 * m4/getpass.m4 (gl_FUNC_GETPASS):
41183 * m4/gettime.m4 (gl_GETTIME):
41184 * m4/getugroups.m4 (gl_GETUGROUPS):
41185 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
41186 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
41187 * m4/hard-locale.m4 (gl_HARD_LOCALE):
41188 * m4/hash.m4 (gl_HASH):
41189 * m4/idcache.m4 (gl_IDCACHE):
41190 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
41191 * m4/lchown.m4 (gl_FUNC_LCHOWN):
41192 * m4/long-options.m4 (gl_LONG_OPTIONS):
41193 * m4/lstat.m4 (gl_FUNC_LSTAT):
41194 * m4/md5.m4 (gl_MD5):
41195 * m4/memcasecmp.m4 (gl_MEMCASECMP):
41196 * m4/memcoll.m4 (gl_MEMCOLL):
41197 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
41198 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
41199 * m4/memxor.m4 (gl_MEMXOR):
41200 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
41201 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
41202 * m4/modechange.m4 (gl_MODECHANGE):
41203 * m4/mountlist.m4 (gl_MOUNTLIST):
41204 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
41205 * m4/openat.m4 (gl_FUNC_OPENAT):
41206 * m4/pathmax.m4 (gl_PATHMAX):
41207 * m4/physmem.m4 (gl_PHYSMEM):
41208 * m4/posixtm.m4 (gl_POSIXTM):
41209 * m4/posixver.m4 (gl_POSIXVER):
41210 * m4/quote.m4 (gl_QUOTE):
41211 * m4/quotearg.m4 (gl_QUOTEARG):
41212 * m4/readtokens.m4 (gl_READTOKENS):
41213 * m4/readutmp.m4 (gl_READUTMP):
41214 * m4/regex.m4 (gl_REGEX):
41215 * m4/safe-read.m4 (gl_SAFE_READ):
41216 * m4/safe-write.m4 (gl_SAFE_WRITE):
41217 * m4/same.m4 (gl_SAME):
41218 * m4/save-cwd.m4 (gl_SAVE_CWD):
41219 * m4/savedir.m4 (gl_SAVEDIR):
41220 * m4/settime.m4 (gl_SETTIME):
41221 * m4/sha1.m4 (gl_SHA1):
41222 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
41223 * m4/stat-macros.m4 (gl_STAT_MACROS):
41224 * m4/stat-time.m4 (gl_STAT_TIME):
41225 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
41226 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
41227 * m4/strdup.m4 (gl_FUNC_STRDUP):
41228 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
41229 * m4/strndup.m4 (gl_FUNC_STRNDUP):
41230 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
41231 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
41232 * m4/time_r.m4 (gl_TIME_R):
41233 * m4/timespec.m4 (gl_TIMESPEC):
41234 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
41235 * m4/unlinkdir.m4 (gl_UNLINKDIR):
41236 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
41237 * m4/userspec.m4 (gl_USERSPEC):
41238 * m4/utimecmp.m4 (gl_UTIMECMP):
41239 * m4/utimens.m4 (gl_UTIMENS):
41240 * m4/xalloc.m4 (gl_XALLOC):
41241 * m4/xgetcwd.m4 (gl_XGETCWD):
41242 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
41243 * m4/xreadlink.m4 (gl_XREADLINK):
41244 * m4/xstrtod.m4 (gl_XSTRTOD):
41245 * m4/yesno.m4 (gl_YESNO):
41246 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
41247 to get the necessary .h files and whatnot.
41249 2006-08-21 Mark D. Baushke <mdb@gnu.org>
41250 Bruno Haible <bruno@clisp.org>
41252 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
41253 /bin/sh understanding of '!' conditional negation.
41255 2006-08-21 Jim Meyering <jim@meyering.net>
41257 * modules/openat (Depends-on): Really alphabetize.
41259 * modules/acl (Depends-on): Add error and quote.
41261 * check-module (find_included_lib_files): Add at-func.c to the
41262 ok-to-include-more-than-once white list.
41264 * modules/openat (Depends-on): Add lstat. Alphabetize.
41266 2006-08-21 Bruno Haible <bruno@clisp.org>
41268 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41269 Emit a pkgdata_DATA variable only if some snippets add contents to it.
41270 Reported by Martin Lambers <marlam@marlam.de>.
41272 2006-08-21 Bruno Haible <bruno@clisp.org>
41274 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
41275 specify an installation location, don't emit a noinst_LIBRARIES or
41276 noinst_LTLIBRARIES assignment.
41278 2006-08-21 Bruno Haible <bruno@clisp.org>
41281 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
41282 BeOS has mbrtowc() but no <wctype.h>.
41284 2006-08-21 Bruno Haible <bruno@clisp.org>
41287 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
41290 2006-08-21 Bruno Haible <bruno@clisp.org>
41293 * lib/mbchar.h: Include <wctype.h> only if it exists.
41295 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
41297 Remove files that are no longer needed by their respective modules.
41298 * m4/obstack.m4: Remove.
41299 * m4/strerror_r.m4: Remove.
41300 * m4/uint32_t.m4: Remove.
41301 * m4/uintptr_t.m4: Remove.
41302 * m4/ullong_max.m4: Remove.
41303 * m4/xstrtoimax.m4: Remove.
41304 * m4/xstrtoumax.m4: Remove.
41306 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
41307 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
41308 dependencies now capture this.
41310 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
41311 Do not use AC_LIBSOURCES, since gnulib modules now do this.
41312 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
41313 * m4/human.m4 (gl_HUMAN): Likewise.
41314 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
41315 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
41317 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
41319 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
41320 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
41322 * m4/human.m4 (gl_HUMAN): Likewise.
41323 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
41324 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
41325 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
41326 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
41327 * m4/xstrtol (gl_XSTRTOL): Likewise.
41329 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
41330 AC_TYPE_LONG_LONG_INT.
41331 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
41332 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
41333 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
41334 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
41336 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
41339 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
41340 (gl_PREREQ_XSTRTOUL): Remove.
41342 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
41344 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
41347 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
41349 Add and change modules to make it easier for coreutils to use
41351 * modules/backupfile (Files): Remove m4/d-ino.m4.
41352 (Depends-on): Add d-ino.
41353 * modules/cycle-check (Depends-on): Add stdint.
41354 (lib_SOURCES): Add cycle-check.h.
41355 * modules/d-ino: New module.
41356 * modules/d-type: New module.
41357 * modules/error (Files): Remove m4/strerror_r.m4.
41358 * modules/filemode (Files): Add m4/st_dm_mode.m4.
41359 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
41360 m4/inttypes_h.m4, m4/uintmax_t.m4.
41361 (Depends-on): Add stdint.
41362 (lib_SOURCES): Add fsusage.h.
41363 * modules/getcwd (Files): Remove d-ino.m4.
41364 (Depends-on): Add d-ino.
41365 * modules/getndelim2 (Depends-on): Add stdint.
41366 * modules/glob (Files): Remove m4/d-type.m4.
41367 (Depends-on): Add d-type.
41368 * modules/host-os: New module.
41369 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
41370 m4/inttypes_h.m4, m4/uintmax_t.m4.
41371 * Depends-on: Add stdint.
41372 (lib_SOURCES): Add human.h.
41373 * modules/inttostr (Files): Remove m4/intmax_t.m4,
41374 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
41375 m4/uintmax_t.m4, m4/ulonglong.m4.
41376 (Depends-on): Add stdint.
41377 (EXTRA_DIST): Add inttostr.h.
41378 * modules/lchmod: New module.
41379 * modules/link-follow: New module.
41380 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
41381 (Depends-on): Add lchmod.
41382 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
41383 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
41384 (Depends-on): Add stdint.
41385 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
41386 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
41387 (Depends-on): Add stdint.
41388 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
41389 * modules/perl: New module.
41390 * modules/regex (Depends-on): Add stdint.
41391 * modules/rmdir-errno: New module.
41392 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
41394 (Depends-on): Add stdint.
41395 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
41397 (Depends-on): Add stdint.
41398 * modules/unlink-busy: New module.
41399 * modules/utimecmp (Depends-on): Add stdint.
41400 * modules/uptime: New module.
41401 * modules/winsz-ioctl: New module.
41402 * modules/winsz-termios: New module.
41403 * modules/xnanosleep (Depends-on): Add nanosleep.
41404 * modules/ullong_max: Remove.
41405 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
41406 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
41407 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
41408 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
41409 (Depends-on): Add inttypes.
41410 (lib_SOURCES): Add xstrtol.h.
41411 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
41412 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
41413 * MODULES.html.sh: Move 'assert' into the assert section.
41414 Move 'dummy' into the linking section.
41416 Add section for compatibility checks for POSIX:2001 functions,
41417 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
41418 winsz-ioctl, and winsz-termios into it.
41420 Add top-level Misc section and put host-os, perl, and uptime
41423 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
41425 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
41426 now assume the stdint module. Do not include inttypes.h.
41427 * lib/fsusage.h: Likewise.
41428 * lib/getndelim2.c: Likewise.
41429 * lib/human.h: Likewise.
41430 * lib/inttostr.h: Likewise.
41431 * lib/obstack.c: Likewise.
41432 * lib/regex_internal.h: Likewise.
41433 * lib/tempname.c: Likewise.
41434 * lib/utimecmp.c: Likewise.
41435 * lib/xstrtol.h: Likewise.
41437 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
41439 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
41440 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
41441 * lib/xtime.h: Likewise.
41443 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
41445 * modules/openat (Files): Add lib/fchmodat.c.
41446 Fixes problem reported by Jay Youngman.
41448 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
41450 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
41451 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
41453 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
41454 Bruno Haible <bruno@clisp.org>
41456 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
41457 and is a script that invokes bison. Tighten the code. Add comments.
41459 2006-08-18 Jim Meyering <jim@meyering.net>
41461 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
41462 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
41463 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
41464 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
41466 2006-08-18 Bruno Haible <bruno@clisp.org>
41468 * modules/bison-i18n: New file.
41469 * MODULES.html.sh (Internationalization functions): Add it.
41471 2006-08-18 Bruno Haible <bruno@clisp.org>
41473 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
41474 sys/statvfs.h. When getmntinfo was found, check its declaration and
41475 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
41477 2006-08-18 Bruno Haible <bruno@clisp.org>
41479 * m4/bison-i18n.m4: New file, from bison.
41481 2006-08-18 Bruno Haible <bruno@clisp.org>
41483 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
41484 (ME_DUMMY): Treat "kernfs" as a dummy.
41485 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
41487 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
41489 Update from coreutils.
41491 2006-08-15 Jim Meyering <jim@meyering.net>
41493 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
41495 2006-01-17 Jim Meyering <jim@meyering.net>
41497 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
41499 2006-01-11 Jim Meyering <jim@meyering.net>
41501 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
41502 Check for the lchmod function.
41504 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
41506 Update from coreutils.
41508 * lib/__fpending.h: Add copyright notice.
41509 * lib/fprintftime.h: Likewise.
41510 * lib/savedir.c: Use (C) in copyright notice.
41511 * lib/savedir.h: Likewise.
41513 2006-08-15 Jim Meyering <jim@meyering.net>
41515 * lib/at-func.c: New file, with the logic of all emulated at-functions.
41516 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
41517 in support of the EXPECTED_ERRNO macro.
41518 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
41519 definitions. Instead, define the appropriate symbols and include
41521 * lib/mkdirat.c (mkdirat): Likewise.
41522 * lib/fchmodat.c (fchmodat): Likewise.
41523 (ENOSYS): Remove definition.
41524 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
41525 it. Don't include "unistd--.h" -- it wasn't ever used.
41527 2006-01-17 Jim Meyering <jim@meyering.net>
41529 Rewrite fts.c not to change the current working directory,
41530 by using openat, fstatat, fdopendir, etc..
41532 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
41533 (HAVE_OPENAT_SUPPORT): Define.
41534 [_LIBC] (fchdir): Don't undef or define; no longer used.
41535 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
41536 Now, this `function' always succeeds, and consumes its file descriptor
41537 parameter -- so callers must not close such FDs. Update callers.
41538 (diropen_fd, opendirat, cwd_advance_fd): New functions.
41539 (diropen): Add parameter, SP. Adjust all callers.
41540 Implement using diropen_fd, rather than open.
41541 (fts_open): Initialize new member, fts_cwd_fd.
41542 Remove fts_rft-setting code.
41543 (fts_close): Close fts_cwd_fd, if necessary.
41544 (__opendir2): Define in terms of opendir or opendirat,
41545 depending on whether the FST_NOCHDIR flag is set.
41546 (fts_build): Since fts_safe_changedir consumes its FD, and since
41547 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
41548 and close the dup'd file descriptor upon failure.
41549 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
41550 (fts_safe_changedir): Tweak semantics to reflect that this function
41551 now calls cwd_advance_fd and hence consumes its FD argument.
41552 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
41553 [struct FTS] (fts_rft): Remove now-unused member.
41554 [struct FTS] (fts_cycle.state): Improve comment.
41556 * lib/openat.c (openat_needs_fchdir): New function.
41557 * lib/openat.h (openat_needs_fchdir): Declare it.
41559 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
41561 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
41562 Problem and fix reported by Pádraig Brady in
41563 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
41565 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
41567 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
41569 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
41571 * lib/memcoll.c (memcoll): Optimize for the common case where the
41572 arguments are bytewise equal.
41574 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
41576 * doc/regexprops-generic.texi: Add a copyright notice.
41578 2006-08-15 Bruno Haible <bruno@clisp.org>
41580 * modules/tmpdir (License): Change to LGPL.
41582 2006-08-15 Bruno Haible <bruno@clisp.org>
41584 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
41587 2006-08-14 Simon Josefsson <jas@extundo.com>
41589 * config/srclist.txt: Add gnupload.
41591 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
41593 Change copyright notice from LGPL 2 to GPL 2, since that's the
41594 standard form used in the gnulib repository.
41595 * tests/test-lock.c: Likewise.
41596 * tests/test-stdint.c: Likewise.
41597 * tests/test-tls.c: Likewise.
41599 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
41600 prelude-manager. User shorter URLs for GNU projects, without '?'.
41601 Add copyright notice.
41603 * check-module: Add copyright notice. Output a copyright
41604 notice if "--version" is specified.
41605 * modules/COPYING: New file.
41606 * tests/test-getaddrinfo.c: Add copyright notice.
41607 * tests/test-verify.c: Likewise.
41609 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
41611 Change copyright notice from LGPL 2 to GPL 2, since that's the
41612 standard form used in the gnulib repository.
41613 * lib/lock.c: LGPL -> GPL.
41614 * lib/lock.h: Likewise.
41615 * lib/strnlen1.c: Likewise.
41616 * lib/strnlen1.h: Likewise.
41617 * lib/tls.c: Likewise.
41618 * lib/tls.h: Likewise.
41619 * lib/tmpdir.c: Likewise.
41621 * lib/TODO: Remove; this belongs only in coreutils.
41623 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
41625 Add copyright notices to long-enough files that lack them, since
41626 otherwise the files aren't clearly free. Use the same notice that
41627 getdate.texi already uses.
41628 * doc/alloca-opt.texi: Add copyright notice.
41629 * doc/alloca.texi: Likewise.
41630 * doc/ctime.texi: Likewise.
41631 * doc/functions.texi: Likewise.
41632 * doc/gcd.texi: Likewise.
41633 * doc/gnulib-tool.texi: Likewise.
41634 * doc/inet_ntoa.texi: Likewise.
41635 * doc/visibility.texi: Likewise.
41637 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
41638 * doc/quote.texi: Add copyright notice.
41640 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
41641 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
41642 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
41643 Mention SunOS 5.11. Mention that everything before SunOS 5.7
41644 is now obsolete, and give a pointer to the Sun list.
41645 Add copyright notice.
41647 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
41649 * config/srclistvars.sh: Add copyright notice.
41651 2006-08-14 Eric Blake <ebb9@byu.net>
41653 Import the following change from libc:
41655 2006-08-12 Ulrich Drepper <drepper@redhat.com>
41658 * lib/misc/error.c: Add space between program name and message if file
41661 2006-08-12 Karl Berry <karl@gnu.org>
41663 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
41664 remove, these originate in gnulib now.
41666 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41668 * doc/Makefile (standards.info standards.html standards.dvi):
41669 Also depend on make-stds.texi.
41671 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
41673 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
41674 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
41676 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
41677 in wchar_t. Problem reported by Eric Blake.
41679 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
41680 LEN is smaller than SIZE. Suggested by Bruno Haible.
41681 Also, help the compiler to keep LEN in a register.
41683 2006-08-11 Eric Blake <ebb9@byu.net>
41685 * users.txt: Sort. Add tar.
41687 2006-08-11 Bruno Haible <bruno@clisp.org>
41689 * users.txt: New file.
41691 2006-08-11 Bruno Haible <bruno@clisp.org>
41693 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
41694 before <wchar.h>. Needed for OSF/1 and BSD/OS.
41696 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
41698 * modules/snprintf (Depends-on): Remove minmax.
41699 (Maintainer): Add self and Bruno.
41701 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
41703 * lib/.cppi-disable: Add snprintf.h, socket_.h.
41704 * lib/snprintf.c: Include <errno.h> and <limits.h>.
41705 (EOVERFLOW): Define if the system does not.
41706 Do not include "minmax.h"; it wasn't used.
41707 (snprintf): Don't assume size_t promotes to an unsigned type.
41708 Fix bug when generated string was too long for the buffer: the
41709 buffer's contents are supposed to be the initial prefix of the
41710 output. Don't assume vasnprintf returns EOVERFLOW if the size
41711 exceeds INT_MAX; do the check ourselves.
41713 Import the following changes from libc:
41715 2006-06-02 Jakub Jelinek <jakub@redhat.com>
41717 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
41718 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
41719 set wc to the byte which couldn't be converted.
41720 (re_string_reconstruct): Don't clear valid_raw_len before calling
41721 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
41722 tip_context using re_string_context_at.
41724 2006-05-02 Ulrich Drepper <drepper@redhat.com>
41726 * lib/posix/regex.h: g++ still cannot handled [restrict].
41728 2006-04-21 Ulrich Drepper <drepper@redhat.com>
41730 * lib/posix/regex.h: Remove special handling for VMS.
41732 2006-08-10 Jim Meyering <jim@meyering.net>
41734 * modules/same-inode: New module.
41735 * modules/dev-ino: New module.
41736 * modules/cycle-check: Depend on these modules, rather than simply
41737 including their .h files.
41738 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
41739 required via m4/cycle-check.m4.
41740 * modules/same: Depend on new same-inode module, rather than
41741 including same-inode.h.
41742 * modules/chdir-safer: New file.
41744 * modules/chown (Depends-on): Add stat-macros.
41746 2006-08-10 Jim Meyering <jim@meyering.net>
41748 * m4/cycle-check.m4: New file.
41749 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
41750 * m4/dev-ino.m4, m4/same-inode.m4: New files.
41752 2006-08-10 Eric Blake <ebb9@byu.net>
41754 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
41755 in from original proposal.
41757 2006-08-10 Eric Blake <ebb9@byu.net>
41758 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41760 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
41763 2006-08-10 Bruno Haible <bruno@clisp.org>
41765 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
41768 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
41770 Sync from coreutils.
41772 2006-07-19 Mike Frysinger <vapier@gentoo.org>
41774 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
41775 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
41777 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
41779 * modules/restrict: Remove; no longer needed now that we assume
41780 Autoconf 2.59 or later.
41781 * MODULES.html.sh: Remove 'restrict'.
41782 * modules/argp (Depends-on): Remove 'restrict'.
41783 * modules/base64 (Depends-on): Likewise.
41784 * modules/gc (Depends-on): Likewise.
41785 * modules/getaddrinfo (Depends-on): Likewise.
41786 * modules/glob (Depends-on): Likewise.
41787 * modules/inet_ntop (Depends-on): Likewise.
41788 * modules/inet_pton (Depends-on): Likewise.
41789 * modules/memxor (Depends-on): Likewise.
41790 * modules/regex (Depends-on): Likewise.
41791 * modules/strtok_r (Depends-on): Likewise.
41792 * modules/time_r (Depends-on): Likewise.
41794 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
41796 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
41797 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
41798 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
41799 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
41800 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
41801 * m4/memxor.m4 (gl_MEMXOR): Likewise.
41802 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
41803 gl_C_RESTRICT replaced by AC_C_RESTRICT.
41805 Merge from coreutils.
41806 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
41807 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
41808 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
41809 * m4/time_r.m4 (gl_TIME_R): Likewise.
41811 2006-08-09 Karl Berry <karl@gnu.org>
41813 * config/srclist.txt: no more gettext-tools, per Bruno.
41815 2006-08-08 Eric Blake <ebb9@byu.net>
41817 * modules/verror: New module.
41818 * MODULES.html.sh: Document it.
41820 2006-08-08 Eric Blake <ebb9@byu.net>
41822 * lib/verror.h, lib/verror.c: New files.
41824 2006-08-08 Eric Blake <ebb9@byu.net>
41826 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
41827 verror_at_line output complies with GNU Coding Standards even when
41830 2006-08-07 Bruno Haible <bruno@clisp.org>
41832 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
41834 Reported by Ralf Wildenhues.
41836 2006-08-07 Bruno Haible <bruno@clisp.org>
41838 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
41839 in an AC_DEFUN. Needed so that the autoconf snippets can use
41842 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41844 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41845 Initialize pkgdata_DATA.
41846 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
41849 2006-08-06 Eric Blake <ebb9@byu.net>
41851 * lib/error.h: Fold in some upstream changes from glibc.
41852 * lib/error.c: Likewise.
41854 2006-08-04 Bruno Haible <bruno@clisp.org>
41856 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41857 Make the mostlyclean-local rule depend on mostlyclean-generic.
41858 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
41860 2006-07-31 Bruno Haible <bruno@clisp.org>
41862 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
41863 <stdlib.h>, <string.h>.
41865 2006-07-30 Bruno Haible <bruno@clisp.org>
41867 * modules/readlink (License): Change to LGPL.
41869 2006-07-30 Bruno Haible <bruno@clisp.org>
41871 * modules/javaversion (Makefile.am): Distribute javaversion.java and
41872 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
41873 set PKGDATADIR to point to it.
41875 2006-07-30 Bruno Haible <bruno@clisp.org>
41877 * modules/csharpexec (configure.ac): Comment out macro invocation.
41878 * modules/javaexec (configure.ac): Likewise.
41879 * modules/javacomp-script (configure.ac): Likewise.
41881 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
41883 2006-07-30 Bruno Haible <bruno@clisp.org>
41885 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
41888 2006-07-30 Bruno Haible <bruno@clisp.org>
41890 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
41892 2006-07-30 Bruno Haible <bruno@clisp.org>
41894 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41895 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
41898 2006-07-29 Bruno Haible <bruno@clisp.org>
41900 Make it possible for gnulib-tool to work with locally modified or
41901 augmented gnulib repositories.
41902 * gnulib-tool (func_usage): Document --local-dir option.
41903 (local_gnulib_dir): New variable.
41904 Handle --local-dir option.
41905 (func_lookup_file): New function.
41906 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
41907 (func_get_description, func_get_filelist, func_get_description,
41908 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
41909 func_get_automake_snippet, func_get_include_directive,
41910 func_get_license, func_get_maintainer): Use func_lookup_file.
41911 (func_import, func_create_testdir): Use func_lookup_file.
41913 2006-07-29 Bruno Haible <bruno@clisp.org>
41915 * modules/setenv (Depends-on): Add unistd.
41917 2006-07-29 Bruno Haible <bruno@clisp.org>
41919 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
41921 2006-07-29 Bruno Haible <bruno@clisp.org>
41923 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
41925 2006-07-29 Bruno Haible <bruno@clisp.org>
41927 * gnulib-tool (import, update): If there is no Makefile.am, look at
41928 aclocal.m4, instead of bailing out.
41930 2006-07-29 Bruno Haible <bruno@clisp.org>
41932 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
41933 Categorize the options by when they are useful.
41935 2006-07-29 Bruno Haible <bruno@clisp.org>
41937 * gnulib-tool (func_usage): Document option --no-libtool.
41938 Handle option --no-libtool.
41939 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
41940 for changed semantics of $libtool variable.
41941 (func_import): Likewise. If libtool is not used, show this through
41942 an option --no-libtool.
41943 (func_create_testdir): Update.
41945 2006-07-29 Bruno Haible <bruno@clisp.org>
41947 * gnulib-tool (func_import): Extend error message about missing
41950 2006-07-29 Bruno Haible <bruno@clisp.org>
41952 * gnulib-tool (func_import): Don't create the $docbase directory if
41953 there is no file to store there.
41955 2006-07-29 Bruno Haible <bruno@clisp.org>
41957 * gnulib-tool (autoconf_minversion): If a --dir option is given and
41958 relevant, look for configure.ac there, not in the current directory.
41959 Also use a simple search for AC_PREREQ, not "autoconf --trace".
41961 2006-07-29 Bruno Haible <bruno@clisp.org>
41963 * gnulib-tool (SORT): New variable.
41964 (func_usage): Undocument --assume-autoconf option.
41965 Remove --assume-autoconf option handling.
41966 (autoconf_minversion): Determine from the contents of configure.ac.
41967 (func_import): Remove autoconf_minversion handling.
41968 Suggested by Eric Blake.
41970 2006-07-29 Bruno Haible <bruno@clisp.org>
41972 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
41974 2006-07-29 Bruno Haible <bruno@clisp.org>
41976 * config/srclist.txt (*setenv.[ch]): Remove rules.
41978 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
41980 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
41982 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
41984 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
41987 2006-07-28 Simon Josefsson <jas@extundo.com>
41989 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
41990 * modules/inet_pton (Depends-on): Likewise.
41992 2006-07-28 Simon Josefsson <jas@extundo.com>
41994 * m4/netinet_in_h.m4: New file.
41996 2006-07-28 Simon Josefsson <jas@extundo.com>
41998 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
42001 2006-07-28 Simon Josefsson <jas@extundo.com>
42003 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
42006 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
42008 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
42009 setgid on directories only if they set these bits.
42010 * lib/modechange.h: Remove obsolete comment about masks.
42012 2006-07-28 Eric Blake <ebb9@byu.net>
42014 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
42017 2006-07-28 Bruno Haible <bruno@clisp.org>
42019 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
42021 2006-07-28 Bruno Haible <bruno@clisp.org>
42023 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
42025 2006-07-28 Bruno Haible <bruno@clisp.org>
42027 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
42028 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
42030 Avoids link error on FreeBSD 4.x.
42031 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42033 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
42035 * lib/mbswidth.c (iswcntrl): Likewise.
42037 2006-07-27 Bruno Haible <bruno@clisp.org>
42039 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
42042 2006-07-27 Bruno Haible <bruno@clisp.org>
42044 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
42045 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
42048 2006-07-26 Eric Blake <ebb9@byu.net>
42050 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
42052 2006-07-26 Eric Blake <ebb9@byu.net>
42054 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
42055 like mingw that lack mkstemp.
42056 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
42057 avoid compilation warning on mingw.
42059 2006-07-26 Bruno Haible <bruno@clisp.org>
42061 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
42062 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
42063 INT_FAST*_MIN, INTPTR_MIN.
42065 2006-07-25 Bruno Haible <bruno@clisp.org>
42067 * modules/version-etc (Depends-on): Add stdarg.
42069 2006-07-25 Bruno Haible <bruno@clisp.org>
42071 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
42074 2006-07-25 Bruno Haible <bruno@clisp.org>
42076 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
42077 defined in <stdarg.h> or config.h.
42079 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
42081 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
42082 (gl_STDIO_SAFER): Remove.
42084 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
42086 * MODULES.html.sh (File stream based Input/Output):
42087 Add fopen-safer, tmpfile-safer; remove stdio-safer.
42088 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
42089 * modules/fopen-safer, modules/tmpfile-safer: New files.
42090 * modules/stdio-safer: Remove.
42092 2006-07-24 Bruno Haible <bruno@clisp.org>
42094 * modules/tmpdir: New file.
42095 * MODULES.html.sh (File system functions): Add it.
42097 2006-07-24 Bruno Haible <bruno@clisp.org>
42099 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
42100 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
42102 2006-07-24 Bruno Haible <bruno@clisp.org>
42104 * modules/clean-temp: New file.
42106 2006-07-24 Bruno Haible <bruno@clisp.org>
42108 * m4/tmpdir.m4: New file, from GNU gettext.
42110 2006-07-24 Bruno Haible <bruno@clisp.org>
42112 * lib/tmpdir.h: New file, from GNU gettext.
42113 * lib/tmpdir.c: New file, from GNU gettext.
42115 2006-07-24 Bruno Haible <bruno@clisp.org>
42117 * lib/clean-temp.h: New file, from GNU gettext.
42118 * lib/clean-temp.c: New file, from GNU gettext.
42120 2006-07-23 Eric Blake <ebb9@byu.net>
42122 * modules/stdio-safer (Files): Add tmpfile-safer.c.
42123 (Depends-on): Add binary-io.
42125 2006-07-23 Eric Blake <ebb9@byu.net>
42127 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
42129 2006-07-23 Eric Blake <ebb9@byu.net>
42131 * lib/tmpfile-safer.c: New file.
42132 * lib/stdio-safer.h (fopen_safer): Add prototype.
42133 * lib/stdio--.h (tmpfile): Make safer.
42135 2006-07-23 Bruno Haible <bruno@clisp.org>
42137 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
42138 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
42139 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
42140 gl_linked_remove_at): Use it.
42142 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
42143 and Simon Josefsson <jas@extundo.com>
42145 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
42147 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
42149 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
42151 * modules/close-stream: New file.
42152 * modules/closeout (Description): Make it clear that it exits
42153 with a diagnostic on error.
42154 (Depends-on): Add close-stream. Remove fpending, stdbool.
42155 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
42157 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
42159 * m4/close-stream.m4: New file.
42161 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
42163 * lib/close-stream.c, lib/close-stream.h: New files.
42165 2006-07-22 Bruno Haible <bruno@clisp.org>
42167 Merge from GNU gettext 0.15.
42169 2006-05-01 Bruno Haible <bruno@clisp.org>
42171 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
42173 2006-07-22 Bruno Haible <bruno@clisp.org>
42175 * modules/javaversion: New file.
42176 * MODULES.html.sh (Java): Add javaversion.
42178 2006-03-12 Bruno Haible <bruno@clisp.org>
42180 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
42182 2005-12-04 Bruno Haible <bruno@clisp.org>
42184 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
42187 2006-06-21 Bruno Haible <bruno@clisp.org>
42189 Avoid warnings from recent versions of mcs.
42190 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
42191 -o, -L, -r any more. Use options documented since mcs-1.0
42192 instead. Similarly for -g.
42194 2005-12-04 Bruno Haible <bruno@clisp.org>
42196 * build-aux/csharpcomp.sh.in: Suffix for resources is
42197 .resources, not .resource.
42199 2005-07-09 Bruno Haible <bruno@clisp.org>
42201 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
42203 Reported by Mark Junker <mjscod@gmx.de>.
42205 2006-07-22 Bruno Haible <bruno@clisp.org>
42207 * modules/gettext: Upgrade to gettext-0.15.
42208 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
42210 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
42212 2006-07-22 Bruno Haible <bruno@clisp.org>
42214 Merge from GNU gettext 0.15.
42216 2006-03-25 Bruno Haible <bruno@clisp.org>
42218 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
42220 2006-07-21 Bruno Haible <bruno@clisp.org>
42222 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
42225 2006-05-09 Bruno Haible <bruno@clisp.org>
42227 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
42228 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
42229 for the conftestver execution.
42231 2006-05-01 Bruno Haible <bruno@clisp.org>
42233 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
42234 optional target-version argument. Verify that the compiler
42235 groks source of the specified source-version, or add -source
42236 option as necessary. Verify that the compiler produces
42237 bytecode in the specified target-version, or add -target and
42238 -source options as necessary. Make the result of the test
42239 available as variable CONF_JAVAC. Also log error output in
42242 2006-03-11 Bruno Haible <bruno@clisp.org>
42244 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
42246 2006-05-09 Bruno Haible <bruno@clisp.org>
42248 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
42249 CLASSPATH_SEPARATOR to a semicolon.
42251 2006-03-12 Bruno Haible <bruno@clisp.org>
42253 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
42254 available as variable CONF_JAVA, for subsequent autoconf
42255 tests. Also log error output in config.log.
42257 2006-07-19 Bruno Haible <bruno@clisp.org>
42259 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
42260 that getline works on glibc2 systems. Needed to avoid trouble
42262 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
42264 2005-12-04 Bruno Haible <bruno@clisp.org>
42266 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
42267 launcher (untested).
42269 2005-12-04 Bruno Haible <bruno@clisp.org>
42271 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
42273 2006-07-22 Bruno Haible <bruno@clisp.org>
42275 * gettext.m4: Update from GNU gettext-0.15.
42276 * nls.m4: Likewise.
42278 * inttypes-pri.m4: Likewise.
42279 * inttypes-h.m4: Renamed from inttypes.m4.
42280 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
42282 2006-07-22 Bruno Haible <bruno@clisp.org>
42284 Merge from GNU gettext 0.15.
42286 2005-07-05 Bruno Haible <bruno@clisp.org>
42288 * printf-args.c (printf_fetchargs): Work around broken
42289 definition of wint_t on mingw.
42291 2005-02-12 Bruno Haible <bruno@clisp.org>
42293 * xallocsa.h: Add extern "C" for C++.
42295 2006-05-17 Bruno Haible <bruno@clisp.org>
42297 Cygwin portability.
42298 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
42300 2006-04-30 Bruno Haible <bruno@clisp.org>
42302 * progreloc.c: Include <mach-o/dyld.h> if available.
42303 (find_executable): Use _NSGetExecutablePath when possible.
42305 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
42307 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
42310 2005-12-29 Bruno Haible <bruno@clisp.org>
42312 * progreloc.c (set_program_name_and_installdir): Fix
42315 2005-12-04 Bruno Haible <bruno@clisp.org>
42317 Cygwin portability.
42318 * progreloc.c: Include <windows.h> also on Cygwin.
42319 (find_executable): Add support for Cygwin.
42320 (set_program_name_and_installdir): Handle also platforms with
42323 2006-07-11 Bruno Haible <bruno@clisp.org>
42325 * javacomp.c: Fix a comment.
42326 Reported by Jim Meyering.
42328 2006-04-30 Bruno Haible <bruno@clisp.org>
42330 * javacomp.h (compile_java_class): Add source_version,
42331 target_version arguments.
42332 * javacomp.c: Rewritten to choose only a compiler that
42333 respects the specified source_version and target_version.
42335 2006-06-27 Bruno Haible <bruno@clisp.org>
42337 Assume correct S_ISDIR macro.
42338 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
42340 2006-07-22 Bruno Haible <bruno@clisp.org>
42342 * javaversion.h: New file, from GNU gettext.
42343 * javaversion.c: New file, from GNU gettext.
42344 * javaversion.java: New file, from GNU gettext.
42345 * javaversion.class: New file, from GNU gettext.
42347 2006-05-17 Bruno Haible <bruno@clisp.org>
42349 Cygwin portability.
42350 * javaexec.c (execute_java_class): Test for jview program
42353 2006-04-09 Bruno Haible <bruno@clisp.org>
42355 * fatal-signal.c: Don't include string.h.
42356 (at_fatal_signal): Use a copying loop instead of memcpy.
42358 2005-12-04 Bruno Haible <bruno@clisp.org>
42360 * csharpexec.c: Add support for 'clix' launcher (untested).
42361 (execute_csharp_using_sscli): New function.
42362 (execute_csharp_program): Call it.
42364 2006-06-21 Bruno Haible <bruno@clisp.org>
42366 Avoid warnings from recent versions of mcs.
42367 * csharpcomp.c (compile_csharp_using_mono): Don't use options
42368 -o, -L, -r any more. Use options documented since mcs-1.0
42369 instead. Similarly for -g.
42371 2005-07-09 Bruno Haible <bruno@clisp.org>
42373 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
42375 Reported by Mark Junker <mjscod@gmx.de>.
42377 2006-06-17 Bruno Haible <bruno@clisp.org>
42379 * config.charset: Update for NetBSD 3.0.
42381 2006-05-17 Bruno Haible <bruno@clisp.org>
42383 Cygwin portability.
42384 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
42386 2006-05-16 Bruno Haible <bruno@clisp.org>
42388 * localcharset.c [CYGWIN]: Include <windows.h>.
42389 (get_charset_aliases): For Cygwin, return the same CPxxx
42390 aliases list as under WIN32.
42391 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
42392 the environment variables. Fall back to GetACP().
42394 2006-04-05 Bruno Haible <bruno@clisp.org>
42396 * config.charset: Update Juan Manuel Guerrero's address.
42398 2005-02-12 Bruno Haible <bruno@clisp.org>
42400 * allocsa.h: Add extern "C" for C++.
42402 2005-02-10 Bruno Haible <bruno@clisp.org>
42404 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
42405 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
42407 2006-07-22 Bruno Haible <bruno@clisp.org>
42409 * gettext.h: Update to GNU gettext-0.15.
42411 2006-07-22 Bruno Haible <bruno@clisp.org>
42413 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
42414 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
42415 lib-prefix.m4, longdouble.m4, ssize_t.m4.
42417 2006-07-21 Eric Blake <ebb9@byu.net>
42419 * modules/stdlib-safer: New file.
42420 * MODULES.html.sh (File stream based Input/Output): Add
42423 2006-07-21 Eric Blake <ebb9@byu.net>
42425 * lib/stdlib-safer.h: New file from coreutils, required by
42428 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
42430 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
42432 2006-07-20 Bruno Haible <bruno@clisp.org>
42434 * gnulib-tool: Recognize new option --assume-autoconf.
42435 (autoconf_minversion): New variable.
42436 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
42438 2006-07-20 Bruno Haible <bruno@clisp.org>
42440 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
42442 2006-07-19 Derek R. Price <derek@ximbiot.com>
42444 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
42445 Reindent and repaginate.
42447 2006-07-19 Derek Price <derek@ximbiot.com>
42449 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
42452 2006-07-17 Bruno Haible <bruno@clisp.org>
42454 * modules/list: New file.
42455 * modules/array-list: New file.
42456 * modules/carray-list, modules/carray-list-tests: New files.
42457 * modules/linked-list, modules/linked-list-tests: New files.
42458 * modules/avltree-list, modules/avltree-list-tests: New files.
42459 * modules/rbtree-list, modules/rbtree-list-tests: New files.
42460 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
42461 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
42462 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
42463 * modules/oset: New file.
42464 * modules/array-oset: New file.
42465 * modules/avltree-oset, modules/avltree-oset-tests: New files.
42466 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
42467 * tests/test-carray_list.c: New file.
42468 * tests/test-linked_list.c: New file.
42469 * tests/test-avltree_list.c: New file.
42470 * tests/test-rbtree_list.c: New file.
42471 * tests/test-linkedhash_list.c: New file.
42472 * tests/test-avltreehash_list.c: New file.
42473 * tests/test-rbtreehash_list.c: New file.
42474 * tests/test-avltree_oset.c: New file.
42475 * tests/test-rbtree_oset.c: New file.
42476 * MODULES.html.sh (Container data structures): New section.
42478 2006-07-17 Bruno Haible <bruno@clisp.org>
42480 * m4/gl_list.m4: New file.
42482 2006-07-17 Bruno Haible <bruno@clisp.org>
42484 * lib/gl_list.h: New file.
42485 * lib/gl_list.c: New file.
42486 * lib/gl_array_list.h: New file.
42487 * lib/gl_array_list.c: New file.
42488 * lib/gl_carray_list.h: New file.
42489 * lib/gl_carray_list.c: New file.
42490 * lib/gl_linked_list.h: New file.
42491 * lib/gl_linked_list.c: New file.
42492 * lib/gl_anylinked_list1.h: New file.
42493 * lib/gl_anylinked_list2.h: New file.
42494 * lib/gl_avltree_list.h: New file.
42495 * lib/gl_avltree_list.c: New file.
42496 * lib/gl_anyavltree_list1.h: New file.
42497 * lib/gl_anyavltree_list2.h: New file.
42498 * lib/gl_rbtree_list.h: New file.
42499 * lib/gl_rbtree_list.c: New file.
42500 * lib/gl_anyrbtree_list1.h: New file.
42501 * lib/gl_anyrbtree_list2.h: New file.
42502 * lib/gl_anytree_list1.h: New file.
42503 * lib/gl_anytree_list2.h: New file.
42504 * lib/gl_linkedhash_list.h: New file.
42505 * lib/gl_linkedhash_list.c: New file.
42506 * lib/gl_anyhash_list1.h: New file.
42507 * lib/gl_anyhash_list2.h: New file.
42508 * lib/gl_avltreehash_list.h: New file.
42509 * lib/gl_avltreehash_list.c: New file.
42510 * lib/gl_rbtreehash_list.h: New file.
42511 * lib/gl_rbtreehash_list.c: New file.
42512 * lib/gl_anytreehash_list1.h: New file.
42513 * lib/gl_anytreehash_list2.h: New file.
42515 * lib/gl_oset.h: New file.
42516 * lib/gl_oset.c: New file.
42517 * lib/gl_array_oset.h: New file.
42518 * lib/gl_array_oset.c: New file.
42519 * lib/gl_avltree_oset.h: New file.
42520 * lib/gl_avltree_oset.c: New file.
42521 * lib/gl_rbtree_oset.h: New file.
42522 * lib/gl_rbtree_oset.c: New file.
42523 * lib/gl_anytree_oset.h: New file.
42525 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
42527 * m4/mkancesdirs.m4: New file.
42528 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
42529 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
42530 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
42533 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
42535 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
42536 * lib/mkancesdirs.h: New files.
42537 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
42538 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
42539 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
42540 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
42541 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
42542 callers changed. Revamp internals significantly, by not
42543 attempting to create directories that are temporarily more
42544 permissive than the final results. Do not attempt to use
42545 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
42546 This removes some race conditions, fixes some bugs, and simplifies
42547 things. Use new dirchownmod function to do owner and mode changes.
42548 * lib/mkdir-p.h: Likewise.
42549 * lib/modechange.c (octal_to_mode): New function.
42550 (struct mode_change): New member mentioned.
42551 (make_node_op_equals): New arg mentioned. All callers changed.
42552 (mode_compile): Keep track of which mode bits the user has explicitly
42554 (mode_adjust): New arg DIR, so that we implement the X op correctly.
42555 New arg PMODE_BITS, to keep track of which mode bits the user
42556 mentioned; it treats S_ISUID and S_ISGID speciall.
42557 All callers changed.
42558 * lib/modechange.h: Likewise.
42560 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
42562 * MODULES.html.sh: Add mkancestors.
42563 * modules/mkancesdirs: New module.
42564 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
42565 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
42566 The chdir-safer and afs files are now orphans; I'll remove them
42567 unless someone speaks up.
42568 Add lib/dirchownmod.c, lib/dirchownmod.h.
42569 (Depends-on): Remove alloca, chown, save-cwd, dirname.
42570 Add lchown, mkancesdirs.
42571 (Maintainer): Add self.
42573 2006-07-15 Karl Berry <karl@gnu.org>
42575 * gnulib-tool: help message wording/arrangement.
42577 2006-07-14 Simon Josefsson <jas@extundo.com>
42579 * doc/gnulib.texi (Libtool and Windows): New section.
42581 2006-07-12 Simon Josefsson <jas@extundo.com>
42583 * modules/gendocs (License): Fix license, approved by Karl.
42585 2006-07-12 Eric Blake <ebb9@byu.net>
42587 * MODULES.html.sh: Add gendocs.
42589 2006-07-11 Eric Blake <ebb9@byu.net>
42591 * modules/fdl: New module, to install doc/fdl.texi.
42592 * MODULES.html.sh: Add new section for documentation modules.
42593 * gnulib-tool: Avoid space-tab.
42594 (--doc-base): New option, to manage files from doc.
42596 2006-07-11 Eric Blake <ebb9@byu.net>
42598 * m4/absolute-header.m4: Fix comments to match recent change.
42600 2006-07-11 Eric Blake <ebb9@byu.net>
42602 * gnulib-tool: List --doc-base before --tests-base.
42604 2006-07-11 Derek R. Price <derek@ximbiot.com>
42606 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
42608 2006-07-11 Bruno Haible <bruno@clisp.org>
42610 * README: Mention where to put documentation.
42612 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42614 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
42616 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
42618 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
42621 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
42623 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
42624 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
42625 "no/such/file/stdint.h" when there is no such file, so that
42626 the resulting C code can be parsed by dodgy compilers.
42627 Problems reported by Bob Proulx.
42629 2006-07-10 Derek R. Price <derek@ximbiot.com>
42631 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
42632 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
42633 macros into the GNU _D_EXACT_NAMLEN.
42634 * lib/savedir.c: Likewise.
42635 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
42637 2006-07-10 Derek R. Price <derek@ximbiot.com>
42638 and Paul Eggert <eggert@cs.ucla.edu>
42640 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
42642 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
42643 macros into the GNU _D_EXACT_NAMLEN.
42645 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
42647 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
42648 around the absolute name, to work around a problem with the HP-UX
42649 11.23 native C compiler, reported by Bob Proulx.
42651 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
42653 * doc/maintain.texi, make-stds.texi: Sync from
42654 <http://savannah.gnu.org/projects/gnustandards>.
42656 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
42658 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
42660 2006-07-09 Jim Meyering <jim@meyering.net>
42662 * m4/glob.m4: Remove a doubled word in a comment.
42664 2006-07-09 Jim Meyering <jim@meyering.net>
42666 * lib/argp-pv.c: Remove a doubled word in a comment.
42667 * lib/check-version.c (check_version): Likewise.
42668 * lib/javacomp.c (compile_java_class): Likewise.
42670 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
42672 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
42673 for the benefit of people using Autoconf 2.60. If you want to
42674 support older Autoconf versions you can copy m4/onceonly_2_57.m4
42675 (or m4/onceonly.m4, if pre-2.57) manually.
42677 2006-07-08 Jim Meyering <jim@meyering.net>
42679 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
42681 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
42682 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
42685 2006-07-08 Jim Meyering <jim@meyering.net>
42687 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
42689 2006-07-07 Simon Josefsson <jas@extundo.com>
42691 * tests/test-crc.c: Change expected crc value, the test vector
42692 were probably computed using the old broken crc.c?
42694 2006-07-06 Simon Josefsson <jas@extundo.com>
42696 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
42697 now the canonical place for the M4 file).
42699 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
42700 from the sys_socket dependency now.
42702 * modules/inet_pton (Files): Ditto.
42704 * modules/inet_ntop (Files): Ditto.
42706 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
42708 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
42709 not gl_PREREQ_GETUSERSHELL.
42711 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42713 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
42714 with only one argument, for Autoconf 2.60.
42715 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
42716 expand to nothing, so add a shell command to avoid syntax error.
42717 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
42719 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42721 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
42723 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
42725 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
42726 no longer needed. Check for isblank decl.
42727 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
42728 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
42731 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
42733 * lib/getloadavg.c: Use __VMS, not VMS.
42734 * lib/getopt.c: Likewise.
42735 * lib/getpagesize.h: Likewise.
42736 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
42737 and probably does not work.
42739 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
42741 * lib/.cppi-disable: Add wcwidth.
42742 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
42743 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
42744 (ISGRAPH): Remove. All uses changed to isgraph.
42745 (FOLD) [!defined _LIBC]: Remove special case.
42746 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
42747 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
42749 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
42752 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
42754 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
42755 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
42756 brackets. Other minor changes to suppress some compiler
42759 2006-07-06 Derek R. Price <derek@ximbiot.com>
42760 and Paul Eggert <eggert@cs.ucla.edu>
42762 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
42763 of invoking obsolescent AC_HEADER_DIRENT macro.
42764 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
42765 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
42766 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42767 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
42768 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
42769 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
42770 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
42771 * m4/readdir.m4: Remove; no longer needed.
42773 2006-07-06 Derek R. Price <derek@ximbiot.com>
42774 and Paul Eggert <eggert@cs.ucla.edu>
42776 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
42777 Don't worry about this obsolete case any more.
42778 (HAVE_DIR): Remove. All uses removed; we now assume you can read
42780 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
42781 worry about this obsolete case any more.
42782 * lib/fts.c: Likewise.
42783 * lib/getcwd.c: Likewise.
42784 * lib/glob.h: Likewise.
42785 * lib/savedir.c: Likewise.
42787 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
42789 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
42790 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
42791 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
42794 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42795 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
42796 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
42798 * m4/getdate.m4 (gl_GETDATE): Likewise.
42799 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
42800 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
42801 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
42802 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42803 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
42804 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42805 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
42808 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
42810 * lib/memcasecmp.c: Include <limits.h>.
42811 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
42812 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
42813 Don't assume isdigit succeeds only on '0' through '9'.
42815 2006-07-05 Eric Blake <ebb9@byu.net>
42817 * modules/getaddrinfo (Depends-on): Add snprintf.
42819 2006-07-05 Eric Blake <ebb9@byu.net>
42821 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
42822 to avoid 'header present but could not be compiled' on cygwin.
42824 2006-07-05 Eric Blake <ebb9@byu.net>
42826 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
42827 missing from netdb.h.
42828 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
42830 2006-07-05 Derek R. Price <derek@ximbiot.com>
42832 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
42834 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
42835 * m4/getdate.m4 (gl_GETDATE): Likewise.
42836 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
42837 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
42838 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
42839 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42840 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42842 2006-07-05 Derek R. Price <derek@ximbiot.com>
42844 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
42845 All uses of is_space replaced by isspace.
42846 * lib/exit.h: Don't talk about STDC_HEADERS.
42847 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
42848 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
42849 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
42850 replaced by isprint etc.
42851 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
42852 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
42853 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
42854 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
42855 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
42856 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
42858 2006-07-05 Bruno Haible <bruno@clisp.org>
42860 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
42861 the function exists, before testing against AIX.
42862 Reported by Martin Lambers <marlam@marlam.de>.
42864 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
42866 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
42867 From Mark D. Baushke.
42869 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
42871 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
42872 to the absolute name, not just one, to bypass Sun C 5.8's
42873 "warning: #include of /usr/include/... may be non-portable".
42875 2006-07-04 Eric Blake <ebb9@byu.net>
42877 * modules/dirname-tests: New test module.
42878 * tests/test-dirname.c: New file, replacing dirname.c
42879 TEST_DIRNAME section that was recently deleted.
42881 2006-07-04 Bruno Haible <bruno@clisp.org>
42883 Assume ANSI C header files and <ctype.h> functions.
42884 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
42885 (mbsnwidth): Use isprint, iscntrl instead.
42887 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
42889 Merge from coreutils.
42890 * MODULES.html.sh: Add xstrtold.
42891 * modules/xstrtold: New file.
42892 * modules/cycle-check (Files): Add lib/same-inode.h.
42893 * modules/dirname (Files): Add m4/double-slash-root.m4.
42894 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
42895 * modules/mkdir-p (Files): Add lib/same-inode.h.
42896 * modules/same (Files): Add lib/same-inode.h.
42898 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
42900 * m4/absolute-header.m4: Renamed from full-header-path.m4.
42901 This is to keep the terminology clean; POSIX talks about
42902 "absolute pathnames", not "full pathnames", but the GNU
42903 Coding Standards say to use "path" for something else;
42904 so use "absolute" to keep both sides happy.
42905 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
42906 Set gl_absolute_header, not gl_full_header_path.
42907 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
42908 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
42911 Merge from coreutils.
42913 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
42915 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
42916 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
42917 want to require the building of c-strtod.o.
42918 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
42919 needs -lm directly.
42920 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
42922 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
42924 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
42925 --as-needed option if available. Problem reported by Albert Chin in
42926 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
42927 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
42928 cc merely issues a bunch of annoying warnings for --as-needed
42929 (this problem was reported by Bob Proulx). Also, try linking with
42930 -lm to detect a bug in binutils 2.16 (this problem was reported
42931 by Ralf Wildenhues).
42933 2006-06-18 Jim Meyering <jim@meyering.net>
42935 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
42936 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
42938 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
42939 also check for glibc-2.4's abort-inducing bug.
42941 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
42942 Low-probability clean-up should be to use rmdir to get rid of
42943 the just-created directory, not unlink.
42945 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
42946 configure fail, and request a bug report to inform us about it.
42947 Add a comment that, barring reports to the contrary, in 2007 we'll
42948 assume ftruncate is universally available.
42950 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
42952 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
42954 2006-03-12 Jim Meyering <jim@meyering.net>
42956 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
42957 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
42958 * m4/same.m4 (gl_SAME): Likewise.
42959 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
42961 2006-03-11 Eric Blake <ebb9@byu.net>
42963 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
42964 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
42965 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
42966 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
42968 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
42970 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
42971 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
42972 reported by Mark D. Baushke, one in
42973 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
42975 Merge from coreutils.
42977 * lib/.cppi-disable: Add stdint_.h.
42978 * lib/.cvsignore: Add stdint.h.
42980 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
42982 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
42983 both double and long double versions.
42984 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
42985 * lib/xstrtold.c: New file.
42986 * lib/xstrtod.h (xstrtold): New decl.
42988 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
42990 * lib/filemode.c (setst): Remove.
42991 (strmode): Rewrite to avoid setst. This makes the code shorter,
42992 (arguably) clearer, and the generated code is a bit smaller on my
42993 Debian GNU/Linux stable x86 host.
42995 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
42997 * lib/filemode.c: Include "filemode.h" first, to test the interface.
42998 Assume that filemode.h includes sys/types.h and sys/stat.h.
42999 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
43000 (ftypelet): Reorder to put common cases first, for efficiency.
43001 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
43003 (strmode): Renamed from mode_string, and now stores 12 bytes instead
43004 of 10, for compatibility with FreeBSD. All callers changed.
43005 (filemodestring): Now stores 12 bytes instead of 10, and sets file
43006 types that can't be deduced solely from st_mode. First arg is now a
43008 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
43009 (strmode): Renamed from mode_string.
43010 (filemodestring): New decl.
43011 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
43012 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
43014 (S_ISPORT, S_ISWHT): New macros, if not already defined.
43016 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
43018 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
43019 fsusage.h now does that. Include fsusage.h first, to test interface.
43020 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
43021 at most one method (the old code could have generated decls that
43022 didn't conform to C89, not that this was ever exercised).
43023 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
43025 2006-03-19 Jim Meyering <jim@meyering.net>
43027 Work even in a chroot where d_ino values for entries in "/"
43028 don't match the stat.st_ino values for the same names.
43029 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
43030 number, iterate through all entries again, using lstat instead.
43031 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
43032 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
43034 * lib/getcwd.c (__getcwd): Clarify a comment.
43035 Use memcpy in place of a call to strcpy.
43037 2006-03-12 Jim Meyering <jim@meyering.net>
43039 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
43040 matches that of the current directory (which we're about to chdir ".."
43041 out of), then save the dev-ino of the parent, instead.
43043 * lib/same-inode.h (SAME_INODE): New file/macro.
43044 * lib/chdir-safer.c (SAME_INODE): Remove definition.
43045 Include "same-inode.h", instead.
43046 * lib/same.c: Likewise.
43047 * lib/cycle-check.h: Include "same-inode.h".
43048 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
43049 * lib/cycle-check.c (SAME_INODE): Remove definition.
43050 * lib/root-dev-ino.h: Include "same-inode.h".
43052 2006-03-11 Eric Blake <ebb9@byu.net>
43054 * lib/same.c (same_name): s/base_name/last_component/
43055 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
43056 * lib/filenamecat.c (file_name_concat): Likewise.
43058 2006-03-11 Eric Blake <ebb9@byu.net>,
43059 Paul Eggert <eggert@cs.ucla.edu>
43061 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
43062 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
43064 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
43065 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
43066 (last_component): New method.
43067 * lib/dirname.c (dir_len): Determine when drive letters need a
43068 subsequent slash. Preserve // when it is special.
43069 (dir_name): Don't append dot when drive letter is absolute.
43070 [TEST_DIRNAME]: Move into a full-blown gnulib test.
43071 * lib/basename.c (base_name): New semantics - malloc the result.
43072 Preserve // when it is special. Preserve relative files that look
43073 like drive letters.
43074 (base_len): Preserve // when it is special.
43075 (last_component): New method, similar to old base_name semantics.
43076 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
43077 base_name. Strip redundant slashes from ///.
43079 2006-07-03 Jim Meyering <jim@meyering.net>
43081 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
43082 macro is used before the first cycle_check call.
43084 2006-07-03 Eric Blake <ebb9@byu.net>
43086 * modules/dirname (Depends-on): Add xstrndup.
43088 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
43090 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
43091 test cases, so that config.log is a bit easier to follow.
43093 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
43095 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
43096 both are 64 bits, since this seems to be the tradition, and this
43097 prevents gcc -Wformat from warning about usages with PRIuMAX. If
43098 we ever run into a host that prefers long long to long in this
43099 case, we'll need another configure-time test. Problem reported by
43102 2006-07-02 Eric Blake <ebb9@byu.net>
43104 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
43106 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
43108 * modules/inttypes (Depends-on): No longer depends on stdint.
43109 * modules/stdint (Description): Say more about assumptions.
43110 Say that the fast types might differ. Say macros are used.
43111 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
43112 (Makefile.am): Revise list of substituted symbols to match
43114 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
43115 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
43116 * tests/test-stdint.c (verify_same_types)
43117 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
43118 the code conforms to C99/C89.
43119 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
43120 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
43122 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
43124 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
43125 but fix a bug, by requiring at least 64 bits.
43126 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
43127 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
43128 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
43129 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
43131 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
43132 changes. Make 2.59 a prerequisite. Check and substitute for
43133 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
43134 inttypes.h. Do not use special include files; just use the
43135 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
43136 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
43137 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
43138 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
43139 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
43140 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
43141 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
43142 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
43143 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
43144 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
43145 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
43146 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
43147 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
43148 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
43149 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
43150 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
43151 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
43152 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
43153 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
43154 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
43155 WINT_MAX. Check for C99 conformance more strictly, by detecting
43156 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
43157 not check for things that C99 does not require, e.g., int8_t. If
43158 a test isn't needed unless <stdint.h> isn't working, and is
43159 unlikely to be needed for any other reason, then don't do it
43160 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
43161 size_t, since we assume C89 freestanding at least. Do not check
43162 for sig_atomic_t, wchar_t, or wint_t, since the code now does
43163 the right thing even if the types are not defined. Instead use:
43164 (gl_STDINT_TYPE_PROPERTIES): New macro.
43165 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
43166 testing whether <sys/types.h> clashes, as Autoconf does this for
43167 us now. All uses removed.
43168 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
43169 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
43170 (gl_CHECK_TYPE_SAME):
43171 Remove; no longer needed.
43172 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
43173 exists, since we'll return 0 anyway in that case.
43174 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
43176 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
43178 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
43179 possible collision with system files.
43180 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
43181 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
43182 WCHAR_MIN and WCHAR_MAX in this case.
43183 (<stddef.h>): Do not include; no longer needed.
43184 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
43185 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
43186 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
43187 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
43188 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
43189 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
43190 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
43191 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
43192 !defined(__c99))]: Include in this case too, since it's harmless
43194 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
43195 dangerous to do so.
43196 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
43197 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
43198 (_STDINT_MIN, _STDINT_MAX): New macros.
43199 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
43200 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
43201 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
43202 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
43203 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
43204 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
43205 macros, not typedefs; this simplifies things quite a bit.
43206 Use long int for all types narrower than int64_t.
43207 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
43208 Define in terms of long long int or int64_t or long int,
43209 not int64_t or int32_t. This saves some compile-time testing.
43210 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
43211 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
43212 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
43213 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
43214 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
43215 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
43216 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
43217 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
43218 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
43219 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
43220 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
43221 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
43222 undef any previous version and define our own version, for
43223 simplicity and consistency with the new macros for types.
43224 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
43225 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
43226 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
43227 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
43228 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
43229 @WINT_T_SUFFIX@ to keep things simple here.
43230 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
43231 Simplify by assuming typical 8/16/32/64 host, since we're
43232 already doing that elsewhere anyway.
43233 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
43234 and assume long long int is 64 bits if available. This
43235 speeds up 'configure'.
43237 2006-07-01 Eric Blake <ebb9@byu.net>
43239 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
43240 Reported by Andreas Buening.
43242 2006-07-01 Eric Blake <ebb9@byu.net>
43244 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
43246 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
43248 * lib/getaddrinfo.c: fixed typo
43250 2006-06-29 Jim Meyering <jim@meyering.net>
43252 * modules/strftime (Maintainer): Add my name, since with the
43253 FPRINTFTIME changes strftime.c has forked from glibc.
43255 2006-06-29 Eric Blake <ebb9@byu.net>
43257 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
43259 2006-06-29 Eric Blake <ebb9@byu.net>
43261 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
43263 2006-06-29 Eric Blake <ebb9@byu.net>
43265 * lib/stat_.h: New file.
43267 2006-06-29 Eric Blake <ebb9@byu.net>
43269 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
43270 unused static function.
43272 2006-06-29 Eric Blake <ebb9@byu.net>
43274 * doc/functions.texi (Function Portability): Document missing lstat
43277 2006-06-29 Eric Blake <ebb9@byu.net>
43279 * MODULES.html.sh: Add sys_stat.
43280 * modules/sys_stat: New module.
43281 * modules/mkstemp (Depends-on): Add sys_stat.
43283 2006-06-29 Derek R. Price <derek@ximbiot.com>
43285 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
43287 2006-06-29 Derek R. Price <derek@ximbiot.com>
43289 * m4/c-bs-a.m4: Removed.
43291 2006-06-29 Derek R. Price <derek@ximbiot.com>
43293 * lib/strftime.c: Assume strftime() exists.
43295 2006-06-29 Derek Price <derek@ximbiot.com>
43297 * modules/c-bs-a: Removed - \a is C89.
43298 * MODULES.html.sh: Remove c-bs-a.
43300 2006-06-29 Bruno Haible <bruno@clisp.org>
43302 * modules/wcwidth (License): Change to LGPL.
43304 2006-06-28 Simon Josefsson <jas@extundo.com>
43306 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
43309 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
43312 2006-06-28 Simon Josefsson <jas@extundo.com>
43314 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
43316 2006-06-28 Simon Josefsson <jas@extundo.com>
43318 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
43319 functions there. It will succeed on Windows XP, but on Windows
43320 2000 and (presumably) earlier, it will fail, and use the internal
43322 (use_win32_p): New function.
43323 (getaddrinfo): Use strtoul on servname, to support numeric ports.
43324 Support AI_NUMERICSERV to disable getservbyname.
43325 (getnameinfo): New function, only supports
43326 NI_NUMERICHOST|NI_NUMERICSERV for now.
43328 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
43329 only have some of them. Add AI_NUMERICSERV. Add prototype for
43332 2006-06-28 Eric Blake <ebb9@byu.net>
43334 * modules/wcwidth: New file.
43335 * modules/mbchar (Depends-on): Add wcwidth.
43336 * modules/mbswidth (Depends-on): Add wcwidth.
43337 * MODULES.html.sh: Add wcwidth.
43339 2006-06-28 Eric Blake <ebb9@byu.net>
43341 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
43342 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
43344 2006-06-28 Eric Blake <ebb9@byu.net>
43346 * lib/xvasprintf.h: Fix comments.
43348 2006-06-28 Eric Blake <ebb9@byu.net>
43350 * lib/mbchar.h (wcwidth): Include wcwidth.h.
43351 * lib/mbswidth.c (wcwidth): Move from here...
43352 * lib/wcwidth.h: ...to this new file.
43354 2006-06-28 Derek R. Price <derek@ximbiot.com>
43356 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
43358 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
43360 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
43362 2006-06-28 Derek R. Price <derek@ximbiot.com>
43364 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
43365 Autoconf 2.60 says this stuff was obsolete.
43367 2006-06-28 Bruno Haible <bruno@clisp.org>
43369 * modules/wcwidth (Files): Add m4/wchar_t.m4.
43371 2006-06-28 Bruno Haible <bruno@clisp.org>
43373 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
43376 2006-06-28 Bruno Haible <bruno@clisp.org>
43378 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
43379 declaration for wcwidth.
43380 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
43382 2006-06-28 Bruno Haible <bruno@clisp.org>
43384 * lib/mkdtemp.c [MINGW]: Include <io.h>.
43385 (mkdir): Define using _mkdir.
43387 2006-06-28 Bruno Haible <bruno@clisp.org>
43389 * lib/getaddrinfo.h: Fix POSIX URL.
43390 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
43392 (use_win32_p): Make static.
43393 (getaddrinfo): Reject service name if it is empty or does not consist
43394 solely of decimal digits, or if its value is > 65535.
43395 (getnameinfo): Remove useless casts.
43397 2006-06-27 Simon Josefsson <jas@extundo.com>
43399 * modules/sys_select: New file, suggested by Bruno Haible, Paul
43400 Eggert and Martin Lambers.
43402 2006-06-27 Simon Josefsson <jas@extundo.com>
43404 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
43405 Eggert and Martin Lambers.
43407 2006-06-27 Bruno Haible <bruno@clisp.org>
43409 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
43410 result to 0, not to empty.
43411 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
43413 2006-06-27 Bruno Haible <bruno@clisp.org>
43415 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
43417 2006-06-26 Simon Josefsson <jas@extundo.com>
43419 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
43422 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
43424 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
43425 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
43426 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
43428 2006-06-26 Mark D. Baushke <mdb@gnu.org>
43430 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
43432 2006-06-26 Bruno Haible <bruno@clisp.org>
43434 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
43436 2006-06-26 Bruno Haible <bruno@clisp.org>
43438 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
43440 2006-06-26 Bruno Haible <bruno@clisp.org>
43442 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
43443 SGI C compiler in pre-C99 mode.
43444 Suggested by Mark D. Baushke and Larry Jones.
43446 2006-06-26 Bruno Haible <bruno@clisp.org>
43448 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
43450 Reported by Mark D. Baushke and Larry Jones.
43452 2006-06-26 Bruno Haible <bruno@clisp.org>
43454 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
43456 Suggested by Mark D. Baushke and Larry Jones.
43458 2006-06-23 Simon Josefsson <jas@extundo.com>
43459 Bruno Haible <bruno@clisp.org>
43461 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
43462 Emit mostlyclean-local rule.
43463 (func_emit_tests_Makefile_am): Likewise.
43464 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
43466 2006-06-23 Mark D. Baushke <mdb@gnu.org>
43468 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
43470 2006-06-23 Bruno Haible <bruno@clisp.org>
43472 * tests/test-stdint.c: Update to match ISO C 99 Technical
43475 2006-06-23 Bruno Haible <bruno@clisp.org>
43477 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
43479 2006-06-23 Bruno Haible <bruno@clisp.org>
43481 * lib/stdint_.h: Treat IRIX like OpenBSD.
43483 2006-06-23 Bruno Haible <bruno@clisp.org>
43485 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
43486 ISO C 99 Technical Corrigendum 1.
43488 2006-06-22 Simon Josefsson <jas@extundo.com>
43490 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
43493 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
43495 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
43496 needed. Some compiler complained about some of them. Problem reported
43498 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
43500 2006-06-21 Simon Josefsson <jas@extundo.com>
43502 * tests/test-getaddrinfo.c: New file.
43504 * modules/getaddrinfo-tests: New file.
43506 * MODULES.html.sh: Add inet_pton.
43508 * modules/inet_pton: New file.
43510 2006-06-21 Simon Josefsson <jas@extundo.com>
43512 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
43513 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
43514 of using the (limited) gnulib implementation on Windows XP.
43516 * m4/inet_pton.m4: New file.
43518 2006-06-21 Simon Josefsson <jas@extundo.com>
43520 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
43523 * lib/socket_.h: Don't define WINVER.
43525 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
43526 slightly modified to work in gnulib.
43528 2006-06-21 Simon Josefsson <jas@extundo.com>
43530 * doc/gnulib.texi (Windows sockets): Add.
43532 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
43534 * lib/read-file.c (fread_file): Start with buffer allocation of
43535 0 bytes rather than 1 byte; this simplifies the code.
43536 Don't invoke feof; it's not needed. Refactor to avoid duplicate
43537 code to free buffer and save/restore errno.
43538 (internal_read_file): Remove unused local.
43540 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
43542 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
43543 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
43544 Problem reported by Denis Excoffier in
43545 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
43547 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43549 * modules/sys_socket, modules/socklen: Include sys/types since
43550 FreeBSD 4.x's sys/socket.h needs it.
43552 2006-06-19 Simon Josefsson <jas@extundo.com>
43554 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
43556 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
43558 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
43560 2006-06-19 Bruno Haible <bruno@clisp.org>
43562 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
43563 and FULL_PATH_INTTYPES_H in angle brackets.
43564 Reported by Mark D. Baushke <mdb@gnu.org>.
43566 2006-06-17 Eric Blake <ebb9@byu.net>
43568 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
43571 2006-06-17 Bruno Haible <bruno@clisp.org>
43573 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
43576 2006-06-17 Bruno Haible <bruno@clisp.org>
43578 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
43579 whether errno is declared. Assume <errno.h> declares errno.
43581 2006-06-17 Bruno Haible <bruno@clisp.org>
43583 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
43585 2006-06-17 Bruno Haible <bruno@clisp.org>
43587 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
43588 problem on Solaris 2.5.1.
43590 2006-06-16 Eric Blake <ebb9@byu.net>
43592 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
43593 * lib/unicodeio.c [!defined errno]: Likewise.
43594 * lib/strtol.c [!defined errno]: Likewise.
43595 * lib/strtod.c [!defined errno]: Likewise.
43597 2006-06-15 Eric Blake <ebb9@byu.net>
43599 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
43601 2006-06-15 Eric Blake <ebb9@byu.net>
43603 * config/srclist.txt (ssize_t.m4): Lose sync.
43605 2006-06-15 Bruno Haible <bruno@clisp.org>
43607 * modules/stdint (Files): Include m4/full-header-path.m4,
43608 m4/size_max.m4, m4/wchar_t.m4.
43609 (Makefile.am): Many more substitutions.
43610 * modules/stdint-tests: New file.
43611 * tests/test-stdint.c: New file.
43613 2006-06-15 Bruno Haible <bruno@clisp.org>
43615 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
43616 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
43617 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
43618 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
43619 gl_CHECK_TYPE_SAME): New macros.
43621 2006-06-15 Bruno Haible <bruno@clisp.org>
43623 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
43625 2006-06-15 Bruno Haible <bruno@clisp.org>
43627 * lib/stdint_.h: Rewritten to be fully auto-configured.
43628 Fixes bug on HP-UX/IA64.
43630 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
43632 * lib/getdate.y (__attribute__): Don't define if already defined.
43633 Problem reported by Larry Jones.
43634 * lib/utimens.c (__attribute__): Likewise.
43636 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
43638 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
43639 reported by Andreas Schwab.
43641 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43642 Bruno Haible <bruno@clisp.org>
43644 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
43645 check for the declaration of strnlen and a run test that exposes the
43646 AIX 5.1 strnlen bug. In the failure case, #define strndup to
43649 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43650 Bruno Haible <bruno@clisp.org>
43652 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
43654 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43656 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
43657 compile test, for Tru64 4.0D.
43659 2006-05-28 Karl Berry <karl@gnu.org>
43661 * config/srclist.txt (printf-args.c): lose sync.
43663 2006-05-26 Martin Lambers <marlam@marlam.de>
43665 * lib/getpass.c: Updates the test for the native W32 API, and adds
43666 missing includes, thus fixing compilation warnings.
43668 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
43670 * lib/exclude.c (exclude_fnmatch): New function.
43671 (excluded_file_name): Call exclude_fnmatch.
43672 * lib/exclude.h (excluded_file_name): New prototype
43674 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
43676 * lib/tempname.c (small_open, large_open): New macros.
43677 (__open, __open64) [!_LIBC]: Remove.
43678 (__gen_tempname): Use small_open and large_open instead of __open
43679 and __open64. This fixes a portability bug on HP-UX 11.11i
43680 reported by Simon Wing-Tang in
43681 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
43683 2006-05-24 Bruno Haible <bruno@clisp.org>
43685 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
43686 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
43687 Reported by Thorsten Maerz <torte@netztorte.de> via
43688 Aaron Stone <aaron@serendipity.cx>.
43690 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
43692 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
43693 gl_ rather than jm_. Link, don't run, so that cross-compiles are
43694 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
43695 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
43696 not really conditional on the cache.
43697 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
43699 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
43701 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
43702 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
43703 (my_usleep): Don't mishandle maximum value.
43705 2006-05-19 Jim Meyering <jim@meyering.net>
43707 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
43709 2006-05-17 Bruno Haible <bruno@clisp.org>
43711 Cygwin portability.
43712 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
43714 2006-05-17 Bruno Haible <bruno@clisp.org>
43716 * lib/stdint_.h: Fix recognition of Cygwin.
43718 2006-05-15 Bruno Haible <bruno@clisp.org>
43720 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
43721 on libtool patch by Ralf Wildenhues.
43723 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
43725 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
43726 test for C99 conformance; (bool) 0.5 is an integer constant
43727 expression, but (bool) -0.5 is not. Problem reported by Fedor
43728 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
43730 2006-05-11 Simon Josefsson <jas@extundo.com>
43732 * m4/xvasprintf.m4: Fix obvious typo.
43734 2006-05-11 Jim Meyering <jim@meyering.net>
43736 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
43739 2006-05-10 Simon Josefsson <jas@extundo.com>
43741 * lib/md4.c: Typo fix, update copyright years.
43742 (K1, K2): Don't use L because it turn computations into 64-bit on
43745 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
43747 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
43748 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
43749 unwanted sign propagation, e.g., on hosts with 64-bit int.
43750 There still are some problems with reeelly weird theoretical hosts
43751 (e.g., 33-bit int) but it's not worth worrying about now.
43752 * lib/sha1.c (rol): Likewise.
43753 (K1, K2, K3, K4): Remove unnecessary L suffix.
43755 2006-05-10 Bruno Haible <bruno@clisp.org>
43757 * lib/des.c: Cast to avoid warnings.
43759 2006-05-09 Bruno Haible <bruno@clisp.org>
43761 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
43762 (Depends-on): Depend also on xsize, stdarg.
43763 (configure.ac): Add gl_XVASPRINTF.
43765 2006-05-09 Bruno Haible <bruno@clisp.org>
43767 * m4/xvasprintf.m4: New file.
43769 2006-05-09 Bruno Haible <bruno@clisp.org>
43771 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
43772 (EOVERFLOW): Define fallback value.
43773 (xstrcat): New function.
43774 (xvasprintf): Recognize the special case of a string concatenation.
43776 2006-05-08 Eric Blake <ebb9@byu.net>
43778 * gnulib-tool (func_version): Base copyright year on CVS date.
43779 (func_emit_copyright_notice): New function.
43780 (func_emit_lib_Makefile_am): Use it.
43781 (func_emit_tests_Makefile_am): Likewise.
43782 (func_import): Likewise.
43784 2006-05-08 Bruno Haible <bruno@clisp.org>
43786 * modules/stdarg: New file.
43787 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
43789 2006-05-08 Bruno Haible <bruno@clisp.org>
43791 * m4/stdarg.m4: New file, from GNU gettext.
43793 2006-05-08 Bruno Haible <bruno@clisp.org>
43795 * config/srclist.txt (build-aux/config.rpath): different from latest
43798 2006-05-08 Bruno Haible <bruno@clisp.org>
43800 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
43802 2006-05-05 Jim Meyering <jim@meyering.net>
43804 * m4/warning.m4: New file, derived from bison's file by the same name.
43806 2006-05-03 Bruno Haible <bruno@clisp.org>
43808 * lib/stdint_.h: Shorter URL.
43809 * lib/inttypes.h: Likewise.
43811 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
43813 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
43815 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
43817 * lib/verify.h: Document the internals better. Most of this change
43818 was written by Bruno Haible.
43820 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
43822 * doc/verify.texi: New file, partly based on a proposal by
43825 2006-05-02 Bruno Haible <bruno@clisp.org>
43827 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
43829 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
43831 2006-04-29 Bruno Haible <bruno@clisp.org>
43833 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
43834 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
43836 2006-04-29 Bruno Haible <bruno@clisp.org>
43838 * gnulib-tool: Make --update option actually work.
43840 2006-04-29 Bruno Haible <bruno@clisp.org>
43842 * doc/gcd.texi: New file.
43843 * doc/gnulib.texi: Include it.
43845 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
43847 * lib/getdate.y (get_date): When adding relative date, start with the
43848 initial time, not with the result of the first mktime call.
43850 2006-04-25 Bruno Haible <bruno@clisp.org>
43852 * gnulib-tool (func_import): Output the include directives in three
43853 blocks, sorted separately.
43854 Reported by Ben Pfaff <blp@cs.stanford.edu>.
43856 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
43858 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
43859 to define main with arguments, for C++. Reported by Eric Blake.
43860 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
43861 Prefer 'int main ()' to 'int main (void)', for C++.
43862 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
43863 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
43864 for 'main', for C99 and C++.
43866 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
43868 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
43869 Don't assume that exit status -1 is valid.
43870 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43871 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
43872 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
43873 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
43874 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
43875 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
43876 not AC_TRY_RUN. Use return, not exit. Don't assume that
43877 functions can be used without declaring them, or that you can
43878 exit with status -1.
43879 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
43881 2006-04-24 Karl Berry <karl@gnu.org>
43883 * config/srclist.txt (longdouble.m4): sync lost.
43885 2006-04-24 Eric Blake <ebb9@byu.net>
43887 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
43889 2006-04-24 Bruno Haible <bruno@clisp.org>
43891 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
43892 poll() implementation in AIX.
43893 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43895 2006-04-24 Bruno Haible <bruno@clisp.org>
43897 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
43898 assigned exactly once.
43900 2006-04-23 Claudio Fontana <claudio@gnu.org>
43901 Bruno Haible <bruno@clisp.org>
43903 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
43904 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
43907 2006-04-23 Bruno Haible <bruno@clisp.org>
43909 * modules/copy-file: Depend on unistd.
43910 * modules/execute: Likewise.
43911 * modules/fatal-signal: Likewise.
43912 * modules/findprog: Likewise.
43913 * modules/mkdtemp : Likewise.
43914 * modules/pipe: Likewise.
43915 * modules/wait-process: Likewise.
43917 2006-04-23 Bruno Haible <bruno@clisp.org>
43919 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
43920 condition was already detected.
43921 Reported by Ben Pfaff <blp@cs.stanford.edu>.
43923 2006-04-23 Bruno Haible <bruno@clisp.org>
43925 * lib/copy-file.c: Include <unistd.h> unconditionally.
43926 * lib/execute.c: Likewise.
43927 * lib/fatal-signal.c: Likewise.
43928 * lib/findprog.c: Likewise.
43929 * lib/mkdtemp.c: Likewise.
43930 * lib/pipe.h: Likewise.
43931 * lib/pipe.c: Likewise.
43932 * lib/wait-process.h: Likewise.
43934 2006-04-23 Bruno Haible <bruno@clisp.org>
43936 * gnulib-tool (func_usage): Fix --import description. Document
43938 (func_import): Create temporary file in a temporary directory, if
43939 --dry-run is specified. Silence errors from 'grep' when there are no
43940 m4 files in $m4dir.
43941 (func_create_testdir): Silence errors from 'grep' when there are no
43942 m4 files in $m4dir.
43943 Reported by Karl Berry <karl@freefriends.org>.
43945 2006-04-20 Bruno Haible <bruno@clisp.org>
43947 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
43948 one argument, so that the code will be portable to Autoconf 2.60.
43949 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
43950 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
43951 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
43953 2006-04-19 Derek Price <derek@ximbiot.com>
43954 Eric Blake <ebb9@byu.net>
43956 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
43957 rather than "/full/path.h". Update comment to match. Shorten &
43958 generalize m4_translit call via AS_TR_CPP.
43960 2006-04-19 Derek Price <derek@ximbiot.com>
43961 Eric Blake <ebb9@byu.net>
43963 * lib/inttypes.h: Correct grammar in comment.
43965 2006-04-18 Derek Price <derek@ximbiot.com>
43966 Paul Eggert <eggert@cs.ucla.edu>
43968 * modules/inttypes: New file.
43969 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
43971 2006-04-18 Derek Price <derek@ximbiot.com>
43972 Paul Eggert <eggert@cs.ucla.edu>
43974 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
43977 2006-04-18 Derek Price <derek@ximbiot.com>
43978 Paul Eggert <eggert@cs.ucla.edu>
43980 * lib/inttypes.h: New file.
43981 * lib/strtoimax.c: Assume <inttypes.h>.
43983 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
43985 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
43986 isn't mounted. Problem reported by Kir Kolyshkin.
43988 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
43990 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
43991 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
43993 * lib/regex.h (RE_DUP_MAX): Update comment to match current
43996 2006-04-12 Eric Blake <ebb9@byu.net>
43998 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
43999 is now done automatically by the corresponding Autoconf macro.
44001 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
44003 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
44006 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
44008 Merge regex changes from libc, removing some of our
44009 POSIX-conformance changes that were rejected and redoing them in a
44010 less-intrusive way.
44012 * lib/regcomp.c (re_compile_internal, init_dfa):
44013 Length arg is now size_t, not Idx. All uses changed.
44014 (peek_token): Forward decl now says internal_function.
44015 (__re_error_msgid, __re_error_msgid_idx):
44016 Now static rather than extern with attribute_hidden.
44017 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
44018 For some reason libc prefers K&R style defns for external functions.
44019 (regerror) [!defined _LIBC]: Likewise.
44020 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
44021 (seek_collating_symbol_entry, lookup_collation_sequence_value):
44022 (build_range_exp, build_collating_symbol):
44023 Use K&R-style defn.
44024 (re_compile_fastmap): Use '\0' to memset, not 0.
44025 (utf8_sb_map): Make the calculations more obvious.
44026 (init_dfa, parse_bracket_exp, build_charclass_op):
44027 Call calloc and cast result, as glibc does.
44028 (init_word_char, fetch_token, peek_token, peek_token_bracket):
44029 (build_range_exp, build_collating_symbol):
44030 Now internal functions.
44032 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
44034 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
44035 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
44036 Don't depend on VMS; depend on __VMS instead, for POSIX
44037 namespace cleanness.
44038 (regoff_t): Define to ssize_t, not long int.
44040 Remove the REG_ macros named below. Instead, make the old names
44041 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
44043 (REG_BACKSLASH_ESCAPE_IN_LISTS):
44044 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
44045 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
44046 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
44047 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
44048 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
44049 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
44050 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
44051 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
44052 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
44053 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
44054 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
44055 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
44056 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
44057 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
44058 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
44059 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
44061 Remove. All uses replaced by the old RE_* names.
44062 (RE_BACKSLASH_ESCAPE_IN_LISTS):
44063 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
44064 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
44065 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
44066 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
44067 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
44068 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
44069 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
44070 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
44071 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
44072 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
44073 Don't bother having these macros be independent of each others'
44074 values, since they no longer exist in the POSIX name space.
44076 Rename the following member names back to their old names,
44077 unless !__USE_GNU_REGEX. All uses changed back.
44078 (buffer): Renamed from re_buffer.
44079 (allocated): Renamed from re_allocated.
44080 (used): Renamed from re_used.
44081 (syntax): Renamed from re_syntax.
44082 (fastmap): Renamed from re_fastmap.
44083 (translate): Renamed from re_translate.
44084 (can_be_null): Renamed from re_can_be_null.
44085 (regs_allocated): Renamed from re_regs_allocated.
44086 (fastmap_accurate): Renamed from re_fastmap_accurate.
44087 (no_sub): Renamed from re_no_sub.
44088 (not_bol): Renamed from re_not_bol.
44089 (not_eol): Renamed from re_not_eol.
44090 (newline_anchor): Renamed from re_newline_anchor.
44091 (num_regs): Renamed from rm_num_regs.
44092 (start): Renamed from rm_start.
44093 (end): Renamed from rm_end.
44095 (free_state): Move up a bit.
44097 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
44098 #define to be empty.
44099 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
44100 when that is what is intended.
44101 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
44102 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
44104 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
44105 All uses changed back to re_malloc, etc. It's now the caller's
44106 responsibility to check for overflow; all callers changed.
44107 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
44108 (re_x2nrealloc): Remove.
44109 (free_state): Remove decl.
44111 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
44112 (re_set_registers, re_exec):
44113 Use K&R-style defn.
44115 2006-01-31 Roland McGrath <roland@redhat.com>
44117 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
44118 Reported by Mike Frysinger <vapier@gentoo.org>.
44120 2006-01-15 Andreas Jaeger <aj@suse.de>
44123 * lib/regex_internal.c (re_string_reconstruct): Adjust for
44124 build_wcs_upper_buffer change.
44125 (build_wcs_upper_buffer): Change return type.
44127 2005-12-10 Ulrich Drepper <drepper@redhat.com>
44129 * lib/regex_internal.h: Include <stdint.h> if available.
44131 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
44133 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
44135 2005-10-14 Ulrich Drepper <drepper@redhat.com>
44137 * lib/regcomp.c: Adjust for changed secondary hash function.
44139 2005-09-30 Ulrich Drepper <drepper@redhat.com>
44141 * lib/regex.h: Pretty printing.
44142 Clean up namespace a bit.
44144 2005-09-30 Jakub Jelinek <jakub@redhat.com>
44146 * lib/regexec.c (update_cur_sifted_state, check_arrival,
44147 check_arrival_add_next_nodes): Avoid using uninitialized variable.
44149 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
44150 Ulrich Drepper <drepper@redhat.com>
44153 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
44155 (bitset_word_t): Renamed from bitset_word. All uses changed.
44157 2005-09-22 Ulrich Drepper <drepper@redhat.com>
44160 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
44161 * lib/regcomp.c: Remove unnecessary uses of
44162 unsigned RE_TRANSLATE_TYPE.
44163 * lib/regex_internal.h: Likewise.
44164 * lib/regex_internal.c: Likewise.
44165 * lib/regexec.c: Likewise.
44166 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
44168 2005-09-07 Ulrich Drepper <drepper@redhat.com>
44170 * lib/regexec.c (find_recover_state): Remove unnecessary
44172 (transit_state_bkref): Make DFA a const pointer.
44173 (get_subexp): Likewise.
44174 (check_arrival): Likewise.
44175 (update_cur_sifted_state): Likewise.
44176 (re_search_internal): Likewise.
44177 (prune_impossible_nodes): Likewise.
44178 (acquire_init_state_context): Likewise.
44179 (proceed_next_node): Likewise.
44180 (set_regs): Likewise.
44181 (free_fail_stack_return): Likewise.
44182 (check_arrival_expand_ecl): Mark DFA parameter as const.
44183 (check_arrival_expand_ecl_sub): Likewise.
44184 (check_subexp_limits): Likewise.
44185 (sub_epsilon_src_nodes): Likewise.
44186 (add_epsilon_src_nodes): Likewise.
44187 (merge_state_array): Likewise.
44188 (update_regs): Likewise.
44189 (build_trtable): Likewise.
44190 (sift_states_backward): Mark MCTX parameter as const.
44191 (build_sifted_states): Likewise.
44192 (update_cur_sifted_state): Likewise.
44193 (sift_states_mkref): Likewise.
44194 (check_arrival_expand_ecl): Mark eclosure as const.
44195 (check_dst_limits_calc_pos_1): Likewise.
44196 * lib/regex_internal.h (re_match_context_t): Make dfa a const
44199 2005-09-06 Ulrich Drepper <drepper@redhat.com>
44201 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
44202 (transit_state_sb): Likewise.
44203 (transit_state_mb): Likewise.
44204 (sift_states_iter_mb): Likewise.
44205 (check_arrival_add_next_nodes): Likewise.
44206 (check_node_accept_bytes): Change first parameter to pointer-to-const.
44207 [_LIBC] (re_search_2_stub): Use mempcpy.
44209 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
44210 mbrtowc for very simple UTF-8 case.
44212 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
44213 a pointer-to-const.
44214 (re_acquire_state_context): Likewise.
44215 * lib/regex_internal.h: Adjust prototypes.
44217 * lib/regex.c: Prevent using C++ compilers.
44219 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
44220 (re_acquire_state_context): Likewise.
44222 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
44224 * modules/regex (Depends-on): Add ssize_t.
44226 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
44228 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
44231 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
44233 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
44235 2006-03-29 Mark D. Baushke <mdb@gnu.org>
44236 Bruno Haible <bruno@clisp.org>
44238 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
44239 <sys/types.h> and <inttypes.h>.
44241 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44243 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
44244 `__error_t_defined', so argp.h will not typedef the former.
44246 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
44248 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
44249 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
44250 glibc names. Even if glibc is changed to conform to POSIX, the
44251 traditional names will be available anyway, since regex depends on
44252 the extensions module. Also, fix a longstanding typo in the
44253 implementation of Spencer ERE test #75 from grep 2.3. Problems
44254 reported by Emanuele Giaquinta. Also, change sense of cached
44255 variable, so that the message makes sense.
44257 2006-03-24 Simon Josefsson <jas@extundo.com>
44259 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
44260 including some doc fixes.
44261 (base64_encode_alloc): Fix +1 bug on allocation failures.
44263 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44265 * lib/base64.c (base64_encode): Do not read past end of array with
44266 unsanitized input on systems with CHAR_BIT > 8.
44268 2006-03-24 Eric Blake <ebb9@byu.net>
44270 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
44272 2006-03-22 Karl Berry <karl@gnu.org>
44274 * config/srclist.txt (*setenv.[ch]): get from coreutils.
44275 * config/srclistvars.sh (COREUTILS): new var.
44277 2006-03-17 Jim Meyering <jim@meyering.net>
44279 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
44280 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
44282 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
44284 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
44285 no longer needs it. Instead, check that regoff_t is as least
44286 as wide as ptrdiff_t.
44288 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
44289 so that our regex.h stays compatible with the installed regex.
44290 This is helpful for installers who configure --without-included-regex.
44291 Problem reported by Emanuele Giaquinta.
44293 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
44295 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
44296 Typedef to long int, not to off_, as POSIX will likely change
44299 2006-03-15 Eric Blake <ebb9@byu.net>
44301 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
44303 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
44305 * lib/argp-help.c (validate_uparams): Fix typo
44306 * lib/argp-parse.c (argp_default_options): Consistently begin help
44307 messages with a lowercase letter.
44309 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
44311 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
44312 overrun buffers and shouldn't be used (much as gets shouldn't be
44314 * lib/time_r.c (asctime_r, ctime_r): Likewise.
44316 2006-03-08 Simon Josefsson <jas@extundo.com>
44318 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
44319 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44321 2006-03-08 Simon Josefsson <jas@extundo.com>
44323 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
44324 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44326 2006-03-08 Simon Josefsson <jas@extundo.com>
44328 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
44329 signal that configure disabled the device.
44331 2006-03-08 Simon Josefsson <jas@extundo.com>
44333 * build-aux/maint.mk: Fix refresh-po, to handle no translated
44336 2006-03-07 Simon Josefsson <jas@extundo.com>
44338 * modules/getopt (Depends-on): Add unistd.
44340 * modules/unistd: New file.
44342 2006-03-07 Simon Josefsson <jas@extundo.com>
44344 * modules/gc-random: New file.
44346 2006-03-07 Simon Josefsson <jas@extundo.com>
44348 * m4/unistd_h.m4: New file.
44350 2006-03-07 Simon Josefsson <jas@extundo.com>
44352 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
44353 test to be side-effect free by storing the result in the cache
44354 variable gl_cv_lib_readline, and moving the assignment of
44355 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
44356 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44358 2006-03-07 Simon Josefsson <jas@extundo.com>
44360 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
44361 error on missing devices (the functions will return an error).
44363 * m4/gc.m4: Move random stuff to gc-random.m4
44365 2006-03-07 Simon Josefsson <jas@extundo.com>
44367 * lib/unistd_.h: New file.
44369 2006-03-07 Simon Josefsson <jas@extundo.com>
44371 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
44373 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
44375 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
44376 Problem reported by Juan Manuel Guerrero.
44378 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
44380 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
44382 * lib/getlogin_r.c: Likewise.
44383 * lib/getlogin_r.h: Likewise.
44384 * lib/glob.c: Likewise.
44385 * lib/pagealign_alloc.c: Likewise.
44386 * lib/unistd_.h: Remove; no longer needed.
44388 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
44390 * MODULES.html.sh (Support for systems lacking POSIX:2001):
44392 * modules/c-stack (Depends-on): Add unistd.
44393 * modules/getlogin_r: Likewise.
44394 * modules/glob: Likewise.
44395 * modules/pagealign_alloc: Likewise.
44396 * modules/unistd (Files): Remove lib/unistd_.h.
44397 (EXTRA_DIST): Remove.
44398 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
44400 (MOSTLYCLEANFILES): Remove unistd.h-t.
44402 2006-03-03 Simon Josefsson <jas@extundo.com>
44404 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
44406 2006-03-03 Simon Josefsson <jas@extundo.com>
44408 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
44411 2006-03-03 Simon Josefsson <jas@extundo.com>
44413 * build-aux/maint.mk: Add indent target.
44415 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
44417 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
44418 our replacement poll.h in any case, to avoid a differing
44419 declaration from a system header. Seen on AIX.
44421 2006-03-01 Simon Josefsson <jas@extundo.com>
44423 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
44426 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
44428 * modules/gettime (Depends-on): Add extensions module.
44429 * modules/nanosleep (Depends-on): Likewise.
44430 * modules/settime (Depends-on): Likewise.
44432 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
44434 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
44435 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
44437 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44438 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
44440 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
44441 not "==". Reported by Ralf Wildenhues.
44443 2006-03-01 Karl Berry <karl@gnu.org>
44445 * doc/Copyright/request-*: new files, synced from gnuorg.
44447 2006-03-01 Karl Berry <karl@gnu.org>
44449 * config/srclist.txt (Copyright/*): new entries.
44451 2006-02-28 Simon Josefsson <jas@extundo.com>
44453 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
44455 2006-02-27 Simon Josefsson <jas@extundo.com>
44457 * lib/base64.h: Indent #define's. From Jim Meyering
44458 <jim@meyering.net>.
44460 2006-02-27 Jim Meyering <jim@meyering.net>
44462 Revert the change of 2006-02-24, so these files can continue
44463 to be sync'd from gettext.
44464 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
44467 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
44469 * modules/intprops: New file.
44470 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
44472 * modules/getloadavg (Files): Remove lib/intprops.h.
44473 (Depends-on): Add intprops.
44474 * modules/human: Likewise.
44475 * modules/inttostr: Likewise.
44476 * modules/openat: Likewise.
44477 * modules/sig2str: Likewise.
44478 * modules/userspec: Likewise.
44479 * modules/utimecmp: Likewise.
44480 * modules/xnanosleep: Likewise.
44481 * modules/xstrtol: Likewise.
44483 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
44485 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
44486 * modules/lock-tests (TESTS): Use $(EXEEXT).
44487 * modules/tls-tests: Likewise.
44488 * modules/argp-tests: Likewise.
44489 (check_PROGRAMS): New var, replacing...
44490 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
44492 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44494 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
44497 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
44499 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
44501 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44503 Sync from coreutils.
44504 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
44507 2006-02-22 Jim Meyering <jim@meyering.net>
44509 Sync from coreutils.
44510 * m4/chdir-safer.m4: New file.
44512 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
44514 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
44515 AT_FDCWD exceeds INT_MAX.
44516 * lib/openat.h (AT_FDCWD): Likewise.
44518 2006-02-17 Eric Blake <address@hidden>
44520 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
44522 2006-02-16 Simon Josefsson <jas@extundo.com>
44524 * modules/getaddrinfo (Depends-on): Add sys_socket.
44526 2006-02-15 Simon Josefsson <jas@extundo.com>
44528 * build-aux/maint.mk: Add dsyntax-check rule.
44530 2006-02-15 Eric Blake <ebb9@byu.net>
44532 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
44533 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
44534 'present but cannot compile' warnings on cygwin.
44535 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
44536 use ws2tcpip.h if sys/socket.h works.
44537 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
44538 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
44540 2006-02-14 Simon Josefsson <jas@extundo.com>
44542 * modules/maintainer-makefile (Files): Rename.
44544 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
44545 and (the local) Makefile.cfg to maint-cfg.mk.
44547 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
44550 * modules/maintainer-makefile: New module.
44552 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
44553 severaly stripped to make it possible to build it up from scratch
44554 with reliable tests.
44556 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
44557 fixes to permit overriding the default actions when configure and
44558 makefile are not available.
44560 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
44562 Sync from coreutils.
44563 * modules/lstat (Depends-on): Don't depend on xalloc.
44564 (License): Change from GPL to LGPL, since this is now simply a
44565 replacement for a libc function.
44567 2006-02-14 Jim Meyering <jim@meyering.net>
44569 Sync from coreutils.
44571 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
44572 failure on deficient systems, and simplify gnulib lgpl dependencies.
44573 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
44574 xmalloc/lstat combination. Based on a patch from Bruno Haible.
44576 * lib/xalloc-die.c: Remove unused definition of N_.
44578 2006-02-14 Jim Meyering <jim@meyering.net>
44580 Sync from coreutils.
44581 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
44582 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
44583 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
44584 double-quote uses of that variable, to accommodate the rare case in
44585 which getmntent is available in none of the libraries checked. This
44586 happens at least on FreeBSD 5.0.
44588 2006-02-13 Simon Josefsson <jas@extundo.com>
44590 * gnulib-tool (Usage): Fix --import, from
44591 karl@freefriends.org (Karl Berry).
44593 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
44595 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
44597 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
44599 * lib/argp-namefrob.h: Restore changes accidentally lost during the
44600 "autoupdate" on 2005-12-12.
44602 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
44604 * modules/closeout (Depends-on): Remove atexit.
44606 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
44608 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
44609 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
44611 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
44613 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
44614 __EXTENSIONS__ if this causes compilation to fail. Problem
44615 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
44616 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
44618 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
44620 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
44621 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
44622 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
44625 2006-01-26 Simon Josefsson <jas@extundo.com>
44627 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
44628 prototype is visible on mingw32.
44630 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
44633 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
44636 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
44638 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
44639 attempt to open for write; this always fails, at least on POSIX
44640 hosts. This reinstates the 2006-01-09 change, which was
44641 inadvertently removed.
44643 2006-01-26 Bruno Haible <bruno@clisp.org>
44645 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
44646 Reported by Paul Eggert.
44648 2006-01-26 Bruno Haible <bruno@clisp.org>
44649 Paul Eggert <eggert@cs.ucla.edu>
44651 * lib/stdbool_.h (_Bool)
44652 [(! (defined __cplusplus || defined __BEOS__)
44653 && !defined __GNUC__
44654 && !(defined __HP_cc || defined __xlc__
44655 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
44656 || defined __sgi))]:
44657 #define to signed char in these cases too; this simplifies
44658 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
44659 etc., separately) and makes it more conservative.
44661 2006-01-25 Simon Josefsson <jas@extundo.com>
44663 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
44664 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
44665 ws2tcpip.h with WINVER=0x0501. All for mingw32.
44667 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
44669 * lib/argp-namefrob.h: Bugfix. Remove stray #
44671 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
44673 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
44674 so that we test the test.
44675 Check for yet another HP-UX cc bug involving *bool |= bool.
44677 2006-01-25 Karl Berry <karl@gnu.org>
44679 * config/srclist.txt (vasnprintf.c): sync lost.
44681 2006-01-25 Jim Meyering <jim@meyering.net>
44683 Sync from the stable (b5) branch of coreutils:
44685 * lib/fts.c (fts_children): Don't let close() clobber errno from
44688 * lib/fts.c (fts_stat): When following a symlink-to-directory,
44689 don't necessarily interpret stat-fails+lstat-succeeds as indicating
44690 a dangling symlink. That can also happen at least for ELOOP.
44691 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
44692 FYI, this bug predates the inclusion of fts.c in coreutils.
44694 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
44695 in their own block, so pre-c99 compilers don't object.
44697 Avoid the double-free (first in fts_read, second in fts_close) that
44698 would occur when an `active' directory is made inaccessible (e.g.,
44699 via chmod a-x) during a traversal.
44700 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
44701 before returning. Reproduce this failure by
44702 mkdir -p a/b; cd a; chmod a-x . b
44703 Reported by Stavros Passas.
44705 2006-01-25 Jim Meyering <jim@meyering.net>
44707 * lib/fileblocks.c: Remove more useless parentheses.
44708 * lib/readutmp.h: Likewise.
44710 2006-01-25 Bruno Haible <bruno@clisp.org>
44712 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
44714 Reported by Paul Eggert.
44716 2006-01-25 Bruno Haible <bruno@clisp.org>
44718 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
44719 rid of a trap command. For Solaris sh.
44720 Reported by Mark D. Baushke <mdb@gnu.org>.
44722 2006-01-24 Simon Josefsson <jas@extundo.com>
44724 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
44727 2006-01-24 Karl Berry <karl@gnu.org>
44729 * config/srclist.txt (argp-namefrob.h): sync lost.
44731 2006-01-24 Jim Meyering <jim@meyering.net>
44733 * modules/openat (Files): Add lib/intprops.h.
44734 From Mark D. Baushke.
44736 2006-01-24 Jim Meyering <jim@meyering.net>
44738 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
44739 Reported by Mark D. Baushke.
44741 2006-01-24 Jim Meyering <jim@meyering.net>
44743 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
44745 2006-01-24 Bruno Haible <bruno@clisp.org>
44747 * modules/strnlen (Maintainer): Change from glibc to all.
44749 2006-01-24 Bruno Haible <bruno@clisp.org>
44751 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
44752 Patch by Paul Eggert.
44754 2006-01-24 Bruno Haible <bruno@clisp.org>
44756 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
44758 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
44761 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
44762 'signed char' to avoid problems with the built-in _Bool type.
44763 Reported by Paul Eggert on 2005-11-26.
44765 2006-01-24 Bruno Haible <bruno@clisp.org>
44767 * gnulib-tool (func_import): Avoid constructing complicated sed
44768 expressions inside backquote.
44769 Report and solution by Mark D. Baushke <mdb@gnu.org>.
44771 2006-01-23 Ulrich Drepper <drepper@redhat.com>
44773 These changes imported from libc.
44774 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
44775 test and two separate function calls.
44776 * lib/strndup.c (__strndup): Add libc_hidden_def.
44778 2006-01-23 Simon Josefsson <jas@extundo.com>
44780 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
44781 Remove the test_*_SOURCES variable: automake infers it by default.
44782 * modules/tls-tests: Likewise.
44784 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
44786 Work around porting bugs reported by Dieter in
44787 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
44788 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
44789 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
44790 Include "getopt.h" first, to check interface.
44791 (getenv): Declare only if defined HAVE_DECL_GETENV &&
44793 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
44794 (__strndup): Revert to K&R-style function dfns, the glibc style.
44795 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
44796 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
44797 Include strnlen.h first, to get prototype properly.
44798 (strnlen): Renamed from __strnlen.
44801 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
44803 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
44805 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
44807 * config/srclist.txt: Adjust to reflect glibc reorganization.
44808 This affects only comments.
44810 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
44812 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
44813 Reported by Bruce Korb <bkorb@gnu.org>.
44815 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
44817 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
44818 to pacify gcc -Wswitch-default.
44820 2006-01-22 Bruno Haible <bruno@clisp.org>
44822 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
44823 temporary buffer for sprintf, take into account the precision also
44824 for 'd', 'i', 'u', 'o', 'x', 'X'.
44826 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
44828 * modules/argp-tests: New module
44829 * tests/test-argp.c: New file
44830 * tests/test-argp-2.sh: New file
44832 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
44834 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
44835 (__argp_base_name): Removed
44836 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
44838 (__argp_base_name): Provide macro definition or extern declaration
44839 depending on the configuration
44841 2006-01-20 Simon Josefsson <jas@extundo.com>
44843 * modules/inet_ntop (Depends-on): Depend on sys_socket.
44845 2006-01-20 Simon Josefsson <jas@extundo.com>
44847 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
44849 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
44851 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
44852 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
44853 Suggested by Bruno Haible.
44855 2006-01-20 Karl Berry <karl@gnu.org>
44857 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
44858 until changes propagate, I guess.
44860 2006-01-19 Simon Josefsson <jas@extundo.com>
44862 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
44864 2006-01-19 Simon Josefsson <jas@extundo.com>
44866 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
44868 2006-01-19 Simon Josefsson <jas@extundo.com>
44870 * gnulib-tool: Set check_PROGRAMS.
44872 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
44873 modules/des-tests, modules/gc-arcfour-tests,
44874 modules/gc-arctwo-tests, modules/gc-des-tests,
44875 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
44876 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
44877 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
44878 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
44879 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
44880 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
44881 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
44884 2006-01-18 Simon Josefsson <jas@extundo.com>
44886 * modules/socklen (Depends-on): Depend on sys_socket.
44888 2006-01-18 Simon Josefsson <jas@extundo.com>
44890 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
44891 modules/des-tests, modules/gc-arcfour-tests,
44892 modules/gc-arctwo-tests, modules/gc-des-tests,
44893 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
44894 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
44895 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
44896 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
44897 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
44898 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
44899 $(EXEEXT) to automake TESTS variable, for mingw32.
44901 2006-01-17 Simon Josefsson <jas@extundo.com>
44903 * modules/socklen (Include): Need sys/socket.h.
44905 2006-01-17 Bruno Haible <bruno@clisp.org>
44907 * modules/ssize_t (Include): Add <sys/types.h>.
44909 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
44911 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
44912 it's not portable and it doesn't work with cross-compiles.
44913 Problem reported by Bruno Haible. Fix missing-$ typo in
44914 'test "gl_cv_ignore_unused_libraries" ...' that prevented
44915 -zignore from being used with Sun's C compiler.
44917 2006-01-12 Simon Josefsson <jas@extundo.com>
44919 * lib/base64.c: Fix warning, reported by Bruno Haible
44920 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
44922 2006-01-12 Bruno Haible <bruno@clisp.org>
44924 * modules/ldd: New file.
44925 * build-aux/ldd.sh.in: New file.
44926 * MODULES.html.sh (Support for building libraries and executables): Add
44929 2006-01-12 Bruno Haible <bruno@clisp.org>
44931 * m4/ldd.m4: New file.
44933 2006-01-12 Bruno Haible <bruno@clisp.org>
44935 * gnulib-tool (func_import, func_create_testdir): Don't go into an
44936 endless loop while replacing $auxdir with build-aux.
44938 2006-01-11 Simon Josefsson <jas@extundo.com>
44940 * lib/stdint_.h (SIZE_MAX): Add missing (.
44942 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
44944 Sync from coreutils.
44945 * lib/md5.c: Fix commentary typos.
44946 (alignof, UNALIGNED_P): No need for a GCC-specific version.
44947 * lib/md5.h (__attribute__): Remove; unused.
44948 * lib/sha1.c: Fix commentary to match md5 better.
44949 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
44950 so that we don't need to worry about alignment. All uses changed.
44951 This merges the 2005-10-28 md5 change into sha1.
44953 2006-01-11 Jim Meyering <jim@meyering.net>
44955 Sync from coreutils.
44956 * lib/md5.c (OP): Fix spacing.
44958 2006-01-11 Bruno Haible <bruno@clisp.org>
44960 Ensure automatic ordering between gl_LOCK and gl_ARGP.
44961 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
44962 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
44964 2006-01-11 Bruno Haible <bruno@clisp.org>
44966 Ensure automatic ordering between gl_LOCK and gl_ARGP.
44967 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
44968 the "early" section as well.
44970 2006-01-11 Bruno Haible <bruno@clisp.org>
44972 Avoid "ar: no archive members specified" error on MacOS X.
44973 * gnulib-tool (func_modules_add_dummy): New function.
44974 (func_import, func_create_testdir): Invoke it.
44976 2006-01-11 Bruno Haible <bruno@clisp.org>
44978 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
44979 with $auxdir in AC_CONFIG_FILES statements.
44981 2006-01-11 Bruno Haible <bruno@clisp.org>
44983 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44984 Initialize also noinst_HEADERS to empty.
44986 2006-01-11 Bruno Haible <bruno@clisp.org>
44988 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
44990 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
44993 2006-01-11 Bruno Haible <bruno@clisp.org>
44995 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
44996 overridable by the user.
44997 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44999 2006-01-10 Simon Josefsson <jas@extundo.com>
45001 * modules/sys_socket: New file.
45003 2006-01-10 Simon Josefsson <jas@extundo.com>
45005 * m4/sys_socket_h.m4: New file.
45007 2006-01-10 Simon Josefsson <jas@extundo.com>
45009 * lib/socket_.h: New file.
45011 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
45013 * modules/readutmp (Maintainer): Add myself.
45015 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
45017 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
45018 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
45019 People who are still concerned with buggy memcmp implementations
45020 can invoke gl_FUNC_MEMCMP themselves.
45022 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
45024 * lib/regex_internal.h (BITSET_WORD_BITS):
45025 Work around a bug in 64-bit PGC (before version 6.1-2), where the
45026 preprocessor mishandles large unsigned values as if they were signed.
45027 Problem reported by Claudio Fontana in
45028 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
45030 2006-01-10 Jim Meyering <jim@meyering.net>
45032 Avoid the double-free (first in fts_read, second in fts_close) that
45033 would occur when an `active' directory is made inaccessible (e.g.,
45034 via chmod a-x) during a traversal.
45035 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
45036 before returning. Reproduce this failure by
45037 mkdir -p a/b; cd a; chmod a-x . b
45038 Reported by Stavros Passas.
45040 Sync from coreutils.
45041 * lib/sha1.c: Tweak grammar in a comment.
45043 2006-01-10 Jim Meyering <jim@meyering.net>
45045 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
45046 Patch by Joerg Sonnenberger.
45048 2006-01-10 Bruno Haible <bruno@clisp.org>
45050 * modules/readutmp: Depend on module free.
45051 * modules/strtok_r: Depend on module restrict.
45053 2006-01-10 Bruno Haible <bruno@clisp.org>
45055 * modules/gettext (configure.ac): Add an invocation of
45056 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
45058 2006-01-10 Bruno Haible <bruno@clisp.org>
45060 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
45061 Reported by Werner Lemberg <wl@gnu.org>.
45063 2006-01-10 Bruno Haible <bruno@clisp.org>
45065 * lib/localcharset.c: Update from GNU gettext.
45067 2006-01-10 Bruno Haible <bruno@clisp.org>
45069 * lib/argp.h (__const): Remove macro. Use const instead.
45070 * lib/argp-fmtstream.h (__const): Likewise.
45071 * lib/glob_.h (__const): Remove macro.
45072 * lib/glob-libc.h: Use const instead of __const.
45074 2006-01-10 Bruno Haible <bruno@clisp.org>
45076 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
45078 Needed to avoid an automake error regarding the 'gettext' module.
45080 2006-01-09 Simon Josefsson <jas@extundo.com>
45082 * modules/inet_ntop (Depends-on): Add restrict.
45084 2006-01-09 Simon Josefsson <jas@extundo.com>
45086 * modules/gc-rijndael-tests (License): Put under LGPL.
45088 * modules/gc-des-tests (License): Likewise.
45090 * modules/gc-arcfour-tests (License): Likewise.
45092 * modules/gc-arctwo-tests (License): Likewise.
45094 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
45096 * modules/gc-hmac-sha1-tests (Files): Likewise.
45098 * modules/gc-hmac-md5-tests (License): Likewise.
45100 * modules/gc-sha1-tests (License): Likewise.
45102 * modules/gc-md5-tests (License): Likewise.
45104 * modules/gc-md4-tests (License): Likewise.
45106 * modules/gc-md2-tests (License): Likewise.
45108 * modules/gc-tests (License): Likewise.
45110 * modules/des-tests (License): Likewise.
45112 * modules/md4-tests (License): Likewise.
45114 * modules/md2-tests (License): Likewise.
45116 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
45118 Sync from coreutils:
45120 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
45121 * modules/lib-ignore: New file.
45122 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
45123 chdir-safer.m4, lchmod.m4.
45124 * modules/openat: Add mkdirat.c, openat-priv.h.
45126 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
45128 Sync from coreutils.
45129 * m4/lib-ignore.m4: New file.
45130 * m4/lchmod.m4: New file.
45132 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
45134 Sync from coreutils.
45135 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
45136 for write access: POSIX says that must fail.
45137 * lib/fts.c (diropen): Likewise.
45138 * lib/save-cwd.c (save_cwd): Likewise.
45139 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
45140 well, for minor improvements on hosts that lack O_DIRECTORY.
45141 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
45142 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
45143 Fall back on chown if open failed with EACCES.
45145 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
45146 Report an error at compile-time if only a 1-second nominal clock
45147 resolution is found.
45149 * lib/lchmod.h: New file.
45150 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
45151 (make_dir_parents): Use lchown rather than chown, and
45152 lchmod rather than chmod.
45154 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
45155 dummies too. Problem with "none" reported by Bob Proulx. Problem with
45156 "proc" reported by n0dalus.
45158 * lib/mountlist.c: Include <limits.h>.
45159 (dev_from_mount_options)
45160 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
45161 New function. It no longer assumes "dev=" has the System V meaning
45162 on Linux (since it doesn't). It also parses "dev=" more carefully.
45163 (read_file_system_list)
45164 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
45165 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
45168 * lib/posixtm.h (PDS_PRE_2000): New macro.
45169 * lib/posixtm.c (year): Arg is now syntax_bits rather than
45170 allow_century. All usages changed. Reject dates outside the range
45171 1969-1999 if PDS_PRE_2000 is used.
45173 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
45175 Sync from coreutils.
45176 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
45177 (Time of day items): Mention the possibility of leap seconds.
45178 Problem reported by Dr. David Alan Gilbert.
45180 2006-01-09 Jim Meyering <jim@meyering.net>
45182 Sync from coreutils.
45184 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
45186 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
45188 * lib/modechange.c (mode_compile): Reject an invalid mode string
45189 that starts with an octal digit. From Andreas Gruenbacher.
45191 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
45192 and dup to open_safer and dup_safer, respectively.
45193 (openat_permissive): Fix typo in comment.
45195 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
45196 "gettext.h"; either no longer needed or are guaranteed by openat.h.
45197 (_): Remove; no longer needed.
45198 (openat): Renamed from rpl_openat; no need for rpl_openat
45199 since openat.h renames openat for us.
45200 Replace most of the body with a call to openat_permissive,
45201 to avoid duplicate code.
45202 Port to (probably hypothetical) environments were mode_t is
45204 (openat_permissive): Require mode arg, so that we can check
45205 types better. Put it just after flags. Change cwd failure
45206 indicator from pointer-to-bool to pointer-to-errno-value.
45207 All callers changed.
45208 Invoke openat_save_fail and/or openat_restore_fail if
45209 cwd_errno is null, so that openat can call us.
45210 (openat_permissive, fdopendir, fstatat, unlinkat):
45211 Simplify errno handling to avoid some duplicate code,
45212 as it's OK to set errno on success.
45213 * lib/openat.h: Revamp code so that function macros depend on
45214 __OPENAT_PREFIX only, not also on AT_FDCWD.
45215 (openat_ro): Remove. Caller changed to use openat_permissive.
45216 (openat_permissive): Now a macro, if not a function.
45217 (openat_restore_fail, openat_save_fail): Now always functions,
45218 since mkdirat needs them even if __OPENAT_PREFIX is defined.
45220 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
45222 * lib/mkdirat.c: Include openat-priv.h.
45223 Remove definitions of macros defined therein.
45224 * lib/openat.c: Likewise.
45226 * lib/mkdirat.c (mkdirat): New file and function.
45227 * lib/openat.h (mkdirat): Declare.
45229 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
45231 * lib/openat.h (openat_permissive): Declare.
45232 (openat_ro): Define.
45234 * lib/openat.c (EXPECTED_ERRNO): New macro.
45235 (openat_permissive): New function -- used in remove.c rewrite.
45236 (all functions): Set errno just before returning, only if there
45237 was an actual failure.
45238 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
45240 Emulate openat-family functions using Linux's procfs, if possible.
45241 Idea and some code based on Ulrich Drepper's glibc changes.
45243 * lib/openat.c: (BUILD_PROC_NAME): New macro.
45244 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
45245 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
45246 before falling back on save_cwd and restore_cwd.
45247 (fdopendir, fstatat, unlinkat): Likewise.
45249 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
45250 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
45252 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
45253 as second argument to va_arg. Otherwise, some versions of gcc
45254 warn that `if this code is reached, the program will abort'.
45256 2006-01-09 Jim Meyering <jim@meyering.net>
45258 Sync from coreutils.
45259 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
45260 Require openat-priv.h.
45262 2006-01-09 Bruno Haible <bruno@clisp.org>
45264 * modules/strnlen (Include): Use strnlen.h.
45266 2006-01-09 Bruno Haible <bruno@clisp.org>
45268 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
45270 2006-01-09 Bruno Haible <bruno@clisp.org>
45272 * lib/sysexit_.h (EX_OK): New macro.
45273 Suggested by Martin Lambers <marlam@marlam.de>.
45275 2006-01-09 Bruno Haible <bruno@clisp.org>
45277 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
45278 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
45280 2006-01-09 Bruno Haible <bruno@clisp.org>
45282 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
45285 2006-01-09 Bruno Haible <bruno@clisp.org>
45287 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
45288 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
45289 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
45290 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
45292 2006-01-09 Bruno Haible <bruno@clisp.org>
45294 * build-aux/javacomp.sh.in: New file, moved from lib/.
45295 * modules/javacomp-script (Files): Update.
45296 (configure.ac): Add AC_CONFIG_FILES invocation.
45297 (EXTRA_DIST): Remove variable.
45299 * build-aux/javaexec.sh.in: New file, moved from lib/.
45300 * modules/javaexec (Files): Update.
45301 (configure.ac): Add AC_CONFIG_FILES invocation.
45302 (EXTRA_DIST): Remove javaexec.sh.in.
45304 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
45305 * modules/csharpcomp-script (Files): Update.
45306 (configure.ac): Add AC_CONFIG_FILES invocation.
45307 (EXTRA_DIST): Remove variable.
45309 * build-aux/csharpexec.sh.in: New file, moved from lib/.
45310 * modules/csharpexec (Files): Update.
45311 (configure.ac): Add AC_CONFIG_FILES invocation.
45312 (EXTRA_DIST): Remove csharpexec.sh.in.
45314 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
45316 Sync from coreutils.
45318 Add POSIX ACL support
45319 * lib/acl.h (copy_acl, set_acl): Add declarations.
45320 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
45321 systems other than Linux.
45322 (chmod_or_fchmod): New function: use fchmod when possible,
45323 and chmod otherwise.
45324 (file_has_acl): Add a POSIX ACL implementation, with a
45325 Linux-specific subcase.
45326 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
45327 S_ISVTX from one file to another. Fall back to fchmod/chmod when
45328 acls are unsupported.
45329 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
45330 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
45333 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
45335 Sync from coreutils.
45336 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
45338 2006-01-07 Bruno Haible <bruno@clisp.org>
45340 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
45343 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
45345 * lib/strftime.c (tzname): Don't declare if it is already #defined.
45346 Problem reported for Mingw by Mark Junker.
45348 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
45350 * README: Gnulib normally doesn't generate a tarball.
45352 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
45354 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
45355 long int, not int, for nanosecond counts, so that people who are
45356 used to POSIX struct timespec won't be surprised. Reported by Jim
45359 2005-12-28 Bruno Haible <bruno@clisp.org>
45361 * build-aux/config.rpath: Update from GNU gettext.
45363 2005-12-16 Jim Meyering <jim@meyering.net>
45365 * modules/fprintftime: New module.
45366 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
45368 2005-12-16 Jim Meyering <jim@meyering.net>
45370 * m4/fprintftime.m4: New file.
45372 2005-12-16 Jim Meyering <jim@meyering.net>
45374 * lib/fprintftime.c, lib/fprintftime.h: New files.
45376 2005-12-15 Simon Josefsson <jas@extundo.com>
45378 * modules/socklen (configure.ac): Fix M4 macro name, to align with
45381 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
45383 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
45384 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
45386 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
45388 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
45389 * lib/argp-help.c (fill_in_uparams): Check if the constructed
45390 struct uparams is valid. Fall back to the default values if it is
45393 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
45395 * modules/argp (Files): Add argp-pin.c
45396 (Depends-on): dirname
45397 (lib_SOURCES): Add argp-pin.c
45399 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
45401 * m4/argp.m4: Check if program_invocation_name and
45402 program_invocation_short_name are declared and define appropriate
45403 macros if they are not.
45405 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
45407 * lib/argp-help.c (__argp_base_name): New function
45408 (__argp_short_program_name): Rewrite using __argp_base_name
45409 * lib/argp-namefrob.h: Define program_invocation_name and
45410 program_invocation_short_name if requested
45411 (__argp_base_name): Add prototype
45412 * lib/argp-parse.c (argp_def): Use gettext wrappers
45413 (argp_default_parser): Use __argp_base_name
45414 * lib/argp-pin.c: New file. Defines program_invocation_name and
45415 program_invocation_short_name on systems that lack them.
45417 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
45419 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
45420 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
45421 porting problem reported by Georg Schwarz in
45422 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
45424 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
45426 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
45427 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
45428 porting problem reported by Georg Schwarz in
45429 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
45431 2005-12-05 Bruno Haible <bruno@clisp.org>
45433 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
45434 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
45435 Reported by Mark Junker <mjscod@gmx.de>.
45437 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
45439 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
45440 Use implementation from Albert Chin, with some
45441 comments/corrections by Stepan Kasal and myself.
45443 2005-12-02 Bruno Haible <bruno@clisp.org>
45445 * gnulib-tool (func_import): Accept GPLed build tool modules when
45447 * modules/csharpcomp-script: New file.
45448 * modules/csharpcomp: Depend on it.
45449 * modules/javacomp-script: New file.
45450 * modules/javacomp: Depend on it.
45451 Suggested by Simon Josefsson.
45453 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
45455 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
45456 statement, to work around an HP-UX 10.20 compiler bug reported by
45459 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
45461 * modules/savedir (Depends-on): Add openat.
45463 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
45465 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
45466 (uintmax_t) [defined uintmax_t]: Do not declare.
45467 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
45468 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
45469 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
45470 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
45471 sake of portability to weird hosts that C allows (though we don't
45472 know of any practical examples).
45474 * lib/savedir.h (fdsavedir): New decl.
45475 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
45476 contains most of the former guts of savedir.
45477 (savedir): Use savedirstream.
45478 Include "openat.h".
45480 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
45482 * modules/obstack (Files): Add m4/ulonglong.m4.
45483 Problem reported by Davide Angelocola.
45485 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
45487 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
45488 coreutils no longer futzes with rounding modes.
45490 2005-11-14 Jim Meyering <jim@meyering.net>
45492 * lib/mkstemp-safer.c: Include <config.h>, required for possible
45493 replacement of mkstemp.
45495 2005-11-10 Simon Josefsson <jas@extundo.com>
45497 * lib/readline.c: Remove EOL.
45499 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
45501 * modules/gethrxtime (Depends-on): Add gettime.
45503 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
45505 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
45506 or gettimeofday; no longer needed.
45508 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
45510 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
45512 (gethrxtime) [! (HAVE_NANOUPTIME
45513 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
45514 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
45515 our own approximation.
45517 2005-11-08 Eric Blake <ebb9@byu.net>
45519 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
45521 2005-11-08 Eric Blake <ebb9@byu.net>
45523 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
45525 2005-11-04 Bruno Haible <bruno@clisp.org>
45527 * gnulib-tool: Implement --update mode.
45529 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
45531 Fix porting problem reported by Theodoros V. Kalamatianos.
45532 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
45533 Don't assume that futimes failing means we must fail.
45535 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
45537 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
45538 variables to suggest the intended function of the PATH_MAX check.
45540 2005-10-30 Kean Johnston <jkj@sco.com>
45542 Trivial changes to support SCO systems.
45543 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
45545 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
45546 where __ptr is null when no I/O is pending.
45548 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
45550 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
45551 leave errno alone. Problem reported by Dmitry V. Levin.
45553 2005-10-28 Simon Josefsson <jas@extundo.com>
45555 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
45558 * tests/test-gc-md2.c, tests/test-md2.c: New files.
45560 * modules/md2, modules/md2-tests: New files.
45562 2005-10-28 Simon Josefsson <jas@extundo.com>
45564 * m4/inet_ntop.m4: More tests.
45566 * m4/gc-md2.m4, md2.m4: New file.
45568 2005-10-28 Simon Josefsson <jas@extundo.com>
45570 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
45571 "restrict" keywords, as per POSIX. Protect the function
45572 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
45573 Don't use K&R prototypes. Check the sprintf return values.
45574 Re-define EAFNOSUPPORT if not present. Indent.
45576 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
45577 suggested by Bruno Haible <bruno@clisp.org>.
45579 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
45581 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
45583 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
45586 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
45588 * lib/md2.h, lib/md2.c: New files.
45590 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
45592 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
45593 errno alone. Problem reported by Frederic Jolliton.
45595 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
45597 * modules/verify (License): Change from GPL to LGPL. This is a
45598 tiny module and there are apparently near-equivalents that are
45599 under the BSD license.
45601 2005-10-24 Simon Josefsson <jas@extundo.com>
45603 * modules/sha1: Relicense to LGPL.
45605 2005-10-24 Simon Josefsson <jas@extundo.com>
45607 * lib/md4.h: Shrink buffer size, now that we changed the type.
45609 2005-10-23 Simon Josefsson <jas@extundo.com>
45611 * gnulib-tool (func_import): Fix --tests-base.
45613 2005-10-22 Simon Josefsson <jas@extundo.com>
45615 * modules/arcfour (Depends-on): Need stdint.
45617 2005-10-22 Simon Josefsson <jas@extundo.com>
45619 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
45620 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
45622 2005-10-22 Simon Josefsson <jas@extundo.com>
45624 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
45625 suggested by Bruno Haible <bruno@clisp.org>.
45627 2005-10-22 Simon Josefsson <jas@extundo.com>
45629 * lib/crc.h: Include stddef.h, for size_t.
45631 2005-10-22 Simon Josefsson <jas@extundo.com>
45633 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
45634 arcfour_context struct (simplify test vector testing in GNU
45637 2005-10-21 Simon Josefsson <jas@extundo.com>
45639 * modules/des, modules/des-tests: New files.
45641 * modules/gc-des, modules/gc-des-tests: New files.
45643 * tests/test-des.c, tests/test-gc-des.c: New file.
45645 2005-10-21 Simon Josefsson <jas@extundo.com>
45647 * modules/arctwo, modules/arctwo-tests: New files.
45649 * tests/test-arctwo.c: New file.
45651 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
45653 * tests/test-gc-arctwo.c: New file.
45655 2005-10-21 Simon Josefsson <jas@extundo.com>
45657 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
45658 Bruno Haible <bruno@clisp.org>.
45660 * m4/gc-des.m4: New file.
45662 2005-10-21 Simon Josefsson <jas@extundo.com>
45664 * m4/arctwo.m4: New file.
45666 * m4/gc-arctwo.m4: New file.
45668 2005-10-21 Simon Josefsson <jas@extundo.com>
45670 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
45673 2005-10-21 Simon Josefsson <jas@extundo.com>
45675 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
45678 * lib/hmac-sha1.c (hmac_sha1): Likewise.
45680 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
45681 Bruno Haible <bruno@clisp.org>.
45683 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
45686 2005-10-21 Simon Josefsson <jas@extundo.com>
45688 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
45690 2005-10-21 Simon Josefsson <jas@extundo.com>
45692 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
45694 2005-10-21 Simon Josefsson <jas@extundo.com>
45696 * lib/des.h, lib/des.c: New files.
45698 * lib/gc-gnulib.c: Support DES.c
45700 2005-10-21 Simon Josefsson <jas@extundo.com>
45702 * lib/arctwo.h, lib/arctwo.c: New files.
45704 * lib/gc-gnulib.c: Support ARCTWO.
45706 2005-10-21 Simon Josefsson <jas@extundo.com>
45708 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
45709 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45711 2005-10-21 Simon Josefsson <jas@extundo.com>
45713 * gnulib-tool (func_import, func_create_testdir): Define automake
45714 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
45715 Makefile.am snippet),
45716 suggested by Bruno Haible <bruno@clisp.org>.
45718 * modules/gc (Makefile.am): Use it.
45720 2005-10-21 Bruno Haible <bruno@clisp.org>
45722 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
45725 2005-10-19 Simon Josefsson <jas@extundo.com>
45727 * tests/test-gc-rijndael.c: New file.
45729 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
45731 2005-10-19 Simon Josefsson <jas@extundo.com>
45733 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
45736 2005-10-19 Simon Josefsson <jas@extundo.com>
45738 * tests/test-gc-arcfour.c: New file.
45740 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
45742 2005-10-19 Simon Josefsson <jas@extundo.com>
45744 * modules/gc-md4, modules/gc-md4-tests: New file.
45746 * tests/test-gc-md4.c: New file.
45748 2005-10-19 Simon Josefsson <jas@extundo.com>
45750 * m4/gc-md4.m4: New file.
45752 2005-10-19 Simon Josefsson <jas@extundo.com>
45754 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
45755 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
45758 2005-10-19 Simon Josefsson <jas@extundo.com>
45760 * m4/gc-arcfour.m4: New file.
45762 * m4/gc-rijndael.m4: New file.
45764 2005-10-19 Simon Josefsson <jas@extundo.com>
45766 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
45768 2005-10-19 Simon Josefsson <jas@extundo.com>
45770 * lib/gc-gnulib.c: Support ARCFOUR.
45772 2005-10-19 Simon Josefsson <jas@extundo.com>
45774 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
45777 * lib/gc.h: Add ECB enum type.
45779 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
45781 2005-10-18 Simon Josefsson <jas@extundo.com>
45783 * tests/test-md5.c: New file.
45785 * modules/md5-tests: New file.
45787 2005-10-18 Simon Josefsson <jas@extundo.com>
45789 * tests/test-md4.c: New file.
45791 * modules/md4, modules/md4-tests: New files.
45793 2005-10-18 Simon Josefsson <jas@extundo.com>
45795 * m4/md4.m4: New file.
45797 2005-10-18 Simon Josefsson <jas@extundo.com>
45799 * lib/md4.h, lib/md4.c: New files, based on md5.?.
45801 2005-10-17 Stepan Kasal <kasal@ucw.cz>
45803 * gnulib-tool (func_create_testdir): Omit the second check whether
45804 BUILT_SOURCES in nonempty.
45806 2005-10-17 Simon Josefsson <jas@extundo.com>
45808 * tests/test-rijndael.c: New file.
45810 2005-10-17 Simon Josefsson <jas@extundo.com>
45812 * modules/sha1: Depend on stdint instead of md5.
45814 * modules/md5: Depend on stdint, remove uint32_t.
45816 2005-10-17 Simon Josefsson <jas@extundo.com>
45818 * modules/gc-sha1-tests: New file.
45820 * tests/test-gc-sha1.c: New file.
45822 2005-10-17 Simon Josefsson <jas@extundo.com>
45824 * m4/md5.m4: Remove call to uint32_t.m4.
45826 2005-10-17 Simon Josefsson <jas@extundo.com>
45828 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
45830 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
45833 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
45835 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
45837 2005-10-17 Simon Josefsson <jas@extundo.com>
45839 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
45841 2005-10-17 Simon Josefsson <jas@extundo.com>
45843 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
45845 2005-10-17 Simon Josefsson <jas@extundo.com>
45847 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
45849 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
45851 2005-10-17 Bruno Haible <bruno@clisp.org>
45853 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
45854 that it can also be used in a test.
45856 2005-10-16 Bruno Haible <bruno@clisp.org>
45858 * gnulib-tool (func_emit_tests_Makefile_am): Also define
45859 TESTS_ENVIRONMENT, so that individual tests can augment it.
45861 * gnulib-tool (func_create_testdir): Use an intermediate target for
45862 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
45863 macros, like $(ALLOCA_H), which cannot be passed through the command
45866 2005-10-15 Simon Josefsson <jas@extundo.com>
45868 * modules/rijndael-tests: New file.
45870 * modules/rijndael: New file.
45872 2005-10-15 Simon Josefsson <jas@extundo.com>
45874 * m4/rijndael.m4: New file.
45876 2005-10-15 Simon Josefsson <jas@extundo.com>
45878 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
45880 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
45882 2005-10-14 Simon Josefsson <jas@extundo.com>
45884 * tests/test-arcfour.c: New file.
45886 * modules/arcfour, modules/arcfour-tests: New files.
45888 2005-10-14 Simon Josefsson <jas@extundo.com>
45890 * m4/arcfour.m4: New file.
45892 2005-10-14 Simon Josefsson <jas@extundo.com>
45894 * lib/arcfour.h, lib/arcfour.c: New files.
45896 2005-10-14 Roland McGrath <roland@redhat.com>
45898 Import from libc. [BZ #1331]
45899 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
45901 Reported by Matej Vela <vela@debian.org>.
45903 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
45905 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
45906 include <wchar.h>; no longer needed.
45908 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
45910 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
45912 2005-10-14 Jakub Jelinek <jakub@redhat.com>
45913 and Ulrich Drepper <drepper@redhat.com>
45916 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
45917 instead of inline stream orientation test and two separate
45918 function calls. Pay no attention to USE_IN_LIBIO.
45920 2005-10-13 Simon Josefsson <jas@extundo.com>
45922 * modules/gc-hmac-md5-tests: New file.
45924 * tests/test-gc-hmac-sha1.c: New file.
45926 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
45928 * modules/gc-hmac-md5-tests: New file.
45930 * tests/test-gc-md5.c: New file.
45932 * modules/gc-md5-tests: New file.
45934 2005-10-13 Simon Josefsson <jas@extundo.com>
45936 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
45937 Move memory allocation outside of loop.
45939 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
45941 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
45942 intermediate directory is in a read-only file system. Problem
45943 reported by Eric Blake.
45945 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
45947 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
45949 2005-10-12 Simon Josefsson <jas@extundo.com>
45951 * tests/test-hmac-sha1.c: New file.
45953 * modules/hmac-sha1-tests: New file.
45955 * modules/hmac-sha1: New file.
45957 2005-10-12 Simon Josefsson <jas@extundo.com>
45959 * modules/gc-sha1: New file.
45961 2005-10-12 Simon Josefsson <jas@extundo.com>
45963 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
45965 * tests/test-gc-pbkdf2-sha1.c: New file.
45967 2005-10-12 Simon Josefsson <jas@extundo.com>
45969 * modules/gc-md5, modules/gc-hmac-md5: New files.
45971 * modules/gc (Files): Remove md5, memxor and hmac files.
45973 2005-10-12 Simon Josefsson <jas@extundo.com>
45975 * m4/gc-pbkdf2-sha1.m4: New file.
45977 * m4/gc-hmac-sha1.m4: New file.
45979 * m4/gc-sha1: New file.
45981 * m4/hmac-sha1.m4: New file.
45983 2005-10-12 Simon Josefsson <jas@extundo.com>
45985 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
45987 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
45989 2005-10-12 Simon Josefsson <jas@extundo.com>
45991 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
45992 suggested by Bruno Haible <bruno@clisp.org>.
45994 2005-10-12 Simon Josefsson <jas@extundo.com>
45996 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
45998 2005-10-12 Simon Josefsson <jas@extundo.com>
46000 * lib/gc-pbkdf2-sha1.c: New file.
46002 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
46004 2005-10-12 Simon Josefsson <jas@extundo.com>
46006 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
46008 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
46010 2005-10-12 Simon Josefsson <jas@extundo.com>
46012 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
46013 GC_USE_HMAC_MD5, respectively.
46015 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
46016 (gc_md5): Fix typo.
46018 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
46020 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
46022 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
46024 2005-10-12 Bruno Haible <bruno@clisp.org>
46026 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
46027 Reported by Stepan Kasal <kasal@ucw.cz>.
46029 2005-10-11 Simon Josefsson <jas@extundo.com>
46031 * tests/test-crc.c: New file.
46033 * modules/crc, modules/crc-tests: New files.
46035 2005-10-11 Simon Josefsson <jas@extundo.com>
46037 * m4/crc.m4: New file.
46039 2005-10-11 Simon Josefsson <jas@extundo.com>
46041 * lib/gc.h: Add gc_hash and gc_hash_buffer.
46043 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
46045 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
46047 2005-10-11 Simon Josefsson <jas@extundo.com>
46049 * lib/crc.h, lib/crc.c: New files.
46051 * lib/gc.h (gc_hash_buffer): Add doc.
46053 2005-10-11 Bruno Haible <bruno@clisp.org>
46055 * modules/c-strcasestr: New file.
46056 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
46058 2005-10-11 Bruno Haible <bruno@clisp.org>
46060 * modules/c-strcase: New file.
46061 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
46063 2005-10-11 Bruno Haible <bruno@clisp.org>
46065 * lib/strcasecmp.c: Include limits.h.
46066 (strcasecmp): Avoid integer overflow on exotic platforms.
46067 * lib/strncasecmp.c: Include limits.h.
46068 (strncasecmp): Avoid integer overflow on exotic platforms.
46069 Reported by Paul Eggert.
46071 2005-10-11 Bruno Haible <bruno@clisp.org>
46073 * lib/c-strcasestr.h: New file, from GNU gettext.
46074 * lib/c-strcasestr.c: New file, from GNU gettext.
46076 2005-10-11 Bruno Haible <bruno@clisp.org>
46078 * lib/c-strcase.h: New file, from GNU gettext.
46079 * lib/c-strcasecmp.c: New file, from GNU gettext.
46080 * lib/c-strncasecmp.c: New file, from GNU gettext.
46082 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
46084 * modules/mempcpy (License): GPL -> LGPL.
46085 * modules/strchrnul (License): Likewise.
46086 * modules/sysexits (License): Likewise.
46088 2005-10-08 Simon Josefsson <jas@extundo.com>
46090 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
46092 2005-10-07 Simon Josefsson <jas@extundo.com>
46094 * m4/memxor.m4: Remove gl_C_RESTRICT call.
46096 2005-10-06 Simon Josefsson <jas@extundo.com>
46098 * tests/test-hmac-md5.c: New file.
46100 * modules/hmac-md5-tests: New file.
46102 * modules/hmac-md5: New file.
46104 2005-10-06 Simon Josefsson <jas@extundo.com>
46106 * m4/hmac-md5.m4: New file.
46108 * m4/memxor.m4: Require gl_C_RESTRICT.
46110 2005-10-06 Simon Josefsson <jas@extundo.com>
46112 * lib/memxor.c (memxor): Avoid casts and warnings.
46114 2005-10-06 Simon Josefsson <jas@extundo.com>
46116 * lib/hmac-md5.c: New file.
46118 * lib/hmac.h: New file.
46120 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
46122 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
46123 promotes to int, not unsigned int, to catch the AIX 5.3
46126 2005-10-05 Simon Josefsson <jas@extundo.com>
46128 * modules/memxor: New file.
46130 * modules/iconv (Files): Move config.rpath to havelib, it is used
46133 * modules/havelib (Files): Add config.rpath.
46135 2005-10-05 Simon Josefsson <jas@extundo.com>
46137 * m4/memxor.m4: New file.
46139 2005-10-05 Simon Josefsson <jas@extundo.com>
46141 * lib/memxor.c (memxor): Fix compiler error.
46143 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
46144 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
46146 * lib/memxor.h, lib/memxor.c: New files.
46148 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
46149 we assume all systems have it, suggested by Jim Meyering
46150 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
46151 any systems lack sys/socket.h; mingw32 is known to lack it, but we
46152 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
46155 2005-10-05 Simon Josefsson <jas@extundo.com>
46157 * config/srclist.txt: Add glibc bug 1423 for md5.h.
46159 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
46161 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
46162 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
46163 needed, since the source code now assumes these .h files.
46165 2005-10-05 Derek Price <derek@ximbiot.com>
46167 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
46169 2005-10-05 Bruno Haible <bruno@clisp.org>
46171 * modules/stdint (License): Change to LGPL.
46173 2005-10-04 Simon Josefsson <jas@extundo.com>
46175 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
46176 D. Baushke" <mdb@gnu.org>.
46178 2005-10-04 Bruno Haible <bruno@clisp.org>
46180 * lib/verify.h (verify_true): Provide alternative definition for C++.
46182 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
46184 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
46185 (SSIZE_MAX): New macro, if not already defined.
46186 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
46189 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
46191 Sync from coreutils.
46192 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
46193 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
46194 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
46195 ULLONG_MAX doesn't work with 2.7.2.1.
46197 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
46199 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
46202 * modules/exclude (Depends-on): Depend on verify.
46203 * modules/strtoimax (Depends-on): Likewise.
46204 * modules/utimecmp (Depends-on): Likewise.
46206 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
46208 * lib/exclude.c: Include verify.h.
46209 (verify): Remove. All callers changed to use verify.h's version.
46210 * lib/strtoimax.c: Likewise.
46211 * lib/utimecmp.c: Likewis.e
46213 Sync from coreutils.
46214 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
46215 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
46216 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
46217 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
46218 bother returning ENOSYS if settimeofday or stime fails; just let
46219 them return whatever errno they want to return.
46220 * lib/utimens.c: Include unistd.h, for dup2.
46221 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
46222 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
46224 2005-10-02 Jim Meyering <jim@meyering.net>
46226 Sync from coreutils.
46227 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
46228 from glibc-2.2.5 that fails for read-only files.
46230 2005-10-02 Jim Meyering <jim@meyering.net>
46232 Sync from coreutils.
46233 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
46234 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
46235 `#if HAVE_CONFIG_H'.
46236 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
46237 Remove AT_FDCWD test.
46238 Do not consume the fd unless successful.
46239 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
46240 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
46241 block, so that we don't even try to compile it if settimeofday is
46242 available. This works around a compilation failure on OSF1 V5.1,
46243 due to stime requiring a `long int*' while tv_sec is `int'.
46245 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
46247 Sync from coreutils.
46248 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
46249 against `yes', rather than just testing for nonempty.
46251 2005-10-01 Simon Josefsson <jas@extundo.com>
46253 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
46256 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
46257 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
46258 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
46259 freeaddrinfo and gai_strerror are declared by the POSIX headers.
46260 Check if struct addrinfo is declared.
46262 2005-10-01 Simon Josefsson <jas@extundo.com>
46264 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
46265 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
46266 AI_* and EAI_* definitions. Protect function declarations.
46268 2005-10-01 Jim Meyering <jim@meyering.net>
46270 Sync from coreutils.
46272 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
46273 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
46274 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
46275 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
46276 in the inet and nsl libraries. Required on Solaris 5.7.
46278 2005-10-01 Jim Meyering <jim@meyering.net>
46280 Sync from coreutils.
46281 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
46282 in the inet and nsl libraries. Required on Solaris 5.7.
46284 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
46286 * lib/getdelim.c (getdelim): Remove unused variables.
46288 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
46290 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
46291 so that the code works even with ancient cpp. Portability problem
46292 with GCC 2.7.2.1 reported by Thomas M.Ott.
46294 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
46296 * modules/regex (Depends-on): Add strcase.
46298 * modules/gethostname (Licence): Change from GPL to LGPL, since
46299 gethostname.c is a trivial implementation of a standard library
46301 * modules/poll (License): Change from GPL to LGPL, since it's
46302 derived from LGPL code.
46304 2005-09-27 Jim Meyering <jim@meyering.net>
46306 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
46309 * lib/intprops.h (signed_type_or_expr__): Define.
46310 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
46311 for unsigned types.
46313 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
46315 * lib/verify.h (verify_expr): Remove, replacing with:
46316 (verify_true): New macro that returns true instead of void.
46317 (verify_type__): Remove.
46318 (verify): Use verify_true rather than verify_type__.
46320 2005-09-26 Bruno Haible <bruno@clisp.org>
46322 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
46324 (lib_SOURCES): Remove mbchar.c.
46325 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
46326 (Files): Add m4/mbrtowc.m4.
46327 * modules/mbiter: Likewise.
46328 * modules/mbuiter: Likewise.
46330 2005-09-26 Bruno Haible <bruno@clisp.org>
46332 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
46333 compile mbchar.c if they are not both present.
46334 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
46335 * m4/mbiter.m4 (gl_MBITER): Likewise.
46336 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
46337 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
46338 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
46340 2005-09-25 Jim Meyering <jim@meyering.net>
46342 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
46343 also uses socklen_t.
46345 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
46347 * lib/utimens.c (ENOSYS): Define if not already defined.
46348 (futimens): Support having a null PATH if the file descriptor
46351 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
46353 (__attribute): Define to empty unless GCC 3.1 or later.
46354 This works around a core dump on OpenBSD 3.4, which has GCC
46355 2.95.3, which dumps core when given __attribute__(()). It also
46356 simplifies other tests, since we really don't want to bother with
46357 worrying about which ancient version of GCC supported what.
46358 Original problem reported by Yoann Vandoorselaere, with part of
46359 the fix suggested by Derek Price.
46361 2005-09-24 Jim Meyering <jim@meyering.net>
46363 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
46364 so we can once again use a positive bitfield width of 1 -- now we
46365 don't have to explain why we were using a bitfield width of 2.
46367 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
46369 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
46370 and similarly for the other external symbols. Problem reported
46373 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
46374 bug reported by Jim Meyering.
46376 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
46377 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
46378 not needed, since socklen is a prerequisite module.
46380 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
46382 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
46383 Problem reported by Eric Blake.
46384 (getaddrinfo): Initialize se so that it's not garbage.
46385 Redo internal storage allocation so that it doesn't make unportable
46386 assumptions about alignment.
46389 * lib/utimens.c (futimens): Use futimesat if available.
46390 Prefer it to futimes since it doesn't have the futimes bug.
46392 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
46393 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
46394 Instead, declare a function that returns a pointer to an array,
46395 and use verify_type__ to declare the size of the array.
46396 Problem and germ of a solution reported by Bruno Haible.
46397 (verify_type__): Use 2, not 1, for bitfield size, to avoid
46398 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
46400 2005-09-23 Jim Meyering <jim@meyering.net>
46402 Sync from coreutils.
46403 Correct build failure (socklen_t not defined) on at least
46404 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
46405 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
46407 2005-09-23 Jim Meyering <jim@meyering.net>
46409 * modules/getaddrinfo (Depends-on): Add socklen.
46411 2005-09-23 Bruno Haible <bruno@clisp.org>
46413 * tests/test-verify.c: New file.
46415 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
46417 Sync from coreutils.
46419 * modules/argmatch (Depends-on): Add verify.
46420 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
46422 * modules/save-cwd (Depends-on): Likewise.
46424 * modules/openat (Files): Add lib/openat-die.c.
46425 (Depends-on): Remove error, exitfail.
46428 * modules/verify: New file.
46429 * MODULES.html.sh (Diagnostics <assert.h>): New section,
46430 with "verify" module.
46432 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
46434 Sync from coreutils.
46436 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
46437 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
46438 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
46439 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
46440 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
46441 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
46442 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
46443 Don't bother checking for string.h, stdlib.h, unistd.h.
46444 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
46445 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
46447 * m4/jm-macros.m4 (gl_MACROS): Likewise.
46448 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
46450 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
46451 (gl_GETDATE): Use it.
46453 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
46455 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
46457 Sync from coreutils.
46459 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
46461 * lib/argmatch.h: Include verify.h
46462 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
46463 (ARGMATCH_ASSERT): Remove; unused.
46464 * lib/canonicalize.c: Assume STDC_HEADERS.
46465 * lib/exclude.c: Include "strcase.h".
46466 * lib/regex_internal.h [!defined _LIBC]: Likewise.
46467 * lib/getusershell.c: Include stdio--.h rather than stdio.h
46469 (getusershell): Call fopen, not fopen_safer.
46470 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
46471 Do not include unistd-safer.h.
46472 (save_cwd): Don't call fd_safer; no longer needed
46473 now that we include fcntl--.h.
46475 * lib/getdate.y (relative_time): New type.
46476 (RELATIVE_TIME_0): New constant.
46477 (parser_control): Use relative_time instead of doing it ourselves.
46478 (%union): Add new relative_time rel member.
46479 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
46481 (relunit, relunit_snumber): Now of type rel.
46482 (zone, rel, relunit, get_date): Adjust to above changes.
46484 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
46485 Do not include unistd-safer.h.
46486 (getloadavg): Don't call fd_safer; no longer needed
46487 now that we include fcntl--.h.
46489 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
46490 (make_dir_parents): Treat ENOSYS like EEXIST.
46492 Improve quality of diagnostics on restore_cwd failure.
46493 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
46494 (make_dir_parents): Last arg is now int * (for errno), not bool *.
46495 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
46496 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
46497 each time through the loop. Do not diagnose restore_cwd failure;
46498 that is the caller's job (and perhaps the caller does not care).
46500 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
46501 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
46502 If the file already exists but is not a directory, don't bother
46503 to try to make its parents.
46504 Close potential file descriptor leak if we can't chdir("/") (!).
46505 Don't always return true if chdir($PWD) fails; return true only
46506 if the requested action was done successfully (except for the
46508 Don't log final directory unless we actually made it.
46509 Refactor to avoid duplicate code to fix up permissions.
46510 Don't attempt to fix up parent permissions if chdir($PWD) fails.
46512 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
46513 to make it a bit faster and (I hope) clearer.
46514 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
46515 Fix bug in formats like %2N.
46517 * lib/verify.h: New file.
46519 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
46521 Sync from coreutils.
46522 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
46524 2005-09-22 Jim Meyering <jim@meyering.net>
46526 Sync from coreutils.
46528 * m4/lstat.m4 (gl_FUNC_LSTAT):
46529 Use AC_LIBSOURCES to require lstat.c and lstat.h.
46530 Remove obsolete comment.
46531 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
46532 * m4/xstrtod.m4: Likewise.
46534 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
46536 2005-09-22 Jim Meyering <jim@meyering.net>
46538 Sync from coreutils.
46540 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
46542 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
46543 the .tm_year member, since otherwise gcc-4.0 would now warn about
46544 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
46546 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
46547 order to avoid an unsuppressible warning from gcc on 64-bit systems.
46549 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
46550 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
46551 when run in a time zone for which daylight savings time is in effect
46552 for the starting date.
46554 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
46555 stop us from restricting permissions of just-created absolute-named
46557 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
46558 to restore initial working directory.
46559 * lib/mkdir-p.c (make_dir_parents): New parameter:
46560 different_working_dir, to tell caller if/when we change the working
46561 directory and are unable to return to the initial one.
46562 * lib/mkdir-p.h (make_dir_parents): Update prototype.
46563 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
46564 `return false'. This fixes a bug introduced on 2004-07-30.
46566 * lib/openat.c (fdopendir): Be sure to close the supplied
46567 file descriptor before returning. This makes our replacement
46568 implementation a little closer to Solaris's, where fdopendir
46569 ties the file descriptor to the returned DIR* pointer.
46570 * lib/openat.c (unlinkat): New function.
46571 * lib/openat.h (unlinkat): Add prototype.
46572 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
46573 (openat_restore_fail): Rename from openat_restore_die.
46574 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
46576 Provide an alternative to exiting immediately upon save_cwd or
46577 restore_cwd failure. Now, an application can arrange e.g.,
46578 to perform a longjump in that case.
46579 * lib/openat.c: Include dirname.h.
46580 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
46581 (rpl_openat, fdopendir, fstatat): Call openat_save_die
46582 and openat_restore_die rather than calling error directly.
46583 Don't include "error.h" or "exitfail.h"; they're no longer needed.
46585 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
46586 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
46589 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
46590 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
46591 int utc, int nanoseconds);
46593 date should not have to allocate a megabyte of virtual memory to
46594 handle a format argument like +%1048575T. When implemented with
46595 strftime, it must allocate such a buffer, use strftime to fill it
46596 in, print it, then free it.
46597 With fprintftime, it simply prints everything and exits.
46598 With no need for memory allocation, that's one fewer way to fail.
46599 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
46600 optional field width, not before, so we accept %9:z, not %:9z.
46601 (my_strftime): Be sure to use L_('x') for literals.
46603 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
46604 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
46605 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
46606 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
46607 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
46608 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
46609 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
46610 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
46611 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
46612 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
46613 * lib/xgethostname.c, lib/xreadlink.c:
46614 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
46616 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
46617 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
46618 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
46619 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
46620 and don't include <sys/file.h>).
46622 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
46624 Sync from coreutils.
46626 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
46627 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
46628 [!LDAV_DONE]: Avoid unused variable warning.
46630 2005-09-21 Bruno Haible <bruno@clisp.org>
46632 * lib/unicodeio.h (unicode_to_mb): New declaration.
46634 2005-09-20 Derek Price <derek@ximbiot.com>
46636 * lib/getaddrinfo.c: Don't include <netdb.h> included from
46639 2005-09-20 Bruno Haible <bruno@clisp.org>
46641 * gnulib-tool: Remove trailing slashes from the values specified for
46642 --source-base, --m4-base, --tests-base, --aux-dir.
46643 Suggested by Simon Josefsson <jas@extundo.com>.
46645 2005-09-20 Bruno Haible <bruno@clisp.org>
46647 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
46648 func_modules_to_filelist, func_import, func_create_testdir): Make all
46649 sorting results locale-independent, so that gnulib-cache.m4 doesn't
46650 change when gnulib-tool is invoked in a different locale.
46652 2005-09-19 Simon Josefsson <jas@extundo.com>
46654 * m4/socklen.m4: Fix typo.
46656 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46658 Use a consistent style for including <config.h>.
46659 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
46660 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
46661 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
46662 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
46663 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
46664 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
46665 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
46666 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
46667 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
46668 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
46669 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
46670 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
46671 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
46672 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
46673 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
46674 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
46675 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
46676 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
46677 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
46678 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
46679 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
46680 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
46681 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
46682 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
46683 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
46684 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
46685 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
46686 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
46687 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
46688 lib/xstrtoumax.c, lib/yesno.c:
46689 Standardize inclusion of config.h.
46690 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
46691 lib/inttostr.h: Removed inclusion of config.h from header files.
46692 * lib/inttostr.c: Adjusted in-tree users.
46693 * lib/timespec.h: Remove superfluous warning to include config.h.
46694 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
46695 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
46696 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
46697 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
46698 config.h with HAVE_CONFIG_H.
46700 2005-09-19 Jim Meyering <jim@meyering.net>
46702 * modules/pathmax (License): Change to LGPL.
46704 2005-09-19 Derek Price <derek@ximbiot.com>
46706 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
46708 2005-09-19 Bruno Haible <bruno@clisp.org>
46710 * gnulib-tool (import): Provide default for --tests-base.
46712 2005-09-19 Bruno Haible <bruno@clisp.org>
46714 * doc/quote.texi: New file, extracted from gnulib.texi.
46715 * doc/ctime.texi: New file, extracted from gnulib.texi.
46716 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
46717 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
46718 * doc/gnulib.texi: Include them.
46720 2005-09-18 Bruno Haible <bruno@clisp.org>
46723 * gnulib-tool (func_readlink): New function.
46724 (func_ln_if_changed): Use it.
46726 2005-09-18 Bruno Haible <bruno@clisp.org>
46728 * gnulib-tool: Support --with-tests also with --import.
46729 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
46730 (func_import): Use variables $testsbase and $inctests. Emit a
46731 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
46732 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
46733 SUBDIRS += $testsdir.
46734 (func_create_testdir): Update.
46736 2005-09-18 Bruno Haible <bruno@clisp.org>
46738 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
46739 instead of $dry_run.
46740 (func_cp_if_changed, func_mv_if_changed): Remove functions.
46741 (func_ln_if_changed): Don't handle dry-run here.
46742 (func_import): In dry-run mode, detect more precisely which actions
46743 would be performed, and don't use "...ing" verbs.
46745 2005-09-18 Bruno Haible <bruno@clisp.org>
46747 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
46748 (func_import): Use join on two temporary files instead of three nested
46749 loops, in order to determine which files are new or old.
46751 2005-09-18 Bruno Haible <bruno@clisp.org>
46753 * gnulib-tool (func_import): Comment out code that spits out the
46754 new files with --dry-run.
46756 2005-09-18 Bruno Haible <bruno@clisp.org>
46758 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
46760 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
46762 * lib/stat-time.h: New file.
46763 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
46764 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
46765 in a different way.
46766 (timespec_cmp): New function.
46767 * lib/utimecmp.c: Include stat-time.h.
46768 (SYSCALL_RESOLUTION): Depend on whether various struct stat
46769 members exist, not on the obsolescent ST_MTIM_NSEC.
46770 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
46772 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
46774 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
46776 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
46778 * MODULES.html.sh (File system functions): Add stat-time.
46779 * modules/stat-time: New file.
46780 * modules/timespec (Files): Remove m4/st_mtim.m4; this
46781 is now done in a different way, by the stat-time module.
46782 * modules/utimecmp (Depends-on): Add stat-time.
46784 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
46786 * m4/st_mtim.m4: Remove. Superseded by...
46787 * m4/stat-time.m4: New file.
46788 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
46789 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
46791 2005-09-15 Derek Price <derek@ximbiot.com>
46793 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
46795 2005-09-15 Derek Price <derek@ximbiot.com>
46797 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
46798 * lib/regex_internal.c: Ditto, using this...
46799 (__GNUC_PREREQ): ...new macro.
46800 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
46802 (__GNUC_PREREQ): ...this new macro.
46804 * lib/strstr.h: Include string.h. Define strstr as a macro here.
46806 2005-09-15 Derek Price <derek@ximbiot.com>
46807 Paul Eggert <eggert@cs.ucla.edu>
46809 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
46810 changes, consolidating in...
46811 * lib/regex_internal.h: ...this file.
46813 2005-09-13 Jim Meyering <jim@meyering.net>
46815 * lib/canon-host.c: Filter through gnu indent and reword comments
46817 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
46819 2005-09-13 Derek Price <derek@ximbiot.com>
46821 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
46823 Reported by Jim Meyering <jim@meyering.net>.
46825 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
46827 * lib/base64.c: Typo.
46828 (base64_encode): Put b64str in initialized data section.
46830 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
46832 Merge glibc and coreutils changes into gnulib, plus a few
46834 * lib/md5.c: Use #error rather than a string.
46835 (CYCLIC): New macro, from glibc source. Use it instead of rol.
46836 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
46837 (__attribute__): Define to empty for non recent-GCC.
46838 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
46839 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
46840 Renamed from their non-__ counterparts, with new macros replacing
46841 them if not _LIBC. Add __THROW attribute.
46843 (struct md5_ctx): Align buffer if using GCC.
46844 * lib/sha1.h (struct sha1_ctx): Likewise.
46845 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
46846 The old name was backwards.
46847 (NOTSWAP): Remove; not used.
46848 (rol): New macro, moved here from md5.h.
46849 (sha1_process_block): Remove a FIXME that doesn't make sense.
46851 2005-09-12 Derek Price <derek@ximbiot.com>
46853 Return usable errors from canon-host.
46854 * lib/canon-host.h: New file.
46855 * lib/canon-host.c (canon_host): Wrap...
46856 (canon_host_r): ...this new function, which now relies exclusively on
46858 (ch_strerror): New function.
46859 (last_cherror): New global.
46860 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
46862 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
46864 (freeaddrinfo): Free ai->ai_canonname when set.
46866 2005-09-12 Derek Price <derek@ximbiot.com>
46868 Make canon-host require getaddrinfo.
46869 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
46870 AC_LIBSOURCE canon-host.h. Call...
46871 (gl_PREREQ_CANON_HOST): ...this new function, which requires
46873 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
46875 2005-09-12 Derek Price <derek@ximbiot.com>
46877 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
46879 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
46881 2005-09-12 Derek Price <derek@ximbiot.com>
46883 * lib/gai_strerror.c: Include config.h when available. Include
46884 getaddrinfo.h before other headers to test interface.
46885 Reported by Larry Jones <lawrence.jones@ugs.com>.
46887 2005-09-12 Derek Price <derek@ximbiot.com>
46888 Paul Eggert <eggert@cs.ucla.edu>
46890 * modules/glob (Files): Add glob-libc.h.
46892 2005-09-12 Derek Price <derek@ximbiot.com>
46893 Paul Eggert <eggert@cs.ucla.edu>
46895 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
46896 glob_.h, glob-libc.h.
46897 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
46899 2005-09-12 Derek Price <derek@ximbiot.com>
46900 Paul Eggert <eggert@cs.ucla.edu>
46902 * lib/glob-libc.h: Renamed from glob_.h. The new version is
46903 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
46904 protecting things that should be done only in gnulib contexts.
46905 * lib/glob_.h: New file, containing only the glob things needed for
46907 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
46908 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
46909 (glob, globfree, glob_pattern_p): Now defined simply in terms of
46910 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
46911 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
46912 and to respect the namespace rules better.
46914 2005-09-08 Simon Josefsson <jas@extundo.com>
46916 * modules/socklen: New file.
46918 2005-09-08 Simon Josefsson <jas@extundo.com>
46920 * m4/socklen.m4: New file.
46922 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
46924 * modules/utimens (Files): Add m4/utimbuf.m4, since
46925 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
46926 Reported by Sergey Poznyakoff.
46928 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
46930 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
46931 definitions, since that's the preferred style in glibc.
46932 Fix a minor spacing issue, and update copyright notice to match
46935 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
46937 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
46939 2005-09-06 Simon Josefsson <jas@extundo.com>
46941 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
46942 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
46944 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
46946 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
46949 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
46951 * config/srclist.txt: Add glibc bug 1302.
46953 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
46955 Change bitset word type from unsigned int to unsigned long int,
46956 as this has better performance on typical 64-bit hosts.
46957 Port bitset code to hosts with unusual word sizes.
46958 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
46959 (build_collating_symbol):
46960 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
46961 argument is a bitset. This is merely a style issue, but it makes
46962 it clearer that an entire array is expected.
46963 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
46964 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
46965 Port to the case where bitset_word is not the same as unsigned int.
46966 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
46967 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
46969 * lib/regexec.c (check_dst_limits_calc_pos_1,
46970 check_subexp_matching_top):
46971 (build_trtable, group_nodes_into_DFAstates):
46973 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
46974 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
46975 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
46976 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
46977 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
46978 * lib/regcomp.c (optimize_subexps, lower_subexp):
46979 Work even if bitset_word has holes in its bitwise representation.
46980 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
46981 * lib/regexec.c (check_dst_limits_calc_pos_1,
46982 check_subexp_matching_top):
46984 * lib/regex_internal.c (re_string_reconstruct):
46985 Don't assume UCHAR_MAX == 255.
46986 * lib/regex_internal.h (bitset_set_all): Likewise.
46987 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
46989 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
46990 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
46992 (BITSET_WORD_MAX): New macro.
46993 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
46994 (bitset_set_all, bitset_copy): Now inline functions, not macros.
46995 (bitset_empty, bitset_copy):
46996 Prefer sizeof (bitset) to multiplying it out ourselves.
46997 (bitset_not_merge): Remove; unused.
46998 (bitset_contain): Return bool, not unsigned int with one bit on.
46999 All callers changed.
47000 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
47001 alignment than re_node_set; do this by defining a new internal
47002 type struct dests_alloc and using it to allocate memory.
47004 2005-09-05 Bruno Haible <bruno@clisp.org>
47006 * gnulib-tool (func_import): Fix comparison in handling of symbolic
47009 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
47011 * modules/size_max (Makefile.am): Add size_max.h
47013 2005-09-04 Derek Price <derek@ximbiot.com>
47015 * gnulib-tool (func_import): Fix reversed $symbolic logic.
47017 2005-09-03 Simon Josefsson <jas@extundo.com>
47019 * gnulib-tool: Fix typo.
47021 2005-09-03 Simon Josefsson <jas@extundo.com>
47023 * config/srclist.txt: Add glibc bug 1293.
47025 2005-09-03 Derek Price <derek@ximbiot.com>
47027 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
47028 From Larry Jones <lawrence.jones@ugs.com>.
47030 2005-09-02 Simon Josefsson <jas@extundo.com>
47032 * modules/socklen: New file.
47034 2005-09-02 Simon Josefsson <jas@extundo.com>
47036 * modules/havelib: New module.
47038 * modules/gettext, modules/iconv, modules/lock, modules/readline:
47041 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
47043 Check for arithmetic overflow when calculating sizes, to prevent
47044 some buffer-overflow issues. These patches are conservative, in the
47045 sense that when I couldn't determine whether an overflow was possible,
47046 I inserted a run-time check.
47047 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
47049 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
47050 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
47051 (re_xnrealloc, re_x2nrealloc): New inline functions.
47052 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
47053 parse_bracket_exp):
47054 (build_equiv_class, build_charclass): Check for arithmetic overflow
47055 in size expression calculations.
47056 * lib/regex_internal.c (re_string_realloc_buffers):
47057 (build_wcs_upper_buffer, re_node_set_add_intersect):
47058 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
47059 (re_dfa_add_node, register_state): Likewise.
47060 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
47061 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
47062 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
47063 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
47065 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
47067 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
47068 m4/ulonglong.m4. Problem reported by Martin Lambers.
47070 2005-09-02 Bruno Haible <bruno@clisp.org>
47072 Support for lib vs. lib64 distinction on biarch platforms.
47073 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
47074 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
47075 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
47077 2005-09-02 Bruno Haible <bruno@clisp.org>
47079 * gnulib-tool (import): In the other first-use case, provide defaults
47082 2005-09-02 Bruno Haible <bruno@clisp.org>
47084 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
47085 patches not yet found in the latest gettext release.
47087 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
47089 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
47090 to avoid a collision with bits/local_lim.h in glibc.
47091 All uses changed. Problem reported by Dmitry V. Levin in
47092 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
47094 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
47095 bugs in int versus size_t comparisons.
47096 (re_string_context_at): Fix bug where the code assumed that
47099 Use bool where appropriate.
47100 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
47101 All callers changed.
47102 (calc_eclosure_iter): Likewise, for ROOT arg.
47103 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
47104 (build_charclass_op): Likewise, for NON_MATCH arg.
47105 * lib/regex_internal.c (re_string_allocate, re_string_construct):
47106 (re_string_construct_common): Likewise, for ICASE arg.
47107 * lib/regexec.c (re_search_2_stub, re_search_stub):
47108 Likewise, for RET_LEN arg.
47109 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
47110 (set_regs): Likewise, for FL_BACKTRACK arg.
47111 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
47112 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
47113 (calc_eclosure_iter, parse_bracket_exp):
47114 Use bool for internal variables that are booleans.
47115 * lib/regexec.c (re_search_internal, check_matching,
47116 proceed_next_node):
47117 (set_regs, build_sifted_states, sift_states_bkref):
47118 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
47119 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
47120 (find_collation_sequence_value):
47122 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
47123 (re_node_set_compare):
47124 Return bool, not int. All callers changed.
47125 * lib/regexec.c (check_halt_node_context, check_dst_limits):
47126 (build_trtable, check_node_accept): Likewise.
47127 * lib/regex_internal.h: Include stdbool.h.
47129 Fix bugs uncovered when converting to bool.
47130 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
47131 failure instead of charging ahead blindly.
47132 * lib/regex_internal.c (register_state): Likewise.
47133 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
47134 for freeing internal storage.
47135 (group_nodes_into_DFA_states): Use unsigned int, not int, for
47136 bitset pieces used as boolean, to avoid undefined behavior
47137 on hosts that do int overflow checking.
47139 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
47141 * config/srclist.txt: Add glibc bugs 1285-1287.
47143 2005-09-01 Jim Meyering <jim@meyering.net>
47145 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
47146 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
47147 Require gl_STAT_MACROS, too.
47149 2005-09-01 Bruno Haible <bruno@clisp.org>
47151 * gnulib-tool (import): In the first-use case, provide defaults.
47153 2005-09-01 Bruno Haible <bruno@clisp.org>
47155 * gnulib-tool (func_import): Remove the .tmp files.
47157 2005-09-01 Bruno Haible <bruno@clisp.org>
47159 * gnulib-tool (func_import): Fix handling of symbolic links.
47161 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
47163 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
47164 old glibc regex code mishandles strings longer than 2**31 bytes.
47165 This patch fixes this when the regex code is used in gnulib
47166 (i.e., outside glibc).
47168 This patch should not affect the use of the regex code inside
47169 glibc. No doubt this problem also needs to be handled for glibc
47170 as well, but the result will be an incompatible change to the
47171 glibc ABI, and the old ABI will have to be supported too. That
47172 can be the the subject for another patch.
47174 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
47175 governing whether the rest of this patch is active. By default,
47176 the macro is disabled and the patch has no effect.
47177 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
47178 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
47179 (struct re_pattern_buffer, re_search, re_search_2, re_match):
47180 (re_match_2, re_set_registers): Use the new types.
47181 * lib/regex_internal.h (Idx, re_hashval_t): New types.
47182 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
47184 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
47185 (re_string_context_at, bin_tree_t, re_dfastate_t):
47186 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
47187 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
47188 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
47189 (re_string_char_size_at, re_string_wchar_at):
47190 (re_string_elem_size_at):
47191 Use the new types and macros to port to 64-bit hosts.
47192 Use unsigned types for internal values, so that the code
47193 mostly works even for arrays larger than SSIZE_MAX.
47194 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
47195 (search_duplicated_node, calc_eclosure_iter, fetch_number):
47196 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
47197 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
47198 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
47199 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
47200 (calc_inveclosure, parse_dup_op, build_range_exp):
47201 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
47202 (fetch_number, create_token_tree, mark_opt_subexp):
47204 * lib/regex_internal.c (re_string_construct_common,
47205 create_ci_newstate):
47206 (create_cd_newstate, re_string_allocate, re_string_construct):
47207 (re_string_realloc_buffers, build_wcs_upper_buffer):
47208 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
47209 (re_string_reconstruct, re_string_peek_byte_case):
47210 (re_string_fetch_byte_case, re_string_context_at):
47211 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
47212 (re_node_set_init_copy, re_node_set_add_intersect):
47213 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
47214 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
47215 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
47216 (re_acquire_state, re_acquire_state_context, register_state):
47218 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
47219 search_cur_bkref_entry):
47220 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
47221 (re_search_internal, re_search_2_stub, re_search_stub)
47222 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
47223 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
47224 (update_cur_sifted_state, check_dst_limits):
47225 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
47226 (check_subexp_limits, sift_states_bkref, merge_state_array):
47227 (check_subexp_matching_top, get_subexp, get_subexp_sub):
47228 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
47229 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
47230 (expand_bkref_cache, check_node_accept_bytes):
47231 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
47232 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
47233 (acquire_init_state_context, check_halt_node_context):
47234 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
47235 (sift_states_backward, clean_state_log_if_needed):
47236 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
47237 (find_recover_state, transit_state_sb, transit_state_mb):
47238 (transit_state_bkref, build_trtable, match_ctx_clean):
47240 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
47241 to work around an assumption that REG_MISSING is negative.
47243 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
47244 (seek_collating_symbol_entry) [defined _LIBC]:
47245 (lookup_collation_sequence_value) [defined _LIBC]:
47246 (build_range_exp, build_collating_symbol) [defined _LIBC]:
47247 Use prototypes rather than old-style function definitions.
47248 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
47249 (transit_state_sb) [0]:
47250 (find_collation_sequence_value) [defined _LIBC]: Likewise.
47252 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
47255 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
47256 (optimize_subexps, lower_subexp):
47257 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
47258 since the signed shift might overflow. Use 1u<<31 instead.
47259 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
47261 * lib/regexec.c (check_dst_limits_calc_pos_1,
47262 check_subexp_matching_top): Likewise.
47264 * lib/regcomp.c (optimize_subexps, lower_subexp):
47265 Use CHAR_BIT rather than 8, for clarity.
47266 * lib/regexec.c (check_dst_limits_calc_pos_1):
47267 (check_subexp_matching_top): Likewise.
47268 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
47269 have to worry about portability issues when shifting it left.
47270 Remove no-longer-needed test for table_size > 0.
47271 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
47272 in a word, as the resulting behavior is undefined.
47273 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
47274 in one case, a <= should have been an <, and in another case the
47275 whole test was missing.
47276 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
47277 the standard name CHAR_BIT.
47278 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
47279 this is not true on one's complement and signed-magnitude hosts.
47281 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
47283 (struct re_dfa_t): Remove unused member states_alloc.
47284 * lib/regcomp.c (init_dfa): Don't initialize unused members.
47286 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
47288 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
47289 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
47290 and large-file glibc and in 32-bit large-file Solaris.
47292 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
47294 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
47295 lengths fit in regoff_t; this isn't true if regoff_t is the same
47297 * lib/regex.c (re_search_internal): 5th arg is LAST_START
47298 (= START + RANGE) instead of RANGE. This avoids overflow
47299 problems when regoff_t is the same width as size_t.
47300 All callers changed.
47301 (re_search_2_stub): Check for overflow when adding the
47302 sizes of the two strings.
47303 (re_search_stub): Check for overflow when adding START
47304 to RANGE; if it occurs, substitute the extreme value.
47306 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
47308 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
47310 2005-08-31 Jim Meyering <jim@meyering.net>
47312 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
47313 a pointer-to-const.
47314 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
47315 (register_state): Likewise.
47316 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
47317 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
47318 (group_nodes_into_DFAstates): Likewise.
47320 2005-08-31 Jim Meyering <jim@meyering.net>
47322 * check-module: Add a FIXME comment.
47324 2005-08-31 Eric Blake <ebb9@byu.net>
47326 * modules/unistd-safer (Files): Add unistd--.h.
47327 * modules/stdio-safer (Files): Add stdio--.h.
47329 2005-08-31 Derek Price <derek@ximbiot.com>
47331 * lib/getdelim.c (getdelim): Return EOF on EOF.
47332 Reported by Larry Jones <lawrence.jones@ugs.com>.
47334 2005-08-31 Bruno Haible <bruno@clisp.org>
47336 Avoid unnecessary diffs in the generated lib/Makefile.am.
47337 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
47338 the generated files.
47339 (func_import): Don't set cmd.
47341 2005-08-31 Bruno Haible <bruno@clisp.org>
47343 * lib/strstr.c: Include <stddef.h>, for NULL.
47344 * lib/strcasestr.c: Likewise.
47345 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47347 2005-08-31 Bruno Haible <bruno@clisp.org>
47349 * gnulib-tool: New option --macro-prefix.
47350 (func_import): Use macro_prefix.
47351 (import): Handle option --macro-prefix.
47353 2005-08-31 Bruno Haible <bruno@clisp.org>
47355 * gnulib-tool (import): Rename most ac_* variables to cached_*.
47356 Also use new variables cached_lgpl, cached_libtool.
47358 2005-08-31 Bruno Haible <bruno@clisp.org>
47360 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
47361 always instantiating them.
47363 2005-08-31 Bruno Haible <bruno@clisp.org>
47365 * gnulib-tool (func_import): Read the previous cached settings
47366 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
47367 earlier added by gnulib but are now dropped. Warn when a gnulib file
47368 overwrites a non-gnulib file.
47370 2005-08-31 Bruno Haible <bruno@clisp.org>
47372 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
47373 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
47374 projects that don't keep autogenerated files in CVS. Put into
47375 actioncmd only the specified modules, not the transitive closure.
47377 2005-08-31 Bruno Haible <bruno@clisp.org>
47379 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
47380 Create directories that shall be filled.
47381 (import): Don't look for gl_* macros in configure.ac. Recurse across
47382 all directories containing a gnulib-cache.m4 files, if meaningful.
47384 2005-08-31 Bruno Haible <bruno@clisp.org>
47386 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
47387 (import): Set seen_libtool when we see gl_LIBTOOL.
47389 2005-08-31 Bruno Haible <bruno@clisp.org>
47391 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
47392 declaration macro definitions from generated gnulib.m4.
47394 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
47396 * lib/iconvme.h: Add prototype for iconv_alloc.
47398 2005-08-29 Simon Josefsson <jas@extundo.com>
47400 * lib/iconvme.c: Fix errno.
47402 2005-08-29 Bruno Haible <bruno@clisp.org>
47404 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
47405 that it works when the directory contains spaces.
47407 2005-08-29 Bruno Haible <bruno@clisp.org>
47409 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
47411 2005-08-29 Bruno Haible <bruno@clisp.org>
47413 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
47416 2005-08-29 Bruno Haible <bruno@clisp.org>
47417 and Stepan Kasal <kasal@ucw.cz>
47419 * check-module: If more parameters are given, check each of them
47420 separately; add more exceptions, as noted by Jim Meyering.
47421 (check_module): New procedure.
47422 (%exempt_header): Now contains all exceptions.
47424 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
47426 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
47428 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
47430 * lib/iconvme.c: Split iconv_string into iconv_alloc.
47432 2005-08-28 Bruno Haible <bruno@clisp.org>
47434 * m4/gnulib-tool.m4: New file.
47436 2005-08-27 Jim Meyering <jim@meyering.net>
47438 * modules/unistd-safer (Files): Add pipe-safer.c.
47439 * modules/fcntl-safer (Files): Add creat-safer.c.
47441 2005-08-27 Jim Meyering <jim@meyering.net>
47443 * m4/stdlib-safer.m4: New file. From coreutils.
47444 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
47445 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
47446 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
47447 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
47448 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
47450 2005-08-27 Jim Meyering <jim@meyering.net>
47452 * lib/fopen-safer.c: Merge minor changes from coreutils.
47453 * lib/dup-safer.c: Likewise.
47454 * lib/fd-safer.c: Likewise.
47456 Merge from coreutils.
47457 * lib/stdio--.h: New file.
47458 * lib/stdlib--.h: New file.
47459 * lib/mkstemp-safer.c: New file.
47461 GNU tar needs these.
47462 * lib/pipe-safer.c: New file.
47463 * lib/creat-safer.c: New file.
47464 * lib/fcntl--.h (creat): Define to creat_safer.
47465 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
47466 * lib/unistd--.h (pipe): Define to pipe_safer.
47467 * lib/unistd-safer.h: Declare pipe_safer.
47469 2005-08-26 Simon Josefsson <jas@extundo.com>
47471 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
47472 Haible <bruno@clisp.org>.
47474 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
47476 * lib/regex_internal.h: Remove all references to
47477 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
47479 (bitset_not, bitset_merge, bitset_not_merge):
47480 (bitset_mask, re_string_allocate, re_string_construct):
47481 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
47482 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
47483 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
47484 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
47485 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
47486 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
47487 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
47488 (re_acquire_state_context):
47489 Remove unnecessary forward decls.
47490 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
47491 Put __attribute at function definition,
47492 now that the function decl has been removed.
47493 * lib/regex_internal.c (re_string_peek_byte_case):
47494 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
47497 2005-08-25 Stepan Kasal <kasal@ucw.cz>
47499 * m4/regex.m4: Add AC_PREREQ(2.50).
47500 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
47502 2005-08-25 Simon Josefsson <jas@extundo.com>
47504 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
47507 2005-08-25 Simon Josefsson <jas@extundo.com>
47509 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
47510 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
47511 GLIBC specific code.
47513 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
47515 Make regex safe for g++. This fixes one real bug (an "err"
47516 that should have been "*err"). g++ problem reported by
47518 * lib/regex_internal.h (re_calloc): New macro, consistent with
47519 re_malloc etc. All callers of calloc changed to use re_calloc.
47520 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
47521 not int. All callers changed.
47522 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
47523 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
47524 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
47525 (find_recover_state): Change "err" to "*err"; this fixes what
47526 appears to be a real bug.
47527 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
47530 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
47532 * modules/regex (Depends-on): Add malloc, since the code
47533 assumes that !malloc(0) means failure.
47535 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
47537 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
47539 alloca modernization/simplification for regex.
47540 * lib/regex.c: Remove portability cruft for alloca. This no longer
47541 needs to be at the start of the file, and can be moved into
47542 regex_internal.h and simplified.
47543 * lib/regex_internal.h: Include <alloca.h>.
47544 (__libc_use_alloca) [!defined _LIBC]: New macro.
47545 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
47546 now works outside glibc.
47548 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
47550 * config/srclist.txt: Add glibc bugs 1241, 1245.
47552 2005-08-25 Jim Meyering <jim@meyering.net>
47554 * lib/open-safer.c: Include <config.h>.
47555 Otherwise, we'd lose LARGEFILE support in any file using
47558 2005-08-25 Bruno Haible <bruno@clisp.org>
47560 * m4/minmax.m4: Require autoconf 2.52.
47561 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
47562 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
47563 alternatives of translit over the alphabet.
47564 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
47566 2005-08-24 Simon Josefsson <jas@extundo.com>
47568 * tests/test-getpass.c: New file.
47570 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
47572 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
47573 for GNU regex features.
47575 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
47577 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
47578 * lib/regex.h (regerror): Likewise.
47580 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
47581 requires this. (The code never needed it.)
47583 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
47584 All uses of recently-renamed identifiers changed to use the new,
47585 POSIX-compliant names. The code will build and run just fine
47586 without these changes, but it's better to eat our own dog food
47587 and use the standard-conforming names.
47589 * lib/regex.h: Fix a multitude of POSIX name space violations.
47590 These changes have an effect only for programs that define
47591 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
47592 do not change anything for programs compiled in the normal way.
47593 Also, there is no effect on the ABI.
47595 (_REGEX_SOURCE): New macro.
47596 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
47597 defined and _GNU_SOURCE is not; this fixes a name space violation.
47599 Rename the following macros to obey POSIX requirements.
47600 The old names are still visible as macros if _REGEX_SOURCE is defined.
47601 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
47602 RE_BACKSLASH_ESCAPE_IN_LISTS.
47603 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
47604 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
47605 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
47606 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
47607 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
47608 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
47609 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
47610 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
47611 (REG_INTERVALS): renamed from RE_INTERVALS.
47612 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
47613 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
47614 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
47615 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
47616 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
47617 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
47618 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
47619 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
47620 RE_UNMATCHED_RIGHT_PAREN_ORD.
47621 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
47622 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
47623 (REG_DEBUG): renamed from RE_DEBUG.
47624 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
47625 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
47626 unusual, since we can't clash with the POSIX REG_ICASE.
47627 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
47628 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
47629 (REG_NO_SUB): renamed from RE_NO_SUB.
47630 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
47631 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
47632 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
47633 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
47634 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
47635 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
47636 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
47637 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
47638 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
47639 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
47640 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
47641 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
47642 RE_SYNTAX_POSIX_MINIMAL_BASIC.
47643 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
47644 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
47645 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
47646 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
47647 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
47648 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
47649 (REG_FIXED): Renamed from REGS_FIXED.
47650 (REG_NREGS): Renamed from RE_NREGS.
47652 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
47653 of other REG_* macros, since POSIX says the user is allowed to
47654 #undef these macros selectively.
47656 (reg_errcode_t): Update comment stating what other tables need
47659 Rename the following enum values to obey POSIX requirements.
47660 The old names are still visible as macros.
47661 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
47662 is not defined, since GNU is supposed to be a superset of POSIX as
47663 much as possible, and since we want reg_errcode_t to be a signed
47664 type for implementation consistency.
47665 (_REG_NOERROR): Renamed from REG_NOERROR.
47666 (_REG_NOMATCH): Renamed from REG_NOMATCH.
47667 (_REG_BADPAT): Renamed from REG_BADPAT.
47668 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
47669 (_REG_ECTYPE): Renamed from REG_ECTYPE.
47670 (_REG_EESCAPE): Renamed from REG_EESCAPE.
47671 (_REG_ESUBREG): Renamed from REG_ESUBREG.
47672 (_REG_EBRACK): Renamed from REG_EBRACK.
47673 (_REG_EPAREN): Renamed from REG_EPAREN.
47674 (_REG_EBRACE): Renamed from REG_EBRACE.
47675 (_REG_BADBR): Renamed from REG_BADBR.
47676 (_REG_ERANGE): Renamed from REG_ERANGE.
47677 (_REG_ESPACE): Renamed from REG_ESPACE.
47678 (_REG_BADRPT): Renamed from REG_BADRPT.
47679 (_REG_EEND): Renamed from REG_EEND.
47680 (_REG_ESIZE): Renamed from REG_ESIZE.
47681 (_REG_ERPAREN): Renamed from REG_ERPAREN.
47682 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
47683 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
47684 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
47685 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
47687 (_REG_RE_NAME, _REG_RM_NAME): New macros.
47688 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
47689 changed. But support the old name if the new one is not defined
47690 and if _REGEX_SOURCE.
47692 Change the following member names in struct re_pattern_buffer.
47693 The old names are still supported if !_REGEX_SOURCE.
47694 The new names are always supported, regardless of _REGEX_SOURCE.
47695 (re_buffer): Renamed from buffer.
47696 (re_allocated): Renamed from allocated.
47697 (re_used): Renamed from used.
47698 (re_syntax): Renamed from syntax.
47699 (re_fastmap): Renamed from fastmap.
47700 (re_translate): Renamed from translate.
47701 (re_can_be_null): Renamed from can_be_null.
47702 (re_regs_allocated): Renamed from regs_allocated.
47703 (re_fastmap_accurate): Renamed from fastmap_accurate.
47704 (re_no_sub): Renamed from no_sub.
47705 (re_not_bol): Renamed from not_bol.
47706 (re_not_eol): Renamed from not_eol.
47707 (re_newline_anchor): Renamed from newline_anchor.
47709 Change the following member names in struct re_registers.
47710 The old names are still supported if !_REGEX_SOURCE.
47711 The new names are always supported, regardless of _REGEX_SOURCE.
47712 (rm_num_regs): Renamed from num_regs.
47713 (rm_start): Renamed from start.
47714 (rm_end): Renamed from end.
47716 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
47717 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
47718 Prepend __ to parameter names.
47720 Undo yesterday's changes.
47722 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
47724 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
47725 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
47728 2005-08-24 Jim Meyering <jim@meyering.net>
47730 Sync from coreutils.
47731 * m4/fcntl-safer.m4: New file.
47733 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
47734 and object files for this module.
47736 2005-08-24 Jim Meyering <jim@meyering.net>
47738 Sync from coreutils.
47739 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
47741 2005-08-24 Jim Meyering <jim@meyering.net>
47743 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
47744 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
47746 2005-08-24 Jim Meyering <jim@meyering.net>
47748 * modules/fcntl-safer: New module.
47749 * modules/fts (Depends-on): Add fcntl-safer.
47750 * MODULES.html.sh (File descriptor based Input/Output):
47753 2005-08-24 Bruno Haible <bruno@clisp.org>
47755 Support for unit test modules.
47756 * modules/README: Mention tests modules.
47757 * modules/TEMPLATE-TESTS: New file.
47758 * gnulib-tool: New options --extract-tests-module, --with-tests and
47759 --tests-base (unused for the moment).
47760 (testsbase, inctests): New variables.
47761 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
47762 (func_verify_module): Exclude TEMPLATE-TESTS.
47763 (func_verify_nontests_module, func_verify_tests_module): New functions.
47764 (func_get_dependencies): Add implicit dependency for tests modules.
47765 (func_get_tests_module): New function.
47766 (func_modules_transitive_closure): When --with-tests was specified,
47767 include the unit tests as well, unless explicitly avoided.
47768 (func_emit_lib_Makefile_am): Ignore the tests modules here.
47769 (func_emit_tests_Makefile_am): New function.
47770 (func_create_testdir): When --with-tests was specified, emit a
47772 * MODULES.html.sh (Future developments): Update.
47774 2005-08-24 Bruno Haible <bruno@clisp.org>
47776 * modules/tls-tests: New file.
47777 * tests/test-tls.c: New file, from GNU gettext.
47779 2005-08-24 Bruno Haible <bruno@clisp.org>
47781 * modules/lock-tests: New file.
47782 * tests/test-lock.c: New file, from GNU gettext.
47784 2005-08-24 Bruno Haible <bruno@clisp.org>
47786 * lib/lock.h: Add multiple inclusion guard.
47787 * lib/tls.h: Add multiple inclusion guard.
47789 2005-08-24 Bruno Haible <bruno@clisp.org>
47791 * gnulib-tool: Add support for the --aux-dir option to
47792 --create-testdir, --create-megatestdir, --test, --megatest.
47793 (func_create_testdir, func_create_megatestdir): Optionally emit a
47794 AC_CONFIG_AUX_DIR directive.
47795 (create-testdir, create-megatestdir, test, megatest): Provide a
47796 default value for $auxdir.
47798 2005-08-24 Bruno Haible <bruno@clisp.org>
47800 * gnulib-tool (import): Use compound statement instead of subshell
47803 2005-08-24 Bruno Haible <bruno@clisp.org>
47805 * gnulib-tool (import): Change --aux-dir default to "build-aux".
47807 2005-08-24 Bruno Haible <bruno@clisp.org>
47809 * gnulib-tool (func_version): Update.
47811 2005-08-24 Bruno Haible <bruno@clisp.org>
47813 * gnulib-tool (func_import, func_create_testdir,
47814 func_create_megatestdir): Quote all autoconf macro arguments.
47816 2005-08-24 Bruno Haible <bruno@clisp.org>
47818 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
47819 option --force, because --force causes the aclocal.m4 of each
47820 subdirectory to be newer than the corresponding config.h.in.
47822 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
47824 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
47825 All contents moved to gl_REGEX.
47826 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
47827 assume that it does.
47829 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
47831 * lib/regex.h (REG_NOSYS)
47832 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
47833 Define, since POSIX requires it as of 2001.
47835 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
47836 New private symbol, used to keep the enum signed in all cases.
47837 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
47839 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
47841 * lib/regex_internal.c (re_string_skip_chars, register_state):
47843 Remove forward decls; no longer needed now that we use prototypes.
47844 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
47845 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
47846 (clean_state_log_if_needed): Likewise.
47848 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
47850 * config/srclist.txt: Add glibc bugs 1231-1233.
47852 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
47854 Fix problems reported by Sam Steingold in
47855 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
47856 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
47857 assumed that reg_errcode_t is a signed type, which is not
47858 necessarily true if _XOPEN_SOURCE is not defined.
47859 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
47860 since some compilers warn about it otherwise.
47862 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
47864 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
47865 (init_word_char, create_initial_state, duplicate_node_closure):
47866 (fetch_token, peek_token_bracket, build_range_exp):
47867 (build_collating_symbol): Remove forward decls; no longer needed
47868 now that we use prototypes.
47871 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
47872 (re_compile_fastmap_iter, regcomp, regerror, regfree):
47873 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
47874 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
47875 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
47876 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
47877 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
47878 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
47879 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
47880 (build_range_exp, build_collating_symbol, parse_bracket_exp):
47881 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
47882 (build_charclass, build_charclass_op, fetch_number, create_tree):
47883 (create_token_tree, mark_opt_subexp, duplicate_tree):
47884 Use prototypes rather than old-style definitions.
47886 * lib/regex_internal.c:
47887 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
47888 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
47889 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
47890 (re_string_reconstruct, re_string_peek_byte_case):
47891 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
47892 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
47893 (re_node_set_init_copy, re_node_set_add_intersect):
47894 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
47895 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
47896 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
47897 (re_acquire_state, re_acquire_state_context, register_state):
47898 (create_ci_newstate, create_cd_newstate, free_state):
47900 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
47902 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
47903 (re_search_internal, prune_impossible_nodes):
47904 (acquire_init_state_context, check_matching, static):
47905 (check_halt_node_context, check_halt_state_context, proceed_next_node):
47906 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
47907 (update_regs, sift_states_backward, build_sifted_states):
47908 (clean_state_log_if_needed, merge_state_array):
47909 (update_cur_sifted_state, add_epsilon_src_nodes):
47910 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
47911 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
47912 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
47913 (find_recover_state, check_subexp_matching_top, transit_state_mb):
47914 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
47915 (check_arrival, check_arrival_add_next_nodes):
47916 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
47917 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
47918 (check_node_accept_bytes, check_node_accept, extend_buffers):
47919 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
47920 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
47924 * lib/regex_internal.h:
47925 (re_string_allocate, re_string_construct, re_string_reconstruct):
47926 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
47927 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
47928 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
47929 (re_string_context_at, re_string_peek_byte_case):
47930 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
47931 is defined, since we now use prototypes always.
47933 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
47934 C89 or better. All uses removed.
47936 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
47938 * config/srclist.txt: Add glibc bugs 1220-1227.
47940 2005-08-20 Jim Meyering <jim@meyering.net>
47942 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
47943 of unused local, dfa.
47945 2005-08-20 Bruno Haible <bruno@clisp.org>
47947 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
47949 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
47951 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
47952 (re_node_set_insert_last, re_dfa_add_node):
47953 Rename local variables to avoid GCC shadowing warnings.
47955 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
47957 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
47958 [defined lint]: Suppress bogus uninitialized-variable warnings.
47960 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
47961 and let the caller return REG_ESPACE if out of space. This
47962 removes an uninitialied-variable warning with GCC 4.0.1, and also
47963 avoids taking the address of a local variable. All callers
47966 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
47968 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
47969 $LIBCSRC/posix/regexec.c.
47970 Add glibc bug 1217 for regcomp.c.
47972 2005-08-19 Jim Meyering <jim@meyering.net>
47974 * lib/regexec.c (proceed_next_node): Redo local variables to
47975 avoid GCC shadowing warnings.
47977 2005-08-18 Bruno Haible <bruno@clisp.org>
47979 * lib/strstr.c (strstr): Fix return value in multibyte case.
47980 * lib/strcasestr.c (strcasestr): Likewise.
47982 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
47984 * lib/regex.h: Remove useless space-before-tab. From coreutils.
47986 2005-08-17 Jim Meyering <jim@meyering.net>
47988 Make the %s format (seconds since the epoch) work for a negative
47989 number and when used with a zero-padded field width, e.g. %015s.
47991 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
47992 label so that it precedes the code to set `digits'. Otherwise,
47993 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
47994 print `00-22'. Now, it prints `-0022', as it should.
47996 2005-08-17 Bruno Haible <bruno@clisp.org>
47998 * modules/strstr (Files): Add m4/mbrtowc.m4.
47999 (Depends-on): Add mbuiter.
48001 2005-08-17 Bruno Haible <bruno@clisp.org>
48003 * modules/strcasestr: New file.
48004 * MODULES.html.sh (String handling, based on ANSI C 89): Add
48007 2005-08-17 Bruno Haible <bruno@clisp.org>
48009 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
48011 2005-08-17 Bruno Haible <bruno@clisp.org>
48013 * modules/mbuiter: New file.
48014 * MODULES.html.sh (Extended multibyte and wide character utilities):
48017 2005-08-17 Bruno Haible <bruno@clisp.org>
48019 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
48020 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
48022 2005-08-17 Bruno Haible <bruno@clisp.org>
48024 * m4/strcasestr.m4: New file.
48026 2005-08-17 Bruno Haible <bruno@clisp.org>
48028 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
48029 * lib/strstr.c: Completely rewritten, with multibyte locale support.
48031 2005-08-17 Bruno Haible <bruno@clisp.org>
48033 * lib/strcasestr.h: New file.
48034 * lib/strcasestr.c: New file.
48036 2005-08-17 Bruno Haible <bruno@clisp.org>
48038 * lib/strcasecmp.c: Use mbuiter.h.
48040 2005-08-17 Bruno Haible <bruno@clisp.org>
48042 * lib/mbuiter.h: New file.
48044 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
48046 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
48047 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
48048 and gl_GETOPT are both invoked via different paths (as happens
48049 with GNU tar CVS because it uses both argp and getopt), the former
48052 2005-08-16 Bruno Haible <bruno@clisp.org>
48054 * modules/tls: New file.
48055 * MODULES.html.sh (Multithreading): Add tls.
48057 2005-08-16 Bruno Haible <bruno@clisp.org>
48059 * modules/strnlen1: New file.
48060 * MODULES.html.sh (String handling): Add strnlen1.
48062 2005-08-16 Bruno Haible <bruno@clisp.org>
48064 * modules/strcase (Files): Add m4/mbrtowc.m4.
48065 (Depends-on): Add strnlen1, mbchar.
48067 2005-08-16 Bruno Haible <bruno@clisp.org>
48069 * modules/mbiter: New file.
48070 * MODULES.html.sh (Extended multibyte and wide character utilities):
48073 2005-08-16 Bruno Haible <bruno@clisp.org>
48075 * modules/mbfile: New file.
48076 * MODULES.html.sh (Extended multibyte and wide character utilities):
48079 2005-08-16 Bruno Haible <bruno@clisp.org>
48081 * modules/mbchar: New file.
48082 * MODULES.html.sh (Extended multibyte and wide character utilities):
48085 2005-08-16 Bruno Haible <bruno@clisp.org>
48087 * m4/tls.m4: New file, from GNU gettext.
48089 2005-08-16 Bruno Haible <bruno@clisp.org>
48091 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
48093 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
48095 2005-08-16 Bruno Haible <bruno@clisp.org>
48097 * m4/mbiter.m4: New file.
48099 2005-08-16 Bruno Haible <bruno@clisp.org>
48101 * m4/mbfile.m4: New file.
48103 2005-08-16 Bruno Haible <bruno@clisp.org>
48105 * m4/mbchar.m4: New file.
48107 2005-08-16 Bruno Haible <bruno@clisp.org>
48109 * lib/tls.h: New file, from GNU gettext.
48110 * lib/tls.c: New file, from GNU gettext.
48112 2005-08-16 Bruno Haible <bruno@clisp.org>
48114 * lib/strnlen1.h: New file.
48115 * lib/strnlen1.c: New file.
48117 2005-08-16 Bruno Haible <bruno@clisp.org>
48119 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
48120 (mbi_init): Update.
48121 (mbi_avail, mbi_advance): Let the iteration end before the terminating
48122 NUL byte, not after it.
48124 2005-08-16 Bruno Haible <bruno@clisp.org>
48126 * lib/strcase.h (strcasecmp): Add note in comments.
48127 * lib/strncasecmp.c: Use code from strcasecmp.c.
48128 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
48129 (strcasecmp): Work correctly in multibyte locales.
48131 2005-08-16 Bruno Haible <bruno@clisp.org>
48133 * lib/mbiter.h: New file.
48135 2005-08-16 Bruno Haible <bruno@clisp.org>
48137 * lib/mbfile.h: New file.
48139 2005-08-16 Bruno Haible <bruno@clisp.org>
48141 * lib/mbchar.h: New file.
48142 * lib/mbchar.c: New file.
48144 2005-08-16 Bruno Haible <bruno@clisp.org>
48146 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
48147 the valid ones. Makes the comparison operations transitive:
48148 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
48149 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
48151 2005-08-15 Simon Josefsson <jas@extundo.com>
48153 * modules/ssize_t (License): Change to 'unlimited'.
48155 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
48157 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
48159 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
48160 Add comments for each pending glibc patch.
48162 2005-08-15 Bruno Haible <bruno@clisp.org>
48164 * lib/regex.h (__restrict_arr): Don't define to __restrict if
48165 __cplusplus is defined.
48167 2005-08-14 Jim Meyering <jim@meyering.net>
48169 Sync from coreutils.
48171 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
48172 Use the hash-table-based cycle-detection code not just when
48173 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
48174 Reported by James Youngman in
48175 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
48176 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
48177 FTS_TIGHT_CYCLE_CHECK.
48178 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
48179 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
48181 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
48182 * lib/fts.c (fd_safer): Remove decl.
48183 Include fcntl--.h rather than unistd-safer.h
48184 (fts_safe_changedir): Don't call fd_safer; no longer needed
48185 now that we include fcntl--.h.
48187 2005-08-12 Simon Josefsson <jas@extundo.com>
48189 * modules/getndelim2: Use ssize_t module.
48190 * modules/getnline: Likewise.
48191 * modules/safe-read: Likewise.
48192 * modules/xreadlink: Likewise.
48194 * modules/ssize_t: New file.
48196 2005-08-12 Simon Josefsson <jas@extundo.com>
48198 * m4/readline.m4: Look for termcap, curses or ncurses if required.
48200 2005-08-12 Simon Josefsson <jas@extundo.com>
48202 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48205 2005-08-12 Simon Josefsson <jas@extundo.com>
48207 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
48208 readline, getdelim and check_version.
48209 (Support for systems lacking ISO C 99: Sizes of integer types):
48212 2005-08-12 Bruno Haible <bruno@clisp.org>
48214 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
48216 2005-08-11 Simon Josefsson <jas@extundo.com>
48218 * modules/readline: New file.
48220 * modules/strnlen (Files): Add strnlen.h.
48222 2005-08-11 Simon Josefsson <jas@extundo.com>
48224 * m4/readline.m4: New file.
48226 2005-08-11 Simon Josefsson <jas@extundo.com>
48228 * lib/readline.h, readline.c: New file.
48230 2005-08-11 Simon Josefsson <jas@extundo.com>
48232 * doc/gnulib.texi (Initial import, Finishing touches): Mention
48235 2005-08-11 Bruno Haible <bruno@clisp.org>
48237 * lib/strnlen.h (strnlen): Change parameter name to match comment.
48239 2005-08-10 Stepan Kasal <kasal@ucw.cz>
48241 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
48243 2005-08-10 Simon Josefsson <jas@extundo.com>
48245 * tests/test-iconvme.c: New file.
48247 2005-08-10 Simon Josefsson <jas@extundo.com>
48249 * m4/strnlen.m4: New file.
48251 * m4/strndup.m4: Don't check for strnlen declaration, done in
48254 2005-08-10 Simon Josefsson <jas@extundo.com>
48256 * lib/strndup.c: Use strnlen.h.
48258 * lib/strnlen.h: New file.
48260 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
48264 2005-08-02 Simon Josefsson <jas@extundo.com>
48266 * modules/readline: New file.
48268 2005-08-02 Simon Josefsson <jas@extundo.com>
48270 * modules/getdelim: New file.
48272 * modules/getline: Rewrite, don't use getndelim2.
48274 2005-08-02 Simon Josefsson <jas@extundo.com>
48276 * m4/getline.m4: Separate out getdelim stuff into separate module.
48278 * m4/getdelim.m4: New file.
48280 2005-08-02 Simon Josefsson <jas@extundo.com>
48282 * lib/getline.h, getline.c: Rewrite.
48284 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
48286 2005-07-31 Bruno Haible <bruno@clisp.org>
48288 * lib/lock.h (gl_lock_initializer): New macro.
48289 (gl_lock_define_initialized): Use it.
48290 (gl_rwlock_initializer): New macro.
48291 (gl_rwlock_define_initialized): Use it.
48292 (gl_recursive_lock_initializer): New macro.
48293 (gl_recursive_lock_define_initialized): Use it.
48295 2005-07-30 Karl Berry <karl@gnu.org>
48297 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
48298 Report from Ben Pfaff, regarding getopt.
48300 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
48302 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
48304 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
48305 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
48306 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
48307 (gl_GETOPT): Use the new macros. Most of the implementation
48308 is moved to the new macros. This is for programs like Emacs
48309 that don't want all the functionality of gl_GETOPT.
48311 2005-07-26 Bruno Haible <bruno@clisp.org>
48313 * m4/lock.m4: Update from GNU gettext.
48315 2005-07-26 Bruno Haible <bruno@clisp.org>
48317 * lib/lock.h: Update from GNU gettext.
48318 * lib/lock.c: Update from GNU gettext.
48320 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
48322 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
48323 obsolescent AC_TRY_RUN. Include the default includes files, for
48326 2005-07-24 Bruno Haible <bruno@clisp.org>
48328 * modules/visibility: New file.
48329 * MODULES.html.sh (Misc): Add visibility.
48331 2005-07-24 Bruno Haible <bruno@clisp.org>
48333 * m4/visibility.m4: New file.
48335 2005-07-24 Bruno Haible <bruno@clisp.org>
48337 * doc/visibility.texi: New file.
48339 2005-07-22 Bruno Haible <bruno@clisp.org>
48341 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
48342 $(ALLOCA_H), redundant through BUILT_SOURCES.
48343 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
48344 redundant through BUILT_SOURCES.
48345 * modules/byteswap (Makefile.am): Remove explicit dependency on
48346 $(BYTESWAP_H), redundant through BUILT_SOURCES.
48347 * modules/fnmatch (Makefile.am): Remove explicit dependency on
48348 $(FNMATCH_H), redundant through BUILT_SOURCES.
48349 * modules/getopt (Makefile.am): Remove explicit dependency on
48350 $(GETOPT_H), redundant through BUILT_SOURCES.
48351 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
48352 redundant through BUILT_SOURCES.
48353 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
48354 redundant through BUILT_SOURCES.
48355 * modules/stdbool (Makefile.am): Remove explicit dependency on
48356 $(STDBOOL_H), redundant through BUILT_SOURCES.
48357 * modules/stdint (Makefile.am): Remove explicit dependency on
48358 $(STDINT_H), redundant through BUILT_SOURCES.
48359 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
48360 Remove explicit dependency on $(SYSEXITS_H).
48361 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
48363 2005-07-18 Simon Josefsson <jas@extundo.com>
48365 * lib/check-version.c (check_version): Accept identical versions too.
48367 2005-07-18 Bruno Haible <bruno@clisp.org>
48369 * modules/lock: New file.
48370 * MODULES.html.sh (Multithreading): New section.
48372 2005-07-18 Bruno Haible <bruno@clisp.org>
48374 * m4/lock.m4: New file, from GNU gettext.
48376 2005-07-18 Bruno Haible <bruno@clisp.org>
48378 * lib/lock.h: New file, from GNU gettext.
48379 * lib/lock.c: New file, from GNU gettext.
48381 2005-07-18 Bruno Haible <bruno@clisp.org>
48383 * lib/lock.h (gl_once_t): New type.
48384 (gl_once_define, gl_once): New macros.
48385 * lib/lock.c (fresh_once): New variable.
48386 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
48389 2005-07-16 Simon Josefsson <jas@extundo.com>
48391 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
48392 workaround, suggested by Bruno.
48394 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
48396 * modules/xalloc (Depends-on): Add xalloc-die.
48397 * modules/xvasprintf (Depends-on): Add xalloc-die.
48399 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
48401 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
48402 with a minor change.
48404 2005-07-15 Bruno Haible <bruno@clisp.org>
48406 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
48407 When using lib/poll.c, define poll as rpl_poll.
48409 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
48411 * modules/argp (Depends-on): Remove unlocked-io.
48413 2005-07-14 Derek Price <derek@ximbiot.com>
48415 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
48416 for glob symlink bug.
48418 2005-07-14 Bruno Haible <bruno@clisp.org>
48420 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
48421 Instead, test for *_unlocked function declarations directly.
48423 2005-07-11 Simon Josefsson <jas@extundo.com>
48425 * modules/size_max: New file.
48427 * modules/xsize: Depend on size_max module for size_max.m4.
48429 2005-07-11 Simon Josefsson <jas@extundo.com>
48431 * lib/size_max.h: New file.
48433 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
48435 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
48436 copyright symbol and the year.
48437 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
48438 (version_etc_va): Use parameterized copyright notice.
48439 Reword to conform to the current GNU coding standards.
48441 2005-07-11 Karl Berry <karl@gnu.org>
48443 * doc/gnulib.texi (Quoting): new node.
48444 (Initial import): more info, from Patrice.
48446 2005-07-11 Bruno Haible <bruno@clisp.org>
48448 * gnulib-tool (func_usage): Document option --avoid.
48449 (Command line options): Handle --avoid.
48450 (func_acceptable): New function.
48451 (func_modules_transitive_closure): Use it.
48453 2005-07-11 Bruno Haible <bruno@clisp.org>
48455 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
48456 Reported by Jim Meyering.
48458 2005-07-10 Bruno Haible <bruno@clisp.org>
48460 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
48461 Needed when size_t is smaller than 'unsigned int'.
48462 Reported by Paul Eggert.
48464 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
48466 * modules/argp (Depends-on): Add unlocked-io
48468 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
48470 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
48473 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
48475 * config/srclist.txt: Comment out regcomp.c, since we have a porting
48478 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
48479 and Paul Eggert <eggert@cs.ucla.edu>
48481 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
48482 in wint_t, not wchar_t. Remove now-unnecessary cast.
48484 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
48486 * modules/regex (Files): Add lib/regex_internal.c,
48487 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
48488 (Depends-on): Add extensions.
48489 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
48491 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
48493 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
48495 * m4/same.m4 (gl_SAME): Likewise.
48496 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
48498 * m4/regex.m4: Adjust to new libc regex implementation.
48499 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
48500 all the .c and .h parts of (the new) regex.
48501 Quote the m4 stuff better.
48502 Check for RE_ICASE bug of old gnulib.
48503 Check for REG_STARTEND of recent libc.
48504 Rename local variables from jm_* to gl_*.
48505 Quote operand of "test -f".
48506 Say "recent enough" version of libc, not "version 2".
48507 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
48508 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
48509 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
48510 Remove check for btowc, isascii.
48511 Require AM_LANGINFO_CODESET.
48513 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
48515 * lib/regex.c, regex.h: Sync from libc.
48516 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
48518 New files, synced from libc, except that regex_internal.h
48519 currently has a small porting fix.
48521 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
48523 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
48524 regex_internal.c, regexec.c.
48525 Add regex_internal.h too, but as a comment, since the libc version
48526 is currently broken in gnulib mode.
48528 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
48530 Support programs like Emacs that use gnulib but not gettext.
48531 * MODULES.html.sh (Internationalization functions): Add gettext-h.
48532 * modules/gettext-h: New file.
48533 * modules/gettext (Files): Remove lib/gettext.h.
48534 (Depends-on): Add gettext-h.
48535 (Makefile.am): Remove lib_SOURCES.
48536 * modules/argmatch, modules/c-stack, modules/closeout:
48537 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
48538 * modules/execute, modules/file-type, modules/getaddrinfo:
48539 * modules/getopt, modules/human, modules/javacomp:
48540 * modules/javaexec, modules/mkdir-p, modules/obstack:
48541 * modules/openat, modules/pagealign_alloc, modules/pipe:
48542 * modules/quotearg, modules/regex, modules/rpmatch:
48543 * modules/unicodeio, modules/userspec, modules/version-etc:
48544 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
48546 Depend on gettext-h, not gettext.
48548 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
48550 * gnulib-tool (func_import): Add support for 'public domain' license.
48551 * modules/alloca, modules/atexit, modules/memmove:
48552 Now public domain, not GPL.
48553 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
48554 * modules/realloc, modules/strerror, modules/strtod:
48557 2005-07-05 Bruno Haible <bruno@clisp.org>
48559 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
48560 autoconf CVS. Needed for mingw.
48562 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
48564 Remove the dependency of the strftime module on the tzset module.
48565 * modules/strftime (Depends-on): Remove dependency on tzset.
48567 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
48569 Remove the dependency of the strftime module on the tzset module.
48570 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
48571 gl_FUNC_TZSET_CLOBBER.
48573 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
48575 Remove the dependency of the strftime module on the tzset module.
48576 * lib/strftime.c (my_strftime)
48577 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
48578 Copy the input structure, to work around some of the bug with
48579 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
48580 Solaris releases, you should also use the tzset module, but we won't
48581 require it as a dependency any more since we don't want LGPLed code
48582 to depend on GPLed code.
48584 2005-07-02 Jim Meyering <jim@meyering.net>
48586 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
48587 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
48588 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
48589 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
48591 2005-07-02 Jim Meyering <jim@meyering.net>
48593 * lib/backupfile.c (backup_args): Change a `0' to NULL.
48595 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
48597 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
48598 declares only 'struct timespec;' (!).
48600 2005-07-01 Jim Meyering <jim@meyering.net>
48602 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
48603 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
48604 * lib/save-cwd.c, tempname.c:
48605 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
48606 and don't include <sys/file.h>).
48608 2005-06-29 Jim Meyering <jim@meyering.net>
48610 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
48611 type name. Use the variable name instead.
48612 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
48615 2005-06-28 Simon Josefsson <jas@extundo.com>
48617 * modules/check-version (Files): Add check-version.m4.
48619 2005-06-28 Simon Josefsson <jas@extundo.com>
48621 * m4/check-version.m4: New file, suggested by Jim Meyering
48622 <jim@meyering.net>.
48624 2005-06-28 Simon Josefsson <jas@extundo.com>
48626 * lib/check-version.h, lib/check-version.c: New files.
48628 2005-06-28 Simon Josefsson <jas@extundo.com>
48630 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
48631 collision with global variable. Better indentation. Don't
48632 increment buffer pointer beyond buffer end. Based on comments
48633 from Paul Eggert <eggert@cs.ucla.edu>.
48635 * lib/base64.h: Indent.
48637 2005-06-28 Simon Josefsson <jas@extundo.com>
48639 * doc/gnulib.texi (Library version handling): New section.
48641 2005-06-28 Jim Meyering <jim@meyering.net>
48643 * check-module (find_included_lib_files): Hard-code another
48644 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
48645 but modules/fts-lgpl (correctly) does not list those files.
48647 * modules/canonicalize (Files): Add lib/pathmax.h.
48649 2005-06-25 Simon Josefsson <jas@extundo.com>
48651 * modules/check-version: New file.
48653 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
48655 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
48656 initializer of struct addrinfo, as an indication that we don't
48657 care how many members the structure has.
48659 2005-06-24 Derek Price <derek@ximbiot.com>
48660 and Bruno Haible <bruno@clisp.org>
48662 Remove stat module & update lstat.
48663 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
48664 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48665 * m4/stat.m4: Remove this file.
48667 2005-06-24 Derek Price <derek@ximbiot.com>
48668 and Bruno Haible <bruno@clisp.org>
48670 Remove stat module & update lstat.
48671 * lib/stat.c: Remove this file...
48672 (slash_aware_lstat): ...moving this content and its support...
48673 * lib/lstat.c (rpl_lstat): ...into here.
48674 * lib/lstat.h: New file.
48676 2005-06-24 Derek Price <derek@ximbiot.com>
48677 and Bruno Haible <bruno@clisp.org>
48679 Remove stat module & update lstat.
48680 * config/srclist.txt (libc sources): Remove stat.
48682 2005-06-24 Derek Price <derek@ximbiot.com>
48683 and Bruno Haible <bruno@clisp.org>
48685 Remove stat module & update lstat.
48686 * MODULES.html.sh (stat): Remove.
48687 * MODULES.html: Regenerated.
48688 * modules/lstat (Description): Correct function name.
48689 (Files): Add "lstat.h".
48690 (Depends-on): Remove stat, add xalloc, stat-macros.
48691 * modules/stat: Remove this file.
48692 (Include): Add "lstat.h", remove <sys/stat.h>.
48694 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
48696 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
48697 (ranged_convert): Don't save conversion in a temporary struct.
48698 This causes a warning with GCC 4.0.0, and anyway in the typical
48699 case it's not worth the extra 100 bytes or so of code.
48700 (ranged_convert, __mktime_internal): When calling a function via a
48701 pointer P, use P () rather than (*P) (), as we now assume C89 or
48704 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
48706 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
48707 "who -r" failed to give output. Problem reported by Tim Waugh.
48709 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
48710 (xcalloc): Use it to avoid needless tests.
48711 Problem reported by Jim Meyering.
48713 2005-06-20 Derek Price <derek@ximbiot.com>
48715 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
48716 unnecessary for Autoconfs > 2.59c.
48718 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
48720 * lib/argp.h (__option_is_short): Check upper limit of
48721 __key. Isprint() requires its argument to have the value
48722 of an unsigned char or EOF.
48724 2005-06-16 Jim Meyering <jim@meyering.net>
48726 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
48727 when either N or S is zero.
48729 2005-06-16 Derek Price <derek@ximbiot.com>
48731 * m4/bison.m4: Declare YACC & YFLAGS precious.
48733 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
48735 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
48736 multibyte string or pattern, fall back on unibyte matching.
48737 Problem reported by James Youngman.
48739 2005-06-08 Bruno Haible <bruno@clisp.org>
48741 * modules/csharpcomp: New file.
48742 * MODULES.html.sh (C#): Add csharpcomp.
48744 2005-06-08 Bruno Haible <bruno@clisp.org>
48746 * m4/csharpcomp.m4: New file, from GNU gettext.
48748 2005-06-08 Bruno Haible <bruno@clisp.org>
48750 * lib/csharpcomp.h: New file, from GNU gettext.
48751 * lib/csharpcomp.c: New file, from GNU gettext.
48752 * lib/csharpcomp.sh.in: New file, from GNU gettext.
48754 2005-06-08 Bruno Haible <bruno@clisp.org>
48756 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
48759 2005-06-07 Derek Price <derek@ximbiot.com>
48762 * lib/glob_.h: Indent nested #ifdef.
48764 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
48766 Sync from coreutils.
48767 Use "file name" when talking about file names, instead of "filename"
48768 or "path", as per the GNU coding standards.
48769 * lib/mkdir-p.c: Renamed from makepath.c.
48770 (make_dir_parents): Renamed from make_path. All callers changed.
48771 * lib/mkdir-p.h: Likewise. All includers changed.
48772 * lib/filenamecat.c: Renamed from path-concat.c.
48773 (file_name_concat): Renamed from path_concat. All callers changed.
48774 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
48775 * lib/filenamecat.h: Likewise. All includers changed.
48776 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
48777 in comments or local variable names.
48778 * lib/basename.c: Likewise.
48779 * lib/canonicalize.c, canonicalize.h: Likewise.
48780 * lib/dirname.c, dirname.h: Likewise.
48781 * lib/euidaccess.c: Likewise.
48782 * lib/exclude.c: Likewise
48783 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
48784 * lib/fsusage.c, fsuage.h: Likewise.
48785 * lib/fts.c, fts_.h: Likewise.
48786 * lib/getcwd.c: Likewise.
48787 * lib/getloadavg.c: Likewise.
48788 * lib/mkstemp.c: Likewise.
48789 * lib/mountlist.c, mountlist.h: Likewise.
48790 * lib/openat.c, openat.h: Likewise.
48791 * lib/readlink-stub.c: Likewise.
48792 * lib/readutmp.c, readutmp.h: Likewise.
48793 * lib/rename.c: Likewise.
48794 * lib/rmdir.c: Likewise.
48795 * lib/same.c: Likewise.
48796 * lib/savedir.c: Likewise.
48797 * lib/stripslash.c: Likewise.
48798 * lib/tempname.c: Likewise.
48799 * lib/xreadlink.c: Likewise.
48800 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
48802 * lib/exclude.h: Likewise.
48804 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
48805 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48806 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
48807 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48808 * lib/pathmax.h: Include <limits.h> unconditionally, since other
48809 files have been getting away with it for years (MORE/BSD 4.3
48811 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
48812 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48814 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
48815 Define to 256, not 255, as per modern POSIX.
48817 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
48819 Sync from coreutils.
48820 Use "file name" when talking about file names, instead of "filename"
48821 or "path", as per the GNU coding standards.
48822 * MODULES.html.sh: mkdir-p renamed from makepath.
48823 filenamecat renamed from path-concat.
48824 * modules/filenamecat: Renamed from modules/path-concat.
48825 (Files): filenamecat.h and filenamecat.c renamed from
48826 path-concat.h and path-concat.c.
48827 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
48828 (Include): filenamecat.h, not path-concat.h.
48829 * modules/mkdir-p: Renamed from modules/makepath.
48830 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
48832 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
48833 (Include): mkdir-p.h, not makepath.h.
48835 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
48837 Sync from coreutils.
48838 * m4/mkdir-p.m4: Renamed from makepath.m4.
48839 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
48840 Rename files from makepath.c to mkdir-p.c, and from
48841 makepath.h to mkdir-p.h.
48842 * m4/filenamecat.m4: Renamed from path-concat.m4.
48843 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
48844 Rename files from path-concat.c to filenamecat.c,
48845 and from path-concat.h to filenamecat.h.
48846 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
48847 "file name" in local variables or comments.
48848 * m4/rename.m4: Likewise.
48850 2005-06-01 Bruno Haible <bruno@clisp.org>
48852 * modules/csharpexec: New file.
48853 * MODULES.html.sh (C#): New section.
48855 2005-06-01 Bruno Haible <bruno@clisp.org>
48857 * m4/csharp.m4: New file, from GNU gettext.
48858 * m4/csharpexec.m4: New file, from GNU gettext.
48860 2005-06-01 Bruno Haible <bruno@clisp.org>
48862 * lib/csharpexec.h: New file, from GNU gettext.
48863 * lib/csharpexec.c: New file, from GNU gettext.
48864 * lib/csharpexec.sh.in: New file, from GNU gettext.
48866 2005-05-31 Derek Price <derek@ximbiot.com>
48867 Paul Eggert <eggert@cs.ucla.edu>
48870 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
48872 2005-05-31 Derek Price <derek@ximbiot.com>
48873 Paul Eggert <eggert@cs.ucla.edu>
48876 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
48878 2005-05-29 Derek Price <derek@ximbiot.com>
48880 * config/srclist.txt (glob_.h, glob.c): Add these files.
48882 2005-05-29 Derek Price <derek@ximbiot.com>
48884 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
48885 * modules/glob: New file.
48886 * modules/getlogin_r: Add link to POSIX spec in description.
48888 2005-05-29 Derek Price <derek@ximbiot.com>
48889 Paul Eggert <eggert@cs.ucla.edu>
48891 * m4/glob.m4: New file.
48893 2005-05-29 Derek Price <derek@ximbiot.com>
48894 Paul Eggert <eggert@cs.ucla.edu>
48896 * lib/glob_.h, lib/glob.c: New files.
48898 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
48900 * modules/fts (Files): Remove m4/inttypes-pri.m4.
48901 * modules/fts-lgpl (Depends-on): Remove gettext.
48903 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
48905 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
48906 and don't require gt_INTTYPES_PRI.
48908 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
48910 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
48912 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
48913 the configuration hassle isn't worth it.
48914 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
48915 (LONGEST_MODIFIER, PRIuMAX): Remove.
48917 2005-05-27 Bruno Haible <bruno@clisp.org>
48919 * lib/getlogin_r.h: Remove second include of <stddef.h>.
48921 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
48923 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
48924 _POSIX_PTHREAD_SEMANTICS for Solaris.
48926 2005-05-25 Derek Price <derek@ximbiot.com>
48928 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
48930 2005-05-25 Derek Price <derek@ximbiot.com>
48931 Paul Eggert <eggert@cs.ucla.edu>
48933 * modules/getlogin_r, m4/getlogin_r.m4: New files.
48934 * lib/getlogin_r.c, getlogin_r.h: New files.
48936 2005-05-25 Bruno Haible <bruno@clisp.org>
48937 Derek Price <derek@ximbiot.com>
48939 * lib/getlogin_r.h: Simplify API documentation.
48941 2005-05-23 Derek Price <derek@ximbiot.com>
48943 * modules/minmax (Files): Add m4/minmax.m4.
48944 (configure.ac): Add gl_MINMAX.
48946 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
48948 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
48949 so that unistd-safer.h (GPL'ed code) need not be included.
48951 2005-05-22 Bruno Haible <bruno@clisp.org>
48953 * m4/minmax.m4: New file.
48954 Based on a patch by Derek Price <derek@ximbiot.com>.
48956 2005-05-22 Bruno Haible <bruno@clisp.org>
48958 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
48959 (INT64_MIN): Fix definition.
48960 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
48962 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
48963 NEED_SIGNED_INT_TYPES.
48965 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
48966 HAVE_SYSTEM_INTTYPES.
48968 2005-05-22 Bruno Haible <bruno@clisp.org>
48970 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
48971 Also include <sys/param.h> if it defines MIN, MAX.
48972 Based on a patch by Derek Price <derek@ximbiot.com>.
48974 2005-05-21 Jim Meyering <jim@meyering.net>
48976 * modules/fts (Files): Add m4/inttypes-pri.m4.
48977 (Depends-on): Add lstat and remove gettext. Alphabetize.
48979 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
48982 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
48983 (setup_dir, free_dir): New functions.
48984 (enter_dir, leave_dir): Define trivial
48985 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
48986 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
48987 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
48988 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
48989 Move to fts-cycle.c.
48990 (fts_open): Use setup_dir.
48991 (fts_close): Use free_dir.
48992 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
48993 This adds a label and some gotos, but the alternatives were messier.
48994 Check for memory allocation failure when entering a dir.
48995 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
48996 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
48997 (FTS): New member fts_cycle, that is a union that contains the
48998 old active_dir_ht and cycle_state. All uses changed to mention
48999 fts_cycle.ht and fts_cycle.state.
49000 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
49001 fts.c, with the following changes:
49002 (setup_dir, free_dir): New functions.
49003 (enter_dir): Now returns bool. Return true if successful, false
49004 if memory exhausted. All callers changed.
49005 Do not bother partly cleaning up on
49006 memory allocation failure; that is free_dir's job.
49007 However, free ad if hash_insert fails, to avoid memory leak.
49008 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
49009 fts->fts_options to see which union member to use.
49011 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
49013 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
49014 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
49016 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
49018 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
49020 2005-05-20 Jim Meyering <jim@meyering.net>
49022 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
49023 Now a macro, to pacify GCC.
49025 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
49027 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
49030 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
49032 * lib/chown.c (rpl_chown): Return -1 on failure.
49034 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
49036 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
49037 Don't check for stddef.h.
49038 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
49039 don't use its results.
49040 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
49041 since we include them unconditionally. Don't require
49042 AM_STDBOOL_H, since stdbool is a prerequisite.
49043 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
49044 since we assume C89 or better.
49045 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
49046 as we don't use their results.
49047 Don't check for fchdir, memmove, memset, strrchr, as we use
49048 them unconditionally.
49049 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
49050 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
49052 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
49054 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
49055 Include <stddef.h> unconditionally, since we assume C89 now.
49056 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
49057 * lib/fts.c: Include fts_.h first, to check interface.
49058 Do not include intprops.h; no longer needed.
49059 Include cycle-check.h and hash.h, since fts_.h no longer does.
49060 Remove unnecessary casts of closedir to void.
49061 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
49062 decide whether to decrement nlinks.
49063 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
49064 (FTS): Use struct hash_table * instead of Hash_table, so that
49065 we no longer need to include hash.h here.
49067 2005-05-18 Jim Meyering <jim@meyering.net>
49069 * modules/dirfd (License): Change to LGPL. Most of the code
49070 is already in the public domain.
49072 2005-05-18 Jim Meyering <jim@meyering.net>
49074 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
49075 Reported by Yoann Vandoorselaere.
49077 2005-05-17 Jim Meyering <jim@meyering.net>
49079 * m4/fts.m4: New file, from coreutils.
49081 2005-05-17 Jim Meyering <jim@meyering.net>
49083 * lib/fts.c, lib/fts_.h: New files, from coreutils.
49085 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
49087 Sync from coreutils.
49088 * m4/unlinkdir.m4: New file.
49090 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
49092 Sync from coreutils.
49093 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
49094 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
49095 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
49096 White space changes only.
49097 * lib/makepath.c (make_path): Port to hosts where leading "//" is
49099 * lib/yesno.c: Include getline.h, not ctype.h.
49100 (yesno): Don't remove leading white space; POSIX doesn't allow it.
49101 Use getline to remove arbitrary restriction on response length.
49103 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
49105 * config/srclist-update: Spell out "Street" in FSF postal
49106 mail address; this is the style the FSF seems to prefer.
49108 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
49109 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
49110 this updates FSF postal mail address.
49112 Sync from coreutils.
49113 * modules/unlinkdir: New file.
49114 * modules/yesno (Depends-on): Add getline.
49115 * MODULES.html.sh (File system functions): Add unlinkdir.
49117 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
49119 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
49121 Change the initial comment to refer to GPL, not LGPL.
49122 gnulib-tool will change it to LGPL as needed.
49124 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
49125 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
49126 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
49127 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
49128 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
49129 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
49130 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
49131 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
49132 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
49133 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
49134 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
49135 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
49136 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
49137 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
49138 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
49139 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
49140 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
49141 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
49142 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
49143 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
49144 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
49145 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
49146 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
49147 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
49148 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
49149 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
49150 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
49151 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
49152 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
49153 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
49154 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
49155 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
49156 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
49157 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
49158 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
49159 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
49160 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
49161 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
49162 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
49163 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
49164 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
49165 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
49166 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
49167 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
49168 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
49169 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
49170 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
49171 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
49172 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
49173 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
49174 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
49175 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
49176 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
49177 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
49178 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
49179 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
49180 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
49181 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
49182 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
49183 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
49184 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
49185 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
49186 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
49187 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
49188 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
49189 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
49190 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
49191 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
49192 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
49193 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
49194 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
49195 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
49196 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
49197 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
49198 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
49199 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
49200 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
49201 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
49202 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
49203 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
49204 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
49205 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
49206 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
49207 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
49208 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
49209 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
49210 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
49211 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
49212 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
49213 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
49214 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
49215 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
49216 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
49217 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
49218 lib/yesno.c, lib/yesno.h:
49219 Update FSF postal mail address.
49221 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
49223 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
49224 tests/test-memmem.c, tests/test-stpncpy.c:
49225 Update FSF postal mail address.
49227 2005-05-13 Bruno Haible <bruno@clisp.org>
49229 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
49230 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
49231 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
49232 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
49233 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
49234 Add support for 64-bit integers in the MSVC compiler.
49236 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
49238 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
49240 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
49242 * gnulib-tool (func_import): Sort and uniquify recommended includes.
49244 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
49246 * doc/getdate.texi (General date syntax): Don't say that date
49247 date --iso-8601=ns generates acceptable dates; it doesn't yet.
49248 Problem reported by Nic Ferrier.
49250 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
49252 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
49253 specified in ai_socktype. Fix invalid ai_protocol
49254 check. ai_protocol is usually set to 0 or depending on
49255 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
49256 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
49257 ai_socktype / ai_protocol in the returned addrinfo structure.
49259 2005-05-10 Simon Josefsson <jas@extundo.com>
49261 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
49262 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49264 2005-05-10 Karl Berry <karl@gnu.org>
49266 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
49267 (from http://www.gnu.org/licenses).
49268 * doc/COPYING.LIB: also rename to COPYING.LESSER.
49269 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
49272 2005-05-10 Karl Berry <karl@gnu.org>
49274 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
49275 (COPYING.DOC): remove.
49277 * config/srclist-update: new FSF address.
49279 2005-05-10 Derek Price <derek@ximbiot.com>
49281 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
49284 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
49285 Bruno Haible <bruno@clisp.org>
49287 * modules/inet_ntop: New file.
49288 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49291 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
49292 Bruno Haible <bruno@clisp.org>
49294 * m4/inet_ntop.m4: New file.
49296 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
49297 Bruno Haible <bruno@clisp.org>
49299 * lib/inet_ntop.h: New file.
49300 * lib/inet_ntop.c: New file, from glibc with modifications.
49302 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
49304 * modules/time_r (License): Change to LGPL.
49305 * modules/extensions (License): Change to LGPL. Actually,
49306 the license is more permissive than that, but currently gnulib-tool
49307 doesn't know how to handle more-permissive licenses.
49309 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
49310 Problem reported by Dave Love.
49312 2005-05-08 Jim Meyering <jim@meyering.net>
49314 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
49317 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
49319 * modules/argmatch (Depends-on): Add stdbool.
49320 * modules/backupfile (Depends-on): Likewise.
49321 * modules/chdir-long (Depends-on): Likewise.
49322 * modules/closeout (Depends-on): Likewise.
49323 * modules/cycle-check (Depends-on): Likewise.
49324 * modules/dirname (Depends-on): Likewise.
49325 * modules/fnmatch (Depends-on): Likewise.
49326 * modules/fsusage (Depends-on): Likewise.
49327 * modules/fwriteerror (Depends-on): Likewise.
49328 * modules/getcwd (Depends-on): Likewise.
49329 * modules/getloadavg (Depends-on): Likewise.
49330 * modules/hard-locale (Depends-on): Likewise.
49331 * modules/makepath (Depends-on): Likewise.
49332 * modules/mountlist (Depends-on): Likewise.
49333 * modules/nanosleep (Depends-on): Likewise.
49334 * modules/posixtm (Depends-on): Likewise.
49335 * modules/quotearg (Depends-on): Likewise.
49336 * modules/readtokens (Depends-on): Likewise.
49337 * modules/readtokens0 (Depends-on): Likewise.
49338 * modules/readutmp (Depends-on): Likewise.
49339 * modules/save-cwd (Depends-on): Likewise.
49340 * modules/strftime (Depends-on): Likewise.
49341 * modules/userspec (Depends-on): Likewise.
49342 * modules/utimecmp (Depends-on): Likewise.
49343 * modules/xgetcwd (Depends-on): Likewise.
49344 * modules/xnanosleep (Depends-on): Likewise.
49345 * modules/xstrtod (Depends-on): Likewise.
49346 * modules/yesno (Depends-on): Likewise.
49348 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
49350 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
49353 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
49355 Merge from coreutils. Among other things,
49356 add bulletproofing for cases where stdin, stdout, or stderr are closed.
49357 * lib/fd-safer.c: New file.
49358 * lib/fcntl-safer.h, open-safer.c: Remove.
49359 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
49360 * lib/dup-safer.c: Include unistd-safer.h first.
49361 Don't include errno.h.
49362 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
49363 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
49364 * lib/file-type.c: Rely on file-type.h change.
49365 * lib/getloadavg.c: Include unistd-safer.h.
49366 (getloadavg): Use safer open.
49367 * lib/getusershell.c: Include "stdio-safer.h".
49368 (getusershell): Use safer fopen.
49369 * lib/long-options.c (long_options): Use NULL rather than 0.
49370 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
49372 * lib/modechange.c: Likewise.
49373 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
49374 (MODE_DONE): New constant.
49375 (struct mode_change): Remove 'next' member.
49376 (make_node_op_equals): New function; like the old one of the
49377 same name, except it allocates an array.
49378 (mode_compile, mode_create_from_ref): Use it.
49379 (mode_compile): Allocate result as an array, not a linked list.
49380 Parse octal string ourself, so that we catch mistakes like "+0".
49381 (mode_adjust): Arg is an array, not a linked list.
49382 * lib/modechange.c: Include stat-macros.h, xalloc.h.
49383 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
49384 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
49385 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
49386 Remove. This is now stat-macros.h's job.
49387 (talloc): Remove. All callers replaced by xalloc, so that
49388 our invokers don't have to worry about reporting memory failures.
49389 (make_node_op_equals): Remove.
49390 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
49392 (struct mode_change): Moved here from modechange.h.
49393 (mode_append_entry): Remove.
49394 (mode_compile): Remove MASKED_OPS arg, since it encouraged
49395 apps to have incorrect behavior. Use simpler algorithm for head
49396 and tail. Don't futz with umask; that's now the job of mode_adjust.
49397 Detect more invalid usages rather than having somewhat-random behavior.
49398 Don't insert an "a=" action, as that leads to incorrect behavior.
49399 (mode_compile, mode_create_from_ref): Return NULL on error instead
49400 of an enum, since now there's only one way to have an error. All
49402 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
49403 at the correct time. Simplify calculation of "+u" and its ilk.
49404 Don't mishandle "+X".
49405 (mode_free): Remove "register" and localize decls.
49406 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
49407 (struct mode_change): Move to modechange.c; callers don't
49408 need to see this stuff.
49409 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
49410 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
49411 (mode_change, mode_adjust): Reflect the new signatures noted above.
49412 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
49413 that might redefine system include files.
49414 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
49415 (my_usleep): Use NULL rather than (void *) 0.
49416 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
49417 Use siginterrupt to specify that system calls should be interrupted.
49418 (rpl_nanosleep): Move initialization of suspended closer to call of
49420 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
49421 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
49422 (desirable_utmp_entry): New function.
49423 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
49424 using x2nrealloc, to simplify logic.
49425 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
49426 size calculation. Do not assume utmp file is a regular file.
49427 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
49428 (READ_UTMP_CHECK_PIDS): New constant.
49429 * lib/save-cwd.c: Include unistd-safer.h.
49430 (save_cwd): Use fd_safer.
49431 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
49432 [!_LIBC] Include "stat-macros.h" instead.
49433 * lib/unistd-safer.h (fd_safer): New decl.
49435 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
49437 * modules/getloadavg (Depends-on): Add unistd-safer.
49438 * modules/getusershell (Depends-on): Add stdio-safer.
49439 * modules/lstat (Depends-on): Remove xalloc.
49440 * modules/mkstemp (Depends-on): Add stat-macros.
49441 * modules/modechange (Depends-on): Remove xstrtol.
49442 Add stat-macros, xalloc.
49443 * modules/save-cwd (Depends-on): Add unistd-safer.
49444 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
49445 * modules/unistd-safer (Files): Add lib/fd-safer.c
49446 (Makefile.am): Remove lib_SOURCES.
49448 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
49449 Remove fcntl-safer; unistd-safer supersedes it.
49451 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
49453 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
49455 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
49456 (gl_PREREQ_CHOWN): Remove.
49457 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
49458 it. Don't require AC_HEADER_STAT.
49459 (gl_PREREQ_LSTAT): Remove.
49460 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
49461 Don't require AC_HEADER_STAT.
49462 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
49463 (gl_PREREQ_RMDIR): Remove.
49464 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
49465 mention stat-macros.h or AC_HEADER_STAT, since we'll make
49466 the stat-macros module a prerequisite.
49467 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
49468 * m4/filemode.m4 (gl_FILEMODE): Likewise.
49469 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
49470 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
49471 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
49473 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
49474 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
49476 * m4/fcntl-safer.m4: Remove.
49477 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
49478 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
49479 Invoke gl_PREREQ_FD_SAFER.
49480 (gl_PREREQ_FD_SAFER): New macro.
49481 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
49482 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
49483 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
49484 Remove duplicate call to AC_LIBOBJ(readutmp).
49485 (gl_PREREQ_READUTMP): Remove. All uses inlined.
49487 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
49488 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
49490 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
49492 * MODULES.html.sh (Misc): Add byteswap.
49494 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
49496 * modules/getcwd (Depends-on): Add extensions.
49497 * modules/openat (Depends-on): Likewise.
49499 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
49501 * modules/byteswap: New file.
49503 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
49505 * m4/byteswap.m4: New file.
49507 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
49509 * lib/byteswap_.h: New file.
49511 2005-04-25 Karl Berry <karl@gnu.org>
49513 * m4/gettext.m4: Update from GNU gettext 0.14.4.
49515 2005-04-25 Albert Chin <china@thewrittenword.com>
49517 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
49520 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
49522 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
49523 (func_ln_if_changed) Remove forcibly for no error message
49524 in case file does not exist.
49526 2005-04-19 Simon Josefsson <jas@extundo.com>
49528 * gnulib-tool (Options): Make --symlink mean --symbolic.
49530 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
49532 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
49534 2005-04-16 Simon Josefsson <jas@extundo.com>
49536 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
49538 2005-04-15 Simon Josefsson <jas@extundo.com>
49540 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
49542 2005-04-15 Simon Josefsson <jas@extundo.com>
49544 * gnulib-tool: Rename --symlink to --symbolic.
49546 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
49548 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
49549 symbolic links to files instead of copying/moving. Add --aux-dir,
49550 specifying directory relative --dir where auxiliary build tools
49553 2005-04-14 Bruno Haible <bruno@clisp.org>
49555 * modules/allocsa (License): Change to LGPL.
49556 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49558 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
49560 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
49561 that "UTC +1 second" continues to work. Problem reported
49562 by Dmitry V. Levin.
49563 (relunit_snumber): New rule.
49566 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
49568 * lib/getdate.y (universal_time_zone_table): New constant.
49569 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
49570 universal_time_zone_table.
49571 (lookup_zone): Prefer universal_time_zone_table to
49572 local_time_zone_table, so that "GMT" time stamps are allowed in
49573 London during the summer. Problem reported by Ian Abbott.
49575 2005-04-12 Jim Meyering <jim@meyering.net>
49577 * lib/human.c (humblock): Set *options even when returning due to
49578 xstrtoumax conversion failure. Thanks to a used-uninitialized
49579 warning from gcc-4.
49581 2005-04-09 Jim Meyering <jim@meyering.net>
49583 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
49584 -Wuninitialized: initialize tm0.tm_year.
49586 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
49588 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
49589 count, since there's no maximum. All uses changed.
49590 Add member dsts_seen.
49591 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
49593 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
49594 Use pc_rels_seen to decide whther a date is absolute.
49596 * lib/getdate.y (number): Don't overwrite year.
49597 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
49600 2005-04-02 Simon Josefsson <jas@extundo.com>
49602 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
49603 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
49605 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
49607 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
49608 where no absolute path name can be longer than PATH_MAX.
49610 2005-03-27 Jim Meyering <jim@meyering.net>
49612 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
49614 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
49616 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
49617 "one's complement" -> "ones' complement" in comment, as per Knuth.
49618 "value of type" -> "type or expression" in comment.
49619 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
49621 2005-03-26 Jim Meyering <jim@meyering.net>
49624 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
49625 Correct typos: s/or/of/.
49627 2005-03-26 Jim Meyering <jim@meyering.net>
49629 * modules/check-include-files: Move to ../ and rename to...
49630 * check-module: ...this.
49632 2005-03-25 Jim Meyering <jim@meyering.net>
49634 * modules/xvasprintf (Files): Add xalloc.h.
49636 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
49638 * modules/gettext (Files): config/config.rpath ->
49639 build-aux/config.rpath
49640 * modules/iconv (Files): Likewise.
49641 Problem reported by Oskar Liljeblad.
49643 2005-03-23 Jim Meyering <jim@meyering.net>
49645 * modules/check-include-files: New script to check for
49646 missing dependencies, multiple includes, etc.
49648 * modules/c-strtold (Depends-on): Add xalloc.
49649 * modules/c-strtod (Depends-on): Add xalloc.
49650 * modules/hash (Depends-on): Add xalloc.
49651 (Files): Remove lib/xalloc.h.
49653 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
49654 * modules/userspec (Files): Add lib/inttostr.h.
49656 2005-03-23 Jim Meyering <jim@meyering.net>
49658 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
49660 2005-03-22 Jim Meyering <jim@meyering.net>
49662 * modules/stat-macros: New module.
49663 * modules/canonicalize, modules/euidaccess, modules/file-type,
49664 * modules/filemode, modules/lchown, modules/makepath,
49665 * modules/rmdir, modules/stat: Depend on new stat-macros module
49666 rather than listing lib/stat-macros.h manually.
49667 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
49669 2005-03-22 Jim Meyering <jim@meyering.net>
49671 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
49673 2005-03-22 Bruno Haible <bruno@clisp.org>
49675 * config/srclist.txt: Replace target directory 'config' with
49677 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
49678 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
49681 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
49683 * modules/chdir-long (Depends-on): Add mempcpy.
49685 * modules/acl, modules/backupfile, modules/c-strtod,
49686 modules/c-strtold, modules/canon-host, modules/canonicalize,
49687 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
49688 modules/exclude, modules/exitfail, modules/file-type,
49689 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
49690 modules/getdate, modules/getline, modules/getpagesize,
49691 modules/getpass, modules/getugroups, modules/group-member,
49692 modules/hard-locale, modules/hash, modules/human, modules/idcache,
49693 modules/inttostr, modules/long-options, modules/makepath,
49694 modules/md5, modules/memcasecmp, modules/memcoll,
49695 modules/modechange, modules/mountlist, modules/path-concat,
49696 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
49697 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
49698 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
49699 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
49700 modules/strftime, modules/strndup, modules/strverscmp,
49701 modules/timespec, modules/unlocked-io, modules/userspec,
49702 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
49704 Remove lib_SOURCES line from Makefile.am section, as this is now
49705 done automatically by the corresponding Autoconf macro.
49707 2005-03-21 Jim Meyering <jim@meyering.net>
49709 Changes imported from coreutils.
49711 * lib/cycle-check.c: Don't include xalloc.h.
49713 * lib/path-concat.c: Don't include assert.h.
49714 (path_concat): Remove assertion that would have triggered
49715 for ABASE starting with more than one slash.
49716 Reported by Andreas Schwab.
49718 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
49719 properly when ABASE is an absolute file name.
49720 Correct the description of this function.
49721 Include <assert.h>.
49722 Add an assertion and a test driver.
49723 This fixes a bug introduced on 2004-07-02.
49724 Andreas Schwab reported the resulting failure of cp --parents:
49725 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
49727 2005-03-21 Jim Meyering <jim@meyering.net>
49729 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
49730 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
49732 2005-03-21 Jim Meyering <jim@meyering.net>
49733 and Paul Eggert <eggert@cs.ucla.edu>
49735 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
49736 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
49737 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
49738 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
49739 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
49740 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
49741 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
49742 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
49743 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
49744 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
49745 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
49746 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
49747 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
49748 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
49749 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
49750 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
49751 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
49754 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
49756 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
49757 (which shouldn't happen), generate nothing instead of returning 0
49758 immediately, so that nstrftime (NULL, ...) doesn't return 0.
49760 2005-03-16 Bruno Haible <bruno@clisp.org>
49762 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
49763 HAVE_LONGLONG_64BIT.
49765 2005-03-16 Bruno Haible <bruno@clisp.org>
49767 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
49768 HAVE_LONGLONG_64BIT.
49770 2005-03-16 Bruno Haible <bruno@clisp.org>
49772 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
49773 HAVE_LONGLONG_64BIT.
49775 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
49777 * lib/strftime.c (my_strftime): Prepend space to format so that we can
49778 reliably distinguish strftime failure from empty output on POSIX
49781 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
49783 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
49784 (iconv_string): Don't guess a size-zero buffer, as that might cause
49785 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
49786 result would be 'too large', where 'too large' is (heuristically)
49787 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
49788 overflow concerns. This will prevent some unwanted malloc failures
49789 when the inputs are very large.
49791 2005-03-15 Karl Berry <karl@gnu.org>
49793 * config/srclist.txt (config.rpath): from gettext.
49794 * config/config.rpath: update.
49796 2005-03-15 Bruno Haible <bruno@clisp.org>
49798 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
49801 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
49804 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
49807 2005-03-14 Simon Josefsson <jas@extundo.com>
49809 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
49812 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
49814 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
49815 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
49817 * lib/strtol.c: Likewise.
49819 2005-03-14 Jim Meyering <jim@meyering.net>
49821 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
49822 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
49823 to be nonzero so that we (and caller) can detect the difference
49824 between a valid zero-length expansion and an error return, even
49825 when the underlying strftime fails before writing anything into
49828 2005-03-14 Bruno Haible <bruno@clisp.org>
49830 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
49831 Update from GNU gettext 0.14.3.
49833 2005-03-10 Jim Meyering <jim@meyering.net>
49835 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
49837 2005-03-10 Jim Meyering <jim@meyering.net>
49839 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
49840 so that this module works on systems without fchdir.
49842 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
49844 Factor int-properties macros into a single file, except for
49845 glibc-related files.
49846 * lib/intprops.h: New file.
49847 * lib/getloadavg.c: Include it instead of limits.h.
49848 (INT_STRLEN_BOUND): Remove.
49849 * lib/human.c: Include intprops.h.
49850 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
49851 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
49853 * lib/inttostr.h: Include intprops.h instead of limits.h.
49854 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
49855 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
49856 for consistency with intprops.h.
49857 (time_t_is_integer, twos_complement_arithmetic): Use them.
49858 * lib/sig2str.h: Include <signal.h>, intprops.h.
49859 (INT_STRLEN_BOUND): Remove.
49860 * lib/strftime.c (TYPE_SIGNED): Remove.
49861 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
49862 * lib/strtol.c: Adjust comments to match intprops.h.
49863 * lib/userspec.c: Include intprops.h.
49864 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
49865 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
49866 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
49867 instead of rolling our own expressions.
49868 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
49870 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
49872 (my_strftime): Do not mishandle years close to INT_MAX, by doing
49873 the right thing even if adding 1900 would overflow. Similarly
49874 for tm_mon + 1 and tm_yday + 1.
49875 Make %Y always equivalent to %C%y, and similarly for %G and %g.
49876 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
49877 (DO_SIGNED_NUMBER): New macro.
49878 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
49880 2005-03-07 Bruno Haible <bruno@clisp.org>
49882 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
49884 2005-03-07 Bruno Haible <bruno@clisp.org>
49886 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
49888 2005-03-04 Derek R. Price <derek@ximbiot.com>
49890 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
49891 (func_import): Only replace files via --import when they have actually
49894 2005-03-03 Derek R. Price <derek@ximbiot.com>
49896 * m4/mmap-anon.m4: New file.
49897 * m4/pagealign_alloc.m4: New file.
49899 2005-03-03 Derek R. Price <derek@ximbiot.com>
49900 Bruno Haible <bruno@clisp.org>
49902 * modules/pagealign_alloc: New file.
49903 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
49905 2005-03-03 Derek R. Price <derek@ximbiot.com>
49906 Bruno Haible <bruno@clisp.org>
49908 * lib/pagealign_alloc.h: New file.
49909 * lib/pagealign_alloc.c: New file.
49911 2005-03-03 Bruno Haible <bruno@clisp.org>
49913 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
49914 Use an all-permissive copyright notice, recommended by RMS.
49916 2005-03-02 Bruno Haible <bruno@clisp.org>
49918 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
49919 of AIX, the replacement has to be done only after <string.h> is
49920 included, therefore not in config.h. stpncpy.h does the replacement,
49921 and stpncpy.c uses it.
49923 2005-03-02 Bruno Haible <bruno@clisp.org>
49925 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
49928 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
49930 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
49931 The workaround isn't strictly needed for POSIX conformance, and
49932 it's too much of a pain to configure and maintain. We'll ask
49933 people to fix their kernels instead.
49934 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
49935 (NANOSLEEP_BUG_WORKAROUND): Remove.
49936 (xnanosleep): Remove the workaround.
49938 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
49940 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
49941 Reported by Derek Price.
49942 (Include): Add "timespec.h".
49944 * modules/xnanosleep (Depends-on): Remove gethrxtime.
49946 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
49948 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
49949 to detect nanosleep bug.
49951 2005-03-01 Bruno Haible <bruno@clisp.org>
49953 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
49955 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
49957 * modules/gethrxtime: New file.
49958 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
49959 (Depends-on): Add gethrxtime.
49960 (configure.ac): Add gl_XNANOSLEEP.
49961 (Makefile.am): Remove lib_SOURCES line.
49963 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
49965 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
49966 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
49968 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
49970 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
49971 * lib/timespec.h (gettime): Return void, since it always
49972 succeeds now. All uses changed.
49973 * lib/gettime.c (gettime) Likewise.
49974 [HAVE_NANOTIME]: Prefer nanotime.
49975 Assume gettimeofday succeeds, as POSIX requires.
49976 Assime time () succeeds, since other code already does.
49977 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
49978 (timespec_subtract): Remove.
49979 (NANOSLEEP_BUG_WORKAROUND): New constant.
49980 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
49981 things considerably. Use it only on GNU/Linux hosts, since the
49982 workaround shouldn't be needed elsewhere.
49984 2005-02-24 Bruno Haible <bruno@clisp.org>
49986 * modules/gettext (Files): Add m4/glibc2.m4.
49988 2005-02-24 Bruno Haible <bruno@clisp.org>
49990 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
49991 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
49993 Update from GNU gettext 0.14.2.
49994 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
49996 2005-02-24 Bruno Haible <bruno@clisp.org>
49998 * lib/localcharset.c: Update from GNU gettext 0.14.2.
49999 * lib/config.charset: Update from GNU gettext 0.14.2.
50001 2005-02-24 Bruno Haible <bruno@clisp.org>
50003 * lib/gettext.h: Update from GNU gettext 0.14.2.
50005 2005-02-23 Simon Josefsson <jas@extundo.com>
50007 * m4/iconvme.m4: New file.
50009 2005-02-23 Jim Meyering <jim@meyering.net>
50011 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
50013 Thanks to Bruno Haible for catching it.
50015 2005-02-22 Simon Josefsson <jas@extundo.com>
50017 * modules/iconvme: New file.
50019 * MODULES.html.sh: Add iconvme.
50021 2005-02-22 Simon Josefsson <jas@extundo.com>
50023 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
50025 2005-02-22 Simon Josefsson <jas@extundo.com>
50027 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
50029 2005-02-22 Jim Meyering <jim@meyering.net>
50031 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
50034 2005-02-20 Neil Conway <neilc@samurai.com>
50036 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
50037 returned by OSX/Darwin if the specified buffer is not large
50038 enough for the hostname.
50040 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50042 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
50043 pass it to _help, otherwise the latter coredumps trying to
50044 dereference state.root_argp.
50046 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
50048 * modules/chdir-long (Depends-on): Add memrchr.
50049 * modules/memrchr (Files): Add lib/memrchr.h.
50050 (Include): "memrchr.h".
50052 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
50054 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
50056 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
50058 * lib/memrchr.h: New file.
50059 * lib/chdir-long.c: Include it.
50060 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
50061 Don't bother including stddef.h.
50063 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
50065 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
50067 Include <sys/types.h>, for dev_t.
50068 (ME_DUMMY, ME_REMOTE): Move from here....
50069 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
50070 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
50072 Include mountlist.h first, to test the interface.
50074 2005-01-29 Bruno Haible <bruno@clisp.org>
50076 * lib/progname.c (program_name): Initialize.
50077 Needed when linking statically on MacOS X.
50079 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
50081 Sync from coreutils.
50082 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
50083 (Depends-on): Add c-strtod.
50084 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
50086 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
50088 Sync from coreutils.
50089 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
50091 Remove files that are specific to coreutils.
50092 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
50094 2005-01-28 Bruno Haible <bruno@clisp.org>
50096 * modules/javacomp: New file.
50097 * MODULES.html.sh (Java): Add javacomp.
50099 2005-01-28 Bruno Haible <bruno@clisp.org>
50101 * m4/javacomp.m4: New file, from GNU gettext.
50103 2005-01-28 Bruno Haible <bruno@clisp.org>
50105 * lib/javacomp.sh.in: New file, from GNU gettext.
50106 * lib/javacomp.h: New file, from GNU gettext.
50107 * lib/javacomp.c: New file, from GNU gettext.
50109 2005-01-26 Simon Josefsson <jas@extundo.com>
50111 * lib/gai_strerror.c: Use GPL in header.
50113 2005-01-26 Bruno Haible <bruno@clisp.org>
50115 * modules/javaexec: New file.
50116 * MODULES.html.sh (Java): Add javaexec.
50118 2005-01-26 Bruno Haible <bruno@clisp.org>
50120 * m4/javaexec.m4: New file, from GNU gettext.
50122 2005-01-26 Bruno Haible <bruno@clisp.org>
50124 * lib/javaexec.sh.in: New file, from GNU gettext.
50125 * lib/javaexec.h: New file, from GNU gettext.
50126 * lib/javaexec.c: New file, from GNU gettext.
50128 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50130 * modules/lchown (Depends-on): Remove lchown.h
50132 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50134 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
50135 must be defined if the header file was not found, in order
50136 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
50138 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50140 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
50141 initializers for struct pentry_state.
50142 (__argp_error): Check return value of __asprintf
50143 (__argp_failure): Translate error message
50145 * lib/argp-parse.c: Removed braces around the expansion of N_()
50147 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
50149 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
50150 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
50151 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
50152 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
50153 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
50154 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
50155 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
50156 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
50157 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
50158 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
50159 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
50160 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
50161 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
50162 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
50163 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
50164 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
50165 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
50166 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
50167 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
50168 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
50169 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
50170 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
50171 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
50172 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
50173 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
50174 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
50175 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
50176 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
50177 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
50178 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
50179 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
50180 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
50181 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
50182 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
50183 xstrtol.m4, xstrtoumax.m4, yesno.m4:
50184 Use an all-permissive copyright notice, recommended by RMS.
50186 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
50188 * modules/chdir-long (Depends-on): Remove mempcpy.
50190 2005-01-21 Jim Meyering <jim@meyering.net>
50192 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
50193 same value as for Solaris 9.
50195 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
50196 component length. This included changing the parameter to be
50197 of type `char *' rather than `char const *'.
50198 * lib/chdir-long.h (chdir_long): Update prototype.
50200 * lib/openat.c (fdopendir, fstatat): New functions.
50201 * lib/openat.h: Include headers required for use of DIR and struct
50203 [AT_SYMLINK_NOFOLLOW]: Define.
50204 (fdopendir, fstatat): Add prototypes.
50206 2005-01-21 Bruno Haible <bruno@clisp.org>
50208 * modules/classpath: New file.
50209 * MODULES.html.sh (Java): Add classpath.
50211 2005-01-21 Bruno Haible <bruno@clisp.org>
50213 * lib/classpath.h: New file, from GNU gettext.
50214 * lib/classpath.c: New file, from GNU gettext.
50216 2005-01-20 Simon Josefsson <jas@extundo.com>
50218 * modules/version-etc-fsf: New file.
50220 2005-01-20 Simon Josefsson <jas@extundo.com>
50222 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
50223 * lib/version-etc.c: Remove version_etc_copyright.
50224 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
50225 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
50227 2005-01-20 Simon Josefsson <jas@extundo.com>
50229 * lib/base64.h (isbase64): Add.
50231 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
50232 using a unsigned prototype, don't inline.
50233 (base64_decode): Use it.
50235 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
50237 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
50240 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
50242 * lib/save-cwd.c (save_cwd): Remove code to support the case
50243 where fchdir is missing or flaky.
50245 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
50247 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
50249 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
50251 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
50252 AC_LIBSOURCES now does this.
50253 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
50254 with new ullong_max module.
50256 2005-01-19 Bruno Haible <bruno@clisp.org>
50258 * modules/sh-quote: New file.
50259 * MODULES.html.sh (Executing programs): Add sh-quote.
50261 2005-01-19 Bruno Haible <bruno@clisp.org>
50263 * lib/sh-quote.h: New file, from GNU gettext.
50264 * lib/sh-quote.c: New file, from GNU gettext.
50266 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
50268 Merge from coreutils.
50269 * m4/ullong_max.m4: New file.
50270 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
50271 (gl_MACROS): Assume localeconv exists.
50273 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
50275 Merge changes from coreutils, as described below in several
50276 changelogs dated today.
50278 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
50279 (O_DIRECTORY): Remove; not needed here, since "." must be
50280 a directory. All uses removed.
50281 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
50282 universal on Suns, and we also need to test for IRIX.
50283 Revamp code to use 'if' rather than '#if'.
50284 Avoid unnecessary comparison of cwd->desc to 0.
50286 * lib/utimens.c (futimens): Robustify the previous patch, by checking
50287 for known valid error numbers rather than observed invalid ones.
50289 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
50291 * modules/ullong_max: New file.
50293 * modules/chdir-long, modules/openat: New files.
50294 * modules/save-cwd (Depends-on): Depend on chdir-long.
50295 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
50297 2005-01-18 Jim Meyering <jim@meyering.net>
50299 Merge from coreutils.
50300 * m4/chdir-long.m4, m4/openat.m4: New files.
50301 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
50302 save-cwd.h. Add AC_LIBOBJ for save-cwd.
50303 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
50304 is sane and DOES follow symlinks. Besides, testing 20 different
50305 systems found no broken chown implementations.
50306 Prompted by a change in rsync's copy of this macro.
50307 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
50309 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
50311 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
50312 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
50313 NULL-means-set-to-current-time semantics.
50314 Remove temporary file immediately, rather than waiting
50315 for configure's at-exit trap code to do it.
50317 2005-01-18 Jim Meyering <jim@meyering.net>
50319 * lib/version-etc.c (version_etc_copyright): Update copyright date.
50321 * lib/utimens.c (futimens): Account for the fact that futimes
50322 can also fail with errno == ENOSYS or errno == ENOENT.
50323 Patch from Dmitry V. Levin.
50325 Change the name of the robust chdir function from chdir to chdir_long.
50326 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
50327 (restore_cwd): Use chdir_long, not chdir.
50328 * lib/chdir-long.c: Renamed from chdir.c.
50329 * lib/chdir-long.h: Renamed from chdir.h.
50330 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
50333 2005-01-18 Bruno Haible <bruno@clisp.org>
50335 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
50336 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
50337 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
50338 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
50339 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
50340 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
50341 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
50342 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
50343 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
50344 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
50345 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
50346 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
50347 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
50348 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
50349 Use an all-permissive copyright notice, recommended by RMS.
50351 2005-01-18 Bob Proulx <bob@proulx.com>
50353 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
50354 simplify offsetof() macro construct to avoid compile failure with
50355 native HP-UX 11.0 ANSI C compiler.
50357 2005-01-17 Bruno Haible <bruno@clisp.org>
50359 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
50360 redundant because stpncpy.m4 takes care of it.
50362 2005-01-17 Bruno Haible <bruno@clisp.org>
50364 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
50366 2005-01-17 Bruno Haible <bruno@clisp.org>
50368 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
50371 2005-01-17 Bruno Haible <bruno@clisp.org>
50373 * lib/fwriteerror.h (fwriteerror): Change specification to include
50375 * lib/fwriteerror.c: Include <stdbool.h>.
50376 (fwriteerror): At the end, close the file stream. Record whether
50377 stdout was already closed.
50379 2005-01-17 Bruno Haible <bruno@clisp.org>
50381 * lib/execute.c (environ): Declare if needed.
50382 * lib/pipe.c (environ): Likewise.
50383 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
50385 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50387 * modules/argp: Depend on vsnprintf
50389 2005-01-10 Jim Meyering <jim@meyering.net>
50391 * modules/closeout (Depends-on): Add atexit.
50393 2005-01-06 Bruno Haible <bruno@clisp.org>
50395 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
50397 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
50399 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
50400 definitions to be after all include files, to avoid collisions.
50401 Problem reported by Bob Proulx.
50403 2005-01-04 Jim Meyering <jim@meyering.net>
50405 Changes imported from coreutils.
50406 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
50407 as the mkstemp template, use a temporary directory and an
50408 8.3-friendly template to avoid trouble on systems like DJGPP.
50409 Reported by Juan M. Guerrero via Stepan Kasal.
50410 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
50411 close. Remove the temporary directory right away, rather than waiting
50412 for configure's at-exit trap code to do it.
50413 Suggestion from Stepan Kasal.
50415 2005-01-01 Simon Josefsson <jas@extundo.com>
50417 * gnulib-tool: Print #include directives when --import'ing.
50419 2004-12-28 Simon Josefsson <jas@extundo.com>
50421 * tests/test-base64.c: Include required header files. Remove
50424 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
50426 * modules/error (Depends-on): Remove gettext.
50428 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
50430 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
50431 not needed. This removes a dependency on the gettext module.
50432 [defined _LIBC]: Do not include <libintl.h>; not needed.
50434 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
50436 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
50437 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
50439 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
50441 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
50444 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
50446 * modules/getdate (Depends-on): Remove alloca-opt.
50448 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
50450 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
50452 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
50454 * lib/argp-parse.c: Include <stddef.h>.
50455 (alignof, alignto): New macros.
50456 (parser_init): Don't assume that void * is aligned sufficiently
50459 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
50460 need to extend the stack.
50461 (YYINITDEPTH): New macro, so that the initial stack isn't overly
50464 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50466 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
50468 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
50470 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
50471 (2004-10-24) change. Apparently this was a false alarm.
50473 * modules/getdate: Depend on alloca-opt, not alloca.
50475 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
50477 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
50478 Remove now-obsolete comment about AIX.
50479 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
50480 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
50481 (YYMAXDEPTH): New macro.
50483 2004-12-18 Simon Josefsson <jas@extundo.com>
50485 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
50487 2004-12-18 Bruno Haible <bruno@clisp.org>
50489 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
50491 2004-12-18 Bruno Haible <bruno@clisp.org>
50493 * lib/fatal-signal.c (fatal_signals): Make non-const.
50494 (init_fatal_signals): New function.
50495 (uninstall_handlers, install_handlers): Ignore signals that were set to
50497 (at_fatal_signal): Call init_fatal_signals.
50498 (init_fatal_signal_set): Likewise. Ignore signals that were set to
50500 Reported by Paul Eggert.
50502 2004-12-18 Bruno Haible <bruno@clisp.org>
50504 * doc/alloca.texi: New file.
50505 * doc/alloca-opt.texi: New file.
50507 2004-12-17 Jim Meyering <jim@meyering.net>
50509 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
50510 Otherwise, install-sh could exit with improper exit status when
50511 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
50513 2004-12-16 Simon Josefsson <jas@extundo.com>
50515 * tests/test-base64.c: Add license.
50517 2004-12-15 Stepan Kasal <address@hidden>
50519 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
50521 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
50523 * modules/getcwd (Files): Add m4/d-ino.m4.
50524 Suggested by Mark D. Baushke.
50526 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
50528 * lib/getdate.y (textint): New member "negative".
50529 (time_zone_hhmm): New function.
50530 Expect 14 shift-reduce conflicts, not 13.
50531 (o_colon_minutes): New rule.
50532 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
50533 (yylex): Set the "negative" member of signed numbers.
50535 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
50537 * doc/getdate.texi (Time of day items, Time zone items):
50538 Describe new formats +00:00, UTC+00:00.
50540 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
50542 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
50543 spurious "-l"s. Problem reported by Stepan Kasal.
50545 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
50547 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
50548 in Autoconf 2.59. Problem reported by Mark D. Baushke.
50550 2004-12-04 Simon Josefsson <jas@extundo.com>
50552 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
50553 Vandoorselaere <yoann@prelude-ids.org>.
50555 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
50557 Changes imported from coreutils.
50558 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
50560 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
50562 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
50564 Changes imported from coreutils.
50565 * lib/hard-locale.c: Assume <locale.h> exists.
50566 Include "strdup.h".
50567 (GLIBC_VERSION): New macro.
50568 (hard_locale): Assume setlocale exists.
50569 Rewrite to avoid #ifdef.
50570 Use strdup rather than malloc + strcpy.
50571 * lib/human.c: Assume <locale.h> exists.
50572 (human_readable): Assume localeconv exists.
50574 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
50576 * modules/hard-locale (Depends-on): Add strdup.
50578 2004-12-01 Jakub Jelinek <jakub@redhat.com>
50580 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
50581 convert T2, not T. (Imported from libc.)
50583 2004-11-30 Simon Josefsson <jas@extundo.com>
50585 * modules/restrict (License): Change to LGPL.
50587 2004-11-30 Simon Josefsson <jas@extundo.com>
50589 * m4/restrict.m4: Add copyright and copying conditions.
50591 2004-11-30 Simon Josefsson <jas@extundo.com>
50593 * m4/base64.m4: New file.
50595 2004-11-30 Simon Josefsson <jas@extundo.com>
50597 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
50600 * tests/test-base64.c: New file.
50602 * modules/base64: New file.
50604 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
50606 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
50607 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
50609 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
50611 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
50613 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
50614 (__getcwd.c): Don't restore errno; glibc doesn't.
50615 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
50616 first, falling back to our code only if its results look suspicious.
50617 Ensure that the resulting buffer is only as large as necessary.
50619 * lib/readutmp.c: Include readutmp.h first.
50620 Include <errno.h>, since readutmp.h no longer does that.
50621 * lib/readutmp.h: Don't include <errno.h>,
50622 <sys/param.h>, <time.h>; not needed to establish interface.
50623 (errno): Remove decl.
50624 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
50625 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
50626 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
50628 2004-11-28 Simon Josefsson <jas@extundo.com>
50630 * lib/base64.h, base64.c: New file.
50632 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
50634 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
50636 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
50638 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
50639 (Depends-on): Remove pathmax, same. Add mempcpy.
50640 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
50641 (Makefile.am): Append getcwd.h to lib_SOURCES.
50642 (Include): Add getcwd.h.
50643 (Maintainer): Change from Jim Meyering to "all, glibc",
50644 since getdate now uses intended-for-glibc code.
50645 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
50646 (Depends-on): Depend on getcwd. Do not depend on pathmax.
50648 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
50650 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
50651 HP's ANSI C compiler.
50652 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
50653 Declaring int functions causes warnings on some modern systems and
50654 shouldn't be needed to compile on ancient ones.
50655 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
50658 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
50659 with the following changes.
50660 (__set_errno): Parenthesize properly.
50661 Include <stdbool.h>.
50662 (MIN, MAX, MATCHING_INO): New macros.
50663 (__getcwd): Define with prototype, not K&R form.
50664 Use heuristics to allocate default buffer on stack if possible.
50665 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
50666 behavior, and to avoid the PATH_MAX limit when computing
50668 Use MATCHING_INO to compare inode number to file.
50669 Check for arithmetic overflow in size calculations.
50670 Fix bug in reallocation of dot array that caused getcwd to fail
50671 on directories nested deeper than 75.
50672 Be more careful about saving errno on error.
50673 Do not use realloc; use only free+malloc, as this is a bit
50674 more flexible and avoids a needless copy operation.
50675 Do not inspect st_dev and st_ino for symbolic links; POSIX
50676 doesn't specify the latter.
50677 Check for closedir errors.
50678 Avoid needless casts.
50679 Use "#ifdef weak_alias" around weak_alias, to be like other
50681 The following changes to getcwd.c have effect only when used in
50682 gnulib; they have no effect inside glibc proper.
50683 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
50684 as alloca isn't used.
50685 (alloca, __alloca): Likewise.
50686 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
50687 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
50688 unconditionally, as gnulib assumes C89 or better.
50689 Do not include <sys/param.h>.
50690 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
50691 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
50693 (NULL) [!defined NULL]: Remove; we assume C89 or better.
50694 Include <dirent.h> in a way that is compatible with modern Autoconf.
50695 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
50696 New macros, if not already defined.
50697 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
50698 Use "_LIBC", not "defined _LIBC", for consistency.
50699 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
50701 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
50702 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
50703 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
50704 credit only to Jim Meyering and adjust the copyright dates.
50705 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
50706 <stdlib.h>, <unistd.h>, "pathmax.h".
50707 Instead, include "xgetcwd.h" (first) and "getcwd.h".
50708 (INITIAL_BUFFER_SIZE): Remove.
50709 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
50711 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
50713 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
50714 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
50715 Use the _ONCE methods, for efficiency.
50716 Check for fcntl.h. In test program, include <errno.h>
50717 and <fcntl.h> if available. Remove old K&R cruft from
50718 test program. Check for common errors in GNU/Linux,
50719 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
50720 don't do AC_LIBOBJ, as that's getcwd.m4's job.
50721 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
50722 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
50724 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
50725 accommodate new getcwd.c.
50726 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
50727 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
50728 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
50729 that's all we need now.
50731 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50733 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
50734 argp-parse.c depends on getopt internals, that means we should
50735 always use our getopt, to be on the safe side.
50736 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
50737 order not to spoil the result of an eventual previous invocation
50738 of gl_GETOPT_SUBSTITUTE.
50740 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50742 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
50743 redefinition warnings. To avoid them, include the defines
50744 in `#if !defined __need_getopt ... #endif'. The only place
50745 where __getopt_argv_const is used is in definitions
50746 of getopt_long and getopt_long_only below, which are as well
50747 protected by `#ifndef __need_getopt'.
50748 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
50749 __need_getopt after including <stdio.h> and <unistd.h> These
50750 headers might have defined it.
50752 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
50754 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
50756 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
50758 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
50759 (futimens): New function, which uses futimes if available.
50760 (futimens, utimens): Support timespec==NULL, with same semantics
50761 as utime and utimens.
50762 * lib/utimens.h (futimens): New decl.
50764 2004-11-23 Jim Meyering <jim@meyering.net>
50766 * lib/getopt_.h: Remove trailing blanks.
50768 2004-11-23 Jim Meyering <jim@meyering.net>
50770 * lib/__fpending.c: Add comment.
50772 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
50774 * modules/canonicalize (Depends-on): Add xreadlink.
50775 Problem reported by James Youngman.
50777 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
50779 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
50781 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
50782 optopt): Use them instead of invoking ## directly; otherwise, the
50783 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
50785 2004-11-19 Bruno Haible <bruno@clisp.org>
50787 * lib/strtok_r.c: Move comments from here...
50788 * lib/strtok_r.h: ... to here.
50790 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
50792 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
50793 implementations that mishandle size_t overflow.
50795 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
50797 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
50798 might fail. Problem reported by Yoann Vandoorselaere.
50799 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
50800 implementations that mishandle size_t overflow.
50802 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
50804 * modules/canon-host (Depends-on): Add strdup.
50806 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
50808 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
50810 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
50812 * lib/canon-host.c: Include "strdup.h".
50813 (canon_host): Use getaddrinfo if available, so that IPv6 works.
50814 Use strdup instead of malloc/strcpy to duplicate strings.
50816 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
50817 (human_space_before_unit): New constant.
50818 * lib/human.c (human_readable): Support it.
50820 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
50821 (xgetcwd): Set errno correctly when failing.
50822 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
50823 the failure is actually due to a PATH_MAX problem.
50825 Further getopt changes to make it more likely that glibc will
50826 buy the changes back.
50827 * lib/getopt.c (POSIXLY_CORRECT): New constant.
50828 (getopt): Use it, so to preserve glibc semantic
50829 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
50830 when compiling for libc.
50831 * lib/getopt_.h (__getopt_argv_const): Bring it back.
50832 (getopt_long, getopt_long_only): Use it.
50834 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
50835 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
50836 (getopt): Argv is now char * const *, as per standard.
50837 (_getopt_internal_r, _getopt_internal): Argv is now char **,
50838 not char *__getopt_argv_const *.
50839 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
50840 _getopt_long_only_r): Likewise.
50841 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
50842 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
50843 _getopt_long_r, _getopt_long_only_r): Likewise.
50844 * lib/getopt_.h (__getopt_argv_const): Remove.
50845 (getopt): Argv is now char * const *, as per standard.
50847 * lib/getdate.y (tORDINAL): New token.
50848 (day, relunit): Allow it for relative times.
50849 (relative_time_table): Use tORDINAL for ordinals.
50851 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
50853 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
50854 Document that "second" isn't allowed as an ordinal number.
50856 2004-11-16 Jim Meyering <jim@meyering.net>
50858 * modules/closeout (Depends-on): Add fpending.
50860 2004-11-15 Jim Meyering <jim@meyering.net>
50862 * lib/closeout.c: Include "__fpending.h" once again.
50863 Include <stdbool.h>.
50864 (close_stdout): Don't fail just because stdout was closed initially,
50865 since some programs don't write to stdout in the normal course of
50866 operation (other than --version and --help), and we don't want this
50867 function to make e.g. `touch file >&-' fail.
50868 But do fail if it was closed and someone has tried to write to it.
50869 E.g., `printf foo >&-' must fail.
50871 2004-11-13 Jim Meyering <jim@meyering.net>
50873 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
50875 2004-11-12 Simon Josefsson <jas@extundo.com>
50877 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
50878 small doc fix is still pending.
50880 2004-11-11 Simon Josefsson <jas@extundo.com>
50882 * modules/strtok_r: New file.
50884 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50887 2004-11-11 Simon Josefsson <jas@extundo.com>
50889 * m4/strtok_r.m4: New file.
50891 * m4/getopt.m4: Replace opterr.
50893 2004-11-11 Simon Josefsson <jas@extundo.com>
50895 * lib/strtok_r.h, strtok_r.c: New file.
50897 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
50899 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
50900 of replacing opterr, getopt, etc. This should handle the
50901 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
50903 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
50905 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
50906 we can stop lying to compilers about the constness of argv when we
50907 are compiled outside glibc.
50908 (getopt, getopt_long, getopt_long_only): Use it.
50909 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
50910 _getopt_internal, getopt): Likewise.
50911 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
50912 _getopt_long_only_r): Likewise.
50913 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
50914 _getopt_long_r, _getopt_long_only_r): Likewise.
50916 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
50917 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
50918 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
50919 the other external symbols.
50920 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
50921 declaration, since the above renaming now works around collisions.
50923 2004-11-11 Jim Meyering <jim@meyering.net>
50925 * lib/linebreak.c: Remove trailing blanks.
50926 * lib/alloca_.h: Likewise.
50927 * lib/acosl.c: Likewise.
50928 * lib/euidaccess.c: Likewise.
50929 * lib/allocsa.h: Likewise.
50931 2004-11-10 Simon Josefsson <jas@extundo.com>
50933 * m4/getaddrinfo.m4: New file.
50935 2004-11-10 Simon Josefsson <jas@extundo.com>
50937 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
50939 2004-11-10 Simon Josefsson <jas@extundo.com>
50941 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50944 * modules/getaddrinfo: New file.
50946 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
50948 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
50950 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
50952 * lib/mktime.c (SHR): New macro, which is a portable
50953 substitute for >> that should work even on Crays.
50954 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
50955 Problem reported by Mark D. Baushke in
50956 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
50957 * lib/getdate.y (SHR): Likewise.
50959 * lib/strftime.c (SHR): Likewise.
50961 * lib/quotearg.c (struct quoting_options): Use unsigned int for
50962 quote_these_too, so that right shifts are well defined. All uses
50965 2004-11-10 Jim Meyering <jim@meyering.net>
50967 Ensure that no close failure goes unreported.
50968 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
50969 return early when it seems there's nothing to flush.
50970 Don't include __fpending.h.
50972 2004-11-10 Jim Meyering <jim@meyering.net>
50974 * modules/closeout (Depends-on): Remove fpending.
50976 2004-11-10 Jim Meyering <jim@meyering.net>
50978 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
50980 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
50982 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
50984 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
50985 and AC_REQUIRE when possible, to avoid duplicate checks.
50986 Check for <wchar.h>.
50988 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
50990 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
50992 2004-11-09 Bruno Haible <bruno@clisp.org>
50994 * m4/sockpfaf.m4: New file.
50996 2004-11-05 Bruno Haible <bruno@clisp.org>
50998 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
50999 Reported by Mark D. Baushke <mdb@cvshome.org>.
51001 2004-11-04 Bruno Haible <bruno@clisp.org>
51003 2004-09-11 Bruno Haible <bruno@clisp.org>
51004 * allocsa.valgrind: New file.
51005 2004-02-06 Bruno Haible <bruno@clisp.org>
51006 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
51007 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
51008 Reported by Christopher Seip <chris.seip@hp.com>.
51010 2004-11-04 Bruno Haible <bruno@clisp.org>
51012 * modules/allocsa (Files): Add lib/allocsa.valgrind.
51013 (Makefile.am): Distribute it.
51015 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
51017 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
51018 with errno == ERANGE if the buffer is too small.
51019 Problem reported by Mark D. Baushke.
51021 2004-11-03 Albert Chin <china@thewrittenword.com>
51022 Paul Eggert <eggert@cs.ucla.edu>
51024 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
51025 equivalent, substitute $ac_type for equivalent type rather than
51026 blindly using uint32_t *always* which won't work if uint32_t is not
51027 available. Define _UINT32_T to work around typedef of uint32_t if
51028 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
51031 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
51033 * m4/jm-macros.m4: Sync from coreutils.
51034 (gl_MACROS): Check for mbrlen, for pathchk.
51035 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
51037 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
51039 * lib/xreadlink.c (MAXSIZE): New macro.
51040 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
51041 size does not exceed MAXSIZE. Avoid cast.
51042 As suggested by Mark D. Baushke in
51043 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
51044 if readlink fails with buffer size just under MAXSIZE, try again
51047 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
51049 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
51051 2004-11-02 Derek R. Price <derek@ximbiot.com>
51052 and Paul Eggert <eggert@cs.ucla.edu>
51054 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
51055 (get_date): Overparenthesize to avoid GCC warning.
51057 2004-11-02 Bruno Haible <bruno@clisp.org>
51059 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
51062 2004-11-02 Bruno Haible <bruno@clisp.org>
51064 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
51065 function returns void.
51067 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
51069 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
51070 fflush_unlocked, flockfile, funlockfile, funlockfile,
51071 fputs_unlocked, putc_unlocked.
51073 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
51075 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
51076 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
51079 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
51081 * modules/getdate (Files): Add doc/getdate.texi.
51082 (Depends-on): Add setenv, xalloc.
51084 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
51086 * lib/getdate.y: Add support for TZ="foo" within a date string.
51087 Fix some bugs near time_t boundaries. Reject dates with
51088 out-of-range components, e.g., "Sept 31".
51089 Include <stdlib.h>, "setenv.h", "xalloc.h".
51090 (ISDIGIT_LOCALE): Remove; unused.
51091 Note that the TZ and time functions used here are not reentrant.
51092 (mktime_ok, get_tz): New functions.
51093 (TZBUFSIZE): New constant.
51094 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
51095 This requires that we sometimes generate our own TZ="XXX..." setting.
51097 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
51099 * doc/getdate.texi: New file, from coreutils with modifications for
51100 the new TZ parsing.
51102 2004-10-27 Derek R. Price <derek@ximbiot.com>
51104 * lib/mktime.c (not_equal_tm): Remove redundant check.
51106 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
51108 * modules/regex (lib_SOURCES): Add regex.c.
51109 Reported by James Youngman in
51110 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
51112 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
51114 * lib/getdate.y: Use Bison 1.875 features, and some minor
51115 code cleanups. This change does not affect semantics.
51116 Don't include <stdlib.h>; no longer needed.
51117 Don't include unlocked-io.h; only the "#if TEST" code uses
51118 stdio, and performance isn't crucial there.
51119 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
51120 Bison 1.875 features as described below.
51121 All uses of "PC." replaced by "pc->".
51122 (YYSTYPE): Add a forward declaration.
51123 (yylex, yyerror): Use full prototypes in forward decls.
51124 Use "%pure-parser" rather than obsolescent "%pure_parser".
51125 Use %parse-param and %lex-param instead of obsolescent
51126 YYPARSE_PARAM and YYLEX_PARAM.
51127 (meridian_table, month_and_day_table, time_units_table,
51128 relative_time_table, time_zone_table, military_table,
51129 lookup_zone, lookup_word, get_date):
51130 Use NULL instead of 0 where appropriate.
51131 (to_hour): Avoid abort (), to avoid a dependency on
51133 (yyerror, yylex): Now accepts parser_control * arg.
51134 (main) [TEST]: Use '\0' rather than 0 for char.
51136 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
51138 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
51140 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
51142 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
51143 It's now the caller's responsibility to handle the case where
51144 !HAVE_GETPAGESIZE && !defined getpagesize.
51146 * lib/mktime.c (leapyear): Arg is long int, not int.
51148 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
51150 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
51152 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
51154 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
51155 missing. Problem reported by James Youngman.
51157 2004-10-16 Simon Josefsson <jas@extundo.com>
51159 * gnulib-tool: Fix comments. Fix parse problem.
51160 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
51162 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
51164 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
51165 implementation of getopt_long. Problem reported by Alexander Taler in:
51166 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
51168 2004-10-15 Bruno Haible <bruno@clisp.org>
51170 * gnulib-tool: Untabify. Initialize supplied_libname.
51171 (func_usage): More homogenous output.
51172 (func_modules_transitive_closure, func_modules_to_filelist,
51173 func_emit_lib_Makefile_am): New functions.
51174 (func_import): New function, extracted from big case statement. Use
51175 func_get_license, func_modules_transitive_closure,
51176 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
51177 opt_lgpl. Don't use test -a, as it's not portable.
51178 (func_create_testdir): Use func_modules_transitive_closure,
51179 func_modules_to_filelist, func_emit_lib_Makefile_am.
51181 2004-10-15 Bruno Haible <bruno@clisp.org>
51183 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
51185 2004-10-15 Bruno Haible <bruno@clisp.org>
51187 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
51188 the portions belonging to each module.
51189 Suggested by Derek Robert Price <derek@ximbiot.com>.
51191 2004-10-12 Simon Josefsson <jas@extundo.com>
51193 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
51194 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
51197 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
51199 * modules/vsnprintf: New file.
51201 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
51203 * m4/vsnprintf.m4: New file.
51205 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
51207 * lib/vsnprintf.h: New file.
51208 * lib/vsnprintf.c: New file.
51210 2004-10-11 Bruno Haible <bruno@clisp.org>
51212 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
51215 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
51217 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
51219 2004-10-07 Bruno Haible <bruno@clisp.org>
51221 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
51222 fits into the provided buffer.
51224 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
51226 * lib/diacrit.c, diacrit.h: Add GPL notice.
51228 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
51230 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
51231 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
51232 This avoids a potential constant-folding bug.
51234 2004-10-05 Bruno Haible <bruno@clisp.org>
51236 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
51237 for the declaration of strsep.
51239 2004-10-05 Bruno Haible <bruno@clisp.org>
51241 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
51243 2004-10-04 Simon Josefsson <jas@extundo.com>
51245 * modules/memmem: New file.
51246 * tests/test-memmem.c: New file.
51247 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
51249 2004-10-04 Simon Josefsson <jas@extundo.com>
51251 * m4/memmem.m4: New file.
51253 2004-10-04 Simon Josefsson <jas@extundo.com>
51255 * lib/memmem.h: New file.
51256 * lib/memmem.c: New file, taken from glibc.
51258 2004-10-04 Simon Josefsson <jas@extundo.com>
51260 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
51261 '#ifdef USE_UNLOCKED_IO'.
51263 2004-10-04 Simon Josefsson <jas@extundo.com>
51265 * config/srclist.txt: Add memmem from glibc.
51267 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
51269 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
51271 * modules/argmatch, modules/argp, modules/closeout, modules/error,
51272 modules/exclude, modules/getdate, modules/getline,
51273 modules/getndelim2, modules/getpass, modules/getpass-gnu,
51274 modules/getusershell, modules/linebuffer, modules/md5,
51275 modules/mountlist, modules/posixtm, modules/readtokens,
51276 modules/readutmp, modules/regex, modules/sha1,
51277 modules/version-etc, modules/yesno:
51278 Remove dependency on unlocked-io.
51280 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
51282 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
51284 * m4/unlocked-io.m4: Add copyright notice.
51285 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
51287 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
51289 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
51290 * lib/xmalloc.c (xmemdup): Likewise.
51291 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
51292 XFREE): Remove these long-obsolescent macros.
51293 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
51294 * lib/xstrdup.c: Remove.
51296 * lib/regex.c (re_comp): Cast gettext return value to char *,
51297 Problem reported by Martin Neitzel via Mark D. Baushke.
51299 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
51301 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
51302 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
51303 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
51304 regex.c, sha1.c, version-etc.c, yesno.c:
51305 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
51306 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
51307 the includer's responsibility.
51309 Sync from coreutils.
51311 * lib/modechange.c (mode_compile): Don't decrement a pointer that
51312 points to the start of a string, as the C Standard says the
51313 resulting behavior is undefined.
51315 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
51316 simple -> simple_backups, numbered_existing ->
51317 numbered_existing_backups, numbered -> numbered_backups
51318 to avoid shadowing problems. All uses changed.
51319 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
51320 * lib/backupfile.c (check_extension, numbered_backup):
51321 Rename locals to avoid shadowing 'basename'.
51322 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
51325 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
51326 * lib/.cvsignore: Add getopt.h.
51328 2004-10-04 Bruno Haible <bruno@clisp.org>
51330 * modules/README: New file.
51331 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
51334 2004-10-02 Jim Meyering <jim@meyering.net>
51336 * lib/dirfd.h, getpagesize.h: Add copyright notice.
51338 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
51340 * modules/strsep: New file.
51342 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
51344 * m4/strsep.m4: New file.
51346 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
51348 * lib/strsep.h: New file.
51349 * lib/strsep.c: New file.
51351 2004-10-01 Simon Josefsson <jas@extundo.com>
51353 * lib/snprintf.c (snprintf): Handle size==0.
51355 2004-10-01 Simon Josefsson <jas@extundo.com>
51356 Bruno Haible <bruno@clisp.org>
51358 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
51359 (snprintf): Declare 'args'.
51361 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
51363 * lib/snprintf.c: Remove comments as to why each header is needed.
51365 2004-10-01 Bruno Haible <bruno@clisp.org>
51367 * MODULES.html.sh: Add strsep.
51369 2004-09-30 Simon Josefsson <jas@extundo.com>
51371 * modules/snprintf: New file.
51373 2004-09-30 Simon Josefsson <jas@extundo.com>
51375 * m4/snprintf.m4: New file.
51377 2004-09-30 Simon Josefsson <jas@extundo.com>
51379 * lib/snprintf.h, lib/snprintf.c: New files.
51381 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51383 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
51384 (hol_entry_help): Never translate an empty string.
51385 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
51386 * lib/argp.h (OPTION_NO_TRANS): New option.
51388 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
51390 * modules/argp (Maintainer): Replace Simon Josefsson
51391 by Sergey Poznyakoff.
51393 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
51395 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
51396 changes merged back into glibc.
51398 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
51400 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
51402 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
51404 * lib/xvasprintf.c: Include xalloc.h.
51405 (xvasprintf): Use xalloc_die, not xmalloc_die.
51407 2004-09-29 Bruno Haible <bruno@clisp.org>
51409 * modules/alloca-opt: New file, derived from modules/alloca.
51410 * modules/allocsa: Depend on alloca-opt instead of alloca.
51411 * modules/setenv: Likewise.
51412 * modules/vasnprintf: Likewise.
51413 * MODULES.html.sh: Add alloca-opt.
51415 2004-09-28 Simon Josefsson <jas@extundo.com>
51417 * gnulib-tool: New parameter --lgpl, to asseert that modules are
51418 LGPL, and to replace license template from GPL to LGPL.
51420 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
51422 * modules/dummy: Change license to LGPL.
51424 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
51426 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
51428 2004-09-24 Simon Josefsson <jas@extundo.com>
51430 * modules/minmax (License): Change from GPL to LGPL.
51432 2004-09-23 Simon Josefsson <jas@extundo.com>
51434 * gnulib-tool (--import): Typo.
51436 2004-09-23 Simon Josefsson <jas@extundo.com>
51438 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
51440 2004-09-22 Bruno Haible <bruno@clisp.org>
51442 * modules/*: Add 'License' field.
51443 * gnulib-tool: Accept --extract-license option.
51444 (func_get_license): New function.
51446 2004-09-21 Bruno Haible <bruno@clisp.org>
51448 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
51449 Reported by Simon Josefsson.
51451 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
51453 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
51454 gl_AC_TYPE_LONG_LONG.
51456 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
51458 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
51460 2004-09-18 Simon Josefsson <jas@extundo.com>
51461 and Paul Eggert <eggert@cs.ucla.edu>
51463 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
51464 calls with autoreconf. Define GL_LIB.
51466 2004-09-14 Karl Berry <karl@gnu.org>
51468 * config/srclist.txt: unsync setenv.c, sigh.
51470 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
51472 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
51473 Problem reported by Bruno Haible in:
51474 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
51476 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
51478 * config/srclist.txt: Comment out argp-pvh.c.
51480 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
51482 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
51483 in case some system header has #define'd it. Problem reported by
51484 Soeren D. Schulze in
51485 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
51487 2004-09-09 Karl Berry <karl@gnu.org>
51489 * regex.[ch]: delete from the root. These were supposed to be
51490 synced with emacs cvs, but this has not happened for about
51491 a year, and anyway nothing else uses emacs regex.[ch].
51492 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
51493 lib/regex[.ch] is untouched.
51495 2004-09-09 Bruno Haible <bruno@clisp.org>
51497 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
51499 2004-09-09 Bruno Haible <bruno@clisp.org>
51501 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
51503 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
51505 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
51507 * modules/xvasprintf: New file.
51508 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
51510 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
51512 * lib/xvasprintf.h: New file.
51513 * lib/xvasprintf.c: New file.
51514 * lib/xasprintf.c: New file.
51516 2004-09-08 Bruno Haible <bruno@clisp.org>
51518 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
51520 2004-09-08 Bruno Haible <bruno@clisp.org>
51522 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
51523 length is > INT_MAX.
51524 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
51527 2004-09-08 Bruno Haible <bruno@clisp.org>
51529 * lib/stdint_.h: New file, taken from GNU clisp.
51531 2004-09-08 Bruno Haible <bruno@clisp.org>
51532 Oskar Liljeblad <oskar@osk.mine.nu>
51534 * modules/stdint: New file.
51535 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
51537 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
51539 Import from coreutils.
51540 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
51541 strings on unbounded length. alloca's performance benefits aren't
51542 that important here.
51543 (V_STRDUP): Remove.
51544 (parse_with_separator): New function, with most of the internals
51545 of the old parse_user_spec. Allow user to omit both user and group,
51546 for compatibility with FreeBSD.
51547 Clone only the user name, not the entire spec.
51548 Do not set *uid, *gid unless entirely successful.
51549 Avoid memory leak in some failing cases.
51550 Fix regression for USER.GROUP reported by Dmitry V. Levin in
51551 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
51552 (parse_user_spec): Rewrite to use parse_with_separator.
51554 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
51556 * modules/userspec: Don't depend on alloca.
51558 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
51560 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
51562 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
51564 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
51565 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
51566 utimecmp, utimens, xnanosleep. Rename sha to sha1.
51568 2004-08-16 Simon Josefsson <jas@extundo.com>
51570 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
51571 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
51572 Add --dry-run for --import.
51573 Let user provided command line parameters override configure.ac
51576 2004-08-12 Simon Josefsson <jas@extundo.com>
51578 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
51579 as discussed with Paul Eggert in threads rooted at
51580 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
51582 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
51583 Before, the test was empty, and relied on ELIDE_CODE in source
51585 (gl_PREREQ_GETOPT): New macro.
51586 (gl_GETOPT): Use them.
51588 2004-08-12 Simon Josefsson <jas@extundo.com>
51590 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
51591 * lib/getopt_.h: Renamed from getopt.h.
51593 2004-08-12 Simon Josefsson <jas@extundo.com>
51595 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
51596 Change default library name from libfoo to libgnu.
51597 Now, if you have a configure.ac that says:
51600 gl_MODULES(error getopt etcetera)
51602 you can import all you need by running:
51603 ../gnulib/gnulib-tool --import
51605 * modules/getopt (Files): Rename getopt.h to getopt_.h.
51606 (Makefile.am): Rewrite, use logic from argz.
51607 (Include): Use <getopt.h> instead of "getopt.h".
51609 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
51611 * modules/argp (Files): Add m4/unlocked-io.m4.
51612 (Depends-on): Add extensions.
51614 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
51616 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
51617 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
51618 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
51619 Check for program_invocation_name, program_invocation_short_name,
51620 flockfile, funlockfile, features.h, _getopt_long_only_r.
51622 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
51624 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
51625 its complicated substitute.
51626 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
51627 and program_invocation_name.
51628 (__argp_basename) [!_LIBC]: Remove; the only use was
51629 replaced by its body.
51630 (__argp_short_program_name): Change condition from
51631 !defined __argp_short_program_name to
51632 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
51633 to match argp-namefrob.h.
51634 (__argp_failure): Don't assume strerror_r returns char *.
51635 * lib/argp-parse.c (N_): Define unconditionally.
51636 (argp_default_options): Fill out initializers with 0 to avoid
51639 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
51641 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
51644 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
51646 Merge from coreutils.
51648 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
51650 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
51651 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
51653 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
51655 Merge from coreutils.
51657 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
51658 wmemchr or wmemcpy. Problem reported by Robert Dahlem
51659 for Reliant Unix 5.43.
51661 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
51662 (union fooround): Use uintmax_t, not long int.
51663 The rest is a merge from libc:
51664 [defined _LIBC]: Include <shlib-compat.h>.
51665 (_obstack) [defined _LIBC]: Remove after 2.3.4.
51667 * lib/settime.c (settime): Recode to avoid warning with
51670 * lib/strverscmp.c: Convert to UTF-8.
51672 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
51674 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
51677 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
51679 * modules/xalloc-die: New file.
51680 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
51682 * modules/md5 (Files): Add m4/uint32_t.m4.
51683 * modules/sha1: Renamed from modules/sha.
51685 Rename lib/sha.h to lib/sha1.h.
51686 Rename lib/sha.c to lib/sha1.c.
51687 Rename m4/sha.m4 to m4/sha1.m4.
51688 (lib_SOURCES): Likewise.
51689 (configure.ac): Rename gl_SHA to gl_SHA1.
51690 (Include): sha.h -> sha1.h.
51692 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
51694 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
51695 * m4/sha1.m4: Renamed from sha.m4.
51696 (gl_SHA1): Renamed from gl_SHA. All uses changed.
51698 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
51700 * lib/obstack.h (obstack_empty_p):
51701 Don't assume that chunk->contents is suitably aligned.
51702 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
51703 Likewise. Problem reported by Benno in
51704 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
51706 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
51707 readable. This could be improved further but it'd take some work.
51709 2004-08-08 Simon Josefsson <jas@extundo.com>
51711 * modules/xgethostname (Depends-on): Remove exit and error (not
51714 * modules/getpass-gnu: Add getpass.h.
51715 (Depends-on): Add stdbool.
51716 * modules/getpass: Add getpass.h.
51718 2004-08-08 Simon Josefsson <jas@extundo.com>
51720 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
51721 Check getpass declaration.
51723 2004-08-08 Simon Josefsson <jas@extundo.com>
51725 * lib/xgethostname.c: Don't include error.h (not used).
51727 * lib/getpass.h: Add.
51728 * lib/getpass.c: Include getpass.h first.
51730 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
51732 * lib/xalloc-die.c: New file.
51733 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
51735 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
51736 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
51738 (_, N_, xalloc_die): Move to xalloc-die.c.
51739 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
51740 so that we needn't mess with xalloc_msg_memory_exhausted.
51742 * lib/sha1.h: Renamed from sha.h.
51743 (SHA1_H): Renamed from _SHA_H.
51744 (sha1_ctx): Renamed from sha_ctx.
51745 (sha1_init_ctx): Renamed from sha_init_ctx.
51746 (sha1_process_block): Renamed from sha_process_block.
51747 (sha1_process_bytes): Renamed from sha_process_bytes.
51748 (sha1_finish_ctx): Renamed from sha_finish_ctx.
51749 (sha1_read_ctx): Renamed from sha_read_ctx.
51750 (sha1_stream): Renamed from sha_stream.
51751 (sha1_buffer): Renamed from sha_buffer.
51752 * lib/sha1.c: Likewise; renamed from sha.c.
51753 Do not include <sys/types.h>.
51754 Include <stddef.h> rather than <stdlib.h>.
51756 2004-08-08 Bruno Haible <bruno@clisp.org>
51758 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
51759 FILESYSTEM_PREFIX_LEN.
51760 * lib/progreloc.c: Likewise.
51761 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
51763 2004-08-06 Simon Josefsson <jas@extundo.com>
51765 * modules/progname (Depends-on): Don't depend on stdbool.
51767 2004-08-06 Simon Josefsson <jas@extundo.com>
51769 * modules/getsubopt: New file.
51770 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51773 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
51775 More merge from coreutils.
51777 * m4/utimens.m4, m4/utimecmp.m4: New files.
51778 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
51779 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
51780 prereq.m4, sha.m4: Import changes from coreutils.
51782 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
51784 More merge from coreutils.
51785 * modules/raise, modules/readtokens0, modules/utimens:
51786 * modules/utimecmp, module/xnanosleep: New files.
51787 * modules/strftime: Add lib/strftime.h.
51788 Change include from <time.h> to "strftime.h".
51789 * modules/yesno: Add lib/yesno.h.
51790 * modules/backupfile: Remove lib/addext.c.
51791 * modules/euidaccess: Add stat-macros.h.
51792 * modules/canonicalize, modules/euidaccess,
51793 modules/filemode, modules/lchown, modules/makepath,
51794 modules/rmdir, modules/stat: Likewise.
51796 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
51799 * lib/argp-help.c (make_hol, hol_append): Don't assume that
51800 SIZE_MAX is a valid preprocessor constant.
51801 (__argp_basename): Change from "#ifndef _LIBC"
51802 to "#ifndef __argp_short_program_name", so that
51803 we don't compile these functions for tar.
51805 More merges from coreutils.
51806 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
51807 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
51808 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
51809 * lib/addext.c: Remove; no longer needed.
51810 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
51811 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
51812 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
51813 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
51814 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
51815 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
51816 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
51817 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
51818 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
51819 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51820 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
51821 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
51822 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
51823 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
51824 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
51825 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
51826 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
51827 Import changes from coreutils.
51829 2004-08-05 Simon Josefsson <jas@extundo.com>
51831 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
51833 2004-08-05 Simon Josefsson <jas@extundo.com>
51835 * m4/getsubopt.m4: New file.
51837 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
51839 Merge from coreutils.
51841 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
51842 * m4/getcwd-path-max.m4: New files.
51844 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
51845 FILESYSTEM_PREFIX_LEN ->
51846 FILE_SYSTEM_PREFIX_LEN.
51847 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
51848 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
51849 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
51850 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
51852 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
51853 prerequisite modules now handle the DOS stuff.
51854 Don't check for unistd.h.
51856 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
51858 Merge from coreutils.
51860 * lib/.gdb-history: Remove; this doesn't belong here.
51862 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
51863 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
51864 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
51865 * lib/getcwd.c: New files.
51867 * lib/dirname.h: Include <stdbool.h>.
51868 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
51869 for consistency with POSIX terminology. All uses changed.
51870 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
51871 (strip_trailing_slashes): Use bool for booleans.
51872 * lib/stripslash.c (strip_trailing_slashes): Likewise.
51874 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
51875 sometimes returns a positive errno value even when it succeeds.
51876 (print_errno_message) [!LIBC]: Fall back on strerror if
51877 __strerror_r fails.
51879 * lib/path-concat.c (mempcpy): Don't define if a system header defines
51880 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
51881 (longest_relative_suffix): New function.
51882 (path_concat): Use it. Assume first argument is not NULL.
51883 Port to DOS. Omit redundant separators.
51884 Report an error instead of returning NULL.
51885 Use mempcpy instead of memcpy.
51886 (xpath_concat): Remove: not declared or used.
51888 * lib/same.h: Include <stdbool.h>
51889 (same_name): Return bool, not int.
51890 * lib/same.c (same_name): Likewise.
51891 (errno): Don't declare; we assume C89 or better now.
51893 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
51894 if not already defined.
51896 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
51897 * lib/dup-safer.c (errno): Likewise.
51899 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
51901 Merge from coreutils.
51902 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
51903 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
51904 * modules/path-concat: Don't depend on strdup.
51906 2004-08-03 Simon Josefsson <jas@extundo.com>
51908 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
51909 * lib/progname.h: Don't include stdbool.h.
51911 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
51913 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
51914 * MODULES.html.sh (func_all_modules): Remove fatal.
51916 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
51918 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
51920 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
51922 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
51925 2004-08-02 Simon Josefsson <jas@extundo.com>
51927 * lib/getsubopt.h: New file, with comments from Bruno Haible.
51928 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
51929 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
51931 2004-08-01 Simon Josefsson <jas@extundo.com>
51933 * lib/xgetdomainname.c: Include stdlib.h, for free().
51935 2004-07-19 Bruno Haible <bruno@clisp.org>
51937 * MODULES.html.sh (func_all_modules): Add dummy.
51939 2004-07-16 Simon Josefsson <jas@extundo.com>
51941 * modules/dummy: New file.
51943 2004-07-16 Simon Josefsson <jas@extundo.com>
51945 * lib/dummy.c: New file.
51947 2004-07-16 Bruno Haible <bruno@clisp.org>
51949 * lib/backupfile.h: Add extern "C" for C++.
51950 * lib/closeout.h: Likewise.
51951 * lib/copy-file.h: Likewise.
51952 * lib/findprog.h: Likewise.
51953 * lib/full-write.h: Likewise.
51954 * lib/pathname.h: Likewise.
51955 * lib/progname.h: Likewise.
51956 * lib/stpcpy.h: Likewise.
51957 * lib/stpncpy.h: Likewise.
51958 * lib/strcase.h: Likewise.
51959 * lib/strstr.h: Likewise.
51960 * lib/xalloc.h: Likewise.
51962 * lib/mbswidth.h: Add extern "C" for C++.
51963 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
51965 2004-07-13 Robert Millan <robertmh@gnu.org>
51967 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
51969 2004-07-09 Simon Josefsson <jas@extundo.com>
51971 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
51972 failed without this.)
51974 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
51976 * modules/chown (Files): Add lib/fchown-stub.c, since
51977 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
51979 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
51981 * lib/fchown-stub.c: New file.
51983 2004-06-24 Jim Meyering <jim@meyering.net>
51985 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
51987 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
51989 * modules/argz: Omit "#include".
51991 * MODULES.html.sh (func_all_modules): Add calloc, to match
51992 2004-06-01 addition of calloc module.
51994 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
51996 * m4/argz.m4: New file, which is autoupdated from libtool.
51998 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
52000 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
52003 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
52005 * config/srclist-update: Don't insist on "USA." before the
52006 close-comment, as libtool omits the period and puts the */ on a
52008 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
52009 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
52011 2004-06-22 Gary V. Vaughan <gary@gnu.org>
52013 * modules/argz: New file.
52014 * MODULES.html.sh (func_all_modules): Add argz.
52016 2004-06-12 Jim Meyering <jim@meyering.net>
52017 and Paul Eggert <eggert@cs.ucla.edu>
52019 * modules/hash (Files): Add lib/xalloc.h.
52020 * modules/pipe (Depends-on): Add wait-process.
52021 * modules/stat (Depends-on): Add xalloc.
52022 * modules/userspec (Files): Add lib/userspec.h.
52025 Upgrade from gettext-0.13.
52026 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
52027 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
52028 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
52030 2004-06-10 Jim Meyering <jim@meyering.net>
52032 * lib/calloc.c: New file.
52034 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
52036 * lib/getdate.y (yylex): Allow space between sign and number.
52037 Problem reported by Dan Jacobson.
52039 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
52041 Merge from coreutils CVS.
52043 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
52044 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
52045 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
52046 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
52047 xstrtol.m4: Fix copyright date and/or serial number.
52049 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
52050 See if we need an fchown replacement.
52051 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
52052 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
52053 and use the replacement function if we detect either defect.
52055 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
52058 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
52059 and Jim Meyering <jim@meyering.net>
52061 Merge from coreutils CVS.
52063 * lib/stat-macros.h: New file, with contents from file-type.h
52064 and coreutils' system.h.
52065 * lib/file-type.c: Include "stat-macros.h".
52066 * lib/file-type.h (file_type): Move all macro definitions to new file,
52069 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
52070 Wrap old code with this conditional.
52071 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
52072 function that does not dereference symlinks.
52073 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
52075 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
52076 dependency problems.
52077 (xreadlink): Accept new arg SIZE, for efficiency.
52078 All decls and uses changed.
52079 * lib/xreadlink.h: Include <stddef.h>, for size_t.
52081 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
52082 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
52084 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
52087 2004-06-01 Jim Meyering <jim@meyering.net>
52089 * m4/calloc.m4: New file.
52091 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
52093 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
52094 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
52095 Also, fix a typo in a diagnostic.
52097 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
52099 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
52100 or AC_FUNC_REALLOC.
52102 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
52104 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
52105 macros to be defined.
52106 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
52107 the allocator returns NULL because the requested size is zero.
52109 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
52111 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
52112 var. Add comment explaining why libc still defines it. This
52113 merges the following patch from glibc:
52114 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
52116 2004-05-20 Andreas Schwab <schwab@suse.de>
52118 * m4/free.m4: Replace free if it not known to work, not the other
52121 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
52123 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
52124 present in glibc since revision 1.1 of this file.
52125 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
52126 obstack_alignment_mask, obstack_alloc, obstack_base,
52127 obstack_blank, obstack_blank_fast, obstack_chunk_size,
52128 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
52129 obstack_grow0, obstack_init, obstack_int_grow,
52130 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
52131 obstack_next_free, obstack_object_size, obstack_ptr_grow,
52132 obstack_ptr_grow_fast, obstack_room): Remove declarations of
52133 nonexistent functions.
52135 2004-05-18 Karl Berry <karl@gnu.org>
52137 * config/srclist.txt: break link for vasnprintf.c.
52139 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
52141 Port obstack to the AS/400, where pointers are 16 bytes wide and
52142 you cannot cast an integer to a valid pointer. This patch is
52143 currently waiting to be integrated into glibc; see
52144 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
52146 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
52147 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
52148 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
52149 (struct obstack): temp member is now a union of a pointer and
52150 an integer, instead of an integer. All integer uses changed.
52151 This does not affect the physical layout of struct obstack,
52152 except on hosts (like the AS/400) where the size or alignment of
52153 void * is greater than that of ptrdiff_t.
52154 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
52155 __STDC__)]: Store temporary in pointer member of union, not
52157 * lib/obstack.c: Include <stddef.h>, for offsetof.
52158 (struct fooalign): Remove; it doesn't need a name.
52159 (union fooround): Change double to long double, and add void *.
52160 (DEFAULT_ALIGNMENT): Use offsetof to compute.
52161 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
52162 not a macro. Hence the values are always int; so remove all
52163 casts-to-int in uses.
52165 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
52167 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
52168 we can get this patch merged into glibc.
52170 2004-05-17 Derek R. Price <derek@ximbiot.com>
52171 Paul Eggert <eggert@cs.ucla.edu>
52173 * m4/argp: Depend on alloca.
52175 2004-05-17 Derek R. Price <derek@ximbiot.com>
52176 Paul Eggert <eggert@cs.ucla.edu>
52178 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
52181 2004-05-17 Bruno Haible <bruno@clisp.org>
52183 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
52184 precision that consists of a '.' followed by an empty digit string.
52185 Patch by Tor Lillqvist <tml@iki.fi>.
52187 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
52189 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
52190 for backward compatibility with older code. We need our own
52191 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
52192 it under some other name, and our alloca.h will define it.
52194 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
52195 Derek Price <derek@ximbiot.com>
52197 * lib/alloca.c: Include <alloca.h>, to get our interface.
52198 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
52199 include <alloca.h> first. Use C89 prototype for alloca; this
52200 requires including <stddef.h> for size_t. Use extern "C" if C++.
52201 Use #elif for simplicity, since we can assume C89 now.
52202 Don't try to source the system alloca.h since it will not be found
52203 and to prevent recursively including its replacement.
52204 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
52205 * lib/regex.c: Likewise.
52207 2004-05-16 Derek Price <derek@ximbiot.com>
52208 Paul Eggert <eggert@cs.ucla.edu>
52210 getline cleanup. This changes the getndelim2 API: both order of
52211 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
52214 * lib/getline.c: Don't include stddef.h or stdio.h, since our
52215 interface does that.
52216 (getline): Always use getdelim, so that we don't have two
52217 copies of this code.
52218 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
52220 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
52221 (GETNDELIM2_MAXIMUM): New macro.
52222 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
52223 instead of the old practice of delim2==0. All callers changed.
52224 Return -1 on overflow, instead of returning junk.
52225 Do not set *linesize unless allocation succeeds.
52226 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
52227 that we include sys/types.h.
52228 * lib/getnline.h: Likewise.
52229 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
52230 (getndelim2): Reorder arguments.
52231 * lib/getnline.c (getnline, getndelim):
52232 Don't discard the NMAX argument.
52233 (getnline): Invoke getndelim, to avoid code duplication.
52234 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
52235 of (size_t) -1 by callers of the getnline family.
52237 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
52239 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
52240 Check for gettimeofday.
52241 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
52242 Check for settimeofday, stime.
52244 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
52246 * lib/nanosleep.c (suspended): Change its type from int to
52247 sig_atomic_t volatile.
52248 (first_call): Make it private to rpl_nanosleep, and have it
52249 be zero initially as that's a bit faster.
52250 (my_usleep): Round up fractional times instead of truncating them,
52251 as this is the usual meaning for 'sleep'.
52253 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
52255 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
52256 (ENOSYS): Define if not defined.
52257 (settime): Fall back on stime if it exists and settimeofday fails.
52258 But don't bother with fallbacks if a method fails with errno == EPERM.
52260 2004-05-11 Jim Meyering <jim@meyering.net>
52262 Prior to this change, the save_cwd caller required read access to the
52263 current directory on most systems (ones with the fchdir function).
52265 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
52266 fails, try write-only, and finally, resort to using xgetcwd.
52268 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
52270 * lib/obstack.c, obstack.h: Import changes from libc.
52272 2004-04-28 Bruno Haible <bruno@clisp.org>
52274 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
52275 also implicitly appends .exe to executables.
52276 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
52277 accepts Windows pathnames.
52278 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
52279 Treat Cygwin like Windows, since it now accepts Windows pathnames.
52280 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
52281 Treat Cygwin like Windows, since it now accepts Windows pathnames.
52282 Reported by Derek Robert Price <derek@ximbiot.com>.
52284 2004-04-21 Karl Berry <karl@gnu.org>
52286 * config/srclist.txt (localcharset.c): break sync.
52288 2004-04-20 Paul Eggert <eggert@twinsun.com>
52290 * m4/host-os.m4: Add a copyright notice.
52292 2004-04-20 Jim Meyering <jim@meyering.net>
52294 Change UTILS_ to gl_ in AC_DEFINE'd names.
52295 Change utils_- and jm_-prefixed variables, too.
52296 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
52297 UTILS_FUNC_MKDIR_TRAILING_SLASH.
52298 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
52300 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
52301 Don't emit trailing blanks.
52302 Also rename jm_-prefixed variables to have gl_ prefix.
52304 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
52305 Also rename jm_-prefixed variables to have gl_ prefix.
52307 * m4/jm-macros.m4: Reflect the renamings.
52308 * m4/prereq.m4: Likewise.
52310 2004-04-20 Jim Meyering <jim@meyering.net>
52312 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
52315 2004-04-20 Jim Meyering <jim@meyering.net>
52316 Bruno Haible <bruno@clisp.org>
52318 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
52319 memory when realloc fails.
52321 2004-04-19 Jim Meyering <jim@meyering.net>
52323 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
52324 now that readutmp.c may call `free (0)'.
52326 2004-04-19 Bruno Haible <bruno@clisp.org>
52328 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
52329 * m4/inttypes_h.m4: Likewise.
52330 * m4/stdint_h.m4: Likewise.
52331 * m4/intmax_t.m4: Likewise.
52332 * m4/uintmax_t.m4: Likewise.
52334 2004-04-18 Jim Meyering <jim@meyering.net>
52336 * m4/prereq.m4: Don't forbid jm_ prefix.
52338 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
52339 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
52340 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
52341 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
52342 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
52343 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
52344 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
52345 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
52346 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
52347 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
52348 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
52349 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
52350 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
52351 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
52352 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
52353 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
52354 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
52355 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
52356 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
52358 2004-04-18 Jim Meyering <jim@meyering.net>
52360 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
52361 failure, don't leak memory and do call END_UTMP_ENT.
52363 2004-04-16 Jim Meyering <jim@meyering.net>
52365 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
52366 coreutils' stat program.
52367 (gl_PREREQ): Don't require jm_PREREQ_STAT.
52369 2004-04-11 Paul Eggert <eggert@twinsun.com>
52371 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
52373 (CHAR_BIT): Remove, since we assume C89.
52374 Include <stdint.h> if available, as per current Autoconf CVS advice.
52376 2004-03-31 Jim Meyering <jim@meyering.net>
52378 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
52379 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
52380 * m4/xalloc.m4: Likewise.
52382 2004-03-30 Paul Eggert <eggert@twinsun.com>
52384 Merge from coreutils.
52386 * m4/inttostr.m4: New file.
52387 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
52388 Require AM_STDBOOL_H and gl_TIMESPEC instead.
52389 Require gl_CLOCK_TIME.
52390 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
52392 2004-03-30 Paul Eggert <eggert@twinsun.com>
52394 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
52395 not bool, to be more consistent with Unix conventions.
52396 Suggested by Bruno Haible.
52398 Merge from coreutils.
52400 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
52401 * lib/umaxtostr.c: New files.
52403 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
52404 the usual <time.h> dance.
52405 (get_date): Change signature to support fractional time stamps.
52406 All callers changed.
52407 * lib/getdate.y: Include "getdate.h" first, as we can now
52408 assume C89 and don't need to worry about 'const'.
52409 Similarly, include "unlocked-io.h" near start, not in middle.
52410 Include <limits.h>.
52411 (textint.value): Use long int rather than int.
52412 (textint.digits): Use size_t rather than int.
52413 (BILLION, LOG10_BILLION): New constants.
52414 (parser_control): New member rel_ns. Members day_ordinal,
52415 time_zone, month, day, hour, minutes, rel_year, rel_month,
52416 rel_day, rel_hour, rel_minutes, rel_seconds
52417 are now long int, not int. Member seconds is now struct timespec,
52418 not int. New member timespec_seen. Members dates_seen, days_seen,
52419 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
52421 (%union.intval): Now long int, not int.
52422 New member timespec.
52423 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
52424 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
52425 (spec): Now is a timespec or an item list.
52426 (timespec, items): New nonterminals.
52427 (time, rel, relunit, number, get_date):
52428 Add support for fractional seconds.
52429 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
52430 (gmtime, localtime, mktime): Remove decls; not needed with C89.
52431 (to_hour): First arg is now long int, not int.
52432 (to_year): Returns long int, not int.
52433 Don't treat year -70 like 70.
52434 (tm_diff): Returns long int, not int.
52435 (lookup_word): Use bool instead of int when appropriate.
52436 (yylex): Use size_t for count, not int.
52437 Detect overflow when parsing large integer constants.
52438 Add support for fractions.
52439 (get_date): Make pointers 'const' if possible.
52440 Use more-portable code to detect integer overflow.
52441 (main) [TEST]: Adjust to above changes. Test for localtime failure.
52442 Don't use ctime; it's not reliable if the year has >4 digits.
52444 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
52445 This is for compatibility with BSD.
52447 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
52448 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
52449 From coreutils' system.h.
52451 * lib/userspec.c: Don't include "posixver.h".
52452 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
52453 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
52454 compatible extension. Simplify code by removing a boolean int
52455 that was always nonzero if a string was nonnull.
52457 2004-03-30 Jim Meyering <jim@meyering.net>
52459 Merge from coreutils.
52461 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
52462 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
52463 on some systems one must include <grp.h> before it.
52464 Reported by Christian Krackowizer.
52466 2004-03-30 Jim Meyering <jim@meyering.net>
52468 Merge from coreutils.
52470 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
52472 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
52473 an empty input stream.
52475 * lib/readtokens.c: Include <stdbool.h>.
52476 (readtoken): Use `size_t' rather than int/long.
52477 All callers adjusted.
52478 Use `bool' rather than `int' where appropriate.
52479 Use memset rather than an explicit loop.
52480 Use x2nrealloc rather than xrealloc.
52481 Allow the use of `\0' as a delimiter.
52482 (readtokens): Likewise.
52483 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
52485 2004-03-30 Jim Meyering <jim@meyering.net>
52487 * m4/realloc.m4: Remove file, since now it does no more than
52488 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
52489 the `configure.ac' section of module/realloc.
52490 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
52492 2004-03-30 Bruno Haible <bruno@clisp.org>
52494 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
52497 2004-03-29 Paul Eggert <eggert@twinsun.com>
52499 Merge changes to getloadavg.c from coreutils and Emacs.
52501 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
52502 Define to an expression, not to the empty string.
52503 Include cloexec.h and xalloc.h.
52504 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
52505 Use set_cloexec_flag rather than rolling our own.
52506 * lib/cloexec.c, lib/cloexec.h: New files.
52508 2004-03-29 Paul Eggert <eggert@twinsun.com>
52510 * m4/cloexec.m4: New file.
52512 2004-03-18 Paul Eggert <eggert@twinsun.com>
52514 * lib/getopt.h: Sync with libc CVS.
52516 2004-03-18 Paul Eggert <eggert@twinsun.com>
52517 Bruno Haible <bruno@clisp.org>
52519 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
52522 2004-03-18 Paul Eggert <eggert@twinsun.com>
52523 Bruno Haible <bruno@clisp.org>
52525 * lib/mbswidth.h: Include <wchar.h> only if
52526 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
52528 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
52530 2004-03-09 Paul Eggert <eggert@twinsun.com>
52532 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
52533 Sync with libc CVS.
52534 * lib/getopt_int.h: New file, also synced from libc.
52536 2004-03-09 Paul Eggert <eggert@twinsun.com>
52538 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
52539 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
52540 Bring back getopt.c, getopt.h, getopt1.c.
52542 2004-03-07 Paul Eggert <eggert@twinsun.com>
52544 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
52545 All uses changed. Check for sa_sigaction member; this fixes
52546 a bug first reported by Jason Andrade in
52547 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
52549 2004-03-07 Paul Eggert <eggert@twinsun.com>
52551 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
52552 '#if' expressions. Unlike the code it replaces, it does not
52553 depend on (defined _SC_PAGESIZE). However, it does depend on
52554 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
52555 first reported by Jason Andrade in
52556 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
52558 2004-02-25 Simon Josefsson <jas@extundo.com>
52560 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
52562 2004-02-25 Simon Josefsson <jas@extundo.com>
52564 * lib/strdup.h: New file.
52565 * lib/strdup.c: Include it.
52566 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
52567 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
52569 2004-02-23 Karl Berry <karl@gnu.org>
52571 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
52572 (from fencepost.gnu.org:/gd/gnuorg).
52574 2004-02-23 Karl Berry <karl@gnu.org>
52576 * config/srclistvars.sh (GNUORG) [karl]: redefine.
52577 * config/srclist.txt: add maintain/standards documents.
52579 2004-02-18 Bruno Haible <bruno@clisp.org>
52581 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
52582 Reported by Derek Robert Price <derek@ximbiot.com>.
52584 2004-02-16 Karl Berry <karl@gnu.org>
52586 * config/mkinstalldirs, install-sh: update from automake.
52588 2004-02-06 Karl Berry <karl@gnu.org>
52590 * m4/po.m4: update from gettext 0.14.1.
52592 2004-02-06 Karl Berry <karl@gnu.org>
52594 * lib/config.charset: update from gettext 0.14.1.
52596 2004-02-05 Paul Eggert <eggert@twinsun.com>
52598 Add comments and code, prompted by suggestions from Bruno Haible
52600 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
52601 describing the enum quoting_style values.
52602 * lib/quotearg.c (quotearg_alloc): New function.
52603 (quotearg_buffer_restyled): Treat lone { and } as special.
52604 Treat = as special. Work around bug with older shells
52605 that "see" a '\' that is really the 2nd byte of a multibyte char.
52606 Quote empty string with shell_quoting_style.
52608 2004-02-03 Bruno Haible <bruno@clisp.org>
52610 * m4/pipe.m4: New file, from GNU gettext.
52612 2004-02-03 Bruno Haible <bruno@clisp.org>
52614 * lib/pipe.h: New file, from GNU gettext.
52615 * lib/pipe.c: New file, from GNU gettext.
52617 2004-01-27 Bruno Haible <bruno@clisp.org>
52619 * m4/execute.m4: New file, from GNU gettext.
52621 2004-01-27 Bruno Haible <bruno@clisp.org>
52623 * lib/execute.h: New file, from GNU gettext.
52624 * lib/execute.c: New file, from GNU gettext.
52625 * lib/w32spawn.h: New file, from GNU gettext.
52627 2004-01-24 Paul Eggert <eggert@twinsun.com>
52629 Merge from diffutils.
52631 * lib/file-type.c (file_type): Add typed memory objects.
52632 * lib/file-type.h (S_TYPEISTMO): New macro.
52634 * lib/c-stack.h (c_stack_action): Remove argv argument.
52635 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
52636 (die): Don't calculate message unless segv_action returns.
52637 (get_stack_location, min_address_from_argv, max_address_from_argv,
52638 volatile stack_base, volatile_stack_size): Remove.
52639 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
52640 that every segmentation violation is a stack overflow. (Ouch!)
52641 See Debian bug 136249 (still outstanding) for more info about why
52642 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
52644 2004-01-24 Paul Eggert <eggert@twinsun.com>
52646 Exit-status fix from coreutils.
52648 Use exit_failure consistently in place of EXIT_FAILURE,
52649 so that program exit statuses are consistent on failure.
52651 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
52652 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
52653 * lib/argmatch.h: Comment fix to match the above.
52654 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
52655 Now a macro referring to exit_failure, instead of a separate
52656 variable. Include "exitfail.h" to get it.
52657 * lib/xstrtol.h: Include "exitfail.h".
52658 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
52660 * lib/long-options.c (parse_long_options): Use prototype
52661 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
52664 2004-01-21 Jim Meyering <jim@meyering.net>
52666 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
52667 so as not to conflict with a different-sized __mktime_internal
52668 function in GNU libc.
52669 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
52670 Problem building statically-linked `ls' reported by Michael Brunnbauer.
52672 2004-01-20 Karl Berry <karl@gnu.org>
52674 * config/config.guess: update from config.
52676 * config/srclistvars.sh: GNUWWWLICENSES for karl.
52678 2004-01-20 Bruno Haible <bruno@clisp.org>
52680 Safer stack allocation.
52681 * lib/setenv.c: Include allocsa.h.
52682 (alloca): Remove fallback definition.
52683 (freea): Remove macro.
52684 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
52687 2004-01-20 Bruno Haible <bruno@clisp.org>
52689 * m4/eealloc.m4: New file, from GNU gettext.
52691 2004-01-20 Bruno Haible <bruno@clisp.org>
52693 * m4/allocsa.m4: New file, from GNU gettext.
52695 2004-01-20 Bruno Haible <bruno@clisp.org>
52697 * lib/xallocsa.h: New file, from GNU gettext.
52698 * lib/xallocsa.c: New file, from GNU gettext.
52700 2004-01-20 Bruno Haible <bruno@clisp.org>
52702 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
52704 2004-01-20 Bruno Haible <bruno@clisp.org>
52706 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
52707 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
52710 2004-01-20 Bruno Haible <bruno@clisp.org>
52712 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
52715 2004-01-20 Bruno Haible <bruno@clisp.org>
52717 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
52719 2004-01-20 Bruno Haible <bruno@clisp.org>
52721 * lib/eealloc.h: New file.
52723 2004-01-20 Bruno Haible <bruno@clisp.org>
52725 * lib/binary-io.h: Avoid warnings on Cygwin.
52727 2004-01-20 Bruno Haible <bruno@clisp.org>
52729 * lib/allocsa.h: New file, from GNU gettext.
52730 * lib/allocsa.c: New file, from GNU gettext.
52732 2004-01-18 Karl Berry <karl@gnu.org>
52734 * doc/gpl.texi, doc/lgpl.texi: new files.
52736 2004-01-18 Karl Berry <karl@gnu.org>
52738 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
52739 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
52741 2004-01-15 Paul Eggert <eggert@twinsun.com>
52743 Merge from coreutils.
52745 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
52746 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
52747 (gl_DEFAULT_POSIX2_VERSION): Move
52748 the documentation from 'configure' into 'config.hin',
52749 so that 'configure --help' isn't burdened by it and
52750 we don't have to worry about its formatting there.
52751 Reword the documentation so that it's more succinct
52752 and can be run together into a single paragraph.
52753 * m4/same.m4 (gl_SAME): Check for pathconf.
52755 2004-01-15 Paul Eggert <eggert@twinsun.com>
52757 Merge from coreutils.
52759 * lib/posixver.c: Include posixver.h.
52761 * lib/same.c: Include <stdbool.h>, <limits.h>.
52762 (_POSIX_NAME_MAX): Define if not defined.
52764 (same_name): If file names are silently truncated, report
52765 that the file names are the same if they are the same after
52766 the silent truncation.
52768 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
52769 conversion function.
52770 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
52771 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
52774 2004-01-15 Jim Meyering <jim@meyering.net>
52776 Merge from coreutils.
52778 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
52779 if no library is required.
52780 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
52781 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
52782 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
52783 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
52784 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
52785 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
52786 value, $ac_cv_search_crypt, if it's "none required".
52787 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
52788 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
52789 not gl_FUNC_GETLOADAVG.
52790 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
52791 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
52793 2004-01-15 Jim Meyering <jim@meyering.net>
52795 Merge from coreutils.
52797 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
52798 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
52799 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
52801 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
52802 optional configure-time default.
52804 * lib/version-etc.c (version_etc_copyright): Update copyright date.
52806 * lib/xreadlink.c (xreadlink): Correct outdated comment.
52808 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
52810 Merge from coreutils.
52812 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
52813 value, $ac_cv_search_nanosleep, if it's "none required".
52815 2004-01-14 Paul Eggert <eggert@twinsun.com>
52817 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
52818 with like-named macro in fnmatch.c.
52819 (EXT): Use an internal constant instead.
52821 Merge fnmatch patches from glibc.
52822 * lib/fnmatch.c (mbsinit): Remove define.
52823 Add libc_hidden_ver (__fnmatch, fnmatch).
52824 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
52825 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
52827 2004-01-14 Karl Berry <karl@gnu.org>
52829 * config/install-sh: update from automake.
52831 2004-01-13 Karl Berry <karl@gnu.org>
52833 * config/install-sh: update from automake.
52835 2004-01-09 Karl Berry <karl@gnu.org>
52837 * config/install-sh: update from automake.
52839 2004-01-05 Karl Berry <karl@gnu.org>
52841 * config/config.{sub,guess}: update from config.
52843 2003-12-31 Karl Berry <karl@gnu.org>
52845 * config/depcomp: update from automake.
52847 2003-12-14 Karl Berry <karl@gnu.org>
52849 * lib/config.charset: update from gettext-runtime.
52851 2003-12-03 Paul Eggert <eggert@twinsun.com>
52853 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
52854 Bug reported by Alfred M. Szmidt.
52856 2003-12-03 Bruno Haible <bruno@clisp.org>
52858 * m4/gettext.m4: Upgrade from gettext-0.13.
52859 * m4/po.m4: Upgrade from gettext-0.13.
52860 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
52861 * m4/intmax.m4: New file, from gettext-0.13.
52862 * m4/printf-posix.m4: New file, from gettext-0.13.
52864 2003-11-29 Karl Berry <karl@gnu.org>
52866 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
52868 2003-11-25 Paul Eggert <eggert@twinsun.com>
52869 Bruno Haible <bruno@clisp.org>
52871 * lib/printf-parse.h: Don't include sys/types.h.
52872 (ARG_NONE): New macro.
52873 (char_directive): Change type of *arg_index fields to size_t.
52874 * lib/printf-parse.c: Don't include sys/types.h.
52875 (SSIZE_MAX): Remove macro.
52876 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
52877 Remove unnecessary overflow check.
52878 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
52881 2003-11-25 Bruno Haible <bruno@clisp.org>
52883 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
52885 2003-11-25 Bruno Haible <bruno@clisp.org>
52887 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
52890 2003-11-24 Paul Eggert <eggert@twinsun.com>
52892 * modules/alloca: Remove dependency on xalloc.
52894 2003-11-24 Paul Eggert <eggert@twinsun.com>
52896 * lib/alloca.c: Remove dependency on xalloc module.
52897 (xalloc_die): Remove.
52898 (memory_full) [!defined emacs]: New macro.
52899 [!defined emacs]: Don't include xalloc.h.
52900 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
52901 address arithmetic overflows. Change datatypes a bit to avoid
52904 2003-11-22 Jim Meyering <jim@meyering.net>
52906 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
52909 2003-11-21 Karl Berry <karl@gnu.org>
52911 * config/config.{sub,guess}: update from config.
52913 2003-11-18 Karl Berry <karl@gnu.org>
52915 * config/config.{sub,guess}: update from config.
52917 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
52919 2003-11-17 Paul Eggert <eggert@twinsun.com>
52921 * README: Mention that S+T cannot overflow if S is the size of
52922 an existing object and T is sufficiently small.
52924 2003-11-17 Jim Meyering <jim@meyering.net>
52926 On systems without utime and without a utimes function capable of
52927 dealing with a NULL struct utimbuf* argument, this utime replacement
52928 could -- in unusual circumstances -- leak a file descriptor.
52929 * lib/utime.c: Include <unistd.h> and <errno.h>.
52930 (utime_null): Be sure to close `fd' and to preserve errno.
52931 Reported by Geoff Collyer via Arnold Robbins.
52933 2003-11-17 Bruno Haible <bruno@clisp.org>
52935 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
52936 (Depends-on): Add xsize.
52938 2003-11-17 Bruno Haible <bruno@clisp.org>
52940 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
52942 2003-11-17 Bruno Haible <bruno@clisp.org>
52944 * lib/vasnprintf.c (alloca): Remove fallback definition.
52945 (freea): Remove definition.
52946 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
52947 Reported by Paul Eggert.
52949 2003-11-16 Paul Eggert <eggert@twinsun.com>
52950 Bruno Haible <bruno@clisp.org>
52952 Protect against address arithmetic overflow.
52953 * lib/printf-args.h: Include stddef.h.
52954 (arguments): Change type of field 'count' to size_t.
52955 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
52956 'unsigned int' where appropriate.
52957 * lib/printf-parse.h: Include sys/types.h.
52958 (char_directive): Change type of *arg_index fields to ssize_t.
52959 (char_directives): Change type of fields 'count', max_*_length to
52961 * lib/printf-parse.c: Include sys/types.h and xsize.h.
52962 (SSIZE_MAX): Define fallback value.
52963 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
52964 instead of 'int' where appropriate. Check a_allocated, d_allocated
52965 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
52966 * lib/vasnprintf.c: Include xsize.h.
52967 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
52968 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
52969 overflow. Avoid wraparound when converting a width or precision from
52972 2003-11-16 Bruno Haible <bruno@clisp.org>
52974 Update from GNU gettext.
52975 * lib/printf-parse.c: Generalize to it can be compiled for wide
52977 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
52978 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
52979 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
52980 SNPRINTF): New macros.
52981 Don't include <alloca.h> if the file is used inside libintl.
52982 (local_wcslen): New function, for Solaris 2.5.1.
52983 (VASNPRINTF): Use it instead of wcslen.
52985 2003-11-16 Bruno Haible <bruno@clisp.org>
52987 * lib/xsize.h (xmax): New function.
52988 (xsum, xsum3, xsum4): Declare as "pure" functions.
52990 2003-11-12 Paul Eggert <eggert@twinsun.com>
52992 * modules/xalloc (Files): Undo latest change, since xalloc.h
52993 no longer needs SIZE_MAX or PTRDIFF_MAX.
52995 2003-11-12 Paul Eggert <eggert@twinsun.com>
52997 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
53000 2003-11-12 Paul Eggert <eggert@twinsun.com>
53002 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
53003 "return", to pacify some unknown compiler. Problem reported
53004 by Joerg Schilling.
53006 2003-11-12 Paul Eggert <eggert@twinsun.com>
53008 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
53009 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
53010 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
53011 heuristic is just as accurate as far as we know, and it removes a
53012 dependency on size_max.m4 and ptrdiff_max.m4.
53014 2003-11-11 Bruno Haible <bruno@clisp.org>
53016 * modules/xsize (Files): Add m4/size_max.m4.
53017 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
53019 2003-11-11 Bruno Haible <bruno@clisp.org>
53021 * m4/size_max.m4: New file.
53022 * m4/ptrdiff_max.m4: New file.
53023 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
53024 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
53025 (gl_XALLOC): Invoke it.
53027 2003-11-11 Bruno Haible <bruno@clisp.org>
53029 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
53030 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
53033 2003-11-10 Paul Eggert <eggert@twinsun.com>
53035 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
53036 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
53037 rejected some allocations of exactly SIZE_MAX - 2 bytes.
53039 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
53040 not (size_t) -1, since it's defined here.
53042 2003-11-09 Karl Berry <karl@gnu.org>
53044 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
53046 2003-11-06 Paul Eggert <eggert@twinsun.com>
53048 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
53049 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
53050 Reject sizes of exactly SIZE_MAX bytes.
53051 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
53052 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
53054 2003-11-05 Bruno Haible <bruno@clisp.org>
53056 * lib/xsize.h: Include limits.h, to avoid a possible collision with
53057 SIZE_MAX defined in <limits.h> on Solaris.
53059 2003-11-04 Jim Meyering <jim@meyering.net>
53061 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
53062 variable names, rather than @VAR@.
53063 * modules/poll: Likewise.
53065 2003-11-04 Bruno Haible <bruno@clisp.org>
53067 * modules/xsize: New file.
53068 * modules/linebreak: Depend on xsize.
53069 * MODULES.html.sh (func_all_modules): Add xsize.
53071 2003-11-04 Bruno Haible <bruno@clisp.org>
53073 * m4/xsize.m4: New file.
53075 2003-11-04 Bruno Haible <bruno@clisp.org>
53077 * lib/xsize.h: New file.
53078 * lib/linebreak.c: Include xsize.h.
53079 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
53080 argument for overflow.
53081 Suggested by Paul Eggert.
53083 2003-11-03 Karl Berry <karl@gnu.org>
53085 * config/config.{guess,sub}: update from config.
53087 2003-11-03 Jim Meyering <jim@meyering.net>
53089 * modules/userspec (lib_SOURCES): Add userspec.h.
53090 (Include): Add "userspec.h".
53091 Improve description.
53093 2003-11-03 Jim Meyering <jim@meyering.net>
53095 * lib/userspec.c: Include "userspec.h".
53096 * lib/userspec.h: New file.
53098 2003-11-03 Bruno Haible <bruno@clisp.org>
53100 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
53102 2003-11-03 Bruno Haible <bruno@clisp.org>
53104 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
53105 available, to avoid (extremely rare) race condition.
53106 Suggested by Paul Eggert.
53108 2003-11-02 Karl Berry <karl@gnu.org>
53110 * config/srclist.txt (vasprintf.c): sync broken, sigh.
53112 2003-10-31 Paul Eggert <eggert@twinsun.com>
53114 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
53115 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
53116 (read_filesystem_list): Set and use me_type_malloced.
53117 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
53118 whatever the type happens to be), for brevity and consistency.
53119 Check for size calculation overflow on Alphas running OSF/1.
53121 2003-10-31 Jim Meyering <jim@meyering.net>
53123 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
53125 * lib/linebuffer.c: Include <string.h> for declaration of memset.
53127 2003-10-30 Paul Eggert <eggert@twinsun.com>
53128 Bruno Haible <bruno@clisp.org>
53130 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
53131 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
53133 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
53135 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
53136 netbsd*-gnu*. Suggested by Robert Millan.
53138 2003-10-29 Paul Eggert <eggert@twinsun.com>
53140 * modules/group-member: Depend on stdbool.
53142 2003-10-29 Paul Eggert <eggert@twinsun.com>
53144 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
53146 2003-10-29 Paul Eggert <eggert@twinsun.com>
53148 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
53149 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
53150 after the 'gnu' in these cases. This fixes some bugs in the
53151 previous change, and is based on suggestions by Robert Millan.
53153 2003-10-29 Paul Eggert <eggert@twinsun.com>
53155 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
53156 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
53158 * lib/quotearg.c (quotearg_n_options): Use it.
53159 * lib/group-member.c: Include <stdbool.h>.
53160 (free_group_info): Arg is now const *; don't free arg.
53161 (get_group_info): Now returns bool and accepts struct group_info *,
53162 rather than returning a malloc'ed struct group_info *.
53163 All uses changed. Check for overflow in internal size calculation.
53165 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
53166 rather than xmalloc/xrealloc.
53167 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
53168 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
53169 conformance bug: the old code used a pointer after freeing the
53170 storage that it addressed.
53171 * lib/hash.c (hash_initialize): Simplify the code by using
53172 xalloc_oversized rather than doing it by hand.
53173 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
53174 the buffer preserved. Use free and xmalloc instead.
53175 * lib/quotearg.c (quotearg_n_options): Likewise.
53176 Use a simpler test for size overflow. Don't use xalloc_oversized
53177 because unsigned int might be wider than size_t (!); this suggests
53178 that we should switch from unsigned int to size_t for slot numbers.
53180 2003-10-28 Paul Eggert <eggert@twinsun.com>
53182 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
53183 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
53184 NetBSD kernels. Requested by Richard Stallman.
53186 2003-10-27 Paul Eggert <eggert@twinsun.com>
53188 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
53189 to allocate the returned structure. Do not allocate a subarray,
53190 as x2nrealloc will do that.
53191 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
53192 instead of xnrealloc.
53193 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
53195 2003-10-27 Bruno Haible <bruno@clisp.org>
53197 * lib/stdbool_.h: Better support for BeOS.
53199 2003-10-26 Paul Eggert <eggert@twinsun.com>
53201 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
53204 2003-10-26 Paul Eggert <eggert@twinsun.com>
53206 * lib/xalloc.h (xalloc_oversized): New static inline function, for
53207 callers that want to do their own size-overflow checking. Include
53208 <stdbool.h>, since xalloc_oversized returns bool.
53209 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
53210 to use xalloc_oversized.
53212 Add two functions x2realloc, x2nrealloc, for programs that grow
53213 arrays dynamically by doubling their sizes.
53214 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
53215 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
53218 Port to C99 semantics for 'inline' of external functions.
53219 Bug reported by Bruno Haible.
53220 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
53221 with the old contents of xnmalloc.
53222 (xnmalloc, xmalloc): Use it.
53223 (xnrealloc_inline): New static inline function,
53224 with the old contents of xnrealloc.
53225 (xnrealloc, xrealloc): Use it.
53227 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
53230 2003-10-26 Karl Berry <karl@gnu.org>
53232 * config/srclist.txt (COPYING.DOC): no longer available from
53233 /gd/gnuorg; don't know where the ultimate source is.
53235 2003-10-25 Paul Eggert <eggert@twinsun.com>
53237 Fix several address-calculation bugs in the hash modules,
53238 plus some minor code cleanup.
53240 * lib/hash.h: Include <stdbool.h>, for bool.
53241 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
53242 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
53243 hash_get_n_entries, hash_get_max_bucket_length,
53244 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
53245 hash_rehash): Use size_t rather than unsigned.
53246 * lib/hash.c (struct hash_table, hash_get_n_buckets,
53247 hash_get_n_buckets_used, hash_get_n_entries,
53248 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
53249 hash_get_entries, hash_do_for_each, hash_string, is_prime,
53250 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
53252 (SIZE_MAX): Define if not defined.
53253 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
53254 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
53256 Use const * when possible.
53257 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
53258 (check_tuning): Fix bug: if tuning parameters were very close to
53259 0 or 1, rounding errors could have caused subscript violations.
53260 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
53261 (hash_initialize): Add 'fail:' label
53262 to free table and return NULL, and use it to simplify code.
53263 Use calloc rather than clearing the storage ourself.
53264 (hash_initialize, hash_rehash): Check for arithmetic overflow in
53265 buffer size calculations.
53266 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
53267 Include <stddef.h>, for size_t.
53268 * lib/hash-pjw.c (hash_pjw): Likewise.
53269 Switch to method described by Bruno Haible.
53270 Include <limits.h>, for CHAR_BIT.
53271 (SIZE_BITS): New macro.
53273 2003-10-23 Paul Eggert <eggert@twinsun.com>
53275 * m4/getline.m4 (AM_FUNC_GETLINE):
53276 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
53277 hosts. Problem reported by Derek Robert Price in
53278 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
53279 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
53280 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
53282 2003-10-21 Paul Eggert <eggert@twinsun.com>
53284 * lib/getndelim2.c (getndelim2): When size calculation overflows,
53285 ceiling the allocation at NMAX bytes rather than silently
53286 discarding input bytes before NMAX is reached. This makes
53287 a difference only if NMAX exceeds SIZE_MAX / 2.
53289 * lib/obstack.c: Merge from glibc.
53290 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
53291 Add libc_hidden_def (_obstack_newchunk).
53292 (_obstack_free) [! defined _LIBC]: Remove.
53293 [defined _LIBC]: Make a strong alias from obstack_free, rather than
53294 a clone of the function body.
53295 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
53296 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
53298 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
53300 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
53303 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
53304 (obstack_ptr_grow_fast, obstack_int_grow_fast):
53305 Don't use lvalue casts, as GCC plans to remove support for them
53306 in GCC 3.5. Reported by Joseph S. Myers. This bug
53307 was also present in the non-GCC version, indicating that this
53308 code had always been buggy and had never been widely used.
53309 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
53310 Use the fast variant of each macro, rather than copying the
53311 definiens of the fast variant; that way, we'll be more likely to
53312 catch future bugs in the fast variants.
53314 2003-10-20 Bruno Haible <bruno@clisp.org>
53316 * modules/wait-process: New file.
53317 * MODULES.html.sh (func_all_modules): Add wait-process.
53319 2003-10-20 Bruno Haible <bruno@clisp.org>
53321 * m4/wait-process.m4: New file.
53323 2003-10-20 Bruno Haible <bruno@clisp.org>
53325 * lib/wait-process.h: New file, from GNU gettext.
53326 * lib/wait-process.c: New file, from GNU gettext.
53328 2003-10-19 Jim Meyering <jim@meyering.net>
53330 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
53333 2003-10-18 Karl Berry <karl@gnu.org>
53335 * config/config.guess: update from config.
53337 2003-10-16 Paul Eggert <eggert@twinsun.com>
53339 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
53340 (getgroups): First arg is int, not size_t.
53341 Don't let 'free' mangle errno.
53343 2003-10-16 Paul Eggert <eggert@twinsun.com>
53345 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
53347 2003-10-16 Karl Berry <karl@gnu.org>
53349 * config/config.{guess,sub}: update from config.
53351 2003-10-16 Jim Meyering <jim@meyering.net>
53353 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
53356 2003-10-15 Paul Eggert <eggert@twinsun.com>
53358 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
53359 (SIZE_MAX): Remove.
53360 (new_exclude, add_exclude_file): Initial size no longer needs to
53362 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
53363 our own address arithmetic overflow checking.
53365 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
53366 (fnmatch): Do not alloca more than 2000 wide characters;
53367 instead, use malloc for large buffers.
53368 Check for address arithmetic overflow, and return -1
53369 with errno set to ENOMEM in that case.
53370 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
53371 (NEW_PATTERN): Do not alloca more than 8000 bytes;
53372 instead, return -1. Check for address arithmetic overflow.
53374 2003-10-14 Paul Eggert <eggert@twinsun.com>
53376 Handle invalid suffixes and overflow independently, so that
53377 callers can treat them independently as needed. Fix some bugs in
53378 suffix handling, e.g., "100k@" was not diagnosed as an invalid
53379 suffix for a human-readable blocksize. The major caller-visible
53380 change is the addition of a new
53381 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
53382 that both overflow and suffix chars were found.
53384 * lib/human.c (humblock): Don't check separately for invalid suffix
53385 char; that is xstrtoumax's job (now that its bug is fixed).
53386 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
53387 INTMAX_MAX]: New macros.
53388 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
53389 TYPE_MAXIMUM): New macros.
53390 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
53391 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
53392 if overflow occurs, as it's what __strtol does and it's more useful
53394 (__xstrtol): If __strtol reports some error other than ERANGE,
53395 reflect it to the caller as LONGINT_INVALID. If it reports
53396 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
53397 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
53398 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
53400 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
53401 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
53402 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
53403 [defined UINTMAX_MAX]: New macros.
53405 2003-10-14 Bruno Haible <bruno@clisp.org>
53407 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
53409 2003-10-14 Bruno Haible <bruno@clisp.org>
53411 * m4/sig_atomic_t: New file, from GNU gettext.
53412 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
53414 2003-10-14 Bruno Haible <bruno@clisp.org>
53416 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
53417 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
53418 Also use volatile where needed.
53420 2003-10-12 Paul Eggert <eggert@twinsun.com>
53422 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
53423 Change maintainer from Bruno Haible to 'all'.
53425 2003-10-12 Paul Eggert <eggert@twinsun.com>
53427 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
53429 2003-10-12 Paul Eggert <eggert@twinsun.com>
53431 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
53432 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
53433 and define in terms of the other primitives.
53434 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
53435 (SIZE_MAX): Define if not already defined.
53436 (array_size_overflow): New function.
53437 (xalloc_die): Abort instead of exiting if 'error' returns.
53438 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
53439 (xmalloc, xrealloc): Use them.
53440 (xcalloc): Check for address arithmetic overflow.
53441 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
53442 a bit faster than strcpy.
53444 2003-10-10 Simon Josefsson <jas@extundo.com>
53446 * modules/argp (Depends-on): Add restrict and strcase.
53448 2003-10-10 Simon Josefsson <jas@extundo.com>
53450 * m4/argp.m4: Add AC_C_INLINE.
53452 2003-10-08 Paul Eggert <eggert@twinsun.com>
53454 Merge getpass from libc, plus a few fixes.
53456 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
53457 Include <stdbool.h>.
53458 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
53459 __fsetlocking to empty.
53460 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
53461 do include <bits/libc-lock.h>.
53462 Do not include <fcntl.h>; not needed.
53463 [_LIBC]: Include <wchar.h>.
53464 (NOTCANCEL_MODE): New macro.
53465 (flockfile, funlockfile) [_LIBC]: New macros.
53466 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
53467 [!_LIBC]: New macros.
53468 (call_fclose): New function.
53469 (getpass): Use it. Save tty stream separately; this simplifies the
53470 code and makes it more reliable if stdin happens to equal stdout.
53471 Invoke __fsetlocking on tty.
53472 Handle thread cancellation if needed.
53473 Namespace cleanup (use __tcgetattr, __getline).
53474 Use bool for Booleans.
53475 [USE_IN_LIBIO]: Handle wide streams.
53476 [!_LIBC]: Unconditionally do the fseek, since we don't know what
53477 stream might go where.
53479 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
53480 doesn't have to include <stdio.h> before us.
53481 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
53482 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
53483 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
53484 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
53485 if not declared, so that we can use getpass.c code from libc without
53487 (flockfile, ftrylockfile, funlockfile): New macros.
53489 2003-10-08 Paul Eggert <eggert@twinsun.com>
53491 * modules/getpass: Depend on stdbool.
53493 2003-10-08 Paul Eggert <eggert@twinsun.com>
53495 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
53497 2003-10-07 Karl Berry <karl@gnu.org>
53499 * config/config.{guess,sub}: update from config.
53501 2003-10-06 Jim Meyering <jim@meyering.net>
53502 Bruno Haible <bruno@clisp.org>
53504 This lets translators provide better translations for the
53505 "Written by ..." part of --version output.
53506 * lib/version-etc.h: Include stdarg.h.
53507 (version_etc_copyright): Declare as readonly.
53508 (version_etc): Make this function variadic with a NULL-terminated list
53509 of author name strings.
53510 (version_etc_va): New declaration.
53511 * lib/version-etc.c: Include stdarg.h, stdlib.h.
53512 (version_etc_copyright): Declare as readonly.
53513 (version_etc_va): New function. Provide a different translatable string
53514 for each possible number of authors < 10. Abbreviate when there are 10
53516 (version_etc): Make this function variadic. Call version_etc_va.
53517 Suggestion from Gary V. Vaughan.
53519 * lib/long-options.h (parse_long_options): Change prototype: the
53520 authors string is moved to the end and becomes variadic.
53521 * lib/long-options.c: Include stdarg.h.
53522 (parse_long_options): Make this function variadic, too.
53523 Call version_etc_va, not version_etc.
53525 2003-10-06 Bruno Haible <bruno@clisp.org>
53527 * modules/version-etc-2: Remove file.
53528 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
53530 2003-10-06 Bruno Haible <bruno@clisp.org>
53532 * modules/fatal-signal: New file.
53533 * MODULES.html.sh (func_all_modules): Add fatal-signal.
53535 2003-10-06 Bruno Haible <bruno@clisp.org>
53537 * m4/fatal-signal.m4: New file.
53538 * m4/signalblocking.m4: New file, from GNU gettext.
53540 2003-10-06 Bruno Haible <bruno@clisp.org>
53542 * lib/version-etc-2.h: Remove file.
53543 * lib/version-etc-2.c: Remove file.
53545 2003-10-06 Bruno Haible <bruno@clisp.org>
53547 * lib/fatal-signal.h: New file, from GNU gettext.
53548 * lib/fatal-signal.c: New file, from GNU gettext.
53550 2003-10-05 Paul Eggert <eggert@twinsun.com>
53552 * README: Rework advice for preventing empty .o files.
53553 Don't recommend ELIDE constructs. Recommend <stddef.h>,
53556 2003-10-04 Karl Berry <karl@gnu.org>
53558 * lib/argp*: update from libc.
53560 2003-10-04 Karl Berry <karl@gnu.org>
53562 * config/config.{guess,sub}: update from config.
53564 2003-10-02 Bruno Haible <bruno@clisp.org>
53566 * modules/lchown (Include): Add lchown.h.
53567 * modules/time_r (Include): Use "..." syntax.
53568 * modules/xgetdomainname (Include): Add xgetdomainname.h.
53570 2003-10-01 Simon Josefsson <jas@extundo.com>
53572 * MODULES.html.sh (func_all_modules): Move gethostname from section
53573 'based on' to section 'lacking' POSIX:2001.
53575 2003-10-01 Larry Jones <lawrence.jones@eds.com>
53577 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
53578 to output mode on the same stream.
53580 2003-09-29 Paul Eggert <eggert@twinsun.com>
53582 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
53583 Fix arg typo in previous patch.
53585 2003-09-28 Jim Meyering <jim@meyering.net>
53587 * lib/error.c: Correct cpp indentation.
53589 2003-09-27 Paul Eggert <eggert@twinsun.com>
53591 * modules/free: New file.
53593 2003-09-27 Paul Eggert <eggert@twinsun.com>
53595 * m4/free.m4: New file.
53597 2003-09-27 Paul Eggert <eggert@twinsun.com>
53599 * lib/minmax.h (MIN, MAX)
53600 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
53601 Omit the special code that used __typeof__, since we worry that
53602 it could be more trouble than it's worth. See:
53603 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
53604 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
53606 * lib/free.c: New file.
53608 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
53610 Trivial fixes to Makefile.am parts of module listings.
53611 * modules/strstr: Append strstr.h to lib_SOURCES.
53612 * modules/strcase: Likewise, for strcase.h.
53614 2003-09-27 Karl Berry <karl@gnu.org>
53616 * config/mkinstalldirs: update from automake.
53618 2003-09-26 Paul Eggert <eggert@twinsun.com>
53620 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
53621 (error_tail): Do not loop, reallocating temporary buffer, since
53622 the output cannot contain more wide characters than the input
53623 contains bytes, the size must be big enough already. This avoids
53624 one potential size overflow calculation. Check for size overflow
53625 when calculating temporary buffer size. Free temporary buffer
53626 when done, if it was allocated with malloc; this plugs a memory
53627 leak. Remove casts from void * to pointers, that are no longer
53628 needed now that we're assuming C89 or better.
53630 Merge error changes from glibc.
53632 * lib/error.c, error.h: Update copyright notice header to match glibc.
53633 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
53634 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
53635 Disable cancellation while printing error.
53636 * lib/error.h: Prepend __ to parameter names.
53638 2003-09-26 Jim Meyering <jim@meyering.net>
53640 * lib/error.c (error_tail): Move some declarations
53641 into inner scope where the local variables are used.
53643 2003-09-26 Bruno Haible <bruno@clisp.org>
53645 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
53647 Don't define stpncpy through config.h; it's now done through stpncpy.h.
53649 2003-09-26 Bruno Haible <bruno@clisp.org>
53651 * lib/stpncpy.h (gnu_stpncpy): New declaration.
53652 (stpncpy): Define as alias for gnu_stpncpy.
53653 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
53655 2003-09-25 Simon Josefsson <jas@extundo.com>
53657 * lib/xgetdomainname.h: New file.
53658 * lib/xgetdomainname.c: New file.
53660 2003-09-25 Simon Josefsson <jas@extundo.com>
53661 Bruno Haible <bruno@clisp.org>
53663 * modules/getdomainname: New file.
53664 * modules/xgetdomainname: New file.
53665 * MODULES.html.sh (func_all_modules): Add getdomainname,
53668 2003-09-25 Simon Josefsson <jas@extundo.com>
53669 Bruno Haible <bruno@clisp.org>
53671 * m4/getdomainname.m4: New file.
53673 2003-09-25 Simon Josefsson <jas@extundo.com>
53674 Bruno Haible <bruno@clisp.org>
53676 * lib/getdomainname.h: New file.
53677 * lib/getdomainname.c: New file.
53679 2003-09-25 Karl Berry <karl@gnu.org>
53681 * lib/argp-fmtstream.c, argp-help.c: update from libc.
53683 2003-09-25 Karl Berry <karl@gnu.org>
53685 * config/install-sh: update from automake.
53687 2003-09-25 Bruno Haible <bruno@clisp.org>
53689 * modules/version-etc-2: New file, from modules/version-etc with
53691 * MODULES.html.sh (func_all_modules): Add version-etc-2.
53693 2003-09-25 Bruno Haible <bruno@clisp.org>
53695 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
53696 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
53698 2003-09-24 Simon Josefsson <jas@extundo.com>
53700 * modules/xgethostname: Add xgethostname.h.
53702 2003-09-24 Paul Eggert <eggert@twinsun.com>
53704 * lib/linebuffer.c (freebuffer): Don't free the argument, just
53705 the buffer associated with the argument. Bug reported by
53708 2003-09-24 Paul Eggert <eggert@twinsun.com>
53710 * README: Document assumptions that 'int' is at least 32 bits
53711 wide, that integer arithmetic is 2's complement without overflow,
53712 that there are no holes in integer values, that adding sizes of
53713 two nonoverlapping objects can't overflow, and that all-bits-zero
53714 yields scalar zero. Fix spelling and capitalization typos.
53716 2003-09-19 Karl Berry <karl@gnu.org>
53718 * lib/argp.h: update from libc.
53720 2003-09-17 Paul Eggert <eggert@twinsun.com>
53722 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
53723 to avoid spurious warnings like "AC_RUN_IFELSE was called before
53724 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
53726 2003-09-17 Paul Eggert <eggert@twinsun.com>
53728 * gnulib-tool: Use "test -h", not "test -L", for portability
53729 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
53730 (tags_regexp): Remove, since \| doesn't conform to POSIX.
53731 (sed_extract_prog): Issue s commands one-by-one, rather than
53732 using \| in one s command.
53734 2003-09-16 Paul Eggert <eggert@twinsun.com>
53736 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
53737 input error, instead of returning NULL the next time we are called
53738 (and therefore losing track of errno).
53740 2003-09-16 Bruno Haible <bruno@clisp.org>
53742 * gnulib-tool (func_create_testdir): Warn about duplicated
53745 2003-09-15 Paul Eggert <eggert@twinsun.com>
53747 * modules/argmatch, modules/fatal, modules/obstack,
53748 modules/xalloc, modules/xgethostname: Sort dependencies by
53749 importance, not alphabetically.
53751 2003-09-15 Paul Eggert <eggert@twinsun.com>
53753 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
53754 fails, so that the caller gets the proper errno.
53756 * lib/readutmp.c (read_utmp): Likewise.
53757 Check for fstat error. Close stream and free storage
53760 2003-09-14 Karl Berry <karl@gnu.org>
53762 * config/srclist.txt (strdup.c): disable for c89 changes.
53764 2003-09-14 Jim Meyering <jim@meyering.net>
53766 * lib/getloadavg.c: Correct cpp indentation.
53767 * lib/strdup.c: Likewise.
53768 * lib/vasnprintf.c: Likewise.
53770 2003-09-14 Bruno Haible <bruno@clisp.org>
53772 * modules/fwriteerror: New file.
53773 * MODULES.html.sh (func_all_modules): Add fwriteerror.
53775 2003-09-14 Bruno Haible <bruno@clisp.org>
53777 * lib/fwriteerror.h: New file.
53778 * lib/fwriteerror.c: New file.
53780 2003-09-12 Paul Eggert <eggert@twinsun.com>
53782 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
53783 modules/xgethostname, modules/xalloc: Depend on exit.
53785 2003-09-12 Paul Eggert <eggert@twinsun.com>
53787 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
53789 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
53790 and AC_MINIX, too, so that their extensions are available.
53792 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
53793 This macro has been superseded by gl_BACKUPFILE.
53795 More patches to assume C89 or better.
53797 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
53799 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
53801 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
53802 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
53803 Include <string.h>, <stdlib.h> unconditionally.
53804 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
53805 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
53806 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
53807 headers or for string.h.
53808 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
53811 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
53813 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
53814 * m4/userspec.m4 (gl_USERSPEC): Likewise.
53815 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
53816 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
53817 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53818 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
53820 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
53821 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
53822 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
53824 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
53825 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
53826 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
53829 2003-09-12 Paul Eggert <eggert@twinsun.com>
53831 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
53832 * lib/obstack.c [!defined _LIBC]: Likewise.
53833 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
53834 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
53835 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
53837 More changes to assume C89 or better.
53839 * lib/error.c (error_tail): Assume vprintf.
53841 * lib/argmatch.c (getenv): Remove decl.
53842 * lib/progreloc.c (get_full_program_name): Define via prototype.
53843 * lib/setenv.c (clearenv): Likewise.
53844 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
53846 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
53847 (malloc, memcpy): Remove decls.
53848 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
53849 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
53850 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
53851 (memcpy): Remove macro.
53852 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
53853 (__P): Remove. All uses removed.
53854 (PTR): Remove. All uses changed to void *.
53855 (CHAR_BIT, NULL): Remove.
53856 (spaces, zeros, memset_space, memset_zero)
53857 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
53859 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
53860 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
53861 Define with prototype.
53862 Remove now-unnecessary prototype decl.
53863 (extra_args_spec): Assume ANSI C. All uses changed.
53864 (extra_args_spec_iso): Remove.
53865 (my_strftime, emacs_strftimeu): Define via prototype.
53866 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
53868 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
53869 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
53870 (strtoul, strtol): Remove decls.
53871 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
53873 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
53874 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
53875 (LOCALE_PARAM_PROTO): New macro.
53876 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
53877 (INTERNAL (strtol), strtol): Define with a prototype.
53878 (PARAMS): Remove. All uses removed.
53879 * lib/tempname.c: Include <string.h> unconditionally.
53880 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
53881 * lib/xgethostname.c (main): Define with a prototype.
53882 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
53883 Include <stdlib.h> unconditionally.
53884 (calloc, malloc, realloc, free): Remove decls.
53885 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
53886 Include <stdlib.h> unconditionally. Sort include file names.
53888 (xstrtod): Define with a prototype.
53889 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
53890 (strtol, strtoul): Remove decls.
53892 2003-09-11 Paul Eggert <eggert@twinsun.com>
53894 More patches to assume C89 or better.
53895 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
53896 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
53897 string.h, memchr, STDC_HEADERS.
53899 2003-09-11 Paul Eggert <eggert@twinsun.com>
53901 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
53902 Include <stdlib.h>, <string.h> unconditionally.
53903 Remove now-unnecessary cast to char *.
53904 * lib/strnlen.c: Include <string.h> unconditionally.
53905 * lib/yesno.c (yesno): Define with a prototype.
53907 2003-09-11 Bruno Haible <bruno@clisp.org>
53909 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
53911 2003-09-10 Jim Meyering <jim@meyering.net>
53913 * lib/error.c: Correct indentation of cpp directives.
53915 2003-09-10 Bruno Haible <bruno@clisp.org>
53917 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
53918 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
53919 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
53920 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
53921 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
53922 <stdlib.h> and <string.h> checks.
53923 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
53924 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
53926 2003-09-10 Bruno Haible <bruno@clisp.org>
53928 * lib/strcspn.c: Include <string.h> unconditionally.
53929 * lib/strpbrk.c: Include <string.h> unconditionally.
53930 * lib/strstr.c: Include <string.h> unconditionally.
53931 * lib/unicodeio.c: Include <string.h> unconditionally.
53932 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
53933 * lib/unsetenv.c: Likewise.
53934 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
53935 * lib/yesno.c: Include <stdlib.h> unconditionally.
53936 (rpmatch): Add prototype.
53938 2003-09-09 Paul Eggert <eggert@twinsun.com>
53940 More patches to assume C89 or better.
53941 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
53942 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
53943 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
53945 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
53947 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
53949 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
53951 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
53952 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
53953 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
53955 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
53956 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
53958 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
53960 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
53961 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
53962 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
53963 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
53964 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
53965 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
53967 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
53968 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
53969 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
53970 C headers, or for string.h.
53971 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
53972 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
53973 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
53974 headers, memory.h, stdlib.h, string.h, strings.h.
53975 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
53976 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
53977 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
53979 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
53980 headers, memory.h, string.h.
53981 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
53982 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
53984 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
53986 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
53987 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
53988 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
53989 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
53990 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
53992 2003-09-09 Paul Eggert <eggert@twinsun.com>
53996 * lib/acosl.c (main): Use a prototype.
53997 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
54000 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
54002 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
54003 (getopt, etopt_long, getopt_long_only, _getopt_internal)
54004 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
54006 * lib/getopt.c (const): Remove macro.
54007 Include <string.h> unconditionally.
54008 (my_index): Remove; all uses changed to strchr.
54009 (strlen): Remove decl.
54010 (exchange): Remove forward decl; no longer needed.
54011 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
54012 Define with prototype.
54013 * lib/getopt1.c (const): Remove macro.
54014 (getopt_long, getopt_long_only, main): Define with prototype.
54016 * lib/getugroups.c: Include <string.h> unconditionally.
54018 * lib/getusershell.c: Include <stdlib.h> unconditionally.
54019 (getusershell, setusershell, endusershell, readname, main):
54020 Define with prototypes.
54022 * lib/group-member.c: Include group-member.h first.
54023 Include <stdlib.h> unconditionally.
54025 * lib/hard-locale.c: Include hard-locale.h first.
54026 Include <stdlib.h>, <string.h> unconditionally.
54028 * lib/hash.c (free, malloc): Remove decls.
54029 Include <stdlib.h> unconditionally.
54031 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
54032 (getenv): Do not declare.
54034 * lib/idcache.c: Include <string.h> unconditionally.
54036 * lib/long-options.c: Include long-options.h first, to test interface.
54037 Include <stdlib.h> unconditionally.
54039 * lib/makepath.c: Include makepath.h first, to test interface.
54040 Include <stdlib.h> and <string.h> unconditionally.
54042 * lib/linebuffer.c: Include <stdlib.h>.
54043 (free): Remove decl.
54045 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
54046 stddef.h. rpl_malloc returns void *, not char *.
54047 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
54050 * lib/md5.h: Include <limits.h> unconditionally.
54051 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
54052 (__P): Remove; all uses removed.
54053 * lib/md5.c: Include "md5.h" first.
54054 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
54055 md5_buffer, md5_process_bytes, md5_process_block):
54056 Define with prototypes.
54057 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
54058 * lib/sha.c: Include "sha.h" first.
54059 Include <stdlib.h>, <string.h> unconditionally.
54061 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
54062 * lib/memcmp.c (__ptr_t): Likewise.
54063 * lib/memrchr.c (__ptr_t): Likewise.
54064 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
54065 Include <string.h> unconditionally.
54066 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
54067 * lib/memchr.c: Include <stdlib.h> unconditionally.
54068 * lib/memchr.c (LONG_MAX): Remove.
54069 * lib/memrchr.c (LONG_MAX): Likewise.
54070 * lib/memchr.c (__memchr): Define via a prototype.
54071 * lib/memrchr.c (__memrchr): Likewise.
54072 * lib/memcmp.c (__P): Remove, and remove all uses.
54073 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
54074 Remove forward decls; no longer needed.
54075 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
54076 Use types required by C89 in prototype.
54078 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
54079 * lib/savedir.c: Likewise.
54080 * lib/mkdir.c (free): Remove decl.
54081 * lib/rmdir.c (rmdir): Define with a prototype.
54082 * lib/savedir.c: Include savedir.h first, to test interface.
54084 * lib/mktime.c (STDC_HEADERS): Remove.
54085 Include <stdlib.h>, <string.h> unconditionally.
54087 * lib/modechange.c: Include <stdlib.h> unconditionally.
54088 (malloc): Remove decl.
54090 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
54091 (free): Remove decl.
54093 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
54094 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
54095 (This type really should be intptr_t, but that's a C99ism.)
54096 (_obstack_memcpy): Remove: all uses changed to memcpy.
54097 Include <string.h> unconditionally.
54098 (struct obstack): Assume __STDC__ for types of members
54099 chunkfun, freefun, extra_arg.
54100 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
54101 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
54102 obstack_begin, obstack_specify_allocation,
54103 obstack_specify_allocation_with_arg, obstack_chunkfun,
54104 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
54105 Remove unprototyped decls and the macros that use them.
54106 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
54107 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
54108 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
54109 (defined __STDC__ && __STDC__)]:
54110 Remove nonprototyped code.
54111 Include <stdlib.h> unconditionally.
54112 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
54113 _obstack_allocated_p, _obstack_free, obstack_free,
54114 _obstack_memory_used, print_and_abort):
54115 Define using prototypes.
54116 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
54117 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
54118 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
54119 obstack_next_free, obstack_object_size, obstack_room) [0]:
54120 Remove unused, unprototyped code.
54122 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
54124 * lib/physmem.c (physmem_total, physmem_available, main): Define
54127 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
54128 (main): Define with a prototype.
54130 * lib/posixver.c (getenv): Remove decl.
54132 * lib/putenv.c (malloc): Returns void *, not char *.
54133 Include <string.h> unconditionally.
54134 (strchr, memcpy, NULL): Do not define.
54136 * lib/readtokens.c: Include readtokens.h first, to test interface.
54137 Include <stdlib.h>, <string.h> unconditionally.
54138 (init_tokenbuffer): Define with a prototype.
54140 * lib/regex.c (PARAMS): Remove. All uses removed.
54141 All uses of _RE_ARGS removed, too.
54142 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
54144 (bzero): Assume memset exists.
54145 (memcmp, memcpy, NULL): Remove.
54146 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
54147 char, or assignments to local vars of type signed char.
54148 (init_syntax_once, PREFIX(extract_number_and_incr),
54149 PREFIX(print_partial_compiled_pattern),
54150 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
54151 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
54152 PREFIX(regex_grow_registers), PREFIX(regex_compile),
54153 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
54154 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
54155 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
54156 wcs_compile_range, byte_compile_range, truncate_wchar,
54157 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
54158 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
54159 count_mbs_length, wcs_re_match_2_internal,
54160 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
54161 PREFIX(alt_match_null_string_p),
54162 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
54163 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
54164 regfree, PREFIX(extract_number)): Define with prototype. Remove
54165 now-unnecessary declaration, if any.
54166 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
54168 Remove now-unnecessary casts among pointer types.
54169 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
54171 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
54172 (free): Remove decl.
54174 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
54176 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
54177 (free): Remove decl.
54179 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
54180 * lib/xgetcwd.c: Likewise.
54182 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
54183 (free): Remove decl.
54185 * lib/strchrnul.c (strchrnul): Define with a prototype.
54186 Fix bug: c_in was not converted to char before searching.
54188 The following changes are not K&R related:
54190 * lib/group-member.h: Include <sys/types.h>, so that this file is
54192 * lib/makepath.h: Likewise.
54194 * lib/getusershell.c (readname, default_index, line_size, readname):
54195 Use size_t, not int, for sizes.
54196 (readname): If the size overflows, report an error instead of
54199 2003-09-09 Paul Eggert <eggert@twinsun.com>
54201 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
54204 2003-09-09 Paul Eggert <eggert@twinsun.com>
54206 * README: New section: portability guidelines.
54208 2003-09-09 Derek Robert Price <derek@ximbiot.com>
54210 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
54213 2003-09-09 Derek Robert Price <derek@ximbiot.com>
54215 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
54217 2003-09-08 Paul Eggert <eggert@twinsun.com>
54219 Assume C89 or better; remove K&R cruft.
54220 A few of these changes were first proposed by Derek Robert Price
54221 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
54223 * lib/addext.c: Include <string.h> unconditionally.
54224 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
54225 Don't declare getenv or malloc.
54227 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
54228 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
54230 (find_stack_direction, alloca): Use prototypes.
54232 * lib/atexit.c (atexit): Define using a prototype.
54234 * lib/basename.c, dirname.c, stripslash.c:
54235 Include <string.h> unconditionally.
54237 * lib/bcopy.c: Include <stddef.h>.
54238 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
54240 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
54242 * lib/error.h (error, error_at_line, error_print_progname)
54243 [! (defined (__STDC__) && __STDC__)]: Remove decls.
54244 * lib/error.c: Include error.h first, to check interface.
54245 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
54246 (VA_START): Remove; all uses changeed to va_start.
54247 (exit, strerror): Remove decls.
54248 (error_print_progname): Prototype uncondionally.
54249 Don't include <errno.h>; no longer needed.
54250 (private_strerror): Remove.
54251 (error_tail): Always define.
54252 (error, error_at_line): Assume C89 or better; always use prototypes.
54253 * lib/fatal.c: Include "fatal.h" first, to test interface.
54254 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
54255 (VA_START): Remove; all uses changed to va_start.
54256 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
54258 (exit): Remove decl.
54259 (fatal): Prototype unconditionally. Assume va_start works.
54260 Abort at end, to pacify gcc.
54262 * lib/euidaccess.c (main): Define with a prototype.
54264 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
54266 * lib/exitfail.c: Include <stdlib.h> unconditionally.
54268 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
54270 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
54271 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
54272 (getenv): Remove decl.
54273 (fnmatch): Define using a prototype.
54274 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
54275 (FCT): Define using a prototype.
54277 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
54279 * lib/gethostname.c: Include <stddef.h>.
54280 (gethostname): Define with prototype. Length is size_t, not int.
54282 2003-09-08 Paul Eggert <eggert@twinsun.com>
54284 Assume C89 or better; remove K&R cruft.
54285 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
54286 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
54287 string.h, getenv, malloc.
54288 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
54290 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
54291 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
54292 do not check for strerror.
54293 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
54294 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
54295 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
54296 do not check for doprnt or vprintf.
54297 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
54298 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
54300 2003-09-08 Paul Eggert <eggert@twinsun.com>
54302 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
54303 getversion.c should have been removed then, but was accidentally
54306 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
54307 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
54309 2003-09-08 Karl Berry <karl@gnu.org>
54311 * config/config.sub, config.guess, srclistvars.sh: update from savannah
54312 config, forget about prep.
54314 * config/depcomp, missing: update from automake.
54316 2003-09-07 Paul Eggert <eggert@twinsun.com>
54318 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
54319 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
54321 2003-09-07 Paul Eggert <eggert@twinsun.com>
54323 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
54324 copy_tm_result. Bug reported by Simon Josefsson in
54325 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
54327 2003-09-06 Paul Eggert <eggert@twinsun.com>
54329 * m4/time_r.m4: New file.
54330 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
54331 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
54332 is. Check for timegm declaration.
54333 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
54334 Do not check for gmtime_r.
54335 Replace mktime if __mktime_internal does not exist and if mktime
54336 hasn't been replaced already.
54338 2003-09-06 Paul Eggert <eggert@twinsun.com>
54340 * lib/time_r.c, lib/time_r.h: New files.
54342 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
54344 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
54345 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
54347 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
54349 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
54350 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
54351 Include <time_r.h>.
54353 * lib/timegm.c: Switch to glibc implementation, with the following
54355 [defined HAVE_CONFIG_H]: Include <config.h>.
54356 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
54357 (__mktime_internal) [!defined _LIBC]: New decl.
54358 (__gmtime_r) [!defined _LIBC]: New macro and function.
54359 (timegm): Use a prototype, since gnulib assumes C89.
54360 Do not bother declaring tmp to be const, as it's not really usefu.
54361 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
54362 (timegm): Declare only if HAVE_DECL_TIMEGM.
54364 2003-09-06 Paul Eggert <eggert@twinsun.com>
54366 * MODULES.html.sh (func_all_modules): Add time_r.
54367 * modules/time_r: New file.
54368 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
54369 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
54371 2003-09-03 Paul Eggert <eggert@twinsun.com>
54373 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
54374 Bug reported by Lute Kamstra in
54375 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
54377 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
54378 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
54379 course with correspondingly smaller numbers for tomorrow and
54380 yesterday. From Tadayoshi Funaba. Originally installed into
54381 sh-utils on 1999-08-07, but the patch got lost (I guess during the
54384 2003-08-31 Simon Josefsson <jas@extundo.com>
54386 * modules/timegm: New file.
54387 * MODULES.html.sh (func_all_modules): Add timegm.
54389 2003-08-31 Simon Josefsson <jas@extundo.com>
54391 * m4/timegm.m4: New file.
54393 2003-08-31 Simon Josefsson <jas@extundo.com>
54395 * lib/timegm.h: New file.
54396 * lib/timegm.c: New file. Based on
54397 wget-1.8.2/src/http.c:mktime_from_utc.
54399 2003-08-31 Karl Berry <karl@gnu.org>
54401 * lib/argp.h: update from libc.
54403 2003-08-28 Bruno Haible <bruno@clisp.org>
54405 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
54406 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
54407 followed by '#define fnmatch fnmatch_posix' gives an error.
54409 2003-08-28 Bruno Haible <bruno@clisp.org>
54411 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
54412 warning on QNX, which defines O_BINARY to 000000.
54414 2003-08-27 Jim Meyering <jim@meyering.net>
54416 * m4/mkstemp.m4: Require that the system mkstemp be able to create
54417 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
54418 would fail after 32. Reported by Danny Levinson. Details here:
54419 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
54421 2003-08-24 Bruno Haible <bruno@clisp.org>
54423 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
54424 MSVC7 <stdio.h> is included later.
54426 2003-08-22 Simon Josefsson <jas@extundo.com>
54428 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
54430 2003-08-20 Karl Berry <karl@gnu.org>
54432 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
54434 2003-08-20 Bruno Haible <bruno@clisp.org>
54436 * modules/progname: New file.
54437 * MODULES.html.sh (func_all_modules): Add progname.
54439 2003-08-20 Bruno Haible <bruno@clisp.org>
54441 * lib/progname.h: New file, from GNU gettext.
54442 * lib/progname.c: New file, from GNU gettext.
54443 * lib/progreloc.c: New file, from GNU gettext.
54445 2003-08-19 Jim Meyering <jim@meyering.net>
54447 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
54448 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
54450 2003-08-19 Bruno Haible <bruno@clisp.org>
54452 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
54455 2003-08-19 Bruno Haible <bruno@clisp.org>
54457 * lib/xstrdup.c: Assume <string.h> exists.
54459 2003-08-18 Paul Eggert <eggert@twinsun.com>
54461 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
54464 2003-08-18 Jim Meyering <jim@meyering.net>
54466 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
54467 * m4/lib-ld.m4: Likewise.
54469 2003-08-18 Jim Meyering <jim@meyering.net>
54471 * lib/setenv.h: Indent nested cpp directive.
54472 * lib/vasnprintf.c: Remove trailing blanks.
54474 2003-08-17 Simon Josefsson <jas@extundo.com>
54476 * modules/xstrndup: New file.
54477 * MODULES.html.sh (func_all_modules): Add xstrndup.
54479 2003-08-17 Simon Josefsson <jas@extundo.com>
54481 * modules/argp: Fix autoconf macro name. Add more dependencies.
54483 2003-08-17 Simon Josefsson <jas@extundo.com>
54485 * m4/xstrndup.m4: New file.
54487 2003-08-17 Simon Josefsson <jas@extundo.com>
54489 * m4/argp.m4: New file.
54491 2003-08-17 Simon Josefsson <jas@extundo.com>
54492 Bruno Haible <bruno@clisp.org>
54494 * lib/xstrndup.h: New file.
54495 * lib/xstrndup.c: New file.
54497 2003-08-17 Bruno Haible <bruno@clisp.org>
54499 * modules/strndup (Files, Include): Add lib/strndup.h.
54501 2003-08-17 Bruno Haible <bruno@clisp.org>
54503 * modules/euidaccess (Files): Add lib/euidaccess.h.
54505 2003-08-17 Bruno Haible <bruno@clisp.org>
54507 * lib/strndup.h: New file.
54509 2003-08-17 Bruno Haible <bruno@clisp.org>
54511 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
54512 like AC_GNU_SOURCE.
54513 * modules/extensions (configure.ac): Comment out the invocation of
54514 gl_USE_SYSTEM_EXTENSIONS.
54516 2003-08-16 Paul Eggert <eggert@twinsun.com>
54518 Merges from coreutils, etc.
54519 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
54520 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
54521 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
54523 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
54524 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
54526 2003-08-16 Paul Eggert <eggert@twinsun.com>
54528 Document merge from coreutils.
54529 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
54530 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
54531 * modules/utime: Add m4/utimes-null.m4.
54533 2003-08-16 Paul Eggert <eggert@twinsun.com>
54535 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
54536 space, undoing this 2003-08-12 change:
54537 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
54539 2003-08-16 Paul Eggert <eggert@twinsun.com>
54541 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
54542 strtoul.c from libc, undoing this 2003-08-12 change:
54543 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
54545 2003-08-16 Jim Meyering <jim@meyering.net>
54547 Merges from coreutils.
54548 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
54549 prefix. Adjust cache variables similarly. Create 500 rather than
54550 just 300 files, to exercise bug on Darwin6.5, too.
54551 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
54553 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
54554 AM_SYS_POSIX_TERMIOS.
54555 Reported by mkc@mathdogs.com.
54556 Also change use of $am_cv_sys_posix_termios
54557 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
54558 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
54559 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
54560 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
54561 in /proc/mounts until it finds one with matching device number. This
54562 is unnecessary when the FILE argument *is* a mount point. No stat call
54563 is necessary in that case. So, disable the statvfs-testing code on
54564 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
54565 as RedHat bug# 84846.
54566 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
54567 to 1MB, so as not to render systems with no stack size limit (e.g.,
54568 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
54569 Include <unistd.h>. On some systems,
54570 it is required for the definition of _SC_PAGESIZE.
54572 2003-08-16 Jim Meyering <jim@meyering.net>
54574 Merge from coreutils.
54575 * lib/xstrtoimax.c: #else #if -> #elif.
54576 * lib/xstrtoumax.c: Likewise.
54578 2003-08-16 Jim Meyering <jim@meyering.net>
54580 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
54581 * m4/utimes.m4: Removed.
54582 * m4/utimes-null.m4: Renamed from utimes.m4.
54584 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
54585 to 1MB, so as not to render systems with no stack size limit (e.g.,
54586 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
54587 Include <unistd.h>. On some systems,
54588 it is required for the definition of _SC_PAGESIZE.
54590 2003-08-16 Jim Meyering <jim@meyering.net>
54591 and Paul Eggert <eggert@cs.ucla.edu>
54593 Merges from coreutils, etc.
54595 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
54596 using the latest version from cvs. This avoids problems with #line
54597 directives using a vendor (Sun) compiler.
54598 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
54599 Don't set GETGROUPS_LIB here; now it's
54600 done via getgroups.m4's wrapper function.
54601 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
54602 rather than just in sh-util/configure.in, so that the
54603 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
54605 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
54606 AC_FUNC_GETLOADAVG where to find getloadavg.c.
54607 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
54608 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
54609 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
54610 Remove code that is now done by the newly-required macros.
54611 Append $(EXEEXT) to DF_PROG.
54612 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
54613 Do not invoke or require the following here,
54614 since prereq.m4 or some gnulib .m4 now does this for us:
54615 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
54616 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
54617 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
54618 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
54619 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
54620 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
54621 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
54623 Do not replace the following functions, as this is now the job
54624 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
54625 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
54626 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
54627 atexit getpass, strdup, getpagesize.
54629 Do not check for the following functions, as this is now the job
54630 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
54631 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
54633 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
54634 Check for sys/sysctl.h.
54635 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
54636 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
54637 of checking for ssize_t ourselves.
54639 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
54640 Require every macro that gnulib/modules/* suggests for us.
54641 (jm_PREREQ_ADDEXT): New macro.
54642 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
54643 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
54645 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
54646 (gl_PHYSMEM): Use it.
54647 Also check for `table' function.
54648 Check for new headers and functions.
54649 Add check for sys/sysmp.h.
54650 With suggestions from Kaveh Ghazi.
54651 Ignore headers that are present but cannot be compiled. This
54652 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
54655 2003-08-15 Paul Eggert <eggert@twinsun.com>
54657 Document merge from coreutils.
54658 * modules/userspec: Depend on posixver.
54659 * modules/strftime: Depend on tzset.
54661 2003-08-15 Paul Eggert <eggert@twinsun.com>
54663 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
54664 rather than tab, after '#' in shell-script copyright notices.
54665 Suggested by Bruno Haible.
54667 2003-08-15 Paul Eggert <eggert@twinsun.com>
54669 * config/srclist-update: Use three spaces, rather than tab, after '#'
54670 in shell-script copyright notices. Suggested by Bruno Haible.
54671 Remove unnecessary parenthesization in regular expression.
54673 2003-08-15 Jim Meyering <jim@meyering.net>
54675 Merge from coreutils.
54676 * lib/xgethostname.c: Include <stdlib.h>.
54677 (xghostname): Don't exit for anything other than memory-related
54678 failure; just return NULL.
54679 * lib/userspec.c: Include "posixver.h".
54680 (parse_user_spec): Accept `.' as a separator only
54681 in pre-POSIX-200112 mode.
54682 * lib/strtoimax.c: Use #elif rather than #else #if.
54683 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
54684 Remove function, now that we can rely on a working tzset function.
54685 [!_LIBC]: Ensure that the required autoconf test has been run.
54686 [!defined _NL_CURRENT && HAVE_STRFTIME]:
54687 Use underlying_strftime for %r.
54688 * lib/sha.c: Merge in some clean-up and optimization changes from
54690 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
54691 Ensure that it is a multiple of 64.
54692 Rearrange loop exit tests so as to avoid performing an
54693 additional fread after encountering an error or EOF.
54694 * lib/realloc.c: Update copyright date.
54696 2003-08-15 Jim Meyering <jim@meyering.net>
54697 and Paul Eggert <eggert@twinsun.com>
54699 Merge from coreutils.
54700 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
54701 member but strut utmpx does not. Needed for AIX 4.3.3.
54702 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
54704 2003-08-15 Jim Meyering <jim@meyering.net>
54705 and Paul Eggert <eggert@cs.ucla.edu>
54707 Merges from coreutils, etc.
54708 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
54709 Require gl_FUNC_TZSET_CLOBBER.
54710 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
54711 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
54714 2003-08-14 Paul Eggert <eggert@twinsun.com>
54716 Help the merge from coreutils.
54717 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
54718 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
54719 * m4/tzset.m4: Use it too.
54721 2003-08-14 Paul Eggert <eggert@twinsun.com>
54723 * modules/tzset: New file.
54725 2003-08-14 Jim Meyering <jim@meyering.net>
54727 Merges from coreutils.
54728 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
54729 variable names, rather than @FNMATCH_H@.
54730 * modules/alloca: Likewise for $(ALLOCA_H).
54732 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
54733 the three copies of the literal target, `fnmatch.h'.
54734 * modules/alloca (alloca.h): Likewise.
54736 2003-08-14 Jim Meyering <jim@meyering.net>
54738 Merge from coreutils.
54739 * m4/tzset.m4: New file.
54740 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
54741 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
54742 otherwise, AIX 5.1 systems would end up using the latter.
54743 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
54744 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
54745 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
54746 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
54748 2003-08-14 Jim Meyering <jim@meyering.net>
54750 Merge from coreutils.
54751 * lib/obstack.h: Whitespace changes.
54752 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
54753 and xcalloc return values.
54754 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
54755 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
54756 hang on OSF/1 5.1 for DIR on both local and remote file systems.
54757 Reported by (and fix confirmed by) Nelson H. F. Beebe.
54758 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
54760 Use mntctl's return value to drive the entry-processing loop, since
54761 we can't rely on the value of the vmt_length member in the last
54762 entry. On some systems doing so could result in exhausting
54763 virtual memory. Based in part on a patch from Mike Jetzer.
54765 2003-08-14 Jim Meyering <jim@meyering.net>
54766 and Paul Eggert <eggert@twinsun.com>
54768 Merges from coreutils, plus other fixes.
54769 * lib/physmem.c: Merge in portability changes from gcc/libiberty
54770 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
54771 for credits and details. Thanks to Kaveh Ghazi for helping
54772 to keep these files in sync.
54773 (ARRAY_SIZE): Define it.
54774 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
54775 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
54776 (memcasecmp): Don't assume size_t fits in unsigned int.
54777 Remove casts and duplicate code.
54778 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
54779 (memcpy): Remove definition.
54780 Merge in some clean-up and optimization changes from glibc.
54781 [BLOCKSIZE]: Move definition to top of file.
54782 Ensure that it is a multiple of 64.
54783 Rearrange loop exit tests so as to avoid performing an
54784 additional fread after encountering an error or EOF.
54785 * lib/md5.h (md5_uintptr): Define.
54786 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
54787 return to the initial working directory. Preserve errno
54789 * lib/idcache.c: Include "xalloc.h".
54790 (xmalloc, xrealloc): Remove decls.
54791 (getuser): Remove casts no longer required in C89.
54792 * lib/human.c: Include stdio.h, for sprintf.
54793 * lib/group-member.c: Include "xalloc.h".
54794 (xmalloc, xrealloc): Remove decls.
54795 (get_group_info): Remove casts no longer required in C89.
54796 * lib/getusershell.c (readname): Remove casts no longer required in
54798 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
54799 * lib/getline.c: Whitespace fix, from coreutils.
54801 2003-08-13 Paul Eggert <eggert@twinsun.com>
54803 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
54806 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
54807 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
54808 Undo previous (whitespace-only) change.
54810 2003-08-13 Paul Eggert <eggert@twinsun.com>
54812 * lib/exclude.c: Include <ctype.h>
54813 (IN_CTYPE_DOMAIN): New macro.
54814 (is_space): New fn.
54815 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
54818 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
54819 Undo previous (whitespace-only) change.
54821 2003-08-13 Paul Eggert <eggert@twinsun.com>
54823 * config/srclist-update: Change update back to the old behavior,
54824 leaving whitespace alone. Use one 'sed' command rather than a
54826 (fixlicense): Now a variable, not a function.
54827 (remove_trailing_blanks): Remove.
54828 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
54829 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
54830 Undo previous (whitespace-only) change.
54832 2003-08-12 Paul Eggert <eggert@twinsun.com>
54834 Merge from coreutils.
54835 * modules/euidaccess: Add lib_SOURCES, include for new
54838 2003-08-12 Paul Eggert <eggert@twinsun.com>
54840 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
54841 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
54842 Normalize leading white space and remove trailing white space.
54844 Merge from coreutils
54845 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
54847 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
54848 0.12.1. These files are now being upgraded automatically by
54849 ../config/srclist-update.
54851 2003-08-12 Paul Eggert <eggert@twinsun.com>
54853 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
54854 Normalize leading white space and remove trailing white space.
54855 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
54856 notice, as per ../config/srclist-update.
54858 Merge from coreutils.
54859 * lib/euidaccess.h: New file.
54860 * lib/euidaccess.c: Include it.
54861 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
54862 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
54863 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
54865 2003-08-12 Paul Eggert <eggert@twinsun.com>
54867 * config/srclist-update: Add copyright notice.
54868 (remove_id_lines, remove_trailing_blanks): New constants.
54869 (fixfile): Use them to normalize spacing a bit in copied files.
54870 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
54871 Normalize leading white space and remove trailing white space.
54873 * config/texinfo.tex: Sync with texinfo.
54875 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
54876 strtoul.c from libc, to merge coreutils whitespace changes.
54878 * config/srclist.txt: Get the following m4 files from gettext:
54879 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
54880 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
54881 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
54884 2003-08-12 Karl Berry <karl@gnu.org>
54886 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
54889 2003-08-11 Paul Eggert <eggert@twinsun.com>
54891 * modules/gnu-source, m4/gnu-source.m4:
54892 Remove; we're assuming Autoconf 2.54 or later now.
54893 Suggested by Bruno Haible.
54894 * MODULES.html.sh (func_all_modules): Remove gnu-source.
54896 2003-08-11 Bruno Haible <bruno@clisp.org>
54898 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
54900 2003-08-11 Bruno Haible <bruno@clisp.org>
54902 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
54903 (vasnprintf): Use it instead of wcslen.
54905 2003-08-11 Bruno Haible <bruno@clisp.org>
54907 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
54908 value to ensure that _Bool promotes to int. Use #define for _Bool when
54909 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
54911 2003-08-10 Karl Berry <karl@gnu.org>
54913 * lib/regex.h: update from libc (whitespace fix).
54915 2003-08-09 Paul Eggert <eggert@twinsun.com>
54917 Merge some files from coreutils. These changes were
54918 originally made by Jim Meyering.
54919 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
54920 many older Unixes require this.
54921 * lib/alloca.c (alloca): Remove cast to argument of free;
54922 no longer needed in C89.
54923 * lib/alloca_.h, regex.h: Fix white space to match
54924 what GNU indent does.
54926 2003-08-09 Paul Eggert <eggert@twinsun.com>
54928 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
54929 apparently Emacs's Unicode mode got confused before my 2003-08-05
54932 2003-08-08 Paul Eggert <eggert@twinsun.com>
54934 * m4/extensions.m4: New file.
54935 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
54936 Require gl_USE_SYSTEM_EXTENSIONS.
54937 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
54938 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
54940 2003-08-08 Paul Eggert <eggert@twinsun.com>
54942 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
54943 * modules/extensions, modules/gnu-source: New files.
54944 * modules/timespec, modules/unlocked-io: Depend on extensions.
54946 2003-08-07 Paul Eggert <eggert@twinsun.com>
54948 * modules/restrict: New file.
54949 * MODULES.html.sh (func_all_modules): Add restrict.
54950 * modules/regex: Depend on restrict.
54952 2003-08-07 Paul Eggert <eggert@twinsun.com>
54954 * m4/restrict.m4: New file.
54955 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
54957 2003-08-07 Bruno Haible <bruno@clisp.org>
54959 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
54960 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
54962 2003-08-07 Bruno Haible <bruno@clisp.org>
54964 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
54965 makes the module 'getndelim2' compatible with the module 'getline'.
54967 2003-08-05 Paul Eggert <eggert@twinsun.com>
54969 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
54970 byte with "\201" to avoid glitches when editing that source file
54971 with multi-gnome-terminal.
54973 2003-08-05 Paul Eggert <eggert@twinsun.com>
54975 * lib/bumpalloc.h: Remove.
54977 2003-08-05 Paul Eggert <eggert@twinsun.com>
54979 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
54980 * modules/bumpalloc: Remove.
54982 2003-08-04 Paul Eggert <eggert@twinsun.com>
54984 * lib/getloadavg.c: Change copyright notice and spacing to conform to
54987 Merge from coreutils.
54988 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
54990 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
54991 from Karl Berry, implemented by Jim Meyering.
54992 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
54993 from Dmitry V. Levin.
54994 Remove anachronistic cast of xrealloc.
54995 * lib/fnmatch_.h (__const): Remove. Use 'const'.
54996 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
54997 type. Otherwise, it wouldn't compile with at least /bin/cc on
54998 ymp-cray-unicos9.0.2.X.
54999 Combine two mostly-identical uses of alloca into one.
55000 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
55002 2003-08-04 Dave Love <d.love@dl.ac.uk>
55006 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
55007 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
55008 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
55009 obsolete NLIST_NAME_UNION.
55010 [__GNU__]: Undef BSD and FSCALE.
55011 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
55013 2003-08-03 Paul Eggert <eggert@twinsun.com>
55015 * lib/stdbool_.h (_Bool): Make it signed char, instead of
55016 an enum type, so that it's guaranteed to promote to int. See:
55017 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
55019 2003-08-03 Karl Berry <karl@gnu.org>
55021 * config/depcomp: update from automake.
55023 2003-07-31 Paul Eggert <eggert@twinsun.com>
55025 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
55026 (strerror): Don't assume that a printable int fits in 14 bytes.
55028 2003-07-31 Bruno Haible <bruno@clisp.org>
55030 * modules/getpass-gnu: New file.
55031 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
55033 2003-07-31 Bruno Haible <bruno@clisp.org>
55035 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
55037 2003-07-24 Karl Berry <karl@gnu.org>
55039 * config/missing: update from automake.
55041 2003-07-24 Derek Robert Price <derek@ximbiot.com>
55042 Bruno Haible <bruno@clisp.org>
55044 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
55045 * lib/getline.c (getline, getdelim): Likewise.
55046 Remove _GNU_SOURCE define; now it's defined in config.h through
55049 2003-07-23 Karl Berry <karl@gnu.org>
55051 * config/config.sub: update from prep.
55053 2003-07-22 Paul Eggert <eggert@twinsun.com>
55055 * modules/xalloc (Depends-on): Add exitfail.
55056 * modules/xmemcoll: Likewise.
55058 2003-07-22 Paul Eggert <eggert@twinsun.com>
55060 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
55061 over-parenthesization in macros.
55063 Sync with coreutils.
55065 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
55068 Use `exit_failure' for xalloc and xmemcoll instead of their own
55069 private exit-failure variables.
55070 * lib/xalloc.h (xalloc_exit_failure): Remove.
55071 * lib/xmalloc.c: Likewise. Include exitfail.h.
55072 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
55073 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
55074 * lib/xmemcoll.c: Likewise. Include exitfail.h.
55075 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
55077 2003-07-20 Jim Meyering <jim@meyering.net>
55079 * modules/closeout (Depends-on): Add exitfail.
55080 Suggestion from Bruno Haible.
55082 2003-07-19 Karl Berry <karl@gnu.org>
55084 * config/config.sub: update from prep.
55086 2003-07-18 Paul Eggert <eggert@twinsun.com>
55088 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
55090 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
55091 to test that it can stand by itself. Include "exitfail.h".
55092 Clients should set exit_failure instead.
55093 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
55095 2003-07-18 Bruno Haible <bruno@clisp.org>
55097 * modules/getndelim2: New file.
55098 * modules/getline: Share files with module getndelim2.
55099 * modules/getnline: Depend on getndelim2 instead of sharing files with
55100 it. Add getnline.c to lib_SOURCES.
55101 * MODULES.html.sh (func_all_modules): Add getndelim2.
55103 2003-07-18 Bruno Haible <bruno@clisp.org>
55105 * m4/getndelim2.m4: New file.
55106 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
55107 invoke gl_PREREQ_GETNDELIM2.
55108 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
55109 gl_PREREQ_GETNDELIM2.
55110 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
55113 2003-07-18 Bruno Haible <bruno@clisp.org>
55115 * lib/getndelim2.h: New file.
55116 * lib/getndelim2.c: Make into a module of its own. Include config.h,
55118 (getndelim2): Make non-static. Change return type to ssize_t.
55119 * lib/getline.h: Change argument names.
55120 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
55121 * lib/getnline.c: Include getndelim2.h.
55123 2003-07-18 Andreas Schwab <schwab@suse.de>
55125 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
55127 2003-07-17 Karl Berry <karl@gnu.org>
55129 * config/config.sub: update from prep.
55131 2003-07-17 Bruno Haible <bruno@clisp.org>
55133 * modules/getnline: New file.
55134 * modules/getline: Add lib/getndelim2.c to source file list.
55135 * MODULES.html.sh (func_all_modules): Add getnline.
55137 2003-07-17 Bruno Haible <bruno@clisp.org>
55139 * m4/getnline.m4: New file.
55141 2003-07-17 Bruno Haible <bruno@clisp.org>
55143 * m4/Makefile.am.in: Remove file.
55144 * m4/Makefile.am: Remove file.
55145 * m4/Makefile.in: Remove file.
55147 2003-07-17 Bruno Haible <bruno@clisp.org>
55149 * lib/getnline.h: New file.
55150 * lib/getnline.c: New file.
55151 * lib/getndelim2.c: New file, extracted from getline.c.
55152 (getndelim2): Renamed from getdelim2, with added nmax argument.
55153 * lib/getline.c: Include getndelim2.c.
55154 (getdelim2): Moved out to getndelim2.c.
55155 (getline, getdelim): Update.
55157 2003-07-17 Bruno Haible <bruno@clisp.org>
55159 * lib/Makefile.am: Remove file.
55160 * lib/Makefile.in: Remove file.
55162 2003-07-17 Bruno Haible <bruno@clisp.org>
55164 * configure.in: Remove file.
55165 * Makefile.in: Remove file.
55167 2003-07-17 Bruno Haible <bruno@clisp.org>
55169 * MODULES.html.sh: Put the </BODY> right before </HTML>.
55171 2003-07-16 Karl Berry <karl@gnu.org>
55173 * config/srclist-update: was running fixlicense twice, which caused
55174 texinfo.tex to be nullified for some reason. Simplify,
55175 $gplsrc is no longer needed as far as I can see?
55177 2003-07-16 Jim Meyering <jim@meyering.net>
55179 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
55181 2003-07-15 Paul Eggert <eggert@twinsun.com>
55183 * config/srclist.txt: Get the following files from gettext-runtime/intl
55184 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
55185 ref-del.sin. From Bruno Haible.
55186 * config/srclist-update (fixfile): Change grep pattern again, since the
55187 previous fix didn't work (there was another trailing $). Use
55188 '[$]' to escape the $s.
55190 2003-07-15 Karl Berry <karl@gnu.org>
55192 * lib/vasnprintf.c: update from gettext.
55194 2003-07-15 Karl Berry <karl@gnu.org>
55196 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
55197 gets expanded when surrounded by '$'.
55199 2003-07-15 Jim Meyering <jim@meyering.net>
55201 * modules/save-cwd: Don't depend on error. From Derek Price.
55203 2003-07-15 Jim Meyering <jim@meyering.net>
55205 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
55207 2003-07-14 Simon Josefsson <jas@extundo.com>
55209 * modules/mempcpy: New file.
55210 * MODULES.html.sh (func_all_modules): Add mempcpy.
55212 2003-07-14 Simon Josefsson <jas@extundo.com>
55214 * m4/mempcpy.m4: New file.
55216 2003-07-14 Simon Josefsson <jas@extundo.com>
55218 * lib/mempcpy.h: New file.
55219 * lib/mempcpy.c: New file.
55221 2003-07-14 Paul Eggert <eggert@twinsun.com>
55223 * modules/getdate, modules/posixtm: Depend on mktime.
55225 2003-07-14 Paul Eggert <eggert@twinsun.com>
55227 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
55228 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
55229 unicodeio.c, unicodeio.h, unlocked-io.h:
55230 Switch from LGPL to GPL.
55232 2003-07-14 Paul Eggert <eggert@twinsun.com>
55234 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
55235 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
55236 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
55237 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
55238 vasprintf.c, vasprintf.h: Regenerate. These files are now being
55239 updated automatically by ../config/srclist-update. This changes
55240 their license from LPGL to GPL.
55242 2003-07-14 Paul Eggert <eggert@twinsun.com>
55244 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
55245 assumed to refer to the root of the most recent stable gettext version.
55246 * config/srclistvars.sh: Add defaults for eggert.
55247 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
55248 Match "This program" as well as "The program". This is needed
55251 2003-07-14 Jim Meyering <jim@meyering.net>
55253 Don't emit diagnostics. Let callers do that.
55254 * lib/save-cwd.c: Don't include "error.h".
55255 (save_cwd): Don't call error. Ensure that errno is valid
55256 when returning nonzero.
55258 * lib/save-cwd.h (restore_cwd): Update prototype.
55259 * lib/save-cwd.c (restore_cwd): Remove two parameters.
55260 Simplify. Don't call error upon failure. Let callers do that.
55261 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
55262 when auditing is enabled. But don't bother updating the #if.
55264 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
55266 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
55267 it breaks C++ compilation.
55268 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
55270 2003-07-10 Simon Josefsson <jas@extundo.com>
55272 * modules/strchrnul (Makefile.am): Add strchrnul.h.
55274 2003-07-10 Jim Meyering <jim@meyering.net>
55276 * m4/clock_time.m4: Remove trailing blank.
55277 * m4/intmax_t.m4: Likewise.
55279 2003-07-10 Jim Meyering <jim@meyering.net>
55281 * lib/vasnprintf.c: Remove trailing blanks.
55282 Make cpp indentation consistent.
55284 2003-07-09 Paul Eggert <eggert@twinsun.com>
55286 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
55287 posixver.c, strftime.c, strnlen.c, strverscmp.c:
55288 Switch from LGPL to GPL.
55290 2003-07-09 Paul Eggert <eggert@twinsun.com>
55292 * config/srclist.txt: Sort sublists. Add
55293 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
55294 that differ from gnulib for one reason or another; we'd like this list
55295 to be smaller but for now let's document what we have.
55297 2003-07-08 Paul Eggert <eggert@twinsun.com>
55299 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
55300 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
55301 and sweeter "eval x=$x".
55302 * config/srclist.txt: Get lib/argp* from glibc.
55304 2003-07-07 Paul Eggert <eggert@twinsun.com>
55306 * lib/mktime.c: Fix some boundary cases and remove need for floating
55309 Issue a compile-time diagnostic if time_t is floating point, or if
55310 two's complement arithmetic is not in effect, or if arithmetic
55311 right shift does not propagate the sign. These assumptions were
55312 all in the original code but they weren't checked.
55314 (TIME_T_MIDPOINT, verify): New macros.
55315 (__isleap): Remove; it has integer overflow problems.
55316 (leapyear): New function, without those problems.
55317 (ydhms_tm_diff): Remove; splitting into two parts.
55318 (ydhms_diff): New function, containing the arithmetic part of
55319 the old ydhms_tm_diff function. Issue a compile-time
55320 diagnostic if we are not using C99 integer division.
55321 Avoid casts when possible.
55322 (guess_time_tm): New function, containing the checking part of
55323 the old ydhms_tm_diff function. Return the new value, rather than
55324 the difference between it and the old. Accept a new argument T
55325 so that *T specifies the old value. Check for overflow in the result.
55327 (__mktime_internal): Use a time_t offset, not a long int offset.
55328 This undoes the 2003-06-04 change, which is no longer needed now
55329 that we have better overflow checking.
55330 (localtime_offset): Likewise.
55332 (__mktime_internal): Avoid harmful overflow on hosts where time_t
55333 and long are 64-bit but int is only 32-bit.
55334 (ydhms_diff): Use long int to store year1 and yday1.
55335 Issue a compile-time diagnostic if long int is not wide enough.
55337 (__mktime_internal): Use long int to store adjusted year and yday.
55338 Use plain C rather than preprocessor commands, if that doesn't
55340 Check for overflow (and try to repair) after each probe
55341 rather than checking only at the very end. This avoids some bugs
55342 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
55343 does not equal GMT offset at maximum time).
55344 Use integer to check for overflow rather than floating point; this
55345 is more portable to non-IEEE hosts, and is a tad faster.
55346 When we detect that we are oscillating between two values,
55347 don't check whether tm_isdst has the requested value, since
55348 we already know the answer. When tm_isdst has the wrong value,
55349 use a different heuristic to find the right one, based on the
55350 extreme values actually observed in practice in tz2003a,
55351 rather than the (overly optimistic) "previous 3 calendar quarters".
55353 (not_equal_tm, print_tm, check_result): Use "const T" rather than
55354 "T const" to accommodate glibc style.
55355 (check_result): Use less-confusing report format. "long" -> "long int.
55357 Don't loop if the iteration overflows time_t.
55358 Allow a negative step in the iteration.
55360 2003-07-06 Karl Berry <karl@gnu.org>
55362 * config/depcomp: update from automake.
55363 * config/config.sub: update from prep.
55365 2003-07-03 Karl Berry <karl@gnu.org>
55367 * config/config.guess: update from prep.
55369 2003-07-01 Paul Eggert <eggert@twinsun.com>
55371 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
55372 xreadlink.c now includes it unconditionally.
55374 2003-07-01 Paul Eggert <eggert@twinsun.com>
55376 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
55377 having it depend on HAVE_SYS_TYPES_H.
55379 2003-07-01 Bruno Haible <bruno@clisp.org>
55381 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
55382 <sys/types.h> should be sufficient.
55383 Reported by Paul Eggert.
55385 2003-06-26 Karl Berry <karl@gnu.org>
55387 * config/depcomp: update from automake.
55389 2003-06-26 Bruno Haible <bruno@clisp.org>
55391 * modules/human: Depend on module stdbool.
55393 2003-06-25 Bruno Haible <bruno@clisp.org>
55395 * modules/readlink: New file.
55396 * modules/xreadlink: Depend on it.
55397 * MODULES.html.sh (func_all_modules): Add readlink.
55399 2003-06-25 Bruno Haible <bruno@clisp.org>
55401 * m4/readlink.m4: New file.
55403 2003-06-25 Bruno Haible <bruno@clisp.org>
55405 * lib/readlink.c: New file.
55407 2003-06-22 Karl Berry <karl@gnu.org>
55409 * config/srclist.txt: update mkinstalldirs from automake.
55410 * config/mkinstalldirs: update.
55412 2003-06-22 Bruno Haible <bruno@clisp.org>
55414 Portability to mingw32.
55415 * m4/ssize_t.m4: New file, from GNU gettext.
55416 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
55417 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
55419 2003-06-22 Bruno Haible <bruno@clisp.org>
55421 * modules/safe-read: Add m4/ssize_t.m4.
55422 * modules/xreadlink: Add m4/ssize_t.m4.
55424 2003-06-20 Bruno Haible <bruno@clisp.org>
55426 Assume C89, so PARAMS isn't needed.
55427 * lib/unicodeio.h (PARAMS): Remove.
55428 * lib/unicodeio.c: Don't use PARAMS.
55430 2003-06-18 Karl Berry <karl@gnu.org>
55432 * config/config.{guess,sub}: update from prep.
55434 2003-06-18 Jim Meyering <jim@meyering.net>
55436 Merge changes from coreutils.
55437 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
55438 Remove explicit declarations of xmalloc and realloc.
55440 (read_utmp): Remove anachronistic cast of xmalloc.
55442 2003-06-17 Paul Eggert <eggert@twinsun.com>
55444 Assume C89, so PARAMS isn't needed.
55445 * lib/backupfile.h (PARAMS): Remove. All uses removed.
55446 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
55447 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
55448 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
55449 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
55450 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
55451 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
55452 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
55453 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
55454 lib/xstrtod.h, lib/xstrtol.h: Likewise.
55455 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
55456 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
55457 no longer needed. Anyway, config.h should always be included before any
55460 2003-06-11 Simon Josefsson <jas@extundo.com>
55462 * modules/sysexits: New file.
55463 * MODULES.html.sh (func_all_modules): Add sysexits.
55465 2003-06-11 Simon Josefsson <jas@extundo.com>
55467 * lib/sysexit_.h: New file.
55469 2003-06-11 Derek Price <derek@ximbiot.com>
55471 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
55474 2003-06-11 Bruno Haible <bruno@clisp.org>
55476 * m4/sysexits.m4: New file.
55478 2003-06-10 Simon Josefsson <jas@extundo.com>
55480 * lib/argp.h: New file, from glibc.
55481 * lib/argp-ba.c: New file, from glibc.
55482 * lib/argp-eexst.c: New file, from glibc.
55483 * lib/argp-fmtstream.c: New file, from glibc.
55484 * lib/argp-fmtstream.h: New file, from glibc.
55485 * lib/argp-fs-xinl.c: New file, from glibc.
55486 * lib/argp-help.c: New file, from glibc.
55487 * lib/argp-namefrob.h: New file, from glibc.
55488 * lib/argp-parse.c: New file, from glibc.
55489 * lib/argp-pv.c: New file, from glibc.
55490 * lib/argp-pvh.c: New file, from glibc.
55491 * lib/argp-xinl.c: New file, from glibc.
55493 2003-06-10 Simon Josefsson <jas@extundo.com>
55495 * modules/strchrnul: New file.
55497 2003-06-10 Simon Josefsson <jas@extundo.com>
55499 * modules/argp: New file.
55501 2003-06-10 Simon Josefsson <jas@extundo.com>
55503 * m4/strchrnul.m4: New file.
55505 2003-06-10 Simon Josefsson <jas@extundo.com>
55507 * lib/strchrnul.h: New file.
55508 * lib/strchrnul.c: New file.
55510 2003-06-10 Bruno Haible <bruno@clisp.org>
55512 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
55514 2003-06-07 Karl Berry <karl@gnu.org>
55516 * config/config.{guess,sub}: update from prep.
55518 2003-06-07 Jim Meyering <jim@meyering.net>
55520 * modules/strtod: Use $(...) notation, not @...@ for
55521 AC_REPLACE'd variables.
55522 * modules/localcharset: Likewise.
55524 2003-06-07 Jim Meyering <jim@meyering.net>
55526 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
55527 in place of my name in the copyright comment.
55528 Remove definition and uses of __P.
55531 * lib/stat.c: Don't declare xmalloc explicitly.
55532 Instead, include "xalloc.h".
55533 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
55534 xrealloc, and xcalloc return values.
55535 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
55537 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
55539 2003-06-07 Bruno Haible <bruno@clisp.org>
55541 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
55542 avoid AC_CONFIG_LINKS.
55543 * modules/fnmatch (Makefile.am): Use explicit creation rule for
55544 fnmatch.h, to avoid AC_CONFIG_LINKS.
55545 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
55547 2003-06-07 Bruno Haible <bruno@clisp.org>
55549 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
55550 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
55551 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
55553 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
55554 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
55557 2003-06-06 Jim Meyering <jim@meyering.net>
55559 Merge from coreutils.
55560 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
55561 Consolidate declarations and initializations of *_base* locals.
55563 Merge from coreutils.
55564 This avoids a core dump on systems without GNU putenv,
55565 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
55566 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
55567 (unsetenv): New static function, from GNU libc.
55568 (rpl_putenv): Use it.
55570 * lib/modechange.c: Remove trailing blanks.
55572 Merge from coreutils.
55573 * lib/fsusage.c: Remove declaration of statfs.
55574 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
55576 * lib/posixtm.c: Include <stdbool.h> unconditionally.
55578 2003-06-06 Jim Meyering <jim@meyering.net>
55580 * lib/stdbool_.h: Renamed from stdbool.h.in.
55582 2003-06-06 Jim Meyering <jim@meyering.net>
55583 Bruno Haible <bruno@clisp.org>
55585 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
55586 Adjust Makefile.am snippet not to redirect directly to target.
55587 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
55589 2003-06-05 Paul Eggert <eggert@twinsun.com>
55591 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
55592 mismatch, look in future quarters as well as past. This fixes a
55593 bug when processing fall-backwards gaps immediately after a long
55594 period of daylight-saving time.
55596 * lib/mktime.c: Assume freestanding C89 or better.
55597 (HAVE_LIMITS_H): Remove. Assume it's 1.
55598 (__P): Remove; not used.
55599 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
55600 (mktime, not_equal_tm, print_tm, check_result,
55601 main): Use prototypes. Use const * where appropriate.
55602 (main): Fix typo in testing code that uncovered by above changes.
55603 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
55605 2003-06-04 Paul Eggert <eggert@twinsun.com>
55607 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
55608 locale.h, localeconv. This merges changes from coreutils.
55610 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
55611 It can be removed after the next Autoconf is released.
55612 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
55615 2003-06-04 Paul Eggert <eggert@twinsun.com>
55617 * lib/mktime.c: Fix Debian bug 177940
55618 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
55619 (localtime_offset): Now long int, not time_t, because we want it
55620 to be guaranteed to be signed. All uses changed.
55621 (__mktime_internal): If overflow would occur when adding offset,
55624 Merge 'human' changes from coreutils. Rewrite to support
55625 locale-specific notations like thousands separators.
55626 * lib/human.c: Simplify authorship notice.
55627 Include human.h immediately after config.h.
55628 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
55629 <limits.h>: Do not include, since human.h does.
55630 (SIZE_MAX, UINTMAX_MAX): New macros.
55631 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
55632 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
55633 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
55634 (power_letter): Renamed from suffixes.
55635 (generate_suffix_backwards): Remove.
55636 (adjust_value): Now takes int style (because of human.h changes)
55637 and long double value (for greater precision on some platforms).
55638 (group_number): New function.
55639 (human_readable): Use it. Use integer options, not enum.
55640 Put the options before the sizes in the arg list.
55641 Support all the new options.
55642 The old human_readable function has been removed;
55643 use inttostr.h instead.
55644 (human_readable, default_block_size, humblock):
55645 Use uintmax_t, not int, for block sizes.
55646 (human_readable_inexact, block_size_types): Remove.
55647 (block_size_opts): New constant.
55648 (human_options): Renamed from human_block_size, with new signature
55649 that allows block sizes up to UINTMAX_MAX. All callers changed.
55650 * lib/human.h: Add copyright and authorship notice.
55651 Include <limits.h> and <stdbool.h> unconditionally.
55652 (PARAMS): Remove. All uses removed.
55653 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
55654 (enum human_inexact_style): Remove tag; now a nameless enum.
55655 (human_floor, human_ceiling, human_round_to_even): Now have
55656 values 2, 0, 1 rather than -1, 1, 0.
55657 (human_group_digits, human_suppress_point_zero, human_autoscale,
55658 human_base_1024, human_SI, human_B): New constants.
55659 (human_readable_inexact, human_block_size): Remove.
55660 (human_readable): Size args are now uintmax_t, not int.
55661 (human_options): New decl.
55663 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
55664 unnecessary now that we assume C89 or better. This change
55665 imported from coreutils.
55667 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
55668 arbitrarily. This is the same patch as 2003-05-28, but it got lost
55669 in the 2003-05-30 sync from glibc.
55671 .h files should stand alone, but we shouldn't include <sys/types.h>
55672 if we can get away with just <stddef.h>.
55674 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
55675 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
55676 rather than <sys/types.h>, as we merely need size_t.
55677 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
55679 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
55680 Include <stdio.h>, to get FILE.
55681 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
55682 memcasecmp.h has included <stddef.h> and all we need is size_t.
55683 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
55684 our interface, instead of including <sys/types.h>
55686 2003-06-04 Paul Eggert <eggert@twinsun.com>
55688 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
55689 now, as glibc mktime is buggy on non-glibc systems.
55691 2003-06-03 Karl Berry <karl@gnu.org>
55693 * config/config.sub: update from prep.
55695 2003-06-02 Paul Eggert <eggert@twinsun.com>
55698 Fix some minor time-related bugs with POSIX time arguments.
55699 Some valid time stamps were being rejected (notably -1, and
55700 time stamps before 1900 on 64-bit hosts). And some invalid
55701 time stamps were being accepted, e.g. September 31.
55703 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
55704 that we can return (time_t) -1 successfully.
55705 * lib/posixtm.c: Likewise.
55706 [HAVE_STDBOOL_H]: Include <stdbool.h>.
55707 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
55708 (t): Remove static var.
55709 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
55710 of static var. All uses changed.
55711 (year): Do not reject years before 1900; they can occur with
55713 (posix_time_parse): Do not check for out-of-range components;
55714 that is now the caller's responsibility, since our checks were
55715 only approximations.
55716 (posixtime): Use mktime to check for out-of-range components,
55717 since it knows them exactly.
55718 If mktime returns (time_t) -1, check whether an error actually occurred
55719 by invoking localtime on -1.
55720 (main) [TEST_POSIXTIME]: Check for input data errors, and report
55721 posixtime failures better.
55722 Improve the test data (in comments only).
55724 2003-06-02 Karl Berry <karl@gnu.org>
55726 * config/mkinstalldirs (version): new variable.
55727 (--version): new option.
55728 (usage): improve message.
55730 2003-05-30 Karl Berry <karl@gnu.org>
55732 * lib/mktime.c: update from libc.
55734 2003-05-30 Bruno Haible <bruno@clisp.org>
55736 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
55737 * config/config.rpath: Upgrade to gettext-0.12.1.
55739 2003-05-30 Bruno Haible <bruno@clisp.org>
55741 * m4/gettext.m4: Upgrade to gettext-0.12.1.
55742 * m4/nls.m4: New file, from gettext-0.12.1.
55743 * m4/po.m4: New file, from gettext-0.12.1.
55744 * m4/progtest.m4: Upgrade to gettext-0.12.1.
55746 2003-05-30 Bruno Haible <bruno@clisp.org>
55748 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
55749 * lib/localcharset.h: Likewise.
55750 * lib/localcharset.c: Likewise.
55752 2003-05-29 Karl Berry <karl@gnu.org>
55754 * config/config.rpath: update from gettext.
55756 2003-05-28 Paul Eggert <eggert@twinsun.com>
55758 Assume the headers required for C89 freestanding compilers.
55759 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
55760 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
55761 * m4/human.m4 (gl_HUMAN): Likewise.
55762 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
55763 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
55764 * m4/userspec.m4 (gl_USERSPEC): Likewise.
55765 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
55766 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55767 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
55769 2003-05-28 Paul Eggert <eggert@twinsun.com>
55771 Assume the headers required for C89 freestanding compilers.
55772 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
55773 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
55774 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
55775 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
55776 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
55777 define, since <limits.h> is guaranteed to do that.
55778 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
55779 * lib/exclude.c: Include <stdbool.h> unconditionally.
55780 * lib/tempname.c: Include <stddef.h> unconditionally.
55781 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
55782 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
55783 <stddef.h> does that.
55784 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
55785 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
55786 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
55788 * lib/xstrtol.c: Likewise.
55789 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
55790 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
55792 * lib/addext.c (addext): Use assignment rather than cast, to avoid
55793 warnings on some platforms.
55795 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
55798 2003-05-26 Jim Meyering <jim@meyering.net>
55800 Merge in a change from coreutils:
55801 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
55802 that is guaranteed to be `no'. Use `no_such_member' to indicate
55803 that condition, rather than `-1' which is slightly misleading.
55804 Change the name of the cache variable to have the gl_ prefix.
55805 Prompted by a patch from Richard Dawe for DJGPP.
55807 2003-05-24 Karl Berry <karl@gnu.org>
55809 * config/config.guess: update from prep.
55811 2003-05-22 Karl Berry <karl@gnu.org>
55813 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
55815 2003-05-20 Karl Berry <karl@gnu.org>
55817 * config/config.guess: update from prep.
55819 2003-05-18 Karl Berry <karl@gnu.org>
55821 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
55822 might actually be set by the user.
55824 * config/depcomp, install-sh, mdate-sh: update from automake.
55826 2003-05-17 Bruno Haible <bruno@clisp.org>
55828 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
55829 invalid expansion for AC_EGREP_CPP.
55830 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
55831 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
55832 Suggested by Akim Demaille <akim@epita.fr> in
55833 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
55835 2003-05-12 Jim Meyering <jim@meyering.net>
55837 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
55838 the space-padded-by-default conversion specifiers, %e, %k, %l.
55840 2003-05-12 Bruno Haible <bruno@clisp.org>
55842 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
55843 the string is longer than 4 KB.
55845 2003-05-11 Karl Berry <karl@gnu.org>
55847 * config/config.{guess,sub}: update from prep.
55849 2003-05-09 Bruno Haible <bruno@clisp.org>
55851 * modules/error: Add m4/strerror_r.m4 to file list.
55853 2003-05-03 Bruno Haible <bruno@clisp.org>
55855 Upgrade to Unicode-4.0.
55856 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
55857 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
55858 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
55859 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
55860 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
55861 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
55862 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
55863 Change width of U+E0100..U+E01EF from 1 to 0.
55865 2003-04-25 Jim Meyering <jim@meyering.net>
55867 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
55868 of type size_t, not int.
55870 2003-04-25 Bruno Haible <bruno@clisp.org>
55872 * lib/copy-file.c: Include <stddef.h>, for size_t.
55874 2003-04-21 Paul Eggert <eggert@twinsun.com>
55876 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
55877 code which expansion is under static control. Patch imported from
55878 Akim Demaille's patch to Bison; see
55879 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
55881 2003-04-14 Bruno Haible <bruno@clisp.org>
55883 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
55885 2003-04-11 Jim Meyering <jim@meyering.net>
55887 Merge changes from Coreutils.
55889 2003-03-22 Jim Meyering <jim@meyering.net>
55891 * lib/strftime.c (widen): Cast alloca return value to proper type.
55893 2003-01-19 Ulrich Drepper <drepper@redhat.com>
55896 * lib/strftime.c (my_strftime): Handle very large width
55897 specifications for numeric values correctly. Improve checks for
55900 2003-01-19 Jim Meyering <jim@meyering.net>
55902 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
55904 (nl_get_alt_digit) [! defined my_strftime]: Define.
55905 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
55906 _nl_get_alt_digit and _nl_get_walt_digit.
55908 * lib/strftime.c (my_strftime): Merge in locale-related changes from
55909 libc. These changes have no effect outside of _LIBC.
55911 2003-04-10 Bruno Haible <bruno@clisp.org>
55913 * modules/findprog: New file.
55914 * MODULES.html.sh (func_all_modules): Add it.
55916 2003-04-10 Bruno Haible <bruno@clisp.org>
55918 * m4/findprog.m4: New file.
55919 * m4/eaccess.m4: New file.
55921 2003-04-10 Bruno Haible <bruno@clisp.org>
55923 * lib/findprog.h: New file, from GNU gettext.
55924 * lib/findprog.c: New file, from GNU gettext.
55926 2003-04-05 Jim Meyering <jim@meyering.net>
55928 Merge changes from Coreutils.
55930 * lib/exclude.h (PARAMS): Remove definition and uses.
55931 * lib/exclude.c: Remove uses of `PARAMS'.
55933 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
55934 Add test-cases for DOS filenames. Declare program_name.
55935 (main): Set up program_name. Patch by Rich Dawe.
55937 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
55939 Use mntctl's return value to drive the entry-processing loop, since
55940 we can't rely on the value of the vmt_length member in the last
55941 entry. On some systems doing so could result in exhausting
55942 virtual memory. Based in part on a patch from Mike Jetzer.
55944 2003-04-04 Bruno Haible <bruno@clisp.org>
55946 * modules/linebreak: New file.
55947 * MODULES.html.sh (func_all_modules): Add it.
55949 2003-04-04 Bruno Haible <bruno@clisp.org>
55951 * m4/linebreak.m4: New file.
55953 2003-04-04 Bruno Haible <bruno@clisp.org>
55955 * lib/linebreak.h: New file, from GNU gettext.
55956 * lib/linebreak.c: New file, from GNU gettext with slight
55958 * lib/lbrkprop.h: New file, from GNU gettext.
55960 2003-04-03 Bruno Haible <bruno@clisp.org>
55962 * modules/utf8-ucs4: New file.
55963 * modules/utf16-ucs4: New file.
55964 * modules/ucs4-utf8: New file.
55965 * modules/ucs4-utf16: New file.
55966 * MODULES.html.sh (func_all_modules): Add them.
55968 2003-04-03 Bruno Haible <bruno@clisp.org>
55970 * m4/utf-ucs4.m4: New file.
55971 * m4/ucs4-utf.m4: New file.
55973 2003-04-03 Bruno Haible <bruno@clisp.org>
55975 * lib/utf8-ucs4.h: New file, from GNU gettext.
55976 * lib/utf16-ucs4.h: New file, from GNU gettext.
55977 * lib/ucs4-utf8.h: New file, from GNU gettext.
55978 * lib/ucs4-utf16.h: New file, from GNU gettext.
55980 2003-04-02 Bruno Haible <bruno@clisp.org>
55982 * modules/binary-io: New file.
55983 * MODULES.html.sh (func_all_modules): Add it.
55985 2003-04-02 Bruno Haible <bruno@clisp.org>
55987 * lib/binary-io.h: New file, from GNU gettext.
55989 2003-04-01 Bruno Haible <bruno@clisp.org>
55991 * modules/pathname: New file.
55992 * MODULES.html.sh (func_all_modules): Add it.
55994 2003-04-01 Bruno Haible <bruno@clisp.org>
55996 * lib/pathname.h: New file, from GNU gettext.
55997 * lib/concatpath.c: New file, from GNU gettext.
55999 2003-03-30 Bruno Haible <bruno@clisp.org>
56001 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
56003 2003-03-30 Bruno Haible <bruno@clisp.org>
56005 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
56006 function chown() doesn't exist.
56008 2003-03-28 Bruno Haible <bruno@clisp.org>
56010 * modules/copy-file: New file.
56011 * MODULES.html.sh (func_all_modules): Add it.
56013 2003-03-28 Bruno Haible <bruno@clisp.org>
56015 * m4/copy-file.m4: New file.
56017 2003-03-28 Bruno Haible <bruno@clisp.org>
56019 * lib/copy-file.h: New file, from GNU gettext.
56020 * lib/copy-file.c: New file, from GNU gettext.
56022 2003-03-18 Jim Meyering <jim@meyering.net>
56024 * lib/quote.c (quote_n): Fix typo in comment.
56026 2003-03-18 Bruno Haible <bruno@clisp.org>
56028 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
56030 * m4/onceonly_2_57.m4: Likewise.
56032 2003-03-17 Bruno Haible <bruno@clisp.org>
56034 * m4/onceonly.m4: Require autoconf 2.54 or newer.
56035 (m4_quote): Remove macro.
56036 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
56038 2003-03-14 Jim Meyering <jim@meyering.net>
56040 Merge changes from Coreutils.
56041 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
56042 to be const, in order to avoid warnings.
56043 (obstack_room): Likewise.
56044 (obstack_empty_p): Likewise.
56046 2003-03-14 Bruno Haible <bruno@clisp.org>
56048 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
56049 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
56051 2003-03-13 Paul Eggert <eggert@twinsun.com>
56053 Merge changes from Bison.
56054 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
56055 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
56056 when compiling Bison 1.875's `bitset bset = obstack_alloc
56057 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
56058 * lib/hash.c: Include <stdbool.h> unconditionally.
56060 2003-03-13 Paul Eggert <eggert@twinsun.com>
56062 * m4/onceonly.m4 (m4_quote): New macro.
56063 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
56064 Quote AC_FOREACH variable-expansions properly.
56066 2003-03-13 Paul Eggert <eggert@twinsun.com>
56068 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
56070 2003-03-09 Paul Eggert <eggert@twinsun.com>
56072 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
56073 Reported by Bruce Becker; see:
56074 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
56076 2003-03-03 Paul Eggert <eggert@twinsun.com>
56077 Bruno Haible <bruno@clisp.org>
56079 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
56080 Reported by John Hughes, see
56081 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
56083 2003-02-20 Bruno Haible <bruno@clisp.org>
56085 * MODULES.html.sh (func_all_modules): Add poll.
56087 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
56089 * modules/poll: New file.
56091 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
56093 * lib/poll_.h: New file.
56094 * lib/poll.c: New file.
56096 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
56098 * m4/poll.m4: New file.
56100 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
56102 * modules/mathl: New file.
56104 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
56106 * lib/mathl.h: New file.
56107 * lib/acosl.c: New file.
56108 * lib/asinl.c: New file.
56109 * lib/atanl.c: New file.
56110 * lib/ceill.c: New file.
56111 * lib/cosl.c: New file.
56112 * lib/expl.c: New file.
56113 * lib/floorl.c: New file.
56114 * lib/frexpl.c: New file.
56115 * lib/ldexpl.c: New file.
56116 * lib/logl.c: New file.
56117 * lib/sincosl.c: New file.
56118 * lib/sinl.c: New file.
56119 * lib/sqrtl.c: New file.
56120 * lib/tanl.c: New file.
56121 * lib/trigl.c: New file.
56122 * lib/trigl.h: New file.
56124 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
56126 * m4/mathl.m4: New file.
56128 2003-02-18 Bruno Haible <bruno@clisp.org>
56130 * MODULES.html.sh (func_all_modules): Add mathl.
56132 2003-02-17 Bruno Haible <bruno@clisp.org>
56134 * modules/mkdtemp: New module.
56135 * MODULES.html.sh (func_all_modules): Add it.
56137 2003-02-17 Bruno Haible <bruno@clisp.org>
56139 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
56141 2003-02-17 Bruno Haible <bruno@clisp.org>
56143 * lib/mkdtemp.h: New file, from GNU gettext.
56144 * lib/mkdtemp.c: New file, from GNU gettext.
56146 2003-02-02 Jim Meyering <jim@meyering.net>
56148 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
56151 2003-01-31 Bruno Haible <bruno@clisp.org>
56153 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
56155 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
56157 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
56159 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
56162 2003-01-31 Bruno Haible <bruno@clisp.org>
56164 * lib/rename.c: #undef rename before defining rpl_rename.
56165 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
56167 2003-01-30 Bruno Haible <bruno@clisp.org>
56169 * modules/vasnprintf, modules/vasprintf: New modules.
56170 * MODULES.html.sh (func_all_modules): Add them.
56172 2003-01-30 Bruno Haible <bruno@clisp.org>
56174 * m4/signed.m4: New file, from GNU gettext.
56175 * m4/longdouble.m4: New file, from GNU gettext.
56176 * m4/wchar_t.m4: New file, from GNU gettext.
56177 * m4/wint_t.m4: New file, from GNU gettext.
56178 * m4/vasnprintf.m4: New file.
56179 * m4/vasprintf.m4: New file.
56181 2003-01-30 Bruno Haible <bruno@clisp.org>
56183 * lib/printf-args.h: New file, from GNU gettext.
56184 * lib/printf-args.c: New file, from GNU gettext.
56185 * lib/printf-parse.h: New file, from GNU gettext.
56186 * lib/printf-parse.c: New file, from GNU gettext.
56187 * lib/vasnprintf.h: New file, from GNU gettext.
56188 * lib/vasnprintf.c: New file, from GNU gettext.
56189 * lib/asnprintf.c: New file, from GNU gettext.
56190 * lib/vasprintf.h: New file, from GNU gettext with modifications.
56191 * lib/vasprintf.c: New file, from GNU gettext.
56192 * lib/asprintf.c: New file, from GNU gettext.
56194 2003-01-29 Bruno Haible <bruno@clisp.org>
56196 * modules/stpncpy: New module.
56197 * MODULES.html.sh (func_all_modules): Add it.
56199 2003-01-29 Bruno Haible <bruno@clisp.org>
56201 * m4/stpncpy.m4: New file.
56203 2003-01-29 Bruno Haible <bruno@clisp.org>
56205 * lib/stpncpy.h: New file, from GNU gettext with modifications.
56206 * lib/stpncpy.c: New file, from GNU gettext with modifications.
56208 2003-01-28 Bruno Haible <bruno@clisp.org>
56210 * modules/c-ctype: New module.
56211 * MODULES.html.sh (func_all_modules): Add it.
56213 2003-01-28 Bruno Haible <bruno@clisp.org>
56215 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
56217 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
56220 2003-01-27 Bruno Haible <bruno@clisp.org>
56222 * modules/xsetenv: New module.
56223 * MODULES.html.sh (func_all_modules): Add it.
56225 2003-01-27 Bruno Haible <bruno@clisp.org>
56227 * lib/xsetenv.h: New file, from GNU gettext.
56228 * lib/xsetenv.c: New file, from GNU gettext.
56230 2003-01-23 Jim Meyering <jim@meyering.net>
56232 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
56233 from working on systems without dirfd (at least Irix and OSF1/Tru64).
56235 2003-01-23 Bruno Haible <bruno@clisp.org>
56237 * modules/minmax: New module.
56238 * MODULES.html.sh (func_all_modules): Add it.
56240 2003-01-23 Bruno Haible <bruno@clisp.org>
56242 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
56245 2003-01-22 Bruno Haible <bruno@clisp.org>
56247 * modules/exit: New module.
56248 * MODULES.html.sh (func_all_modules): Add it.
56250 2003-01-22 Bruno Haible <bruno@clisp.org>
56252 * lib/exit.h: New file, from GNU gettext.
56254 2003-01-19 Bruno Haible <bruno@clisp.org>
56256 * gnulib-tool: Recognize option --extract-maintainer.
56257 (func_get_maintainer): New function.
56258 * modules/*: Add Maintainer entry.
56260 2003-01-16 Jim Meyering <jim@meyering.net>
56262 * m4/regex.m4: The `regex' struct is both input and output.
56263 Initialize it before each use. Patch by Tim Waugh.
56265 2003-01-16 Bruno Haible <bruno@clisp.org>
56267 * MODULES.html.sh: Add a table of contents. Add the module name as
56268 leftmost column. Add hyperlinks.
56270 2003-01-15 Bruno Haible <bruno@clisp.org>
56272 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
56274 2003-01-15 Bruno Haible <bruno@clisp.org>
56276 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
56277 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
56280 2003-01-15 Bruno Haible <bruno@clisp.org>
56282 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
56284 2003-01-15 Bruno Haible <bruno@clisp.org>
56286 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
56287 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
56289 2003-01-14 Jim Meyering <jim@meyering.net>
56291 * lib/same.c (same_name): Tweak a comment.
56293 2003-01-14 Bruno Haible <bruno@clisp.org>
56295 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
56296 when a string comparison is sufficient.
56298 2003-01-14 Bruno Haible <bruno@clisp.org>
56300 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
56303 2003-01-14 Bruno Haible <bruno@clisp.org>
56305 * lib/hash-pjw.c: Add comment about low quality of this function.
56307 2003-01-13 Bruno Haible <bruno@clisp.org>
56309 * modules/stpcpy: Distribute lib/stpcpy.h.
56310 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
56312 2003-01-13 Bruno Haible <bruno@clisp.org>
56314 * modules/*: Add a description.
56315 * modules/strpbrk: Fix Makefile.am snippet.
56316 * modules/strtoimax: Fix dependencies.
56317 * modules/strtoumax: Likewise.
56319 2003-01-13 Bruno Haible <bruno@clisp.org>
56321 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
56322 * modules/alloca (Makefile.am): All object files depend on alloca.h.
56323 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
56325 2003-01-13 Bruno Haible <bruno@clisp.org>
56327 * gnulib-tool (func_create_testdir): Store config/* files in the main
56329 * config.rpath: Move to ...
56330 * config/config.rpath: ... here.
56331 * modules/gettext: Contains config/config.rpath, not config.rpath.
56332 * modules/iconv: Likewise.
56334 2003-01-12 Paul Eggert <eggert@twinsun.com>
56336 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
56337 to avoid collisions with libcurses and libreadline.
56339 * m4/getstr.m4: Remove.
56340 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
56342 2003-01-12 Paul Eggert <eggert@twinsun.com>
56344 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
56345 to avoid collisions with libcurses and libreadline.
56347 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
56348 * lib/getstr.h, getstr.c: Remove.
56349 * lib/getline.c: Include "getline.h", to check interface.
56350 Move body of old getstr.c here: this defines MIN_CHUNK and
56351 declares getdelim2, which is renamed from getstr.
56352 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
56354 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
56356 * lib/linebuffer.h: Likewise.
56357 (readline): Remove backward-compatibility macro.
56359 2003-01-12 Paul Eggert <eggert@twinsun.com>
56361 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
56362 to avoid collisions with libcurses and libreadline.
56364 * MODULES.html.sh: Remove getstr.
56365 * modules/getline: Depend on unlocked-io, not getstr.
56367 2003-01-12 Jim Meyering <jim@meyering.net>
56369 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
56371 2003-01-10 Bruno Haible <bruno@clisp.org>
56373 * modules/alloca: Change Makefile.am requirements. Simplify Include
56374 requirements. Add lib/alloca_.h to file list.
56376 2003-01-10 Bruno Haible <bruno@clisp.org>
56378 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
56380 2003-01-10 Bruno Haible <bruno@clisp.org>
56382 * lib/alloca_.h: New file.
56383 * lib/getdate.y: Unconditionally include alloca.h.
56384 * lib/makepath.c: Likewise.
56385 * lib/setenv.c: Likewise.
56386 * lib/userspec.c: Likewise.
56388 2003-01-09 Karl Berry <karl@gnu.org>
56390 * MODULES.html.sh: include `dirname $0` in PATH, to find
56393 2003-01-09 Bruno Haible <bruno@clisp.org>
56395 * modules/stdbool: Change configure.ac, Makefile.am requirements.
56396 Simplify Include requirements. Add lib/stdbool.h.in to file list.
56398 2003-01-09 Bruno Haible <bruno@clisp.org>
56400 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
56402 2003-01-09 Bruno Haible <bruno@clisp.org>
56404 * lib/stdbool.h.in: New file.
56406 2003-01-09 Bruno Haible <bruno@clisp.org>
56408 * gnulib-tool (func_all_modules): Ignore files ending in ~.
56409 * MODULES.html.sh: Likewise.
56411 2003-01-08 Jim Meyering <jim@meyering.net>
56413 * lib/full-write.c: Undefine and define-away `const' after inclusion
56414 of errno.h, not before. Suggestion from Bruno Haible.
56416 2003-01-08 Bruno Haible <bruno@clisp.org>
56418 * modules/full-read: Depend on full-write.
56420 2003-01-08 Bruno Haible <bruno@clisp.org>
56422 * lib/safe-read.c: Include specification header first, to ensure its
56424 * lib/full-write.c: Likewise.
56426 2003-01-07 Jim Meyering <jim@meyering.net>
56428 * lib/full-write.c: Rework so that it may serve to define full_read,
56430 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
56432 2003-01-07 Bruno Haible <bruno@clisp.org>
56434 * lib/strtoimax.c: Include <stdint.h> as an alternative to
56436 * lib/xstrtol.h: Likewise.
56437 * lib/xstrtoimax.c: Likewise.
56438 * lib/xstrtoumax.c: Likewise.
56439 * lib/human.h: Likewise.
56441 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
56442 on systems that have <inttypes.h> but not <stdint.h>.
56444 2003-01-07 Bruno Haible <bruno@clisp.org>
56446 * MODULES.html.sh: Add copyright notice.
56447 (missed_files): Omit CVS directory entries.
56448 (func_module): Make it work with sed-3.02.
56449 * MODULES.txt: Remove file.
56451 2003-01-06 Jim Meyering <jim@meyering.net>
56453 * lib/version-etc.c: Update year in translatable copyright string.
56455 2003-01-03 Karl Berry <karl@gnu.org>
56457 * config/config.{guess,sub}: update from prep.
56459 2003-01-02 Karl Berry <karl@gnu.org>
56461 * doc/COPYING.DOC: belatedly updated to 1.2.
56463 2003-01-01 Karl Berry <karl@gnu.org>
56465 * gnulib-tool (func_verify_module): report module name $module in
56466 error message, not $1.
56467 * gnulib-tool (create-testdir): don't complain if destdir couldn't
56468 be created, only if it doesn't exist.
56469 * gnulib-tool (last_checkin_date): don't expand the $Date here.
56471 2002-12-31 Paul Eggert <eggert@twinsun.com>
56473 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
56475 2002-12-31 Paul Eggert <eggert@twinsun.com>
56477 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
56478 memcmp if strcoll doesn't work.
56480 2002-12-31 Bruno Haible <bruno@clisp.org>
56482 * lib/utime.c (utime_null): No need to call ftruncate if the file was
56485 2002-12-31 Bruno Haible <bruno@clisp.org>
56487 * lib/memcoll.c (STRCOLL): New macro.
56490 2002-12-31 Bruno Haible <bruno@clisp.org>
56492 * lib/localcharset.h: New file.
56493 * lib/localcharset.c: Include it.
56494 * lib/unicodeio.c: Likewise.
56496 2002-12-31 Bruno Haible <bruno@clisp.org>
56498 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
56499 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
56501 2002-12-31 Bruno Haible <bruno@clisp.org>
56503 * lib/getline.h: Include <stddef.h>, for size_t.
56505 * lib/unicodeio.h: Include <stddef.h>, for size_t.
56506 * lib/unicodeio.c: Don't include <stddef.h>.
56508 2002-12-31 Bruno Haible <bruno@clisp.org>
56510 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
56513 2002-12-24 Karl Berry <karl@gnu.org>
56515 * config/config.guess: update from prep.
56517 2002-12-24 Bruno Haible <bruno@clisp.org>
56519 General infrasructure.
56520 * m4/README: Rewritten.
56521 * m4/onceonly.m4: New file.
56522 * m4/onceonly_2_57.m4: New file.
56525 * m4/atexit.m4: New file.
56528 * m4/strtod.m4: New file.
56531 * m4/strtol.m4: New file.
56534 * m4/strtoul.m4: New file.
56537 * m4/memchr.m4: New file.
56540 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
56541 (jm_FUNC_MEMCMP): Invoke it.
56544 * m4/memcpy.m4: New file.
56547 * m4/memmove.m4: New file.
56550 * m4/memset.m4: New file.
56553 * m4/strcspn.m4: New file.
56556 * m4/strpbrk.m4: New file.
56559 * m4/strstr.m4: New file.
56562 * m4/strerror.m4: New file.
56565 * m4/mktime.m4: Renamed from jm-mktime.m4.
56566 (gl_PREREQ_MKTIME): New macro.
56567 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
56570 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
56571 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
56572 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
56575 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
56576 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
56577 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
56580 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
56581 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
56582 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
56584 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
56587 * m4/xalloc.m4: New file.
56590 * m4/alloca.m4: New file.
56593 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
56594 (jm_FUNC_PUTENV): Invoke it.
56597 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
56598 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
56599 when invoked twice.
56600 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
56604 * m4/memrchr.m4: New file.
56607 * m4/stpcpy.m4: New file.
56610 * m4/strcase.m4: New file.
56613 * m4/strdup.m4: New file.
56616 * m4/strnlen.m4: New file.
56619 * m4/strndup.m4: New file.
56622 * m4/xstrtod.m4: New file.
56625 * m4/xstrtol.m4: New file.
56628 * m4/getdate.m4: New file.
56630 Module unlocked-io.
56631 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
56632 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
56633 * m4/jm-glibc-io.m4n: Remove file.
56635 Module long-options.
56636 * m4/long-options.m4: New file.
56639 * m4/md5.m4: New file.
56642 * m4/sha.m4: New file.
56645 * m4/getstr.m4: New file.
56648 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
56649 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
56650 <sys/types.h>, for size_t. Use the function name gnu_getline, not
56651 simply getline. Infoke gl_PREREQ_GETLINE.
56654 * m4/obstack.m4: New file.
56657 * m4/hash.m4: New file.
56660 * m4/readtokens.m4: New file.
56663 * m4/strverscmp.m4: New file.
56666 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
56670 * m4/strtoll.m4: New file.
56673 * m4/strtoull.m4: New file.
56676 * m4/strtoimax.m4: New file.
56679 * m4/strtoumax.m4: New file.
56682 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
56683 jm_AC_PREREQ_XSTRTOIMAX.
56684 Moved the strtol prerequisites to strtol.m4.
56685 Moved the strtoll prerequisites to strtoll.m4.
56686 Moved the strtoimax prerequisites to strtoimax.m4.
56689 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
56690 jm_AC_PREREQ_XSTRTOUMAX.
56691 Moved the strtoul prerequisites to strtoul.m4.
56692 Moved the strtoull prerequisites to strtoull.m4.
56693 Moved the strtoumax prerequisites to strtoumax.m4.
56696 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
56697 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
56700 * m4/dup2.m4: New file.
56703 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
56704 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
56707 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
56708 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
56710 Module gettimeofday.
56711 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
56712 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
56713 gl_PREREQ_GETTIMEOFDAY.
56716 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
56717 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
56720 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
56721 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
56722 jm_AC_TYPE_UINTMAX_T.
56723 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
56726 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
56727 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
56730 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
56731 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
56734 * m4/timespec.m4 (gl_TIMESPEC): New macro.
56735 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
56736 * m4/st_mtim.m4: Indentation.
56739 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
56740 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
56741 gl_PREREQ_NANOSLEEP.
56744 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
56745 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
56746 (gl_REGEX): New macro.
56749 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
56750 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
56753 * m4/rmdir.m4: New file.
56756 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
56757 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
56758 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
56761 * m4/dirname.m4: New file.
56764 * m4/getopt.m4: New file.
56766 Module unistd-safer.
56767 * m4/unistd-safer.m4: New file.
56770 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
56772 (gl_PREREQ_FNMATCH_EXTRA): New macro.
56773 (gl_FUNC_FNMATCH_POSIX): New macro.
56774 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
56775 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
56779 * m4/exclude.m4: New file.
56782 * m4/human.m4: New file.
56788 * m4/backupfile.m4: New file.
56789 * m4/d-ino.m4: Indentation.
56792 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
56793 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
56794 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
56797 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
56801 * m4/euidaccess.m4: New file.
56804 * m4/file-type.m4: New file.
56807 * m4/fileblocks.m4: New file.
56810 * m4/filemode.m4: New file.
56813 * m4/isdir.m4: New file.
56816 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
56817 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
56820 * m4/makepath.m4: New file.
56823 * m4/modechange.m4: New file.
56826 * m4/mountlist.m4: New file.
56827 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
56830 Module path-concat.
56831 * m4/path-concat.m4: New file.
56834 * m4/pathmax.m4: New file.
56837 * m4/same.m4: New file.
56840 * m4/save-cwd.m4: New file.
56843 * m4/savedir.m4: New file.
56846 * m4/xgetcwd.m4: New file.
56847 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
56850 * m4/xreadlink.m4: New file.
56853 * m4/safe-read.m4: New file.
56856 * m4/safe-write.m4: New file.
56859 * m4/closeout.m4: New file.
56861 Module stdio-safer.
56862 * m4/stdio-safer.m4: New file.
56865 * m4/getpass.m4: New file.
56868 * m4/getugroups.m4: New file.
56870 Module group-member.
56871 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
56872 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
56875 * m4/idcache.m4: New file.
56878 * m4/userspec.m4: New file.
56881 * m4/clock_time.m4: New file.
56882 * m4/gettime.m4: New file.
56885 * m4/settime.m4: New file.
56888 * m4/posixtm.m4: New file.
56890 Module gethostname.
56891 * m4/gethostname.m4: New file.
56894 * m4/canon-host.m4: New file.
56897 * m4/codeset.m4: New file, from gettext-0.11.5.
56898 * m4/gettext.m4: New file, from gettext-0.11.5.
56899 * m4/glibc21.m4: New file, from gettext-0.11.5.
56900 * m4/iconv.m4: New file, from gettext-0.11.5.
56901 * m4/intdiv0.m4: New file, from gettext-0.11.5.
56902 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
56903 * m4/inttypes.m4: New file, from gettext-0.11.5.
56904 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
56905 * m4/isc-posix.m4: New file, from gettext-0.11.5.
56906 * m4/lcmessage.m4: New file, from gettext-0.11.5.
56907 * m4/lib-ld.m4: New file, from gettext-0.11.5.
56908 * m4/lib-link.m4: New file, from gettext-0.11.5.
56909 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
56910 * m4/progtest.m4: New file, from gettext-0.11.5.
56911 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
56912 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
56913 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
56915 Module localcharset.
56916 * m4/localcharset.m4: New file.
56918 Module hard-locale.
56919 * m4/hard-locale.m4: New file.
56922 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
56924 * m4/mbrtowc.m4: Add comment.
56927 * m4/memcasecmp.m4: New file.
56930 * m4/memcoll.m4: New file.
56933 * m4/unicodeio.m4: New file.
56936 * m4/rpmatch.m4: New file.
56939 * m4/yesno.m4: New file.
56942 * m4/exitfail.m4: New file.
56945 * m4/c-stack.m4 (gl_C_STACK): New macro.
56946 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
56949 * m4/error.m4 (gl_ERROR): New macro.
56950 (jm_PREREQ_ERROR): Use onceonly macros.
56953 * m4/fatal.m4: New file.
56956 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
56957 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
56959 Module getpagesize.
56960 * m4/getpagesize.m4: New file.
56962 Module getusershell.
56963 * m4/getusershell.m4: New file.
56966 * m4/physmem.m4: New file.
56969 * m4/posixver.m4: New file.
56972 * m4/quotearg.m4: New file.
56975 * m4/quote.m4: New file.
56978 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
56981 * m4/sig2str.m4: New file.
56984 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
56986 * m4/intmax_t.m4: New file.
56987 * m4/d-type.m4: Indentation.
56988 * m4/jm-macros.m4: Update.
56989 * m4/prereq.m4 (jm_PREREQ): Update.
56990 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
56991 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
56992 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
56993 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
56994 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
56995 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
56996 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
56997 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
56998 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
56999 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
57000 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
57001 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
57002 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
57003 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
57004 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
57005 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
57006 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
57007 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
57008 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
57010 2002-12-24 Bruno Haible <bruno@clisp.org>
57012 * MODULES.txt: Update according to m4/ changes.
57015 * config.rpath: New file, from gettext-0.11.5.
57017 * modules/*: New module descriptions.
57018 * gnulib-tool: New file.
57019 * MODULES.html.sh: New file.
57021 2002-12-21 Karl Berry <karl@gnu.org>
57023 * doc/fdl.texi: update to version 1.2.
57025 2002-12-19 Karl Berry <karl@gnu.org>
57027 * config/config.guess: update from prep.
57029 2002-12-18 Bruno Haible <bruno@clisp.org>
57031 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
57032 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
57034 2002-12-17 Bruno Haible <bruno@clisp.org>
57036 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
57037 stdlib.h, string.h.
57039 2002-12-17 Bruno Haible <bruno@clisp.org>
57041 * lib/canon-host.c (strdup): Remove unused declaration.
57043 * lib/fsusage.c: Include full_read.h.
57044 (get_fs_usage): Use full_read instead of safe_read.
57046 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
57048 2002-12-12 Karl Berry <karl@gnu.org>
57050 * config/config.guess: update from prep.
57052 2002-12-11 Bruno Haible <bruno@clisp.org>
57054 * m4/setenv.m4: New file, from gettext-0.11.5.
57056 2002-12-11 Bruno Haible <bruno@clisp.org>
57058 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
57060 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
57063 2002-12-11 Bruno Haible <bruno@clisp.org>
57065 * setenv.c (alloca): Fall back to malloc.
57066 (freea): New macro.
57067 (setenv): Use freea() to free memory allocated with alloca().
57069 2002-11-13 Bruno Haible <bruno@clisp.org>
57071 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
57072 function declarations.
57073 * unsetenv.c (unsetenv): Likewise.
57075 2002-03-04 Bruno Haible <bruno@clisp.org>
57077 Portability to AIX 4.3.3.
57078 * unsetenv.c: New file, extracted from setenv.c.
57079 * setenv.c: Move the unsetenv() function to unsetenv.c.
57081 2001-12-20 Bruno Haible <bruno@clisp.org>
57083 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
57084 use malloc instead. For SunOS 4.
57086 2001-12-11 Bruno Haible <bruno@clisp.org>
57088 * setenv.c: Declare alloca.
57089 (compar_fn_t): New typedef.
57090 (KNOWN_VALUE, STORE_VALUE): Use it.
57092 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
57095 2002-12-10 Paul Eggert <eggert@twinsun.com>
57097 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
57098 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
57099 Choose values that are less likely to collide with system fnmatch
57101 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
57102 defined (e.g., a pure POSIX system).
57103 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
57104 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
57106 2002-12-06 Paul Eggert <eggert@twinsun.com>
57108 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
57109 a pain in practice to deal with generated m4 files. This change
57110 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
57112 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
57113 and jm-glibc-io.m4, as they are no longer a special case.
57114 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
57115 kludge and the auto-generation stuff. Check only whether the
57116 functions are declared, not whether they exist, since older hosts
57117 that don't declare the functions can't use the optimization anyway.
57119 2002-12-06 Jim Meyering <jim@meyering.net>
57121 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
57123 Merge in changes from libc's misc/error.c, in preparation
57124 for the merge of gnulib's changes back into libc.
57126 * lib/error.c (_): Define only if not already defined.
57127 Move definition to follow all #include directives.
57128 Include unlocked-io.h only if !_LIBC.
57129 [_LIBC]: Include <libio/libioP.h>.
57130 [USE_IN_LIBIO]: Include <libio/iolibio.h>
57131 (fflush): Tweak definition to use INTUSE.
57134 2002-12-05 Paul Eggert <eggert@twinsun.com>
57136 * lib/alloca.c [defined emacs]: Include "lisp.h".
57137 (xalloc_die) [defined emacs]: New macro.
57138 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
57139 [! defined emacs]: Include <xalloc.h>.
57140 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
57141 (pointer): Typedef to POINTER_TYPE *.
57142 (malloc): Remove decl; we now always use xmalloc.
57143 (alloca): Use old-style definition, since Emacs needs this.
57144 Check for arithmetic overflow when computing combined size.
57146 2002-12-04 Paul Eggert <eggert@twinsun.com>
57148 Do not generate unlocked-io.h automatically, since it's easier to
57149 maintain it by hand.
57151 * lib/unlocked-io.h: New file, from GNU diffutils,
57152 but with proper copyright notice and attribution.
57153 * lib/gen-uio: Remove.
57154 * lib/Makefile.am: Add copyright notice.
57155 (libfetish_a_SOURCES): Add unlocked-io.h.
57156 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
57157 (DISTCLEANFILES, io_functions): Remove macros.
57158 (EXTRA_DIST): Remove gen_uio.
57159 (unlocked-io.h): Remove rule.
57161 2002-12-04 Jim Meyering <jim@meyering.net>
57163 Reflect the fact that stat.c and lstat.c are no longer generated.
57164 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
57165 (DISTCLEANFILES): Likewise.
57166 (EXTRA_DIST): Likewise.
57167 (all_local): Don't depend on stat.c or lstat.c.
57168 (stat.c, lstat.c): Remove rules.
57169 (EXTRA_DIST): Remove xstat.in.
57171 * lib/xstat.in: Remove file. Contents moved into stat.c.
57172 * lib/stat.c: New file. Contents mostly from xstat.in.
57173 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
57174 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
57176 * lib/safe-read.c: Rework so that it may serve to define safe_write,
57178 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
57180 2002-12-03 Jim Meyering <jim@meyering.net>
57182 * lib/safe-read.c, safe-write.c: Change variable names and comments,
57183 but not semantics, to minimize the differences between these two files.
57184 (safe_read): Change comment to mention SAFE_READ_ERROR.
57186 * lib/safe-read.c (IS_EINTR): Define.
57187 (safe_read): Use IS_EINTR in place of in-function cpp directives.
57189 2002-12-02 Jim Meyering <jim@meyering.net>
57191 * lib/safe-read.c (EINTR): Define.
57192 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
57193 (INT_MAX): Provide fallback.
57194 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
57196 * lib/safe-read.h (SAFE_READ_ERROR): Define.
57198 2002-12-02 Bruno Haible <bruno@clisp.org>
57200 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
57201 Define, taken from safe-read.c.
57202 (INT_MAX): Provide fallback.
57203 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
57204 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
57206 * lib/safe-read.c (EINTR): Remove definition.
57207 (safe_read): Don't use EINTR if it is absent.
57209 2002-12-01 Jim Meyering <jim@meyering.net>
57211 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
57213 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
57215 2002-11-27 Paul Eggert <eggert@twinsun.com>
57217 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
57218 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
57219 with `if (! (value < limit)) abort ();', for readability.
57221 2002-11-26 Karl Berry <karl@gnu.org>
57223 * lib/strdup.c: copy from libc again, with jim's ok.
57224 * lib/.cppi-disable: re-add strdup.c
57226 2002-11-25 Karl Berry <karl@gnu.org>
57228 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
57229 instead of "strtol.c".
57231 2002-11-25 Karl Berry <karl@gnu.org>
57233 * config/install-sh: update from automake for variable quoting, $0 in
57236 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
57237 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
57240 2002-11-25 Jim Meyering <jim@meyering.net>
57242 * lib/mktime.c: Sync from libc, now that it has the latest fix.
57244 2002-11-24 Karl Berry <karl@gnu.org>
57246 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
57247 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
57249 2002-11-24 Jim Meyering <jim@meyering.net>
57251 Update from coreutils:
57253 * lib/mktime.c: Merge in changes from libc.
57255 Avoid a link-time failure on some Linux systems.
57256 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
57258 (__mon_yday): Declare with the STATIC attribute.
57259 (__mktime_internal): Likewise.
57260 Based on a report from Greg Schafer.
57262 2002-11-23 Jim Meyering <jim@meyering.net>
57264 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
57265 Use `unsigned', not `int', as type of index.
57267 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
57269 * lib/fsusage.c: Remove unneeded parentheses around operands of
57272 2002-11-22 Paul Eggert <eggert@twinsun.com>
57274 * lib/quotearg.h: Allow multiple inclusion by surrounding with
57275 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
57276 so that we can be included first.
57277 (PARAMS): Remove; we now assume C89 or later. All uses removed.
57278 * lib/quotearg.c: Include quotearg.h immediately after config.h.
57279 No need to include stddef.h or sys/types.h any more.
57280 Surround local include files with "", not "<>".
57281 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
57282 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
57283 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
57284 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
57285 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
57286 (ISPRINT): Remove; no longer needed now that we assume C89.
57288 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
57291 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
57292 quotearg_char): Use SIZE_MAX rather than
57293 (size_t) -1 when we are talking about "infinity".
57295 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
57297 2002-11-22 Paul Eggert <eggert@twinsun.com>
57299 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
57300 hint that one should use `if (! x) abort ();' rather than `assert
57301 (x);', and anyway it's one less thing to worry about configuring.
57302 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
57303 hash_rehash, hash_insert): Use abort rather than assert.
57305 2002-11-22 Bruno Haible <bruno@clisp.org>
57307 * lib/safe-read.h: Assume C89. Add comments.
57308 (safe_read): Change return type to size_t.
57309 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
57310 byte counts > SSIZE_MAX correctly.
57311 * lib/safe-write.h: New file.
57312 * lib/safe-write.c: New file.
57313 * lib/full-read.h: New file.
57314 * lib/full-read.c: New file.
57315 * lib/full-write.h: Assume C89. Add comments.
57316 * lib/full-write.c: Include safe-write.h.
57317 (full_write): Rewritten to use safe_write.
57318 Suggested by Jim Meyering and Paul Eggert.
57320 2002-11-21 Jim Meyering <jim@meyering.net>
57322 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
57324 Merge in changes from the coreutils.
57326 2002-09-25 Paul Eggert <eggert@twinsun.com>
57327 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
57329 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
57330 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
57331 int. Work more efficiently if X is the same width as uintmax_t.
57332 Do not compare X to -1, to avoid bogus compiler warning.
57333 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
57334 Don't assume that f_frsize and f_bsize are the same type.
57336 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
57337 warning on FreeBSD.
57339 * lib/makepath.c (make_path): Restore umask *before* creating the final
57341 (make_path): Minor reformatting.
57343 * lib/xmalloc.c: Adjust to work with new autoconf macros,
57344 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
57345 HAVE_MALLOC/HAVE_REALLOC.
57347 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
57348 dummy ones. At least on GNU/Linux systems, `auto' means something
57350 From Michael Stone.
57352 2002-11-21 Bruno Haible <bruno@clisp.org>
57354 Remove case insensitive option matching.
57355 * lib/argmatch.h (argcasematch): Remove declaration.
57356 (ARGCASEMATCH): Remove macro.
57357 (__xargmatch_internal): Remove case_sensitive argument.
57358 (XARGMATCH): Update.
57359 (XARGCASEMATCH): Remove macro.
57360 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
57361 case_sensitive argument.
57362 (argcasematch): Remove function.
57363 (__xargmatch_internal): Remove case_sensitive argument.
57364 (main): Use XARGMATCH instead of XARGCASEMATCH.
57366 * lib/xmalloc.c: Change compile-time error message. Add comment about
57367 required autoconf version.
57369 2002-11-20 Paul Eggert <eggert@twinsun.com>
57371 Merge argmatch cleanups from Bison. Assume C89.
57373 * lib/argmatch.c: Include config.h here, not in argmatch.h.
57374 Include stdlib.h, for EXIT_FAILURE.
57375 Always include <string.h>, since we assume C89.
57376 (EXIT_FAILURE): Remove pre-C89 bug workaround.
57377 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
57378 Include <stddef.h> instead, since it's all we need for size_t.
57379 (PARAMS): Remove. All uses removed.
57380 (ARRAY_CARDINALITY): Do not bother to #undef.
57381 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
57382 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
57383 Remove unnecessary parentheses.
57384 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
57385 Insert necessary parentheses.
57386 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
57387 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
57389 2002-11-19 Bruno Haible <bruno@clisp.org>
57391 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
57392 * lib/mbswidth.h: Include <stddef.h>, for size_t.
57394 * lib/mbswidth.h (PARAMS): Remove macro.
57395 (mbswidth, mbsnwidth): Use ANSI C function declarations.
57396 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
57398 * lib/gcd.h (PARAMS): Remove macro.
57399 (gcd): Use ANSI C function declarations.
57400 * lib/gcd.c (gcd): Likewise.
57402 2002-11-15 Bruno Haible <bruno@clisp.org>
57404 * lib/strcspn.c: Include <stddef.h>.
57405 (strcspn): Use ANSI C function declaration. Change return type to
57407 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
57408 (strpbrk): Use NULL.
57409 * lib/strpbrk.h (PARAMS): Remove macro.
57410 (strpbrk): Use ANSI C function declaration.
57411 * lib/strstr.c: Don't include <sys/types.h>.
57412 * lib/strstr.h (PARAMS): Remove macro.
57413 (strstr): Use ANSI C function declarations.
57415 2002-11-14 Karl Berry <karl@gnu.org>
57417 * config/mkinstalldirs: `do' on separate line, instead of
57420 2002-11-06 Bruno Haible <bruno@clisp.org>
57422 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
57423 * lib/gcd.c (gcd): Likewise.
57425 2002-11-05 Bruno Haible <bruno@clisp.org>
57427 * lib/gcd.h: New file, from gettext-0.11.5.
57428 * lib/gcd.c: New file, from gettext-0.11.5.
57430 2002-11-05 Bruno Haible <bruno@clisp.org>
57432 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57433 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57434 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57435 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57437 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
57439 * lib/makepath.c: Include gettext.h instead of <locale.h> and
57442 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
57443 * lib/human.c: Include gettext.h instead of <libintl.h>.
57444 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
57445 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
57446 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
57447 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
57448 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
57449 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
57450 (textdomain): Remove definition.
57451 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
57453 * lib/long-options.c: Remove include of <libintl.h> and definition of
57455 * lib/same.c: Remove include of <libintl.h> and definition of _.
57457 2002-11-04 Owen Taylor <otaylor@redhat.com>
57459 * lib/config.charset: A few additions for Solaris.
57461 2002-11-04 Bruno Haible <haible@clisp.cons.org>
57463 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
57464 * lib/localcharset.c (locale_charset): Declare as extern "C".
57466 2002-11-04 Bruno Haible <haible@clisp.cons.org>
57468 * lib/config.charset: msdos in uk_UA uses CP1125.
57470 2002-11-04 Bruno Haible <bruno@clisp.org>
57472 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
57473 * lib/strcase.h: New file, from GNU gettext-0.11.5.
57474 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
57475 * lib/strstr.h: New file, from GNU gettext-0.11.5.
57476 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
57478 2002-11-04 Bruno Haible <bruno@clisp.org>
57480 * lib/localcharset.c (locale_charset): Don't return an empty string.
57482 2002-11-04 Bruno Haible <bruno@clisp.org>
57484 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
57487 2002-11-04 Bruno Haible <bruno@clisp.org>
57489 * lib/config.charset: Update for newest glibc. Add canonical names
57490 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
57492 2002-11-04 Bruno Haible <bruno@clisp.org>
57494 * lib/config.charset: Add support for NetBSD.
57496 2002-11-04 Bruno Haible <bruno@clisp.org>
57498 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
57500 2002-11-01 Bruno Haible <bruno@clisp.org>
57502 * configure.in: Add AC_CONFIG_AUX_DIR call.
57503 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
57505 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
57507 2002-09-28 Karl Berry <karl@gnu.org>
57509 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
57510 installed automake until the next release, since changes have been
57513 2002-09-25 Karl Berry <karl@gnu.org>
57515 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
57516 * lib/getopt*: copy from libc/posix.
57517 * lib/gettext.h: copy from gettext.
57518 * lib/.cppi-disable: add strdup.c, gettext.h.
57520 2002-09-25 Karl Berry <karl@gnu.org>
57522 * config/srclist.txt: enable gettext.h check.
57523 * config/config.{guess,sub}: update from prep.
57524 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
57525 from automake 1.6.3.
57528 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
57530 * regex.c (PATFETCH): Remove the translating fetch.
57531 (PATFETCH_RAW): Rename to PATFETCH.
57532 (set_image_of_range): New fun.
57533 (SET_RANGE_TABLE_WORK_AREA): Use it.
57534 (regex_compile): Don't translate the pattern chars so eagerly.
57535 Only do it when inserting an `exactn' bytecode or when handling
57537 (mutually_exclusive_p): Avoid empty statement.
57539 2002-07-06 Jim Meyering <meyering@lucent.com>
57541 * m4/README: Don't mention Makefile.am.in.
57542 Outline how I've tested changes to .m4 files. Yep, it's a pain.
57544 2002-07-01 Jim Meyering <meyering@lucent.com>
57546 * lib/c-stack.c: Include sys/time.h.
57547 From Volker Borchert.
57549 2002-06-26 Paul Eggert <eggert@twinsun.com>
57551 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
57553 2002-06-26 Paul Eggert <eggert@twinsun.com>
57555 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
57556 New macro. Use it uniformly instead of
57557 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
57558 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
57559 reported by Vin Shelton.
57561 2002-06-22 Paul Eggert <eggert@twinsun.com>
57563 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
57564 Do not assume SA_SIGINFO behavior.
57565 Bug reported by Jim Meyering on NetBSD 1.5.2.
57567 2002-06-22 Jim Meyering <meyering@lucent.com>
57569 * m4/c-stack.m4: New file, from diffutils-2.8.2.
57570 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
57572 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
57573 now that configure.ac uses AC_GNU_SOURCE.
57574 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
57575 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
57577 Update to latest tools. Suggestions from Paul Eggert.
57578 * m4/stdbool.m4: New file, from diffutils-2.8.2.
57579 * m4/gnu-source.m4: Update from diffutils-2.8.2.
57580 * m4/fnmatch.m4: Likewise.
57581 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
57582 to AC_HEADER_STDBOOL
57584 2002-06-22 Jim Meyering <meyering@lucent.com>
57586 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
57587 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
57589 2002-06-22 Jim Meyering <meyering@lucent.com>
57591 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
57593 * lib/exitfail.c, exitfail.h: Likewise.
57594 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
57596 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
57598 (EXTRA_DIST): Add fnmatch_loop.c.
57599 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
57601 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
57602 * lib/fnmatch.c: Update from diffutils-2.8.2.
57603 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
57604 * lib/fnmatch.h: Remove file.
57606 2002-06-21 Jim Meyering <meyering@lucent.com>
57608 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
57609 * m4/mbrtowc.m4: Likewise.
57611 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
57612 * m4/mbswidth.m4: Reflect name change:
57613 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
57614 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
57616 * m4/lib-link.m4: Update from gettext-0.11.2.
57617 * m4/gettext.m4: Likewise.
57619 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
57620 From Alfred M. Szmidt.
57622 2002-06-18 Paul Eggert <eggert@twinsun.com>
57624 * lib/file-type.h: Report an error if neither S_ISREG nor
57625 S_IFREG is defined, instead of using a test specific to glibc
57626 2.2. This should be safe, since POSIX requires S_ISREG and
57627 Unix Version 7 had S_IFREG. We don't need to check for
57628 <sys/types.h> since we don't use any symbols that it defines.
57630 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
57632 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
57633 $@-t, so that each temporary file name is unique and valid in the first
57634 8 characters, for operation under DOS.
57636 2002-06-15 Paul Eggert <eggert@twinsun.com>
57638 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
57640 2002-06-15 Jim Meyering <meyering@lucent.com>
57642 Work even with DJGPP 2.03, which lacks support for symlinks.
57644 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
57646 * lib/lchown.c (S_ISLNK): Likewise.
57648 2002-06-15 Jim Meyering <meyering@lucent.com>
57650 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
57651 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
57652 have been included before this file.
57654 2002-06-14 Jim Meyering <meyering@lucent.com>
57656 * lib/file-type.h: Use the version from diffutils-2.8.2.
57657 * lib/file-type.c: Likewise.
57659 2002-06-07 Jim Meyering <meyering@lucent.com>
57661 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
57662 They're needed at least for NetBSD 1.5.2.
57663 ($statxfs_includes): Include those same headers.
57664 ($statxfs_includes): Include sys/vfs.h if available.
57665 ($statxfs_includes): Likewise for sys/statvfs.h.
57666 Check for the following members in both structs statfs and statvfs:
57667 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
57669 2002-06-01 Jim Meyering <meyering@lucent.com>
57671 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
57672 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
57674 2002-05-28 Jim Meyering <meyering@lucent.com>
57676 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
57677 Reported by Volker Borchert.
57679 2002-05-27 Jim Meyering <meyering@lucent.com>
57681 Fix a problem seen only on nonconforming systems whereby ls.c's
57682 use of localtime, and then of gettimeofday would cause trouble:
57683 the localtime call used to initialize rpl_gettimeofday's save
57684 mechanism would clobber ls's current local time information so
57685 that in any long listing the first file would always be listed
57686 with date 1970-01-01. Analysis by Volker Borchert.
57688 * lib/gettimeofday.c (localtime): Undefine.
57689 (rpl_localtime): New function.
57691 2002-05-27 Jim Meyering <meyering@lucent.com>
57693 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
57696 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
57697 use the replacement function; it wouldn't resolve at link time.
57698 Reported by Volker Borchert.
57700 2002-05-22 Jim Meyering <meyering@lucent.com>
57702 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
57704 * lib/file-type.h: New file.
57705 * lib/file-type.c (file_type): New file/function. Extracted from
57708 2002-04-30 Jim Meyering <meyering@lucent.com>
57710 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
57712 2002-04-29 Paul Eggert <eggert@twinsun.com>
57714 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
57716 2002-04-29 Paul Eggert <eggert@twinsun.com>
57718 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
57719 Do not check for alloca.h (no longer used) or stdbool.h (was never
57720 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
57722 2002-04-29 Paul Eggert <eggert@twinsun.com>
57724 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
57726 2002-04-29 Jim Meyering <meyering@lucent.com>
57728 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
57729 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
57730 Use AC_FUNC_STRNLEN here instead.
57732 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
57733 With autoconf-2.53a, it's part of AC_PROG_CC.
57735 2002-04-28 Paul Eggert <eggert@twinsun.com>
57737 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
57738 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
57740 2002-04-28 Paul Eggert <eggert@twinsun.com>
57742 * lib/sig2str.h, lib/sig2str.c: New files.
57743 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
57745 2002-04-28 Paul Eggert <eggert@twinsun.com>
57747 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
57748 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
57749 of 127, since 64 is the largest conceivable number for ancient
57751 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
57753 2002-04-28 Jim Meyering <meyering@lucent.com>
57755 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
57757 2002-04-24 Jim Meyering <meyering@lucent.com>
57759 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
57760 (jm_PREREQ): Use it.
57762 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
57763 mach/mach.h fcntl.h.
57764 Check for this function: setlocale.
57766 2002-04-24 Jim Meyering <meyering@lucent.com>
57768 * lib/gettext.h: New file, from Gettext.
57769 * lib/Makefile.am (INCLUDES): Remove -I../intl.
57770 (libfetish_a_SOURCES): Add gettext.h.
57772 2002-04-16 Jim Meyering <meyering@lucent.com>
57774 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
57775 ut_pid, ut_id, ut_exit.
57777 2002-04-16 Jim Meyering <meyering@lucent.com>
57779 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
57780 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
57781 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
57783 2002-04-12 Jim Meyering <meyering@lucent.com>
57785 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
57786 now-bogus check for f_type in sys/mount.h. Instead, just test for the
57787 existence of the getmntinfo function. Needed for Darwin 5.3.
57789 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
57790 This is necessary at least on Darwin 5.3.
57792 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
57793 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
57794 strnlen.o in the library, and that makes some versions of ranlib
57797 2002-04-12 Jim Meyering <meyering@lucent.com>
57799 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
57801 2002-04-09 Jim Meyering <meyering@lucent.com>
57803 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
57804 to be more precise. Rather than saying we're checking whether the
57805 function `works', say what we're testing.
57806 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
57807 Reported by Bruno Haible.
57809 2002-03-10 Jim Meyering <meyering@lucent.com>
57811 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
57812 Suggestion from Santiago Vila.
57814 2002-03-08 Jim Meyering <meyering@lucent.com>
57816 * lib/rename.c: Mention that this wrapper is needed also on
57817 mips-dec-ultrix4.4 systems.
57819 2002-03-02 Jim Meyering <meyering@lucent.com>
57821 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
57822 not HAVE_CLOCK_SETTIME.
57824 2002-02-27 Paul Eggert <eggert@twinsun.com>
57826 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
57827 Check for clock_settime.
57829 2002-02-27 Paul Eggert <eggert@twinsun.com>
57831 * lib/nanosleep.h: Rename to....
57832 * lib/timespec.h: New name for nanosleep.h. All uses changed.
57834 * lib/gettime.c: New file.
57835 * lib/settime.c: New file.
57836 * lib/stime.c: Remove.
57838 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
57839 timespec.h. Remove nanosleep.h.
57841 2002-02-25 Paul Eggert <eggert@twinsun.com>
57843 * m4/acl.m4: New file.
57844 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
57845 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
57847 2002-02-25 Paul Eggert <eggert@twinsun.com>
57849 * lib/acl.c, lib/acl.h: New files.
57850 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
57852 2002-02-24 Jim Meyering <meyering@lucent.com>
57854 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
57855 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
57856 cause trouble. Reported by Nelson Beebe.
57858 2002-02-23 Paul Eggert <eggert@twinsun.com>
57860 * lib/path-concat.c (xpath_concat): Reorder code to pacify
57861 compilers that don't know that xalloc_die never returns.
57863 2002-02-20 Jim Meyering <meyering@lucent.com>
57865 * lib/getdate.c: Regenerate using bison-1.33.
57867 2002-02-17 Jim Meyering <meyering@lucent.com>
57869 * config/config.guess (main): Don't use `head -1'; it's no longer
57870 portable. Use `sed 1q' instead.
57872 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
57874 * m4/codeset.m4: Upgrade to gettext-0.11.
57875 * m4/gettext.m4: Upgrade to gettext-0.11.
57876 * m4/glibc21.m4: Upgrade to gettext-0.11.
57877 * m4/iconv.m4: Upgrade to gettext-0.11.
57878 * m4/isc-posix.m4: Upgrade to gettext-0.11.
57879 * m4/lcmessage.m4: Upgrade to gettext-0.11.
57880 * m4/lib-ld.m4: New file, from gettext-0.11.
57881 * m4/lib-link.m4: New file, from gettext-0.11.
57882 * m4/lib-prefix.m4: New file, from gettext-0.11.
57883 * m4/progtest.m4: Upgrade to gettext-0.11.
57885 2002-02-15 Paul Eggert <eggert@twinsun.com>
57887 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
57888 (jm_PREREQ): Use it.
57890 2002-02-15 Paul Eggert <eggert@twinsun.com>
57892 * lib/posixver.c, lib/posixver.h: New files.
57893 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
57895 2002-02-02 Paul Eggert <eggert@twinsun.com>
57896 Bruno Haible <bruno@clisp.org>
57898 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
57899 (fwrite_success_callback): New declaration.
57900 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
57901 print_unicode_char. Call failure callback instead of error.
57902 (fwrite_success_callback): New function.
57903 (exit_failure_callback): New function.
57904 (fallback_failure_callback): New function.
57905 (print_unicode_char): Call unicode_to_mb.
57907 2002-01-26 Jim Meyering <meyering@lucent.com>
57909 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
57910 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
57912 2002-01-26 Jim Meyering <meyering@lucent.com>
57914 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
57916 2002-01-22 Paul Eggert <eggert@twinsun.com>
57918 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
57920 2002-01-22 Jim Meyering <meyering@lucent.com>
57922 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
57923 Otherwise, some versions of automake would omit the rule that makes
57924 Makefile from Makefile.in.
57926 2002-01-21 Paul Eggert <eggert@twinsun.com>
57928 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
57929 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
57930 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
57931 (memcoll): Set errno to zero if there is no error.
57933 * lib/quotearg.c (quotearg_buffer_restyled):
57934 Fix bug with quoting buffers containing NUL when backslashing escapes.
57935 This bug was exposed by the other changes in this patch.
57936 (quotearg_n_options): New arg ARGSIZE.
57937 All callers changed.
57938 (quoting_options_from_style): New function.
57939 (quotearg_n_style): Use it.
57940 (quotearg_n_style_mem): New function.
57942 * lib/quotearg.h (quotearg_n_style_mem): New function.
57944 2002-01-19 Jim Meyering <meyering@lucent.com>
57946 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
57947 Remove useless quotes: DF_PROG="df".
57948 * m4/strnlen.m4: New file.
57950 2002-01-16 Paul Eggert <eggert@twinsun.com>
57952 * lib/backupfile.c (ISDIGIT): Comment fix.
57953 * lib/getdate.y (ISDIGIT): Likewise.
57954 * lib/posixtm.c (ISDIGIT, year): Likewise.
57955 * lib/strverscmp.c (ISDIGIT): Likewise.
57956 * lib/userspec.c (ISDIGIT): Likewise.
57958 2002-01-16 Jim Meyering <meyering@lucent.com>
57960 * lib/getdate.y: Add three semicolons, each just before a closing
57961 brace. Bison (as of version 1.31) no longer papers over that mistake.
57963 2002-01-05 Jim Meyering <meyering@lucent.com>
57965 * lib/version-etc.c (version_etc_copyright): Update copyright year.
57967 2001-12-19 Paul Eggert <eggert@twinsun.com>
57969 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
57970 not silently exit merely because the output buffer happens to
57971 have nothing pending.
57973 2001-12-18 Paul Eggert <eggert@twinsun.com>
57975 See the big note in ../ChangeLog.
57976 * lib/human.c (suffixes): Prefer K to k for 1024.
57977 (generate_suffix_backwards): New function.
57978 (human_readable_inexact): Use it.
57979 * lib/xstrtol.c (__xstrtol): If there is no number but there
57980 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
57981 Accept 'K' as well as 'k'.
57983 2001-12-15 Jim Meyering <meyering@lucent.com>
57985 * lib/regex.h (__restrict_arr): Update from libc.
57987 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
57988 as `remote' if the name starts with `//'. Suggested by Michael Stone.
57991 2001-12-14 Jim Meyering <meyering@lucent.com>
57993 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
57994 Suggestion from Bruno Haible.
57996 2001-12-10 Jim Meyering <meyering@lucent.com>
57998 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
57999 xrealloc, Instead, include "xalloc.h".
58000 (initbuffer): Don't cast xmalloc return value to char*.
58001 (readline): Reword comment.
58002 Don't cast xrealloc return value to char*
58003 Return NULL, not 0.
58005 2001-12-09 Jim Meyering <meyering@lucent.com>
58007 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
58008 about `signed and unsigned type in conditional expression'.
58009 * lib/posixtm.c (posix_time_parse): Likewise.
58011 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
58013 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
58014 to avoid a pedantic warning.
58016 * lib/getstr.c: Don't include assert.h.
58017 (getstr): Remove warning-evoking assertions.
58018 Return -1 if offset parameter is out of bounds.
58019 Change the type of a local from int to size_t.
58021 * lib/strftime.c (my_strftime_localtime_r): Include this function
58022 definition in the `#if ! HAVE_TM_GMTOFF' block.
58024 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
58025 Include xalloc.h instead.
58027 2001-12-02 Jim Meyering <meyering@lucent.com>
58029 * lib/tempname.c: Don't declare getenv, thus reverting the change of
58030 2001-11-18. It's no longer necessary, now that stdlib.h is always
58033 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
58034 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
58036 2001-11-30 Akim Demaille <akim@epita.fr>
58038 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
58039 before being defined.
58041 2001-11-27 Paul Eggert <eggert@twinsun.com>
58043 * lib/quotearg.h (quotearg_n, quotearg_n_style):
58044 First arg is int, not unsigned.
58045 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
58046 (SIZE_MAX, UINT_MAX): New macros.
58047 (quotearg_n_options): Abort if N is negative.
58048 Avoid overflow check on hosts where size_t is 64 bits and int
58049 is 32 bits, as overflow is impossible there.
58050 Fix off-by-one typo that caused unnecessary reallocation.
58052 2001-11-27 Jim Meyering <meyering@lucent.com>
58054 * lib/tempname.c: Merge with version from libc.
58055 * lib/regex.c: Likewise.
58057 * lib/tempname.c: Include stdlib.h unconditionally. On some old
58058 systems for which STDC_HEADERS is 0, it was not included, resulting in
58059 a warning about an integer-to-pointer conversion problem with getenv.
58060 Reported by Volker Borchert.
58062 2001-11-26 Jim Meyering <meyering@lucent.com>
58064 * lib/gtod.h: Remove file.
58065 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
58066 * lib/gettimeofday.c: Don't include gtod.h.
58067 (GTOD_init): Remove function.
58068 (rpl_gettimeofday): Do its job here instead, rather than aborting.
58069 Suggestion from Volker Borchert.
58071 2001-11-23 Jim Meyering <meyering@lucent.com>
58073 * lib/hash.h (struct hash_table): Don't define here. Merely declare
58075 * lib/hash.c (struct hash_table): Define it here instead.
58077 2001-11-22 Jim Meyering <meyering@lucent.com>
58079 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
58081 2001-11-20 Jim Meyering <meyering@lucent.com>
58083 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
58084 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
58086 2001-11-19 Jim Meyering <meyering@lucent.com>
58088 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
58089 directory. Use "conftestXXXXXX" as the template.
58090 Suggestion from Paul Eggert.
58092 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
58093 immediately, so the test doesn't mistakenly hit the max-open-files
58096 2001-11-18 Paul Eggert <eggert@twinsun.com>
58098 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
58099 (TEMPORARIES): New macro.
58100 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
58101 removes an artificial limitation (e.g. HP-UX 10.20, where
58104 2001-11-18 Jim Meyering <meyering@lucent.com>
58106 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
58108 2001-11-18 Jim Meyering <meyering@lucent.com>
58110 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
58113 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
58114 files will be created before anything else.
58116 2001-11-17 Paul Eggert <eggert@twinsun.com>
58118 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
58119 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
58121 2001-11-17 Jim Meyering <meyering@lucent.com>
58123 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
58124 Prompted by a report from Bob Proulx.
58126 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
58127 Instead, require UTILS_FUNC_MKSTEMP.
58129 2001-11-17 Jim Meyering <meyering@lucent.com>
58131 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
58132 Now, that's done as part of AC_FUNC_STRTOD.
58134 2001-11-17 Jim Meyering <meyering@lucent.com>
58136 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
58137 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
58138 rather than group writable. Patch by Juan F. Codagnone.
58140 * lib/readtokens.c: Remove explicit declarations of xmalloc and
58141 xrealloc, Instead, include "xalloc.h".
58143 * lib/mountlist.c: Include unlocked-io.h after all system headers.
58144 Remove explicit declarations of xmalloc, xrealloc,
58145 and xstrdup. Instead, include "xalloc.h".
58147 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
58149 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
58151 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
58153 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
58154 Reported by Padraig Brady.
58156 * lib/mkstemp.c: #undef mkstemp.
58158 (rpl_mkstemp): Rename from mkstemp.
58161 2001-11-16 Jim Meyering <meyering@lucent.com>
58163 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
58164 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
58165 determine the amount of total physical memory, use pstat_getstatic.
58166 HPUX-11 doesn't define _SC_PHYS_PAGES.
58167 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
58168 If sysconf couldn't be used to determine the amount of available
58169 physical memory, use both pstat_getstatic and pstat_getdynamic.
58170 Based on a patch from Bob Proulx.
58172 2001-11-10 Jim Meyering <meyering@lucent.com>
58174 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
58175 (jm_PREREQ): Use it.
58177 2001-11-09 Jim Meyering <meyering@lucent.com>
58179 * m4/jm-macros.m4: Require autoconf-2.52f.
58180 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
58181 Use these AC_-prefixed names, not the AM_-prefixed ones.
58183 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
58185 2001-11-05 Jim Meyering <meyering@lucent.com>
58187 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
58189 2001-11-04 Jim Meyering <meyering@lucent.com>
58191 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
58194 2001-11-03 Jim Meyering <meyering@lucent.com>
58196 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
58199 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
58200 know the name of the variable in the macro definition.
58202 2001-11-03 Jim Meyering <meyering@lucent.com>
58204 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
58205 in argmatch_to_argument call.
58207 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
58210 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
58211 e.g., a fault due to an attempt to free a NULL pointer.
58213 2001-11-01 Jim Meyering <meyering@lucent.com>
58215 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
58216 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
58218 2001-11-01 Jim Meyering <meyering@lucent.com>
58220 * lib/dirfd.c, lib/dirfd.h: New files.
58221 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
58223 * lib/hash.c (hash_print) [TESTING]: Clean up.
58225 2001-10-22 Paul Eggert <eggert@twinsun.com>
58227 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
58228 to avoid a warning if -Wall.
58230 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
58233 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
58234 (per RMS's instructions, this is now the canonical source)
58235 * lgpl/, gpl/: New directories.
58237 2001-10-21 Paul Eggert <eggert@twinsun.com>
58239 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
58241 2001-10-21 Jim Meyering <meyering@lucent.com>
58243 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
58244 this code would end up calling gettext even in packages built
58245 with --disable-nls.
58246 * lib/getopt.c (_): Likewise.
58247 * lib/regex.c (_): Likewise.
58249 2001-10-20 Paul Eggert <eggert@twinsun.com>
58251 * m4/error.m4 (jm_PREREQ_ERROR):
58252 Do not invoke AC_CHECK_FUNCS with strerror_r, as
58253 AC_FUNC_STRERROR_R does that.
58254 Check for strerror declaration.
58256 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
58257 are supposed to have them these days.
58258 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
58259 Merge changes from latest Autoconf CVS.
58260 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
58261 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
58262 POSIX decided to standardize on the int flavor of strerror_r.
58264 2001-10-20 Paul Eggert <eggert@twinsun.com>
58266 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
58267 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
58268 Use strerror_r that is only a macro, even if it is not a function.
58269 (strerror): Check for HAVE_DECL_STRERROR before declaring.
58270 (private_strerror): Use prototypes, not old-style function definition.
58271 (print_errno_message): New function.
58272 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
58273 char*-flavored one.
58274 (error_tail, error, error_at_line): Use it.
58276 2001-10-11 Jim Meyering <meyering@lucent.com>
58278 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
58279 and quote_n (1, ... to avoid clobbering a buffer.
58281 2001-10-05 Jim Meyering <meyering@lucent.com>
58283 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
58285 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
58286 * lib/hash-pjw.h: New file.
58288 2001-09-30 Jim Meyering <meyering@lucent.com>
58290 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
58291 `struct fsstat' has the `f_fstypename' member.
58292 Use that to define FS_TYPE, which is now used to make
58293 the getfsstat link test tighter.
58295 2001-09-30 Jim Meyering <meyering@lucent.com>
58297 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
58298 Include <sys/ucred.h>, for Apple Darwin.
58299 Include sys/mount.h and sys/fs_types.h only if available.
58301 (read_filesystem_list): Use FS_TYPE.
58303 2001-09-29 Paul Eggert <eggert@twinsun.com>
58305 * lib/exclude.c (excluded_filename): 0 -> false, since it's
58308 2001-09-29 Jim Meyering <meyering@lucent.com>
58310 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
58311 [one-argument getmntent function]): Include stdio.h before mntent.h.
58312 SunOS 4.1.x needs it for the declaration of `FILE'.
58313 Patch by Volker Borchert.
58315 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
58316 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
58317 sys/fs_types.h, and make the link-test for getfsstat guard #include
58318 directives with appropriate #if HAVE_*_H tests so that we can
58319 detect getfsstat on Apple Darwin1.3.7 systems.
58320 Reported by Nelson Beebe.
58321 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
58323 2001-09-28 Paul Eggert <eggert@twinsun.com>
58325 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
58326 #defines strtoimax. Also treat the other strto* functions
58329 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
58330 Check for strtoul and strtoumax,
58331 as those declarations are made even in the signed case.
58332 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
58333 Likewise, for strtol and strtoimax.
58335 2001-09-28 Paul Eggert <eggert@twinsun.com>
58337 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
58338 #defines strtoimax. Also treat the other strto* functions
58341 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
58342 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
58343 (strtoimax, strtoumax): Do not declare if already defined as a macro.
58345 2001-09-26 Jim Meyering <meyering@lucent.com>
58347 Most macros in unlocked-io.h had the wrong number of arguments.
58348 * lib/gen-uio: New script.
58349 (USE_UNLOCKED_IO): Define to 1 if not already defined.
58350 * lib/unlocked-io.hin: Remove file.
58351 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
58352 rather than trying to embed it here.
58353 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
58354 Reported by Padraig Brady.
58356 2001-09-25 Volker Borchert <bt@teknon.de>
58358 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
58361 2001-09-24 Jim Meyering <meyering@lucent.com>
58363 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
58365 2001-09-23 Jim Meyering <meyering@lucent.com>
58367 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
58368 instead of the mere test for existence of mntent.h. The latter
58369 would get a false-positive on AIX 3.4 systems.
58370 In the outer getmntent if-block, don't die if neither of the getmntent
58371 tests succeeds. Instead, just fall through and continue with the
58374 2001-09-23 Jim Meyering <meyering@lucent.com>
58376 * lib/mountlist.c: Remove useless parentheses in #if directives.
58377 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
58378 the deprecated MOUNTED symbol is no longer defined in mntent.h.
58380 2001-09-22 Jim Meyering <meyering@lucent.com>
58382 * m4/gettext.m4: New file. From gettext.
58383 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
58384 * m4/progtest.m4: Likewise
58385 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
58386 * m4/glibc21.m4: Likewise.
58388 * m4/libintl.m4: Remove. No longer used.
58390 2001-09-22 Jim Meyering <meyering@lucent.com>
58392 * lib/localcharset.c: Update from latest gettext.
58393 * lib/config.charset: Likewise.
58395 2001-09-20 Jim Meyering <meyering@lucent.com>
58397 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
58399 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
58402 2001-09-20 Jim Meyering <meyering@lucent.com>
58404 * lib/xstrtol.c (strtoimax): Guard declaration with
58405 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
58406 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
58407 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
58408 (strtoumax): Likewise, for completeness (it wasn't necessary).
58410 2001-09-17 Paul Eggert <eggert@twinsun.com>
58412 * lib/strtoimax.c (HAVE_LONG_LONG):
58413 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
58414 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
58415 to work around bug in IBM C compiler.
58417 2001-09-17 Jim Meyering <meyering@lucent.com>
58419 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
58420 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
58421 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
58422 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
58423 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
58424 whenever the right hand side need not be expanded by the shell.
58426 2001-09-16 Paul Eggert <eggert@twinsun.com>
58428 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
58429 library. It's not correct, as some older glibcs are buggy.
58430 fnmatch wasn't fixed until glibc 2.2.
58432 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
58433 special shell magic here.
58435 2001-09-16 Jim Meyering <meyering@lucent.com>
58437 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
58438 * m4/jm-macros.m4: Require it.
58440 2001-09-16 Jim Meyering <meyering@lucent.com>
58442 * lib/mkdir.c: New file.
58444 2001-09-15 Jim Meyering <meyering@lucent.com>
58446 * m4/jm-macros.m4: Check for help2man.
58448 2001-09-11 Jim Meyering <meyering@lucent.com>
58450 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
58451 The body, by Paul Eggert, was moved here from configure.in.
58452 * m4/jm-macros.m4: Require UTILS_HOST_OS.
58454 2001-09-04 Paul Eggert <eggert@twinsun.com>
58456 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
58457 (jm_PREREQ): Use it.
58459 2001-09-04 Paul Eggert <eggert@twinsun.com>
58461 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
58462 Use ssize_t, not int, to store result of readlink.
58463 Check for ssize_t overflow as well as size_t overflow,
58464 as POSIX says the result of readlink is implementation-defined
58465 when ssize_t overflows.
58466 Remove unnecessary cast to char*.
58467 Use free+malloc instead of realloc, as the storage doesn't need
58468 to be preserved and it's clearer and can be more efficient that way.
58469 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
58470 * lib/xreadlink.h (xreadlink): Update prototype.
58472 2001-09-04 Paul Eggert <eggert@twinsun.com>
58474 * lib/xgetcwd.c: Revert some of the previous change; intead,
58475 fix the HAVE_GETCWD_NULL code to behave more like the
58476 !HAVE_GETCWD_NULL code used to.
58478 Include "xalloc.h".
58479 (xgetcwd): Do not return NULL when memory is exhausted; instead,
58482 2001-09-03 Paul Eggert <eggert@twinsun.com>
58484 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
58485 sys/param.h, as pathmax.h includes them.
58487 2001-09-03 Paul Eggert <eggert@twinsun.com>
58489 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
58490 (jm_PREREQ_XGETCWD): New macro.
58492 * m4/getcwd.m4: New file.
58494 2001-09-03 Paul Eggert <eggert@twinsun.com>
58496 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
58497 like the HAVE_GETCWD_NULL code.
58498 Include pathmax.h if not HAVE_GETCWD.
58499 Do not include xalloc.h.
58500 (INITIAL_BUFFER_SIZE): New symbol.
58501 Do not use xmalloc / xrealloc, since the caller is responsible for
58502 handling errors. Preserve errno around `free' during failure.
58503 Do not overrun buffer when using getwd.
58505 2001-09-03 Paul Eggert <eggert@twinsun.com>
58507 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
58508 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
58511 2001-09-03 Paul Eggert <eggert@twinsun.com>
58513 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
58514 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
58515 spotted by Jim Meyering.
58517 2001-09-03 Jim Meyering <meyering@lucent.com>
58519 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
58522 2001-09-02 Jim Meyering <meyering@lucent.com>
58524 * lib/error.c: Update from GNU libc.
58526 2001-09-01 Jim Meyering <meyering@lucent.com>
58528 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
58531 2001-09-01 Jim Meyering <meyering@lucent.com>
58533 * lib/xreadlink.c: New file.
58534 * lib/xreadlink.h: New file.
58535 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
58538 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
58539 doesn't conflict with sparc Solaris 7's definition in
58540 /usr/include/sys/int_types.h.
58542 * lib/exclude.c: Use `""', not `<>' to #include non-system header
58544 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
58545 and strncasecmp as r-values. Unixware didn't have declarations.
58547 2001-08-31 Paul Eggert <eggert@twinsun.com>
58549 * lib/xstrtol.h: Add copyright notice.
58550 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
58551 LONGINT_INVALID_SUFFIX_CHAR.
58553 2001-08-31 Paul Eggert <eggert@twinsun.com>
58555 * lib/xstrtol.c (strtoimax): New decl.
58557 2001-08-31 Paul Eggert <eggert@twinsun.com>
58559 * lib/xgetcwd.c: Don't include pathmax.h.
58560 Include stdlib.h and unistd.h if available.
58562 (xmalloc, xstrdup, free): Remove decls.
58563 (xgetcwd): Don't assume sizes fit in unsigned.
58564 Check for overflow when computing sizes.
58565 Simplify reallocation code.
58567 2001-08-31 Paul Eggert <eggert@twinsun.com>
58569 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
58570 a directory's st_size can have an arbitrary value, so the old
58571 usage could waste an arbitrary amount of memory. All uses
58573 * lib/savedir.h: Update prototype.
58575 2001-08-31 Paul Eggert <eggert@twinsun.com>
58577 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
58579 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
58582 Also, make the following further changes to make this file's
58583 configuration more similar to that of strtol.c:
58584 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
58585 (strtoumax, uintmax_t, strtoull, strtol): Remove.
58586 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
58587 (strtoimax): Renamed from strtoumax. All uses of unsigned values
58588 changed to signed values.
58590 And make the following changes as well:
58591 Fix copyright notice, as 1999 was missing.
58592 (verify): New macro.
58593 (strtoimax): Check sizes at compile-time, not run-time.
58594 Prefer strtol to strtoll if both work.
58595 (main): Remove; it was not that useful and was a pain to maintain.
58597 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
58599 2001-08-31 Jim Meyering <meyering@lucent.com>
58601 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
58602 Use an initial, malloc'd, buffer of length 128 rather than
58603 a statically allocated one of length 1024.
58605 2001-08-30 Paul Eggert <eggert@twinsun.com>
58607 Simplify code, partly by assuming autoconf 2.52 semantics.
58609 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
58611 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
58612 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
58614 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
58615 Move AC_REQUIRE to next-to-top level, to avoid confusion.
58616 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
58617 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
58618 jm_AC_HEADER_INTTYPES_H.
58619 * m4/jm-macros.m4 (jm_MACROS): Likewise.
58621 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
58623 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
58624 Quote first arg of AC_DEFUN.
58625 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
58626 since they are needed to parse the include file even if we need
58627 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
58628 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
58629 but with opposite signedness.
58631 2001-08-30 Paul Eggert <eggert@twinsun.com>
58633 Merge 'exclude' changes from tar 1.13.22.
58634 This fixes one or two unlikely storage allocation overflow bugs,
58635 but doesn't change user-visible behavior otherwise.
58637 2001-08-30 Paul Eggert <eggert@twinsun.com>
58639 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
58640 (jm_PREREQ_EXCLUDE): New macro.
58642 2001-08-30 Paul Eggert <eggert@twinsun.com>
58644 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
58647 2001-08-30 Paul Eggert <eggert@twinsun.com>
58649 * lib/hash.c: Remove '2001' from copyright notice.
58651 2001-08-30 Paul Eggert <eggert@twinsun.com>
58653 * lib/full-write.h: New file.
58654 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
58655 * lib/full-write.c: Correct credits, as cccp.c no longer
58656 exists and anyway it was so heavily changed from the old cccp
58657 code as to be unrecognizable. Include full-write.h.
58658 (full_write) Return size_t, with short writes meaning failure.
58659 All callers changed. This fixes a bug with large buffers
58661 * lib/utime.c: Include full-write.h.
58663 2001-08-30 Paul Eggert <eggert@twinsun.com>
58665 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
58666 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
58667 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
58668 Include if available.
58669 (<xalloc.h>): Include
58670 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
58671 (verify): New macro. Use it to verify that EXCLUDE macros do not
58672 collide with FNM macros.
58673 (struct patopts): New struct.
58674 (struct exclude): Use it, as exclude patterns now come with options.
58675 (new_exclude): Support above changes.
58676 (new_exclude, add_exclude_file):
58677 Initial size must now be a power of two to simplify overflow checking.
58678 (free_exclude, fnmatch_no_wildcards): New function.
58679 (excluded_filename): No longer requires options arg, as the options
58680 are determined by add_exclude. Now returns bool, not int.
58681 (excluded_filename, add_exclude):
58682 Add support for the fancy new exclusion options.
58683 (add_exclude, add_exclude_file): Now takes int options arg.
58684 Check for arithmetic overflow when computing sizes.
58685 (add_exclude_file): xrealloc might modify errno, so don't
58686 realloc until after errno might be used.
58688 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
58690 (free_exclude): New decl.
58691 (add_exclude, add_exclude_file): Now takes int options arg.
58692 (excluded_filename): No longer requires options arg, as the options
58693 are determined by add_exclude. Now returns bool, not int.
58695 2001-08-30 Paul Eggert <eggert@twinsun.com>
58697 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
58699 2001-08-27 Jim Meyering <meyering@lucent.com>
58701 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
58703 * lib/version-etc.c (N_): Remove definition.
58704 Revert most of last change.
58705 Instead, simply don't mark the `Copyright...' string for translation.
58706 Based on advice from Paul Eggert.
58708 * lib/strtoxmax.c: Tweak comment.
58710 2001-08-26 Jim Meyering <meyering@lucent.com>
58712 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
58714 * m4/xstrtoimax.m4: New file.
58715 * m4/xstrtoumax.m4: Add comments explaining why we
58716 AC_REPLACE_FUNCS(strtol).
58718 2001-08-26 Jim Meyering <meyering@lucent.com>
58720 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
58721 of copyright with `%s' so translators don't get an untranslated
58723 (COPYRIGHT_YEAR): Define.
58724 (version_etc): Use fprintf rather than fputs.
58725 Suggestion from Ulrich Drepper.
58727 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
58729 * lib/strtoll.c: New file, from GNU libc.
58730 * lib/xstrtoimax.c: New file.
58732 * lib/xstrtol.h: Add xstrtoimax.
58733 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
58734 * lib/strtoimax.c: New file. Likewise, but first define
58737 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
58739 * lib/strtoxmax.c: ... then renamed to this.
58741 2001-08-18 Paul Eggert <eggert@twinsun.com>
58743 * m4/inttypes.m4: Add AC_PREREQ(2.13).
58744 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
58745 (jm_AC_TYPE_INTMAX_T): New macro.
58746 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
58748 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
58750 * m4/longlong.m4: Renamed from ulonglong.m4.
58751 * m4/inttypes.m4: Renamed from inttypes_h.m4.
58752 * m4/uintmax_t.m4: Removed.
58754 2001-08-13 Paul Eggert <eggert@twinsun.com>
58756 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
58757 Port to Solaris 8, where 'sed' requires a space after the 'r'
58758 command, and where sh dislikes "$/". Clean up the spacing a bit.
58759 Redirect output to $tmp just once.
58761 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
58763 * lib/addext.c (<errno.h>): Include.
58764 (errno): Declare if not defined.
58765 (addext): Work correctly when pathconf returns -1 and leaves
58766 errno alone because there is no limit. Also, work even if
58767 pathconf returns a value greater than SIZE_MAX.
58769 2001-08-12 Jim Meyering <meyering@lucent.com>
58771 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
58772 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
58773 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
58774 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
58775 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
58776 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
58777 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
58778 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
58779 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
58780 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
58781 utime.m4, utimes.m4, xstrtoumax.m4:
58782 Quote the first argument in each use of AC_DEFUN.
58784 2001-08-12 Jim Meyering <meyering@lucent.com>
58786 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
58787 Simply `return getcwd (NULL, 0);'.
58788 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
58789 Use 1300 as initial value for length, not PATH_MAX.
58791 * lib/pathmax.h: Clean up cpp syntax.
58793 2001-08-12 Jim Meyering <meyering@lucent.com>
58795 * lib/gettimeofday.c: New file.
58796 * lib/gtod.h: New file.
58797 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
58799 2001-08-05 Jim Meyering <meyering@lucent.com>
58801 * m4/jm-macros.m4: Require autoconf-2.52.
58803 2001-08-04 Jim Meyering <meyering@lucent.com>
58805 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
58806 stmt, to get in sync with glibc.
58808 2001-08-03 Paul Eggert <eggert@twinsun.com>
58810 The following changes are from gettext 0.10.39 as maintained by
58813 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
58814 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
58815 with inverted sense. All uses changed.
58817 * lib/mbswidth.c: Don't include <limits.h>.
58818 Include <stdlib.h> and <string.h> unconditionally.
58819 (iswcntrl, mbsinit, ISCNTRL): New macros.
58820 (mbsnwidth): Use K&R style function declarations.
58821 Don't bother checking for MB_LEN_MAX == 1, since the compiler
58822 can optimize it when MB_CUR_MAX == 1.
58823 The width of control characters is zero, not 1.
58825 2001-08-03 Paul Eggert <eggert@twinsun.com>
58827 The following changes are from gettext 0.10.39 as maintained by
58828 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
58830 * m4/codeset.m4: Upgrade to serial AM1.
58831 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
58832 all uses changed. Quote first arg of AC_DEFUN.
58833 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
58835 * m4/iconv.m4: Upgrade to serial AM2.
58836 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
58837 Add --with-libconv-prefix.
58838 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
58839 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
58840 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
58841 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
58842 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
58844 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
58845 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
58846 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
58847 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
58848 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
58849 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
58850 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
58851 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
58852 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
58854 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
58857 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
58858 not the default value.
58860 2001-06-25 Bruno Haible <haible@clisp.cons.org>
58861 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
58862 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
58863 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
58864 Also check for iswcntrl, used for wcwidth fallback.
58865 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
58868 2001-08-03 Jim Meyering <meyering@lucent.com>
58870 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
58871 as it was in the original. Reported by Paul Eggert.
58873 2001-07-16 Jim Meyering <meyering@lucent.com>
58875 * m4/gettimeofday.m4: New file.
58876 Prompted by a report from Bernhard Baehr.
58878 2001-07-15 Jim Meyering <meyering@lucent.com>
58880 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
58881 stuff. Now it's in ../Makefile.cfg.
58883 2001-07-15 Jim Meyering <meyering@lucent.com>
58885 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
58886 (BUILT_SOURCES): Add unlocked-io.h.
58887 (io_functions): Define.
58888 (unlocked-io.h): New rule.
58889 (DISTCLEANFILES): Add unlocked-io.h.
58890 (all-local): Depend on unlocked-io.h, to ensure it is created.
58892 * lib/unlocked-io.hin: New file
58894 * lib/regex.c: Update from glibc.
58896 2001-07-05 Jim Meyering <meyering@lucent.com>
58898 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
58900 (libfetish_a_SOURCES): Put all .h files here instead.
58901 Remove a thus-exposed (better checks in automake) duplicate and
58902 two unnecessary .h files.
58904 2001-07-04 Jim Meyering <meyering@lucent.com>
58906 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
58907 that generates jm-glibc-io.m4 so that it doesn't trigger any make
58910 2001-07-02 Jim Meyering <meyering@lucent.com>
58912 The following changes were prompted by suggestions from Bruno Haible.
58914 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
58916 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
58917 definition of EXTRA_DIST.
58918 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
58919 ensure that the generated file is created/updated whenever the list
58920 of $(unlocked_functions) is changed.
58921 (jm-glibc-io.m4): New rule.
58922 (unlocked-io.h): New rule -- currently unused.
58924 2001-06-24 Jim Meyering <meyering@lucent.com>
58926 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
58927 unmatched right bracket, rather than kludging it with an extra,
58928 falsely-matching quote in a comment. Patch by Akim Demaille.
58930 2001-06-11 Jim Meyering <meyering@lucent.com>
58932 * lib/regex.c: Update from GNU libc.
58934 2001-05-27 Jim Meyering <meyering@lucent.com>
58936 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
58937 Check for ut_type in struct utmp.
58939 2001-05-27 Jim Meyering <meyering@lucent.com>
58941 * lib/readutmp.h (UT_TYPE): Define.
58943 2001-05-24 Jim Meyering <meyering@lucent.com>
58945 * lib/argmatch.c: Include "quote.h".
58946 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
58947 quote function. Reported by Göran Uddeborg.
58949 2001-05-22 Jim Meyering <meyering@lucent.com>
58951 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
58952 now that we use the package-supplied version unconditionally.
58953 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
58955 2001-05-21 Jim Meyering <meyering@lucent.com>
58957 * m4/regex.m4: Change a couple backticks to single quotes to avoid
58958 shell syntax errors.
58960 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
58962 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
58964 2001-05-20 Paul Eggert <eggert@twinsun.com>
58966 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
58967 Don't bother to check library strftime, since
58968 we'll be using our own my_strftime function anyway.
58969 Define my_strftime instead of strftime.
58971 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
58973 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
58974 which is not yet declared.
58976 2001-05-15 Jim Meyering <meyering@lucent.com>
58978 * m4/regex.m4: Use proper quoting so brackets appear in the test
58980 Reported by, and with help from, Bruno Haible.
58982 2001-05-13 Jim Meyering <meyering@lucent.com>
58984 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
58987 2001-05-11 Paul Eggert <eggert@twinsun.com>
58989 dirname code cleanup. base_name now behaves more compatibly
58990 with POSIX basename when given file names that have trailing
58991 slashes, and similarly for dir_name. Add new primitives
58992 base_len and dir_len. Put the directory-name-related decls
58995 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
58996 * lib/backupfile.c (base_name): Likewise.
58997 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
58998 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
58999 * lib/makepath.c (strip_trailing_slashes): Likewise.
59000 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
59001 ISSLASH): Likewise.
59002 * lib/rename.c (strip_trailing_slashes): Likewise.
59003 * lib/same.c (base_name): Likewise.
59004 * lib/stripslash.c (ISSLASH): Likewise.
59006 * lib/addext.c: Include <dirname.h> after size_t is defined.
59007 * lib/backupfile.c: Likewise.
59009 * lib/addext.c (addext): Use base_len to trim redundant
59010 trailing slashes instead of doing it ourselves.
59011 But do not trim the last slash if it is not redundant.
59013 * lib/backupfile.c (find_backup_file_name,
59014 max_backup_version): Use base_len instead of rolling it ourselves.
59015 Handle the case of "" and (on DOS) "C:" correctly.
59017 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
59018 needed. Include <string.h>, <dirname.h>.
59019 (base_name): Allow file names ending in slashes, other than names
59020 that are all slashes. In this case, return the basename followed
59021 by the slashes. This is more general, and can be used in places
59022 where the original base_name purposely had an assertion failure.
59023 (base_len): New function.
59025 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
59026 Do not include <assert.h>; no longer needed.
59028 (memrchr): Remove decl.
59029 (dir_name_r): Remove.
59030 (dir_len): Renamed from dirlen. All callers changed.
59031 Rewrite in terms of base_name, for simplicity and consistency.
59032 (dir_name): Never return NULL. All callers changed.
59033 Do not include <stdlib.h> in test program; no longer needed.
59034 return 0; is fine for test program.
59036 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
59038 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
59040 * lib/path-concat.c (path_concat): Use base_len to compute
59041 base length, not strlen; this means we cannot rely on memcpy
59044 * lib/same.c (STREQ): Remove.
59045 (same_name): Handle the case where the basename ends in trailing '/'.
59047 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
59048 a slash was stripped. Do not strip the last slash after a
59049 file system prefix.
59051 2001-05-11 Paul Eggert <eggert@twinsun.com>
59053 * lib/Makefile.am (libfetish_a_SOURCES):
59054 Add strftime.c, since we now compile it on all hosts.
59056 * lib/strftime.c (my_strftime):
59057 Define to nstrftime if emacs, but only if my_strftime is not defined.
59058 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
59059 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
59060 Add one more extra argument: a nanoseconds value.
59063 (my_strftime function): Add %N format.
59064 (emacs_strftimeu): Renamed from emacs_strftime,
59065 with extra ut argument.
59067 2001-05-09 Paul Eggert <eggert@twinsun.com>
59069 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
59071 2001-04-21 Jim Meyering <meyering@lucent.com>
59073 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
59076 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
59078 * m4/ftruncate.m4: Check for chsize.
59079 Link with ftruncate.o unconditionally if ftruncate is missing.
59080 This was required when cross-compiling to i586-mingw32msvc.
59082 2001-04-08 Jim Meyering <meyering@lucent.com>
59084 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
59085 recomputed; that's necessary when the offset spans a DST transition.
59086 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
59088 2001-04-02 Jim Meyering <meyering@lucent.com>
59090 * lib/regex.h, regex.c: Update from GNU libc.
59092 2001-03-24 Jim Meyering <meyering@lucent.com>
59094 * m4/jm-macros.m4: Require autoconf-2.49d.
59096 2001-03-20 Bruno Haible <haible@clisp.cons.org>
59098 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
59100 2001-03-19 Paul Eggert <eggert@twinsun.com>
59102 * lib/version-etc.c (version_etc_copyright): Update to 2001.
59104 2001-03-17 Jim Meyering <meyering@lucent.com>
59106 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
59107 now that the version in autoconf is equivalent.
59108 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
59110 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
59111 Suggestion from Akim Demaille.
59113 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
59114 (jm_PREREQ_TEMPNAME): New function.
59116 2001-03-16 Paul Eggert <eggert@twinsun.com>
59118 * lib/tempname.c (uint64_t): Define to uintmax_t if
59119 not defined, and if UINT64_MAX is not defined.
59120 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
59121 Reported by John David Anglin.
59123 2001-03-15 Bruno Haible <haible@clisp.cons.org>
59125 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
59126 resolve alias if codeset is empty.
59127 * lib/config.charset (BeOS): Use wildcard syntax.
59129 2001-03-13 Jim Meyering <meyering@lucent.com>
59131 * lib/path-concat.c (path_concat)
59132 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
59133 concatenating e.g., `C:' and `foo'.
59136 2001-03-06 Bruno Haible <haible@clisp.cons.org>
59138 * lib/localcharset.c (locale_charset): Don't use
59139 setlocale(LC_CTYPE,NULL). Don't return NULL.
59140 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
59142 2001-03-06 Bruno Haible <haible@clisp.cons.org>
59144 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
59145 support for DOS/DJGPP.
59147 2001-03-01 Paul Eggert <eggert@twinsun.com>
59149 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
59150 lacks mkstemp. Compile our own tempname.c if we compile our own
59151 mkstemp.c, as mkstemp relies on tempname.
59153 2001-03-01 Jim Meyering <meyering@lucent.com>
59155 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
59156 AH_VERBATIM really does output its argument verbatim.
59158 2001-02-28 Paul Eggert <eggert@twinsun.com>
59160 * lib/Makefile.am (libfetish_a_SOURCES):
59161 Add dup-safer.c, fopen-safer.c.
59162 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
59164 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
59165 * lib/unistd-safer.h: New files.
59167 2001-02-25 Paul Eggert <eggert@twinsun.com>
59169 The mkstemp replacement is taken from glibc 2.2.2, with some
59170 portability fixes for use outside glibc, as follows:
59172 * lib/tempname.c (struct_stat64): New macro.
59173 (direxists, __gen_tempname): Use it.
59174 This avoids a portability problem with Solaris 8.
59176 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
59177 (<stddef.h>, <stdint.h>, <string.h>):
59178 Include only if STDC_HEADERS || _LIBC.
59179 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
59180 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
59181 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
59182 (__set_errno): Define this macro if <errno.h> doesn't.
59183 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
59184 Define these macros if <stdio.h> doesn't.
59185 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
59186 Define these macros if <sys/stat.h>
59187 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
59188 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
59189 __xstat64): Define if not _LIBC.
59190 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
59191 (__gen_tempname): Invoke gettimeofday only if
59192 HAVE_GETTIMEOFDAY || _LIBC;
59193 otherwise, fall back on plain "time".
59194 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
59196 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
59198 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
59200 2001-02-18 Paul Eggert <eggert@twinsun.com>
59202 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
59204 2001-02-17 Paul Eggert <eggert@twinsun.com>
59206 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
59207 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
59208 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
59209 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
59211 2001-02-17 Paul Eggert <eggert@twinsun.com>
59213 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
59214 Remove workaround macros for hosts that have mbrtowc but not
59215 mbstate_t, as we now insist on proper declarations for both
59216 before using mbrtowc.
59218 2001-02-17 Jim Meyering <meyering@lucent.com>
59220 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
59221 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
59222 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
59225 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
59226 rather than AC_CACHE_VAL.
59228 2001-02-17 Jim Meyering <meyering@lucent.com>
59230 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
59231 around included file name.
59233 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
59235 * lib/strftime.c: Update from GNU libc (the only changes were to
59238 2001-02-17 Jim Meyering <meyering@lucent.com>
59240 * lib/regex.c: Update from libc.
59242 2001-02-17 Bruno Haible <haible@clisp.cons.org>
59244 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
59247 2001-02-16 Paul Eggert <eggert@twinsun.com>
59249 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
59250 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
59251 Reported by Mark Hounschell via Paul Eggert.
59253 2001-02-07 Jim Meyering <meyering@lucent.com>
59255 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
59257 2001-02-05 Jim Meyering <meyering@lucent.com>
59259 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
59260 it includes the patch required for `large file' support with at least
59261 HP-UX's 10.20 /bin/cc.
59263 2001-02-03 Jim Meyering <meyering@lucent.com>
59265 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
59266 AS_IF, now that it works once again (mysteriously).
59267 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
59269 2001-01-30 Jim Meyering <meyering@lucent.com>
59271 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
59272 * m4/chown.m4: Rename conftestchown to conftest.chown.
59273 * m4/rename.m4: s/conftestdir/conftest.d1/ and
59274 s/conftestdir2/conftest.d2/.
59275 * m4/utimes.m4: s/conftestdata/conftest.data/
59276 Inspired by Pavel Roskin's change in autoconf.
59278 2001-01-30 Bruno Haible <haible@clisp.cons.org>
59280 * lib/config.charset: Update for FreeBSD 4.2.
59282 2001-01-27 Jim Meyering <meyering@lucent.com>
59284 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
59286 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
59288 2001-01-26 Jim Meyering <meyering@lucent.com>
59290 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
59291 quotearg.c includes it.
59293 2001-01-26 Jim Meyering <meyering@lucent.com>
59295 * lib/quotearg.c: Include stddef.h.
59296 * lib/quote.c: Include stddef.h.
59297 Reported by Axel Kittenberger.
59299 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
59300 line in double quotes so that it evokes a better diagnostic.
59301 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
59302 Reported by Axel Kittenberger.
59304 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
59306 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
59307 as if it was a `charset'.
59309 2001-01-21 Bruno Haible <haible@clisp.cons.org>
59311 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
59314 2001-01-21 Bruno Haible <haible@clisp.cons.org>
59316 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
59317 to avoid a warning. Add back 'const' to inptr.
59319 2001-01-20 Jim Meyering <meyering@lucent.com>
59321 Be sure that headers are checked before used in code compiled
59322 for the type checks.
59323 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
59324 In place of that, invoke jm_CHECK_ALL_TYPES.
59325 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
59326 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
59327 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
59328 The check for ssize_t was mistakenly run before the test for unistd.h.
59330 The configure-time check for stdbool.h was missing.
59331 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
59332 (jm_PREREQ_HASH): New function.
59334 2001-01-17 Jim Meyering <meyering@lucent.com>
59336 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
59337 for autoconf-2.49c.
59338 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
59340 2001-01-16 Jim Meyering <meyering@lucent.com>
59342 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
59345 2001-01-14 Jim Meyering <meyering@lucent.com>
59347 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
59348 foo and bar. Create conftestdir/ in the script, not in the C code.
59349 Remove directories in the script, not in the C code.
59350 Remove conftestdir{,2} before trying to create the directory.
59351 Make the entire configure script fail if the mkdir fails.
59353 2001-01-14 Jim Meyering <meyering@lucent.com>
59355 * lib/rename.c: New file. From Volker Borchert.
59356 Include stdlib.h, string.h or strings.h, and xalloc.h.
59357 Use strip_trailing_slashes rather than open-coding it.
59359 2001-01-03 Paul Eggert <eggert@twinsun.com>
59361 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
59363 2001-01-03 Jim Meyering <meyering@lucent.com>
59365 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
59366 of local `inptr' to avoid warning with some system declarations of
59369 2001-01-02 Volker Borchert <bt@teknon.de>
59371 * m4/rename.m4: New file.
59372 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
59374 2001-01-01 Jim Meyering <meyering@lucent.com>
59376 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
59377 even on systems with utmpx.h. It's necessary for the declaration of
59378 utmp's ut_user member. Reported by Andreas Jaeger.
59380 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
59381 available. They are required for the declarations of getgrgid and
59383 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
59384 Reported by Andreas Jaeger.
59386 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
59388 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
59389 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
59390 so `make install' also works in VPATH builds.
59392 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
59394 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
59395 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
59396 can be used in subdirectories.
59398 2000-12-29 Paul Eggert <eggert@twinsun.com>
59400 * lib/modechange.c: Do not assume that mode_t uses the
59401 traditional octal encoding. E.g. "chmod 1 FOO" should set
59402 the other-execute bit of FOO even if S_IXOTH != 1.
59404 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
59405 WOTH, XOTH, ALLM): New macros.
59406 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
59407 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
59409 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
59410 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
59412 No need to use uintmax_t; unsigned long is long enough.
59413 Don't bother to get suffix since we don't use it.
59415 2000-12-26 Jim Meyering <meyering@lucent.com>
59417 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
59418 better with autoheader.
59420 2000-12-24 Jim Meyering <meyering@lucent.com>
59422 * lib/hash.c (is_prime): Return explicit boolean values.
59423 (hash_get_first): Return NULL to appease Irix5.6's 89.
59424 Reported by Nelson Beebe.
59426 2000-12-19 Bruno Haible <haible@clisp.cons.org>
59428 * lib/localcharset.c (locale_charset): Add support for Win32.
59430 2000-12-18 Paul Eggert <eggert@twinsun.com>
59432 * lib/physmem.h, lib/physmem.c: New files.
59434 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
59435 (noinst_HEADERS): Add physmem.h.
59437 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
59438 't' for compatibility with Solaris 8 sort.
59440 2000-12-18 Bruno Haible <haible@clisp.cons.org>
59442 * lib/config.charset: Add support for BeOS.
59444 2000-12-17 Jim Meyering <meyering@lucent.com>
59446 * m4/dos.m4 (jm_AC_DOS): New file and macro.
59447 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
59449 2000-12-16 Jim Meyering <meyering@lucent.com>
59451 This bug had a serious impact on chown: `chown N:M FILE' (for integer
59452 N and M) would have treated it like `chown N:N FILE'.
59454 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
59456 2000-12-16 Jim Meyering <meyering@lucent.com>
59458 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
59459 SHELLS_FILE to a file name that's useful on djgpp systems.
59461 (ADDITIONAL_DEFAULT_SHELLS): Define.
59462 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
59463 Based mostly on a patch from Prashant TR.
59465 2000-12-16 Bruno Haible <haible@clisp.cons.org>
59467 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
59468 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
59469 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
59471 2000-12-08 Andreas Schwab <schwab@suse.de>
59473 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
59474 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
59476 2000-12-07 Jim Meyering <meyering@lucent.com>
59478 * lib/stripslash.c (ISSLASH): Define.
59479 (strip_trailing_slashes): Use ISSLASH rather than comparing against
59483 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
59484 (dir_name_r): Declare this function as static.
59485 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
59486 manifest itself on a name containing a mix of slashes and
59488 Make this function work with names starting with a DOS-style
59489 drive letter and colon prefix.
59490 (dir_name): Append `.' if necessary.
59491 Based mostly on patches from Prashant TR and Eli Zaretskii.
59493 * lib/dirname.h (dir_name_r): Remove prototype.
59495 2000-12-06 Paul Eggert <eggert@twinsun.com>
59497 * m4/off_t-format.m4: Remove this file.
59498 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
59500 2000-12-06 Jim Meyering <meyering@lucent.com>
59502 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
59503 replacement strtoull, we may well need the replacement strtoul, too.
59504 Check for declarations of strtoul and strtoull.
59505 Check for strtol. Mainly as a cue to cause automake to include
59506 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
59507 Check for limits.h -- strtol.c needs it.
59509 2000-12-05 Jim Meyering <meyering@lucent.com>
59511 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
59513 2000-12-04 Jim Meyering <meyering@lucent.com>
59515 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
59516 Also include memory.h, stdlib.h, unistd.h if appropriate.
59517 Reported by Andreas Jaeger (conflicting declaration of malloc).
59519 2000-12-02 Jim Meyering <meyering@lucent.com>
59521 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
59522 * m4/jm-macros.m4 (jm_MACROS): require it.
59524 2000-12-02 Jim Meyering <meyering@lucent.com>
59526 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
59528 2000-12-01 Paul Eggert <eggert@twinsun.com>
59530 * lib/memrchr.c: Include <config.h> before any system include file.
59532 2000-11-30 Jim Meyering <meyering@lucent.com>
59534 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
59536 2000-11-30 Jim Meyering <meyering@lucent.com>
59538 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
59540 2000-11-29 Paul Eggert <eggert@twinsun.com>
59542 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
59544 2000-11-26 Jim Meyering <meyering@lucent.com>
59546 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
59548 2000-11-22 Paul Eggert <eggert@twinsun.com>
59550 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
59551 size of (size_t) -1; it's not portable.
59553 2000-11-17 Jim Meyering <meyering@lucent.com>
59555 * lib/strstr.c: Update from GNU libc.
59557 2000-11-17 Akim Demaille <akim@epita.fr>
59559 * lib/obstack.h: Formatting changes.
59560 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
59561 prevent type checking.
59562 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
59563 cast the value to (void *): assigning a `foo *' to a `void *'
59565 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
59567 2000-11-16 Jim Meyering <meyering@lucent.com>
59569 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
59571 2000-11-11 Jim Meyering <meyering@lucent.com>
59573 * lib/error.c: Add a couple #includes, merging from GNU libc version.
59575 2000-11-10 Jim Meyering <meyering@lucent.com>
59577 * lib/obstack.h: Update from GNU libc.
59578 * lib/obstack.c: Likewise.
59580 2000-11-08 Bruno Haible <haible@clisp.cons.org>
59582 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
59584 2000-11-06 Paul Eggert <eggert@twinsun.com>
59586 * lib/getusershell.c (setusershell): Use rewind rather than
59587 fseek/fseeko, to avoid configuration hassles with fseeko.
59588 Don't bother opening SHELLS_FILE if shellstream is NULL;
59589 it's not necessary.
59591 2000-11-05 Jim Meyering <meyering@lucent.com>
59593 * lib/makepath.h (make_dir): Declare.
59594 * lib/makepath.c (make_dir): Remove `static' attribute.
59597 2000-11-04 Jim Meyering <meyering@lucent.com>
59599 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
59601 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
59603 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
59604 last one in a bucket, advance to the next bucket.
59606 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
59608 * lib/fnmatch.c: Do not comment out all the code if we are using
59609 the GNU C library, because in some cases we are replacing buggy
59610 code in the GNU C library itself.
59612 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
59614 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
59615 (regex_compile): Catch bogus \(\1\).
59617 2000-10-30 Paul Eggert <eggert@twinsun.com>
59619 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
59620 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
59621 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
59623 2000-10-30 Paul Eggert <eggert@twinsun.com>
59625 * lib/error.h, getline.h, modechange.h:
59626 Remove "2000" from Copyright line, as the file hasn't been
59627 changed this year other than in the copyright notice.
59629 * lib/xalloc.h: Add "2000" to Copyright line, as this file
59630 was changed this year.
59632 2000-10-29 Jim Meyering <meyering@lucent.com>
59634 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
59636 * m4/ls-mntd-fs.m4: Likewise
59638 2000-10-29 Jim Meyering <meyering@lucent.com>
59640 * lib/xstat.in: Fix grammar in comment.
59642 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
59644 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
59645 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
59646 doesn't define __restrict_arr.
59648 2000-10-28 Jim Meyering <meyering@lucent.com>
59650 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
59651 (jm_PREREQ_MEMCHR): New function.
59653 2000-10-28 Jim Meyering <meyering@lucent.com>
59655 * lib/memchr.c: Update from libc.
59656 Adjust for portability:
59657 [HAVE_STDLIB_H]: Include stdlib.h.
59658 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
59659 Undef __memchr, too.
59660 [!weak_alias]: Define __memchr to memchr.
59662 * lib/regex.c: Update from libc.
59663 * lib/regex.h: Likewise.
59664 * lib/getopt1.c: Likewise.
59665 * lib/memcmp.c: Likewise.
59667 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
59668 Avoid using fseek, when possible -- it's broken by design.
59669 Patch by Ulrich Drepper.
59671 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
59673 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
59674 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
59675 Giving in to popular pressure to shut up the compiler with casts.
59677 2000-10-26 Jim Meyering <meyering@lucent.com>
59679 * lib/strftime.c: Update from libc.
59681 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
59683 * regex.c: More `unsigned char' -> `re_char' changes.
59684 Also change several `int' into `re_wchar_t'.
59685 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
59686 (PUSH_FAILURE_POINTER): Don't cast any more.
59687 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
59688 We want GCC to complain, since this piece of code makes
59689 re_match non-reentrant, which *should* be fixed.
59690 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
59691 (EXTEND_BUFFER): Use RETALLOC.
59692 (SET_LIST_BIT): Don't cast.
59693 (re_wchar_t): New type.
59694 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
59695 that those two functions will always properly return.
59696 (IMMEDIATE_QUIT_CHECK): Cast to void.
59697 (analyse_first): Use recursion rather than an explicit stack.
59698 (re_compile_fastmap): Can't fail anymore.
59699 (re_search_2): Don't check re_compile_fastmap for failure.
59700 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
59701 Now also sets the new value (passed in a new argument).
59702 (re_match_2_internal): Use it.
59703 Also, use a new var `reg' of type size_t when looping through regs
59704 rather than reuse the inappropriate `mcnt'.
59706 2000-10-25 Jim Meyering <meyering@lucent.com>
59708 * lib/obstack.c: Update from libc.
59710 2000-10-24 Kenichi Handa <handa@etl.go.jp>
59712 * regex.c (regex_compile): Change the way of handling a range from
59713 a char less than 256 to a char not less than 256.
59715 2000-10-24 Andrew Innes <andrewi@gnu.org>
59717 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
59719 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
59720 so that re_search functions only quit when callers expect them to.
59722 2000-10-23 Jim Meyering <meyering@lucent.com>
59724 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
59725 wrong. That set_locale call must not have any side effects.
59728 2000-10-22 Jim Meyering <meyering@lucent.com>
59730 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
59731 [CYCLIC]: Remove now-unused definition.
59733 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
59734 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
59735 Suggestion from Ulrich Drepper.
59737 2000-10-21 Jim Meyering <meyering@lucent.com>
59739 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
59740 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
59741 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
59743 2000-10-21 Jim Meyering <meyering@lucent.com>
59745 * lib/dirname.c (memrchr): Declare if necessary.
59746 (dir_name): Remove the restriction that there be no
59747 trailing slashes. Now, this code skips past them, effectively
59749 [TEST_DIRNAME] (main): New unit tests.
59751 * lib/memrchr.c: New file from GNU libc.
59752 Undef __memrchr, too.
59753 [!weak_alias]: Define __memrchr to memrchr.
59754 Guard weak_alias use with `#ifdef weak_alias'.
59756 2000-10-21 Jim Meyering <meyering@lucent.com>
59758 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
59759 (dir_name): Use dir_name_r.
59760 * lib/dirname.h (dir_name_r): Declare it.
59762 2000-10-17 Jim Meyering <meyering@lucent.com>
59764 * lib/quote.h (PARAMS): Define and use.
59765 Reported by Akim Demaille.
59767 * lib/getopt.c: Update from libc.
59769 2000-10-16 Jim Meyering <meyering@lucent.com>
59771 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
59775 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
59777 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
59779 2000-09-25 Jim Meyering <meyering@lucent.com>
59781 * lib/md5.h (rol): Define (from GnuPG).
59783 * lib/sha.c: Give credit (GnuPG) where due.
59784 (M): Use rol rather than open-coding it.
59785 Add a FIXME comment.
59787 2000-09-21 Jim Meyering <meyering@lucent.com>
59789 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
59790 Reported by Michael Stone.
59792 2000-09-20 Jim Meyering <meyering@lucent.com>
59794 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
59795 (noinst_HEADERS): Add sha.h.
59796 Based on code from Scott G. Miller and from GnuPG.
59798 2000-09-18 Jim Meyering <meyering@lucent.com>
59800 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
59801 LIBS. Otherwise, everyone ends up linking with -lelf for some
59803 Reported by Mike Stone.
59805 2000-09-15 Jim Meyering <meyering@lucent.com>
59807 * lib/regex.c: Update from libc.
59809 2000-09-10 Jim Meyering <meyering@lucent.com>
59811 * lib/getopt.c (_getopt_internal): Update from glibc.
59813 2000-09-09 Jim Meyering <meyering@lucent.com>
59815 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
59816 think it should be used as a general replacement for isascii.
59817 * lib/fnmatch.c: Likewise.
59818 * lib/mbswidth.c: Likewise
59819 * lib/regex.c: Likewise.
59822 * lib/userspec.c: Include sys/param.h and limits.h.
59824 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59825 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
59826 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
59827 UID, GID. Check range.
59829 2000-09-06 Jim Meyering <meyering@lucent.com>
59831 * lib/getopt.c (_getopt_internal): Update from glibc.
59833 2000-08-30 Jim Meyering <meyering@lucent.com>
59835 * lib/strftime.c: Merge in changes from GNU libc.
59837 2000-08-26 Jim Meyering <meyering@lucent.com>
59839 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
59840 * m4/fpending.m4: New file.
59842 2000-08-26 Jim Meyering <meyering@lucent.com>
59844 * lib/closeout.c: Include "__fpending.h".
59845 (close_stdout_status): Return right away if there's nothing to flush.
59847 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
59848 * lib/__fpending.c: New file.
59849 * lib/__fpending.h: New file.
59851 2000-08-20 Jim Meyering <meyering@lucent.com>
59853 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
59854 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
59855 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
59857 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
59859 Improve fileutils installation on systems where running
59860 programs (like install) can't be unlinked.
59861 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
59862 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
59864 2000-08-07 Paul Eggert <eggert@twinsun.com>
59866 Standardize on "memory exhausted" instead of "Memory exhausted"
59867 or "virtual memory exhausted".
59868 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
59869 "virtual memory exhausted".
59870 * lib/same.c (same_name): Invoke xalloc_die instead of printing
59872 * lib/userspec.c (parse_user_spec): Likewise.
59873 * lib/bumpalloc.h: comment fix
59874 * lib/same.c, userspec.c: Include xalloc.h.
59876 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
59877 not char *const and pointing to a constant array.
59878 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
59879 (xrealloc): Comment fix.
59881 * lib/userspec.c (parse_user_spec):
59882 Don't translate a message until just before returning,
59883 to avoid unnecessary translation.
59885 2000-08-07 Jim Meyering <meyering@lucent.com>
59887 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
59888 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
59889 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
59890 getgroups.c, gethostname.c, getopt.h, group-member.c,
59891 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
59892 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
59893 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
59894 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
59895 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
59896 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
59897 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
59898 yesno.c: Back out Copyright date changes for each file with no change
59899 this year. This eases coordination with other programs using the same
59900 source code modules. From Paul Eggert.
59902 2000-08-06 Paul Eggert <eggert@twinsun.com>
59904 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
59905 not char, for compatibility with glibc 2.1.3 strftime.c.
59907 2000-08-03 Greg McGary <greg@mcgary.org>
59909 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
59910 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
59911 (EXTEND_BUFFER): Use them.
59913 2000-08-01 Jim Meyering <meyering@lucent.com>
59915 * lib/dirname.c (ISSLASH): Define.
59916 (BACKSLASH_IS_PATH_SEPARATOR): Define.
59917 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
59918 both `\' and `/' may be use as path separators.
59919 Based on a patch from Prashant TR.
59921 2000-07-31 Paul Eggert <eggert@twinsun.com>
59923 * lib/quotearg.c (quotearg_n_options): Don't make the initial
59924 slot vector a constant, since it might get modified.
59926 2000-07-31 Jim Meyering <meyering@lucent.com>
59928 * lib/xmalloc.c: Use `virtual memory exhausted', not
59929 `Memory exhausted'.
59930 * lib/obstack.c (print_and_abort): Likewise.
59932 2000-07-30 Paul Eggert <eggert@twinsun.com>
59934 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
59935 buffer, so that the caller can always quote one small
59936 component of a "memory exhausted" message in slot 0.
59937 From a suggestion by Jim Meyering.
59939 2000-07-30 Jim Meyering <meyering@lucent.com>
59941 * lib/makepath.c (make_path): Quote the other instance, too.
59943 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
59944 (STATIC_BUF_SIZE): Define.
59945 (quotearg_n_options): Use only statically allocated storage when
59946 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
59947 than STATIC_BUF_SIZE.
59949 2000-07-29 Jim Meyering <meyering@lucent.com>
59951 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
59952 * lib/dirname.c (dir_name): Likewise.
59954 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
59957 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
59958 (dir_name): Assert that there are no trailing slashes.
59960 2000-07-29 Bruno Haible <haible@clisp.cons.org>
59962 * lib/mbswidth.h (mbswidth): Add a flags argument.
59963 (mbswidth): New declaration.
59964 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
59965 * lib/mbswidth.c (mbswidth): Add a flags argument.
59966 (mbsnwidth): New function.
59968 2000-07-24 Jim Meyering <meyering@lucent.com>
59970 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
59972 2000-07-23 Paul Eggert <eggert@twinsun.com>
59974 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
59976 2000-07-23 Paul Eggert <eggert@twinsun.com>
59978 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
59979 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
59980 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
59981 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
59982 invoke multibyte primitives.
59984 2000-07-23 Paul Eggert <eggert@twinsun.com>
59987 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
59988 so that mbstate_t is always defined.
59990 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
59991 be 1 in at least one GCC installation, and this configuration
59992 error is likely to be common. Ignoring MB_LEN_MAX hurts
59993 performance on hosts that have mbrtowc but have only unibyte
59994 locales, but I assume these hosts are rare.
59996 2000-07-23 Paul Eggert <eggert@twinsun.com>
59998 * lib/mbswidth.c (_XOPEN_SOURCE):
59999 Don't define; this causes problems on Solaris 7.
60000 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
60002 2000-07-23 Jim Meyering <meyering@lucent.com>
60004 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
60005 too: getgrgid, getpwuid, getuid.
60007 2000-07-23 Jim Meyering <meyering@lucent.com>
60009 * lib/basename.c (base_name): Add an assertion.
60011 2000-07-23 Bruno Haible <haible@clisp.cons.org>
60013 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
60014 shadow its mbsinit function.
60016 2000-07-17 Bruno Haible <haible@clisp.cons.org>
60018 * lib/mbswidth.h: New file.
60019 * lib/mbswidth.c: New file.
60020 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
60021 (noinst_HEADERS): Add mbswidth.h.
60023 2000-07-17 Bruno Haible <haible@clisp.cons.org>
60025 * lib/config.charset: Add support for FreeBSD. Improve support for
60028 2000-07-16 Bruno Haible <haible@clisp.cons.org>
60030 * m4/mbswidth.m4: New file.
60031 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
60033 2000-07-15 Jim Meyering <meyering@lucent.com>
60035 * lib/makepath.c: Include quote.h.
60036 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
60037 corresponding argument in a `quote (...)' call.
60038 Give better diagnostics.
60040 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
60041 (noinst_HEADERS): Add quote.h.
60043 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
60044 from tar's src/misc.c.
60045 * lib/quote.h: New file. Prototypes for same.
60047 2000-07-14 Paul Eggert <eggert@twinsun.com>
60049 From a suggestion by Bruno Haible.
60050 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
60051 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
60052 to decide whether to define the BeOS workaround macro;
60053 this adjusts to the change to AC_MBSTATE_T.
60055 2000-07-14 Jim Meyering <meyering@lucent.com>
60057 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
60058 jm_AC_TYPE_UINTMAX_T.
60060 2000-07-13 Paul Eggert <eggert@twinsun.com>
60062 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
60064 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
60065 quotearg_buffer_restyled): Add support for
60066 clocale_quoting_style. Undo previous change to
60067 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
60068 and "{RIGHT QUOTATION MARK}" msgids.
60070 2000-07-10 Paul Eggert <eggert@twinsun.com>
60072 From a suggestion by Bruno Haible.
60073 * m4/mbstate_t.m4 (AC_MBSTATE_T):
60074 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
60075 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
60076 and mbstate_t, to a single-part test that simply defines mbstate_t.
60077 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
60078 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
60080 2000-07-10 Jim Meyering <meyering@lucent.com>
60082 * m4/strerror_r.m4: Mirror the correction made in autoconf.
60084 * m4/gnu-source.m4: Output to confdefs.h directly.
60085 Suggestion from Akim Demaille.
60087 2000-07-09 Paul Eggert <eggert@twinsun.com>
60089 The old behavior of quoting `like this' doesn't look good with
60090 newer, ISO-style fonts. See:
60091 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
60093 Instead, quote "like this" by default. Let the translator
60094 tailor the locale-specific quoting behavior by providing
60095 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
60097 * lib/quotearg.c (N_): New macro.
60098 (gettext_default): New function.
60099 (quotearg_buffer_restyled): Use
60100 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
60101 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
60103 2000-07-09 Jim Meyering <meyering@lucent.com>
60105 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
60106 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
60108 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
60109 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
60111 2000-07-09 Jim Meyering <meyering@lucent.com>
60113 * lib/Most files: Update copyright dates to include 2000.
60115 2000-07-08 Jim Meyering <meyering@lucent.com>
60117 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
60119 (xgethostname): Remove now-unnecessary #ifdef.
60120 Move declaration of `err' into loop where it's used.
60122 2000-07-05 Paul Eggert <eggert@twinsun.com>
60123 and Bruno Haible <haible@clisp.cons.org>
60125 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
60126 only if the test for an object-type mbstate_t fails. This
60127 prevents us from mistakenly reporting that mbstate_t is a
60128 system object type after we "#define mbstate_t int" to work
60131 2000-07-05 Paul Eggert <eggert@twinsun.com>
60132 and Bruno Haible <haible@clisp.cons.org>
60134 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
60136 2000-07-05 Bruno Haible <haible@clisp.cons.org>
60138 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
60140 Include <ctype.h> for use of isalpha.
60142 2000-07-05 Bruno Haible <haible@clisp.cons.org>
60144 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
60145 by allocating a larger buffer. Test the gethostname return value for
60146 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
60147 returns an error and ENAMETOOLONG isn't defined.
60149 2000-07-05 Bruno Haible <haible@clisp.cons.org>
60151 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
60154 2000-07-04 Jim Meyering <meyering@lucent.com>
60156 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
60157 of the deprecated AC_CHECKING.
60159 2000-07-04 Jim Meyering <meyering@lucent.com>
60161 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
60162 Reported by Bruno Haible.
60164 2000-07-04 Jim Meyering <meyering@lucent.com>
60166 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
60167 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
60170 2000-07-03 Paul Eggert <eggert@twinsun.com>
60172 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
60173 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
60175 2000-07-03 Paul Eggert <eggert@twinsun.com>
60176 and Bruno Haible <haible@clisp.cons.org>
60178 * lib/quotearg.c (mbrtowc):
60179 Assign to *pwc, and return 1 only if result is nonzero.
60180 (iswprint): Use ISPRINT when substituting our own mbrtowc.
60182 2000-07-03 Jim Meyering <meyering@lucent.com>
60184 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
60186 2000-07-03 Jim Meyering <meyering@lucent.com>
60188 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
60189 This is necessary to get a definition of e.g., UTMP_FILE on
60193 2000-07-02 Jim Meyering <meyering@lucent.com>
60195 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
60197 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
60198 AC_LIBOBJ(function_name).
60199 * m4/chown.m4: Likewise.
60200 * m4/fnmatch.m4: Likewise.
60201 * m4/ftruncate.m4: Likewise.
60202 * m4/getgroups.m4: Likewise.
60203 * m4/getline.m4: Likewise.
60204 * m4/group-member.m4: Likewise.
60205 * m4/jm-macros.m4: Likewise.
60206 * m4/lstat.m4: Likewise.
60207 * m4/malloc.m4: Likewise.
60208 * m4/memcmp.m4: Likewise.
60209 * m4/nanosleep.m4: Likewise.
60210 * m4/putenv.m4: Likewise.
60211 * m4/realloc.m4: Likewise.
60212 * m4/regex.m4: Likewise.
60213 * m4/stat.m4: Likewise.
60214 * m4/strftime.m4: Likewise.
60216 2000-07-02 Jim Meyering <meyering@lucent.com>
60218 * lib/quotearg.c (mbstate_t): Don't define here.
60220 2000-07-02 Jim Meyering <meyering@lucent.com>
60222 * lib/nanosleep.c (SIGCONT): Define if not already defined.
60224 2000-07-01 Jim Meyering <meyering@lucent.com>
60226 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
60228 2000-07-01 Jim Meyering <meyering@lucent.com>
60230 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
60233 2000-07-01 Bruno Haible <haible@clisp.cons.org>
60235 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
60236 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
60238 2000-07-01 Bruno Haible <haible@clisp.cons.org>
60240 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
60241 per change in ../m4/ls-mntd-fs.m4.
60242 (read_filesystem_list): Ignore symbolic links.
60244 2000-06-29 Jim Meyering <meyering@lucent.com>
60246 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
60247 for declaration of strcmp.
60249 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
60251 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
60252 Avoid warning by casting result to `char *' to remove `const'.
60254 2000-06-28 Jim Meyering <meyering@lucent.com>
60256 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
60257 included by quotearg.c, for which we perform this test. From
60260 2000-06-27 Bruno Haible <haible@clisp.cons.org>
60262 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
60263 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
60264 <utmpx.h> exists, put readutmp.o into LIBOBJS.
60266 2000-06-27 Bruno Haible <haible@clisp.cons.org>
60268 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
60270 2000-06-26 Paul Eggert <eggert@twinsun.com>
60272 savedir now sets errno on failure and invokes xmalloc to get memory.
60273 Fix a couple of other minor bugs while we're at it.
60275 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
60276 (NAMLEN): Remove macro.
60277 (malloc, realloc): Remove decls.
60278 (stpcpy): Likewise.
60279 ("xalloc.h"): Include.
60280 (NAME_SIZE_DEFAULT): New macro.
60281 (savedir): Use xmalloc / xrealloc to allocate memory.
60282 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
60283 Skip "" directory entries.
60284 Use strlen to calculate directory entry length, since the old method
60285 is rarely used these days and isn't worth supporting.
60286 Don't use a pointer after freeing it.
60287 Check for integer overflow when calculating allocation size.
60288 Use memcpy to copy entries, instead of stpcpy.
60289 Set errno properly when returning NULL.
60290 Check for readdir error.
60292 2000-06-26 Jim Meyering <meyering@lucent.com>
60294 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
60296 2000-06-25 Jim Meyering <meyering@lucent.com>
60298 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
60299 Linux header bug when _XOPEN_SOURCE is defined to 500.
60301 2000-06-25 Bruno Haible <haible@clisp.cons.org>
60303 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
60306 2000-06-25 Bruno Haible <haible@clisp.cons.org>
60308 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
60310 Don't include <stdlib.h>. Don't declare malloc, realloc.
60312 2000-06-24 Jim Meyering <meyering@lucent.com>
60314 * m4/strerror_r.m4: Revive this file -- to try out an experimental
60315 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
60316 for which strerror does return char*, but which lacks a conveniently
60317 accessible declaration of the function. If the compile-test says
60318 strerror_r doesn't work, then resort to a `run'-test that works on
60319 BeOS and segfaults on DEC Unix.
60321 2000-06-24 Jim Meyering <meyering@lucent.com>
60323 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
60325 2000-06-23 Paul Eggert <eggert@twinsun.com>
60327 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
60328 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
60330 2000-06-23 Paul Eggert <eggert@twinsun.com>
60332 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
60333 (mbrtowc, mbstate_t): Define substitutes if
60334 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
60335 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
60336 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
60338 2000-06-23 Jim Meyering <meyering@lucent.com>
60340 * m4/afs.m4: Add missing AC_MSG_RESULT.
60341 Reported by Bruno Haible.
60343 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
60344 Suggestion from Bruno Haible.
60346 2000-06-23 Jim Meyering <meyering@lucent.com>
60348 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
60350 2000-06-21 Jim Meyering <meyering@lucent.com>
60352 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
60354 2000-06-21 Jim Meyering <meyering@lucent.com>
60356 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
60357 (noinst_HEADERS): Add getstr.h.
60359 * lib/getline.c (getstr): Move into a separate file.
60360 * lib/getstr.c (getstr): New file, extracted from getline.c, with
60361 the following changes: new parameter, delim2; both delim[12]
60362 parameters have type `int', not `char'. The latter would lose
60363 with 8-bit delimiters.
60364 * lib/getstr.h: New file.
60366 2000-06-21 Bruno Haible <haible@clisp.cons.org>
60368 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
60369 than 1024, return a memory chunk of least possible size, instead
60370 of size PATH_MAX + 2. In the loop, increment the size proportionally.
60371 Use free/xmalloc instead of xrealloc to avoid copying for very long
60374 2000-06-21 Bruno Haible <haible@clisp.cons.org>
60376 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
60379 2000-06-21 Bruno Haible <haible@clisp.cons.org>
60381 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
60382 address, not strdup. Include <stdlib.h> and don't declare free().
60384 2000-06-19 Jim Meyering <meyering@lucent.com>
60386 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
60388 2000-06-18 Jim Meyering <meyering@lucent.com>
60390 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
60392 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
60393 `checking whether...' message to be consistent with that of the
60396 2000-06-18 Jim Meyering <meyering@lucent.com>
60398 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
60399 Besides, these days every porting target provides a mkdir function.
60401 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
60402 needed. (this snippet comes from src/system.h).
60404 2000-06-16 Bruno Haible <haible@clisp.cons.org>
60406 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
60408 2000-06-15 Paul Eggert <eggert@twinsun.com>
60410 * lib/human.c (adjust_value): New function.
60411 (human_readable_inexact): Apply rounding style even when
60412 printing approximate values.
60414 2000-06-14 Paul Eggert <eggert@twinsun.com>
60416 * lib/human.c (human_readable_inexact): Allow an input block
60417 size that is not a multiple of the output block size, and vice versa.
60418 Reported by Piergiorgio Sartor.
60420 2000-06-14 Paul Eggert <eggert@twinsun.com>
60422 * lib/getdate.y (get_date): Apply relative times after time
60423 zone indicator, not before. Reported by Todd A. Jacobs.
60425 2000-06-13 Jim Meyering <meyering@lucent.com>
60427 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
60429 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
60431 2000-06-12 Paul Eggert <eggert@twinsun.com>
60433 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
60435 2000-06-12 Jim Meyering <meyering@lucent.com>
60437 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
60438 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
60440 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
60441 the optional argument, `lib'.
60443 2000-06-08 Jim Meyering <meyering@lucent.com>
60445 * m4/largefile.m4: Remove file (now that it's part of autoconf).
60447 2000-06-04 Paul Eggert <eggert@twinsun.com>
60449 Rewrite largefile configuration so that we don't need to run
60450 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
60451 AC_CANONICAL_HOST in configure.in -- jmm]
60453 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
60454 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
60455 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
60456 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
60457 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
60459 Instead of inspecting the output of getconf, try to compile the
60460 test program without and with the macro definition.
60461 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
60462 for getconf. Instead, check for the needed flags by compiling
60465 2000-06-04 Paul Eggert <eggert@twinsun.com>
60467 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
60469 2000-06-04 Jim Meyering <meyering@lucent.com>
60471 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
60472 SunOS 4.1.4 for which gid_t is an unsigned type.
60474 2000-06-03 Jim Meyering <meyering@lucent.com>
60476 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
60477 now that autoconf requires that.
60479 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
60480 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
60481 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
60483 2000-06-03 Jim Meyering <meyering@lucent.com>
60485 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
60487 2000-06-03 Bruno Haible <haible@clisp.cons.org>
60489 * m4/glibc21.m4: New file.
60490 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
60492 2000-06-03 Bruno Haible <haible@clisp.cons.org>
60494 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
60495 newer, don't install charset.alias.
60496 * lib/config.charset: Change the Linux/glibc rules so they become empty
60497 on glibc-2.1 or newer.
60499 2000-06-02 Jim Meyering <meyering@lucent.com>
60501 * lib/mountlist.c: Back out last change. Instead, do this...
60502 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
60503 me_dummy member using the same `ignore'-testing code.
60504 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
60508 2000-05-29 Jim Meyering <meyering@lucent.com>
60510 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
60511 mounts with the `ignore' attribute. Based on a patch from
60514 2000-05-28 Jim Meyering <meyering@lucent.com>
60516 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
60517 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60518 * m4/stat.m4: Likewise.
60519 * m4/lstat.m4: Likewise.
60520 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
60522 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
60523 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
60525 2000-05-26 Jim Meyering <meyering@lucent.com>
60527 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
60529 2000-05-24 Jim Meyering <meyering@lucent.com>
60531 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
60532 autoconf requires that.
60533 * m4/lib-check.m4: Likewise.
60534 * m4/jm-macros.m4: Likewise.
60535 * m4/strftime.m4: Likewise.
60537 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
60538 AC_CHECK_DECLS, now that autoconf requires that.
60540 2000-05-22 Jim Meyering <meyering@lucent.com>
60542 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60543 * m4/lstat.m4: Likewise.
60545 2000-05-22 Jim Meyering <meyering@lucent.com>
60547 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
60549 2000-05-20 Jim Meyering <meyering@lucent.com>
60551 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
60552 (jm_PREREQ): Use it.
60554 2000-05-18 Jim Meyering <meyering@lucent.com>
60556 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
60557 back, too, since it may have been modified by allocate_entry.
60558 (hash_delete): Rewrite to use neither the assignment operator
60559 nor the comma operator in an if-expression.
60561 2000-05-15 Paul Eggert <eggert@twinsun.com>
60564 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
60565 Remove; no longer needed.
60566 "quotearg.h": Add include.
60567 (file_name): Do not bother to explicitly initialize to NULL; it's less
60568 efficient on some hosts.
60569 (close_stdout_status): Remove test as to whether stdout was already
60570 closed; it breaks for the case "echo x | sort >&-".
60571 Quote file name colons.
60572 Do not assume that _("write error") lacks format strings.
60574 2000-05-15 Jim Meyering <meyering@lucent.com>
60576 * lib/version-etc.c (version_etc_copyright): Update the copyright
60577 string used in all --version output.
60579 2000-05-14 Jim Meyering <meyering@lucent.com>
60581 * lib/closeout.c (close_stdout_set_file_name): New function.
60582 (close_stdout_status): Use new file-scoped global.
60583 Return right away if fstat says the stdout file descriptor is invalid.
60584 * lib/closeout.h (close_stdout_set_file_name): Declare.
60586 2000-05-10 Jim Meyering <meyering@lucent.com>
60588 * lib/closeout.c [default_exit_status]: New file-scoped variable.
60589 (close_stdout_set_status): New function.
60590 * lib/closeout.h (close_stdout_set_status): Declare.
60592 2000-05-09 Jim Meyering <meyering@lucent.com>
60594 * m4/gettext.m4: Rename this...
60595 * m4/libintl.m4: ...to this.
60597 2000-05-08 Jim Meyering <meyering@lucent.com>
60599 * lib/long-options.c: Don't include closeout.h.
60600 (parse_long_options): Don't call close_stdout for --version.
60602 2000-05-06 Paul Eggert <eggert@twinsun.com>
60604 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
60605 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
60606 2.1.3 bug. This avoids a clash when files like regex.c define
60609 2000-05-06 Jim Meyering <meyering@lucent.com>
60611 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
60612 (AC_REPLACE_FUNCS): Add strnlen.
60614 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
60615 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
60617 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
60618 AC_SEARCH_LIBS call for nanosleep.
60619 (LIB_NANOSLEEP): Set and AC_SUBST.
60621 2000-05-06 Jim Meyering <meyering@lucent.com>
60623 * lib/strnlen.c: Undefine __strnlen and strnlen.
60624 [!weak_alias]: Define __strnlen to strnlen.
60626 * lib/atexit.c: New file, from libiberty.
60628 2000-05-06 Jim Meyering <meyering@lucent.com>
60630 * lib/closeout.c (close_stdout_status): Also check for errors on the
60633 2000-05-05 Jim Meyering <meyering@lucent.com>
60635 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
60636 AC_SEARCH_LIBS call for clock_gettime.
60637 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
60639 * m4/search-libs.m4: Update from autoconf.
60641 su doesn't work on Solaris 2.6.
60642 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
60643 <shadow.h>. Reported by Dragos Harabor.
60645 2000-05-05 Bruno Haible <haible@clisp.cons.org>
60647 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
60648 memcpy instead of xmalloc, xrealloc, path_concat.
60649 (locale_charset): Treat empty environment variables as absent.
60650 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
60652 2000-05-04 Jim Meyering <meyering@lucent.com>
60654 * lib/getopt.c: Update from glibc.
60655 * lib/obstack.c: Likewise.
60656 * lib/obstack.h: Likewise.
60657 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
60660 * lib/regex.h: Likewise.
60661 * lib/strndup.c: Likewise.
60662 * lib/strnlen.c: New file, from glibc.
60664 2000-05-03 Jim Meyering <meyering@lucent.com>
60666 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
60668 2000-05-02 Paul Eggert <eggert@twinsun.com>
60670 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
60671 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
60672 compile-time test, rather than inspecting host and OS, to
60673 decide whether to define _LARGEFILE_SOURCE.
60675 2000-05-01 Jim Meyering <meyering@lucent.com>
60677 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
60679 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
60680 Based on a patch from Bruno Haible.
60682 2000-05-01 Jim Meyering <meyering@lucent.com>
60684 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
60686 2000-04-29 Jim Meyering <meyering@lucent.com>
60688 * lib/path-concat.c: Declare strdup only if it's not defined.
60689 * lib/canon-host.c: Likewise.
60691 2000-04-28 Jim Meyering <meyering@lucent.com>
60693 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
60694 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
60695 is included first, then limits.h is included by locale.h by libintl.h.
60696 From John David Anglin.
60698 2000-04-25 Jim Meyering <meyering@lucent.com>
60700 * lib/makepath.c (S_IRWXUGO): Define.
60701 (make_path): Always perform explicit chmod if MODE specifies any
60702 of the `special' permission bits. Prompted by a bug report against
60703 install from Mate Wierdl and Joost van Baal.
60705 2000-04-18 Jim Meyering <meyering@lucent.com>
60707 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
60708 (jm_PREREQ): Use it.
60710 2000-04-18 Jim Meyering <meyering@lucent.com>
60712 * lib/README: New file.
60714 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
60715 getpagesize. For BeOS. Based on a patch from Bruno Haible.
60717 2000-04-17 Jim Meyering <meyering@lucent.com>
60720 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
60721 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
60722 Suggestion from Akim Demaille.
60724 2000-04-17 Jim Meyering <meyering@lucent.com>
60726 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
60727 the definition of it to rpl_strftime also defined-away the system's
60730 2000-04-15 Jim Meyering <meyering@lucent.com>
60732 Use `C' to denote so-called `contiguous' files, the same way
60734 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
60735 (ftypelet): Use S_ISCTG.
60736 From Michael Deutschmann.
60738 2000-04-14 Jim Meyering <meyering@lucent.com>
60740 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
60741 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
60744 2000-04-14 Jim Meyering <meyering@lucent.com>
60746 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
60748 2000-04-13 Jim Meyering <meyering@lucent.com>
60750 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
60751 AH_VERBATIM to insert required #ifndef into config.h.in.
60752 Suggestion from Akim Demaille.
60754 2000-04-12 Jim Meyering <meyering@lucent.com>
60756 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
60757 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
60758 Christian Krackowizer.
60760 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
60761 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
60762 (AC_SYS_LARGEFILE): Require.
60763 (AM_C_PROTOTYPES): Require.
60765 2000-04-08 Jim Meyering <meyering@lucent.com>
60767 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
60768 names don't conflict. Reported by Eli Zaretskii.
60770 2000-04-07 Jim Meyering <meyering@lucent.com>
60772 * lib/putenv.c: Move inclusion of errno.h so it follows that of
60773 sys/types.h, to work around system header problems on AIX 3.2.5.
60776 2000-04-07 Bruno Haible <haible@clisp.cons.org>
60778 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
60779 bug. Deal with the different error behavior of Irix iconv.
60781 2000-04-05 Paul Eggert <eggert@twinsun.com>
60783 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
60784 IRIX if the installer said otherwise.
60786 2000-04-05 Jim Meyering <meyering@lucent.com>
60788 Portability tweaks required for ultrix4.3.
60789 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
60790 (jm_CHECK_DECLS): Add getutent to the list of functions.
60791 (_jm_DECL_HEADERS): Add utmpx.h.
60792 From John David Anglin.
60794 * m4/strftime.m4: Back out the 2000-04-02 change.
60795 Instead of that change, simply undefine putenv in the test program.
60797 2000-04-05 Jim Meyering <meyering@lucent.com>
60799 Portability tweaks required for ultrix4.3.
60800 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
60802 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
60803 * lib/canon-host.c: Declare strdup.
60804 * lib/path-concat.c: Likewise.
60805 From John David Anglin.
60807 2000-04-04 Jim Meyering <meyering@lucent.com>
60809 Be more DOS 8.3-friendly.
60810 * lib/ref-add.sin: Renamed from ref-add.sed.in.
60811 * lib/ref-del.sin: Renamed from ref-del.sed.in.
60812 * lib/Makefile.am: Reflect renaming.
60813 Reported by Eli Zaretskii.
60815 Use a temporary file name that won't clash with `charset.alias'
60816 in the DOS 8.3 name space.
60817 * lib/Makefile.am (charset_tmp): Define.
60818 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
60819 (uninstall-local): Likewise.
60820 Reported by Eli Zaretskii.
60822 2000-04-03 Jim Meyering <meyering@lucent.com>
60824 * m4/gettext.m4: Fix typo in comment.
60826 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
60827 textutils/configure.in). Suggestion from Paul Eggert.
60828 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
60830 2000-04-02 Paul Eggert <eggert@twinsun.com>
60832 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
60833 variable in the shell rather than using putenv, which isn't
60834 portable. This avoids the configure-time inter-test dependency
60835 on the potentially-renamed putenv function.
60837 2000-03-30 Paul Eggert <eggert@twinsun.com>
60839 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
60840 before checking struct stat.st_blksize, so that
60841 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
60843 2000-03-29 Paul Eggert <eggert@twinsun.com>
60845 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
60846 since strftime.c uses HAVE_STRFTIME to decide whether to use
60847 the underlying strftime.
60849 2000-03-29 Paul Eggert <eggert@twinsun.com>
60851 * lib/time/strftime.c (my_strftime): Make sure we call the system
60852 strftime, not ourselves, when invoking the underlying strftime.
60854 2000-03-24 Jim Meyering <meyering@lucent.com>
60856 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
60857 (charset_alias): Define.
60858 (install-exec-local): Factor out common code.
60859 (uninstall-local): Split lines longer than 80.
60860 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
60861 (SUFFIXES): Define.
60862 (.sed.in.sed): New rule. Don't redirect directly to $@.
60863 (CLEANFILES): Add ref-add.sed and ref-del.sed.
60865 2000-03-19 Bruno Haible <haible@clisp.cons.org>
60867 * lib/config.charset: Output a line containing "Packages using this
60869 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
60870 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
60871 ref-del.sed): New rules.
60873 2000-03-17 Jim Meyering <meyering@lucent.com>
60875 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
60876 Otherwise, include <strings.h>
60878 2000-03-17 Bruno Haible <haible@clisp.cons.org>
60880 * lib/unicodeio.c (utf8_wctomb): New function.
60881 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
60882 format instead of in UCS-4 with platform dependent endianness.
60884 2000-03-10 Jim Meyering <meyering@lucent.com>
60886 * m4/lib-check.m4: Look for getspnam in -lgen, too.
60887 From Marco Franzen.
60889 2000-03-07 Paul Eggert <eggert@twinsun.com>
60891 * lib/savedir.c (savedir): Work even if directory size is
60892 negative; this can happen with some screwy NFS configurations.
60894 2000-03-06 Jim Meyering <meyering@lucent.com>
60896 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
60897 if it's NULL (because we ran out of memory). From Bruno Haible.
60899 2000-03-05 Jim Meyering <meyering@lucent.com>
60901 * lib/localcharset.c ("path-concat.h"): Include.
60902 (get_charset_aliases): Use path_concat instead of ANSI string
60905 * lib/unicodeio.h (PARAMS): Define.
60906 Use it to guard prototype.
60908 2000-03-04 Jim Meyering <meyering@lucent.com>
60910 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
60911 for lib/localcharset.c.
60913 2000-03-04 Jim Meyering <meyering@lucent.com>
60915 * lib/Makefile.am (install-exec-local): Create $(libdir) before
60916 installing into it.
60917 (uninstall-local): Uncomment this rule so `make distcheck' works
60920 * lib/unicodeio.c (<errno.h>): Include it.
60921 (errno): Declare if not defined.
60923 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
60925 * lib/config.charset: New version, incorporating remarks from a linux
60926 i18n mailing list. From Bruno Haible.
60928 2000-03-04 Bruno Haible <haible@clisp.cons.org>
60930 * m4/codeset.m4: New file.
60931 * m4/iconv.m4: New file.
60932 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
60934 2000-03-03 Jim Meyering <meyering@lucent.com>
60936 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
60938 2000-03-02 Jim Meyering <meyering@lucent.com>
60940 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
60941 the messages come out on separate lines.
60943 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
60944 rather than jm_CHECK_DECLARATIONS.
60945 * m4/decl.m4: Remove now-unused file.
60947 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
60950 2000-03-02 Jim Meyering <meyering@lucent.com>
60952 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
60954 2000-03-01 Jim Meyering <meyering@lucent.com>
60956 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
60957 * lib/unicodeio.c: Likewise.
60959 2000-03-01 Bruno Haible <haible@clisp.cons.org>
60961 * lib/config.charset: New file.
60962 * lib/localcharset.c: New file.
60963 * lib/unicodeio.h, lib/unicodeio.c: New files.
60964 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
60965 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
60966 (noinst_HEADERS): Add unicodeio.h.
60967 (all-local, install-exec-local, charset.alias): New targets.
60969 2000-02-28 Paul Eggert <eggert@twinsun.com>
60971 * lib/quotearg.c (ALERT_CHAR): New macro.
60972 (quotearg_buffer_restyled): Use it.
60974 2000-02-27 Jim Meyering <meyering@lucent.com>
60976 * m4/check-decl.m4: Add getenv to the list.
60978 2000-02-27 Jim Meyering <meyering@lucent.com>
60980 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
60981 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
60983 * lib/backupfile.c: Guard inclusion of stdlib.h with
60984 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
60985 Declare malloc if needed.
60987 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
60988 `#ifndef HAVE_DECL..'
60989 now that autoconf always defines the HAVE_DECL_ symbols.
60990 * lib/human.c: Likewise.
60991 * lib/same.c: Likewise.
60992 * lib/strtoumax.c: Likewise.
60994 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
60995 declaration check was not run.
60996 * lib/hash.c: Likewise.
60997 * lib/human.c: Likewise.
60998 * lib/same.c: Likewise.
60999 * lib/strtoumax.c: Likewise.
61001 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
61002 `.', then first look up the entire `.'-containing string as a login
61005 2000-02-23 Jim Meyering <meyering@lucent.com>
61007 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
61008 in place of my hack.
61010 2000-02-18 Paul Eggert <eggert@twinsun.com>
61012 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
61013 (textint): New typedef.
61014 (parser_control): Member year changed from int to textint.
61016 (YYSTYPE): Removed; replaced by %union with int and textint members.
61017 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
61018 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
61019 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
61020 (tSNUMBER, tUNUMBER): Now of type <textintval>.
61021 (date, number, to_year): Use width of number in digits, not its value,
61022 to determine whether it's a 2-digit year, or a 2-digit time.
61023 (yylex): Store number of digits of numeric tokens.
61024 Reported by John Kendall.
61026 (parser_control): Changed from struct parser_control to typedef (for
61027 consistency). All uses changed.
61029 (tID): Removed; not used.
61030 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
61032 2000-02-14 Paul Eggert <eggert@twinsun.com>
61034 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
61035 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
61037 2000-02-12 Jim Meyering <meyering@lucent.com>
61039 * lib/userspec.c (ISDIGIT): Define it.
61040 (isdigit): Remove definition.
61041 (is_number): Use ISDIGIT, not isdigit.
61042 <libintl.h>: Include.
61043 (_ and N_): Define.
61044 (parse_user_spec): Mark translatable strings.
61046 2000-02-10 Jim Meyering <meyering@lucent.com>
61048 With these changes, nanosleep.[ch] are finally enough like the other
61049 lib/* replacement files to compile on a few more losing systems.
61051 * lib/nanosleep.h: Don't include config.h.
61052 Remove prototype from declaration of nanosleep.
61053 (PARAMS): Remove now-unneeded definition.
61054 * lib/nanosleep.c: #undef nanosleep.
61055 (rpl_nanosleep): Rename from nanosleep.
61057 2000-02-10 Jim Meyering <meyering@lucent.com>
61059 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
61060 gnu_nanosleep to rpl_nanosleep.
61062 2000-02-09 Jim Meyering <meyering@lucent.com>
61064 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
61065 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
61067 2000-02-08 Akim Demaille <akim@epita.fr>
61069 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
61070 `[' and `]' and remove uses of `changequote'.
61071 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
61072 (AC_SYS_LARGEFILE): Likewise.
61073 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
61074 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
61076 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
61077 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
61078 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
61079 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
61081 2000-02-05 Jim Meyering <meyering@lucent.com>
61083 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
61084 Remove explicit use of AC_HEADER_TIME. It is required by
61085 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
61086 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
61087 in autoconf whereby the expansion of the latter ended up preceding
61088 the expansion of its prerequisite, AC_HEADER_TIME.
61089 Reported by Volker Borchert.
61091 2000-02-03 Jim Meyering <meyering@lucent.com>
61093 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
61095 2000-02-03 Jim Meyering <meyering@lucent.com>
61097 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
61098 rather than with `#if HAVE_UTMPNAME'.
61100 2000-02-02 Jim Meyering <meyering@lucent.com>
61102 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
61103 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
61104 Reported by Eli Zaretskii.
61106 2000-02-01 Jim Meyering <meyering@lucent.com>
61108 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
61110 2000-01-31 Jim Meyering <meyering@lucent.com>
61112 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
61113 functions. Add the time.h and sys/time.h headers along with the
61114 AC_REQUIRE'ment of AC_HEADER_TIME.
61116 2000-01-31 Jim Meyering <meyering@lucent.com>
61118 * lib/nanosleep.h (nanosleep): Guard declaration with
61119 `#if ! HAVE_DECL_NANOSLEEP'.
61120 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
61121 the declaration in that vendor's sys/timers.h.
61122 Reported by Christian Krackowizer.
61124 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
61125 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
61126 (ISPRINT): Likewise.
61127 Reported by Tom Tromey.
61129 2000-01-30 Jim Meyering <meyering@lucent.com>
61131 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
61133 * m4/prereq.m4 (utmp_includes): Define.
61134 Check for ut_user and ut_name members in both struct utmpx
61137 2000-01-30 Jim Meyering <meyering@lucent.com>
61139 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
61140 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
61141 header files where only utmpx.ut_user is declared.
61143 * lib/readutmp.h (UT_USER): Define.
61145 2000-01-29 Jim Meyering <meyering@lucent.com>
61147 * m4/lib-check.m4: New file containing library-related checks from
61148 fileutils and sh-utils (textutils had none).
61150 2000-01-28 Jim Meyering <meyering@lucent.com>
61152 * m4/perl.m4: Change format of warning message to look more like that
61153 from the missing script. Suggestion from François Pinard.
61155 2000-01-25 Jim Meyering <meyering@lucent.com>
61157 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
61158 well as time.h in the compile check.
61159 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
61160 Fix typo in cross-compiling case: s/yes/no/.
61162 2000-01-23 Jim Meyering <meyering@lucent.com>
61164 * m4/jm-macros.m4: Move df-related tests here from
61165 fileutils/configure.in
61167 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
61168 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
61170 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
61171 s/space/ac_fsusage_space/.
61172 (jm_FILE_SYSTEM_USAGE): Take two parameters.
61174 * m4/ftruncate.m4: New file (derived from part of
61175 fileutils/configure.in).
61176 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
61177 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
61179 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
61180 AC_SUBST these here, rather than just in sh-util/configure.in, so
61181 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
61183 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
61184 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
61185 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
61186 (AC_SUBST(POW_LIBM)): Likewise.
61187 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
61189 2000-01-23 Jim Meyering <meyering@lucent.com>
61191 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
61194 2000-01-22 Jim Meyering <meyering@lucent.com>
61196 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
61198 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
61200 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
61202 (AC_CHECK_HEADERS): Likewise for sh-utils.
61203 (AC_CHECK_HEADERS): Likewise for textutils.
61204 Merge the three lists of headers.
61206 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
61207 from fileutils' configure.in.
61209 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
61210 code. Moved tests into their own function (_jm_DECL_HEADERS) in
61213 * m4/check-decl.m4: Use #if rather than #ifdef.
61214 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
61215 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
61216 (_jm_DECL_HEADERS): Define new function.
61217 (jm_CHECK_DECLARATIONS): Require it.
61219 2000-01-22 Jim Meyering <meyering@lucent.com>
61221 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
61222 [! HAVE_DECL_STRTOULL]: Declare strtoull.
61223 Required for some AIX systems. Reported by Christian Krackowizer.
61224 [TESTING] (main): New function.
61226 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
61227 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
61230 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
61233 * lib/strverscmp.c (ISDIGIT): Define.
61234 (strverscmp): Use ISDIGIT, not isdigit.
61236 2000-01-19 Jim Meyering <meyering@lucent.com>
61238 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
61239 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
61240 defines `struct timespec' in <sys/time.h>
61242 * m4/c-bs-a.m4: Remove uses of changequote altogether.
61243 Thanks to Akim for explaining.
61245 2000-01-17 Paul Eggert <eggert@twinsun.com>
61247 * lib/nanosleep.c (nanosleep):
61248 Don't use SA_INTERRUPT to decide whether to call sigaction, as
61249 POSIX.1 doesn't require SA_INTERRUPT and some systems
61250 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
61251 it's been part of POSIX.1 since day 1 (in 1988).
61253 2000-01-17 Jim Meyering <meyering@lucent.com>
61255 * lib/interlock: Remove unused file. Reported by François Pinard.
61257 2000-01-16 Paul Eggert <eggert@twinsun.com>
61259 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
61260 alert, backslash, formfeed, and vertical tab unnecessarily in
61261 shell quoting style.
61263 2000-01-16 Jim Meyering <meyering@lucent.com>
61265 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
61266 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
61267 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
61268 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
61270 2000-01-16 Jim Meyering <meyering@lucent.com>
61272 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
61273 because the latter didn't work.
61275 2000-01-15 Jim Meyering <meyering@lucent.com>
61277 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
61278 (AC_REPLACE_FUNCS): Add memcpy and memset.
61279 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
61281 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
61283 2000-01-12 Jim Meyering <meyering@lucent.com>
61285 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
61286 (jm_PREREQ): Use it.
61287 (jm_PREREQ_READUTMP): New macro.
61288 (jm_PREREQ): Use it.
61290 2000-01-11 Paul Eggert <eggert@twinsun.com>
61292 Quote multibyte characters correctly.
61293 * m4/c-bs-a.m4: New file.
61294 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
61295 (jm_PREREQ): Use it.
61297 2000-01-11 Paul Eggert <eggert@twinsun.com>
61299 * m4/uintmax_t.m4: Port to autoconf 2.13.
61301 2000-01-08 Jim Meyering <meyering@ascend.com>
61303 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
61304 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
61306 2000-01-04 Jim Meyering <meyering@ascend.com>
61308 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
61309 jm_STRUCT_DIRENT_D_TYPE.
61310 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
61311 jm_STRUCT_DIRENT_D_INO.
61312 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
61314 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
61316 * m4/utime.m4: Likewise.
61318 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
61319 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
61321 2000-01-03 Paul Eggert <eggert@twinsun.com>
61323 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
61324 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
61326 2000-01-02 Jim Meyering <meyering@ascend.com>
61328 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
61329 remember if this is necessary.
61331 1999-12-26 Jim Meyering <meyering@ascend.com>
61333 * m4/jm-macros.m4: Use it here.
61334 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
61336 1999-12-23 Jim Meyering <meyering@ascend.com>
61338 * m4/jm-macros.m4: Check for clock_gettime (moved from
61339 fileutils/configure.in)
61340 Check for gettimeofday.
61342 1999-12-20 Jim Meyering <meyering@ascend.com>
61344 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
61345 autoconf-2.14a-1999-12-20.
61347 1999-12-19 Jim Meyering <meyering@ascend.com>
61349 * m4/lstat-slash.m4: New file.
61350 * m4/jm-macros.m4: Use the new macro:
61351 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61353 1999-12-07 Jim Meyering <meyering@ascend.com>
61355 * m4/perl.m4: Require that File::Compare be available, too.
61356 Too many systems seem to lack it.
61358 * m4/strftime.m4: Add checks for most of the cpp macros tested in
61359 GNU's strftime.c. Prompted by a patch from Paul Eggert.
61361 1999-11-18 Paul Eggert <eggert@twinsun.com>
61363 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
61364 problem with the QNX 4.25 shell, which doesn't propagate exit
61365 status of failed commands inside shell assignments.
61367 1999-11-17 Jim Meyering <meyering@ascend.com>
61369 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
61371 1999-11-07 Jim Meyering <meyering@ascend.com>
61373 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
61375 1999-11-06 Jim Meyering <meyering@ascend.com>
61377 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
61378 * m4/jm-macros.m4 (jm_MACROS): Use it here.
61380 1999-11-05 Jim Meyering <meyering@ascend.com>
61382 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
61383 configure.in of textutils, fileutils, and sh-utils into this one
61384 (shared between those packages) file.
61385 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
61386 AC_STRUCT_ST_BLKSIZE.
61388 1999-11-03 Jim Meyering <meyering@ascend.com>
61390 * m4/ssize_t.m4: Remove file. No longer needed since the new version
61391 of AC_CHECK_TYPE checks includes unistd.h.
61392 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
61393 Suggestion from Akim Demaille.
61395 1999-10-30 Jim Meyering <meyering@ascend.com>
61397 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
61399 * m4/ls-mntd-fs.m4: Likewise.
61400 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
61401 * m4/jm-winsz1.m4: Likewise.
61403 * m4/const.m4: Remove file, since the fix made it into the experimental
61404 version of autoconf.
61405 * m4/mktime.m4: Likewise.
61407 * m4/check-type.m4: Remove file, now that the latest version of
61408 AC_CHECK_TYPE takes a third arg to specify additional #includes.
61410 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
61411 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
61414 1999-10-04 Jim Meyering <meyering@ascend.com>
61416 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
61418 1999-09-22 Paul Eggert <eggert@twinsun.com>
61420 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
61421 2.95.1 bug with HP-UX 10.20.
61423 1999-09-17 Jim Meyering <meyering@ascend.com>
61425 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
61426 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
61427 due to missing strdup (against sh-utils-2.0).
61429 1999-08-29 Jim Meyering <meyering@ascend.com>
61431 * m4/jm-macros.m4: Require jm_BISON.
61432 * m4/bison.m4: New file.
61434 1999-08-17 Paul Eggert <eggert@twinsun.com>
61436 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
61437 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
61439 1999-08-05 Jim Meyering <meyering@ascend.com>
61441 * m4/getline.m4: Rename test file from conftestdata to conftest.data
61442 to avoid conflicts with `conftest' on 8+3 filesystems.
61443 Suggestion from Eli Zaretskii.
61445 1999-08-04 Jim Meyering <meyering@ascend.com>
61447 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
61448 fileutils and sh-utils (textutils's getline test was inadequate).
61449 (AM_FUNC_GETLINE): Run this test.
61450 (AC_CHECK_FUNCS): Check for getdelim.
61451 Reported by Bob Proulx.
61453 1999-08-02 Jim Meyering <meyering@ascend.com>
61455 * m4/jm-macros.m4: Add a comment.
61457 1999-08-01 Paul Eggert <eggert@twinsun.com>
61459 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
61460 <inttypes.h> defines strtoumax as a macro (and not as a
61463 1999-08-01 Paul Eggert <eggert@twinsun.com>
61465 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
61466 that we can shift, multiply and divide unsigned long long
61467 values; Ultrix cc can't do it.
61469 1999-08-01 Paul Eggert <eggert@twinsun.com>
61471 * m4/mktime.m4: New file, which is a preview of what should appear
61472 in the next public autoconf release.
61474 1999-08-01 Paul Eggert <eggert@twinsun.com>
61476 * m4/lfs.m4: Remove this file.
61477 * m4/largefile.m4: New file. It contains the old contents of
61478 lfs.m4, except that all names with prefix AC_LFS have been
61479 changed to use the prefix AC_SYS_LARGEFILE instead, to be
61480 compatible with future autoconf versions. Also, some minor m4
61481 quoting problems have been fixed.
61483 1999-08-01 Paul Eggert <eggert@twinsun.com>
61485 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
61486 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
61487 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
61488 and simplify the shell code.
61490 1999-08-01 Jim Meyering <meyering@ascend.com>
61492 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
61495 1999-07-20 Jim Meyering <meyering@ascend.com>
61497 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
61499 1999-07-15 Jim Meyering <meyering@ascend.com>
61501 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
61503 1999-05-22 Jim Meyering <meyering@ascend.com>
61505 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
61507 1999-05-20 Jim Meyering <meyering@ascend.com>
61509 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
61510 Add a colon after each `then' in case $4 is empty.
61512 1999-05-16 Jim Meyering <meyering@ascend.com>
61514 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
61516 1999-05-10 Jim Meyering <meyering@ascend.com>
61518 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
61520 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
61523 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
61525 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
61527 1999-05-04 Paul Eggert <eggert@twinsun.com>
61529 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
61530 not CPPFLAGS, so that linking works correctly in IRIX.
61532 1999-04-30 Paul Eggert <eggert@twinsun.com>
61534 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
61536 1999-04-20 Paul Eggert <eggert@twinsun.com>
61538 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
61539 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
61540 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
61541 jm_AC_TYPE_UNSIGNED_LONG_LONG.
61542 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
61544 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
61546 1999-04-20 Jim Meyering <meyering@ascend.com>
61548 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
61549 AC_REPLACE xstroull if necessary. From Paul Eggert.
61550 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
61552 1999-04-18 Jim Meyering <meyering@ascend.com>
61554 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
61555 * m4/jm-macros.m4: Use it.
61557 1999-04-06 Jim Meyering <meyering@ascend.com>
61559 * m4/strftime.m4: Remove test for %f.
61561 1999-03-29 Jim Meyering <meyering@ascend.com>
61563 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
61564 superset of the AC_TYPE_* checks in the textutils, fileutils,
61565 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
61568 1999-03-28 Jim Meyering <meyering@ascend.com>
61570 * m4/jm-macros.m4: Define GNU_PACKAGE here.
61571 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
61572 replaced e.g., in the *.sh files of the sh-utils.
61574 1999-03-20 Jim Meyering <meyering@ascend.com>
61576 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
61577 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
61578 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
61580 1999-03-19 Jim Meyering <meyering@ascend.com>
61582 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
61584 1999-03-12 Jim Meyering <meyering@ascend.com>
61586 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
61588 1999-03-07 Jim Meyering <meyering@ascend.com>
61590 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
61593 1999-02-17 Jim Meyering <meyering@ascend.com>
61595 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
61596 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
61598 1999-02-07 Jim Meyering <meyering@ascend.com>
61600 * m4/group-member.m4: New file -- extracted from sh-utils'
61603 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
61604 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
61606 1999-02-06 Jim Meyering <meyering@ascend.com>
61608 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
61609 * m4/fnmatch.m4: Likewise.
61610 * m4/getgroups.m4: Likewise.
61611 * m4/lstat.m4: Likewise.
61612 * m4/malloc.m4: Likewise.
61613 * m4/putenv.m4: Likewise.
61614 * m4/realloc.m4: Likewise.
61615 * m4/regex.m4: Likewise.
61616 * m4/stat.m4: Likewise.
61617 * m4/strftime.m4: Likewise.
61618 Suggestion from Alain Magloire.
61620 * m4/chown.m4: Use `.$ac_objext', not `.o'.
61621 * m4/fnmatch.m4: Likewise.
61622 * m4/getgroups.m4: Likewise.
61623 * m4/getline.m4: Likewise.
61624 * m4/lstat.m4: Likewise.
61625 * m4/malloc.m4: Likewise.
61626 * m4/memcmp.m4: Likewise.
61627 * m4/putenv.m4: Likewise.
61628 * m4/realloc.m4: Likewise.
61629 * m4/regex.m4: Likewise.
61630 * m4/stat.m4: Likewise.
61631 * m4/strftime.m4: Likewise.
61632 Suggestion from Alain Magloire.
61634 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
61637 * m4/regex.m4: Add a run-time Test for proper operation of
61638 re_compile_pattern.
61640 1999-01-31 Jim Meyering <meyering@ascend.com>
61642 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
61644 1999-01-30 Jim Meyering <meyering@ascend.com>
61646 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
61648 * m4/jm-mktime.m4: Make this a wrapper around the official
61649 AM_FUNC_MKTIME rather than my private copy, now that the official one
61651 * m4/mktime.m4: Remove file.
61653 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
61654 * m4/uptime.m4: Likewise.
61655 * m4/uintmax_t.m4: Likewise.
61657 1999-01-28 Jim Meyering <meyering@ascend.com>
61659 * m4/jm-macros.m4: Use jm_AFS.
61660 * m4/afs.m4: New file (from fileutils' configure.in).
61662 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
61663 * m4/chown.m4: Likewise.
61664 * m4/d-ino.m4: Likewise.
61665 * m4/d-type.m4: Likewise.
61666 * m4/fnmatch.m4: Likewise.
61667 * m4/getgroups.m4: Likewise.
61668 * m4/gettext.m4: Likewise.
61669 * m4/jm-mktime.m4: Likewise.
61670 * m4/jm-winsz2.m4: Likewise.
61671 * m4/lcmessage.m4: Likewise.
61672 * m4/ls-mntd-fs.m4: Likewise.
61673 * m4/malloc.m4: Likewise.
61674 * m4/memcmp.m4: Likewise.
61675 * m4/putenv.m4: Likewise.
61676 * m4/realloc.m4: Likewise.
61677 * m4/st_mtim.m4: Likewise.
61678 * m4/strftime.m4: Likewise.
61680 1999-01-16 Jim Meyering <meyering@ascend.com>
61682 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
61683 (ARGMATCH_DIE_DECL): Define.
61685 1999-01-12 Jim Meyering <meyering@ascend.com>
61687 * m4/Makefile.am.in: Rewrite to avoid using fmt.
61688 Reported by Lars Hecking.
61690 1999-01-10 Jim Meyering <meyering@ascend.com>
61692 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
61694 * m4/inttypes_h.m4: Likewise.
61695 * m4/lstat.m4: Likewise.
61696 * m4/malloc.m4: Likewise.
61697 * m4/readdir.m4: Likewise.
61698 * m4/realloc.m4: Likewise.
61699 * m4/st_dm_mode.m4: Likewise.
61700 * m4/stat.m4: Likewise.
61701 * m4/utimbuf.m4: Likewise.
61702 * m4/utimes.m4: Likewise.
61704 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
61705 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
61706 comments in config.h.in are meaningful.
61708 * m4/jm-macros.m4: Require autoconf-2.13 here.
61710 * m4/regex.m4: By default, don't use the included regex.c on systems
61711 with glibc 2. Suggestion from Uli Drepper.
61713 1999-01-02 Jim Meyering <meyering@ascend.com>
61715 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
61717 1998-12-18 Jim Meyering <meyering@ascend.com>
61719 * m4/Makefile.am.in (Makefile.am): Simplify rule.
61720 Based on a suggestion from Lars Hecking.
61722 1998-11-16 Paul Eggert <eggert@twinsun.com>
61724 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
61726 1998-11-16 Jim Meyering <meyering@ascend.com>
61728 * m4/lfs.m4: Double-quote the `uname...` expression.
61730 1998-11-14 Jim Meyering <meyering@ascend.com>
61732 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
61733 * m4/stat.m4: Likewise.
61735 1998-11-03 Jim Meyering <meyering@ascend.com>
61737 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
61738 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
61740 1998-10-18 Jim Meyering <meyering@ascend.com>
61742 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
61744 1998-10-17 Jim Meyering <meyering@ascend.com>
61746 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
61747 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
61748 calls for those previously hard-coded headers. Instead, take a new
61750 (jm_CHECK_DECLARATIONS): Reflect interface change.
61751 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
61752 (jm_CHECK_DECL_LOCALTIME_R): New macro.
61754 * m4/mktime.m4: Test for spring-forward gap before long-running test.
61756 1998-10-14 Jim Meyering <meyering@ascend.com>
61758 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
61759 instead of "TZ=America/Vancouver". From Paul Eggert.
61761 1998-10-11 Jim Meyering <meyering@ascend.com>
61763 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
61764 This adds a test for a recently added compatibility fix for mktime.c.
61765 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
61767 1998-09-27 Jim Meyering <meyering@ascend.com>
61769 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
61771 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
61772 ../configure.in, including a change from Gordon Matzigkeit to allow
61773 cross-compiling for the Hurd.
61775 * m4/glibc.m4: New file/macro to test for the GNU C Library
61776 versions 1 and 2. From Gordon Matzigkeit.
61779 1998-09-21 Jim Meyering <meyering@ascend.com>
61781 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
61783 1998-08-18 Paul Eggert <eggert@twinsun.com>
61785 Port nanosecond-resolution times to UnixWare 2.1.2 and
61786 pedantic Solaris 2.6.
61788 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
61790 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
61791 Generate name of ns member, instead of just 1 or undef.
61792 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
61794 1998-08-15 Jim Meyering <meyering@ascend.com>
61796 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
61797 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
61798 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
61799 instead of jm_TYPE_SSIZE_T.
61801 1998-08-12 Jim Meyering <meyering@ascend.com>
61803 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
61805 1998-08-02 Jim Meyering <meyering@ascend.com>
61807 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
61808 in acconfig.h manually.
61810 1998-07-31 Paul Eggert <eggert@twinsun.com>
61812 * m4/st_mtim.m4: New file.
61814 1998-07-28 Jim Meyering <meyering@ascend.com>
61816 * m4/utimes.m4: Undef stat.
61818 1998-07-25 Jim Meyering <meyering@ascend.com>
61820 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
61821 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
61823 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
61825 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
61826 uid and gid actually remain unchanged.
61828 1998-07-07 Jim Meyering <meyering@ascend.com>
61830 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
61832 1998-07-04 Jim Meyering <meyering@ascend.com>
61834 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
61835 to prove that this macro can be used in packages without regex.c.
61837 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
61839 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
61842 1998-07-03 Jim Meyering <meyering@ascend.com>
61844 * m4/gettext.m4: Add -lintl if it's found to be necessary.
61846 * m4/gettext.m4: New file -- from gettext-0.10.35.
61847 * m4/lcmessage.m4: Likewise.
61848 * m4/progtest.m4: Likewise.
61850 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
61851 * m4/jm-macros.m4: Require the new macro.
61853 1998-06-29 Jim Meyering <meyering@ascend.com>
61855 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
61856 for the definition of NGROUPS (used in a system header included
61859 1998-06-28 Jim Meyering <meyering@ascend.com>
61861 * m4/ls-mntd-fs.m4: New file.
61862 * m4/fstypename.m4: New file.
61864 * m4/jm-macros.m4: Require the new macro.
61865 * m4/jm-glibc-io.m4: New file.
61867 1998-05-19 Jim Meyering <meyering@ascend.com>
61869 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
61870 * m4/lchown.m4: New file.
61872 * m4/Makefile.am.in: New file.
61873 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
61875 1998-05-14 Jim Meyering <meyering@ascend.com>
61877 * m4/Makefile.am (EXTRA_DIST): Add them.
61878 * m4/jm-macros.m4: New file.
61879 * m4/utimbuf.m4: New file.
61881 1998-05-12 Jim Meyering <meyering@ascend.com>
61883 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
61885 1998-05-11 Jim Meyering <meyering@ascend.com>
61887 * m4/isc-posix.m4: New file.
61889 1998-05-10 Jim Meyering <meyering@ascend.com>
61891 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
61893 1998-05-09 Jim Meyering <meyering@ascend.com>
61895 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
61896 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
61899 * m4/ssize_t.m4: New file.
61900 * m4/mktime.m4: Remove file -- the new automake has this now.
61902 1998-04-26 Jim Meyering <meyering@ascend.com>
61904 * m4/assert.m4: New file.
61905 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
61907 1998-04-05 Jim Meyering <meyering@ascend.com>
61909 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
61910 (jm_PREREQ): Use it here.
61912 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
61914 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
61917 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
61919 * m4/prereq.m4: New file.
61920 * m4/error.m4: New file.
61921 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
61923 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
61925 * m4/getline.m4: Don't set am_cv_func_working_getline before the
61926 cache-check for the same variable -- that defeated the purpose of
61927 the test; the test program was never run. This was a problem only
61928 on systems with losing getline functions -- HP-UX 10.20 is one.
61929 Reported by Bjorn Helgaas.
61931 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
61933 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
61935 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
61937 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
61939 * m4/const.m4: New file. Use an initializer in this declaration
61940 typedef int charset[2]; const charset x;
61941 Reported by Bob Glickstein.
61943 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
61945 * m4/chown.m4: Fix reversed types on -1 args to chown.
61948 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
61950 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
61951 Add lseek and memchr.
61953 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
61954 T.E.Dickey <dickey@clark.net> said that some older preprocessors
61955 have a 20-character limit on names.
61957 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
61959 * m4/inttypes_h.m4: New file.
61960 * m4/uintmax_t.m4: New file.
61961 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
61970 Copyright (C) 1997-2010 Free Software Foundation, Inc.
61972 Copying and distribution of this file, with or without
61973 modification, are permitted provided the copyright notice
61974 and this notice are preserved.