1 2007-03-25 Bruno Haible <bruno@clisp.org>
3 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
4 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
5 exists but doesn't work.
6 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
7 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
8 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
9 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
11 2007-03-25 Bruno Haible <bruno@clisp.org>
13 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
14 returns inf. Needed on IRIX 6.5.
16 2007-03-25 Bruno Haible <bruno@clisp.org>
18 * tests/test-frexpl.c: Include isnanl-nolibm.h.
19 (main): Use isnanl instead of x != x idiom.
20 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
22 * tests/test-frexp.c: Include isnan.h.
23 (main): Use isnan instead of x != x idiom.
24 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
26 2007-03-25 Bruno Haible <bruno@clisp.org>
28 * tests/test-frexp.c (NaN): New function/macro.
29 (main): Use it instead of 0.0 / 0.0.
30 * tests/test-isnan.c (NaN): New function/macro.
31 (main): Use it instead of 0.0 / 0.0.
32 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
33 (test_function): Use it instead of 0.0 / 0.0.
34 * tests/test-vasprintf-posix.c (NaN): New function/macro.
35 (test_function): Use it instead of 0.0 / 0.0.
36 * tests/test-snprintf-posix.h (NaN): New function/macro.
37 (test_function): Use it instead of 0.0 / 0.0.
38 * tests/test-sprintf-posix.h (NaN): New function/macro.
39 (test_function): Use it instead of 0.0 / 0.0.
40 * tests/test-fprintf-posix.h (NaN): New function/macro.
41 (test_function): Use it instead of 0.0 / 0.0.
42 * tests/test-printf-posix.h (NaN): New function/macro.
43 (test_function): Use it instead of 0.0 / 0.0.
45 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
47 2007-03-25 Bruno Haible <bruno@clisp.org>
49 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
51 2007-03-25 Bruno Haible <bruno@clisp.org>
53 * lib/regexec.c (merge_state_with_log): Make static.
55 2007-03-25 Bruno Haible <bruno@clisp.org>
57 * lib/trigl.c (kernel_rem_pio2): Make static.
59 2007-03-25 Bruno Haible <bruno@clisp.org>
61 * lib/sincosl.c (sincosl_table): Make static.
63 2007-03-25 Bruno Haible <bruno@clisp.org>
65 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66 if the compiler does not support C99.
68 2007-03-25 Bruno Haible <bruno@clisp.org>
70 * modules/time (Makefile.am): Ensure all rule action lines start with a
73 2007-03-24 Bruno Haible <bruno@clisp.org>
75 * modules/tsearch-tests: New file.
76 * tests/test-tsearch.sh: New file.
77 * tests/test-tsearch.c: New file, mostly copied from glibc.
79 * modules/search-tests: New file.
80 * tests/test-search.c: New file.
82 * modules/search: New file.
83 * lib/search_.h: New file, incorporating lib/tsearch.h.
84 * m4/search_h.m4: New file.
85 * lib/tsearch.h: Remove file.
86 * lib/tsearch.c: Include search.h instead of tsearch.h.
87 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
89 * modules/tsearch (Files): Remove lib/tsearch.h.
90 (Depends-on): Add search.
91 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
92 (Include): Change tsearch.h into search.h.
94 2007-03-24 Bruno Haible <bruno@clisp.org>
96 * modules/fpucw: New file.
97 * lib/fpucw.h: New file.
98 * lib/frexp.c: Include fpucw.h.
99 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
101 * lib/printf-frexp.c: Include fpucw.h.
102 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
104 * lib/vasnprintf.c: Include fpucw.h.
105 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
106 'long double' calculations.
107 * tests/test-frexpl.c: Include fpucw.h.
108 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
109 * tests/test-printf-frexpl.c: Include fpucw.h.
110 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
111 * modules/frexpl (Depends-on): Add fpucw.
112 * modules/printf-frexpl (Depends-on): Likewise.
113 * modules/fprintf-posix (Depends-on): Likewise.
114 * modules/snprintf-posix (Depends-on): Likewise.
115 * modules/sprintf-posix (Depends-on): Likewise.
116 * modules/vasnprintf-posix (Depends-on): Likewise.
117 * modules/vasprintf-posix (Depends-on): Likewise.
118 * modules/vfprintf-posix (Depends-on): Likewise.
119 * modules/vsnprintf-posix (Depends-on): Likewise.
120 * modules/vsprintf-posix (Depends-on): Likewise.
121 * modules/frexpl-tests (Depends-on): Likewise.
122 * modules/printf-frexpl-tests (Depends-on): Likewise.
124 2007-03-24 Bruno Haible <bruno@clisp.org>
126 * lib/float+.h: New file.
127 * lib/isnan.c: Include float+.h.
129 (FUNC): Compare only SIZE bytes of the value.
130 * lib/vasnprintf.c: Include float+.h.
131 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
132 SIZEOF_LDBL or SIZEOF_DBL bytes.
133 * modules/isnan-nolibm (Files): Add lib/float+.h.
134 * modules/isnanl-nolibm (Files): Add lib/float+.h.
135 * modules/isnanl (Files): Add lib/float+.h.
136 * modules/vasnprintf (Files): Add lib/float+.h.
138 2007-03-24 Bruno Haible <bruno@clisp.org>
140 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
141 include isnanl-nolibm.h.
143 2007-03-24 Bruno Haible <bruno@clisp.org>
145 * tests/test-read-file.c (main): Don't produce spurious output for
146 expected situations. Make the test fail if it encountered unexpected
149 2007-03-24 Bruno Haible <bruno@clisp.org>
151 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
152 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
154 2007-03-24 Bruno Haible <bruno@clisp.org>
156 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
158 2007-03-24 Bruno Haible <bruno@clisp.org>
160 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
161 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
163 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
164 * modules/utf8-ucs4: Turn into a symbolic link to module
167 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
169 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
170 unistr/u8-mbtouc-unsafe.
172 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
173 * modules/utf16-ucs4: Turn into a symbolic link to module
176 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
178 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
179 unistr/u16-mbtouc-unsafe.
181 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
182 * modules/ucs4-utf8: Turn into a symbolic link to module
185 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
186 * modules/ucs4-utf16: Turn into a symbolic link to module
189 2007-03-24 Bruno Haible <bruno@clisp.org>
191 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
192 Enable the function only if HAVE_INLINE.
193 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
194 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
195 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
196 Enable the function only if HAVE_INLINE.
197 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
198 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
199 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
200 Enable the function only if HAVE_INLINE.
201 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
202 Enable the function only if HAVE_INLINE.
203 * modules/utf8-ucs4: Update.
204 * modules/utf8-ucs4-unsafe: Update.
205 * modules/utf16-ucs4: Update.
206 * modules/utf16-ucs4-unsafe: Update.
207 * modules/ucs4-utf8: Update.
208 * modules/ucs4-utf16: Update.
210 2007-03-24 Bruno Haible <bruno@clisp.org>
212 * lib/utf8-ucs4.h: Remove file.
213 * lib/utf8-ucs4-unsafe.h: Remove file.
214 * lib/utf16-ucs4.h: Remove file.
215 * lib/utf16-ucs4-unsafe.h: Remove file.
216 * lib/ucs4-utf8.h: Remove file.
217 * lib/ucs4-utf16.h: Remove file.
218 * lib/unistr.h: Include their previous contents.
219 * m4/utf-ucs4.m4: Remove file.
220 * m4/ucs4-utf.m4: Remove file.
221 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
222 (Depends-on): Add unistr/base.
223 (configure.ac): Remove gl_UTF_UCS4.
224 (Makefile.am): Update.
225 (Include): Change to unistr.h.
226 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
227 (Depends-on): Add unistr/base.
228 (configure.ac): Remove gl_UTF_UCS4.
229 (Makefile.am): Update.
230 (Include): Change to unistr.h.
231 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
232 (Depends-on): Add unistr/base.
233 (configure.ac): Remove gl_UTF_UCS4.
234 (Makefile.am): Update.
235 (Include): Change to unistr.h.
236 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
237 (Depends-on): Add unistr/base.
238 (configure.ac): Remove gl_UTF_UCS4.
239 (Makefile.am): Update.
240 (Include): Change to unistr.h.
241 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
242 (Depends-on): Add unistr/base.
243 (configure.ac): Remove gl_UCS4_UTF.
244 (Makefile.am): Update.
245 (Include): Change to unistr.h.
246 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
247 (Depends-on): Add unistr/base.
248 (configure.ac): Remove gl_UCS4_UTF.
249 (Makefile.am): Update.
250 (Include): Change to unistr.h.
251 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
252 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
254 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
255 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
257 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
258 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
259 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
260 * lib/unistr/u8-strchr.c: Likewise.
261 * lib/unistr/u8-strrchr.c: Likewise.
262 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
263 * lib/unistr/u16-strchr.c: Likewise.
264 * lib/unistr/u16-strrchr.c: Likewise.
265 * lib/striconveh.c: Update.
267 2007-03-24 Bruno Haible <bruno@clisp.org>
269 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
270 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
272 2007-03-22 Bruno Haible <bruno@clisp.org>
274 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
276 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
278 * MODULES.html.sh (File system functions): New module write-any-file.
279 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
280 * m4/write-any-file.m4: New files.
282 2007-03-23 Eric Blake <ebb9@byu.net>
284 * gnulib-tool: Rearrange space-tab sequences, since some editors
287 2007-03-23 Eric Blake <ebb9@byu.net>
289 * lib/version-etc.c (version_etc_va): Update license wording to
290 be more concise. Recommended by Richard Stallman.
292 2007-03-22 Bruno Haible <bruno@clisp.org>
294 * lib/poll.c (MSG_PEEK): New fallback definition.
296 2007-03-22 Bruno Haible <bruno@clisp.org>
298 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
299 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
301 Fixes a compilation error on BeOS.
303 2007-03-22 Bruno Haible <bruno@clisp.org>
305 * modules/frexpl-tests: New file.
306 * tests/test-frexpl.c: New file.
308 * modules/frexpl: New file.
309 * m4/frexpl.m4: New file.
310 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
311 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
312 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
313 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
314 (Depends-on): Add frexpl. Remove isnanl-nolibm.
315 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
317 2007-03-22 Bruno Haible <bruno@clisp.org>
319 * lib/frexpl.c: Share code with lib/frexp.c.
320 * modules/mathl (Files): Add lib/frexp.c.
321 (Depends-on): Add isnanl-nolibm.
323 2007-03-22 Bruno Haible <bruno@clisp.org>
325 * modules/printf-frexp (Files): Add m4/frexp.m4.
326 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
327 only if the found frexp function actually works.
329 2007-03-22 Bruno Haible <bruno@clisp.org>
331 * lib/frexp.c: Remove older implementation that uses divisions.
333 2007-03-21 Bruno Haible <bruno@clisp.org>
335 * modules/frexp-tests: New file.
336 * tests/test-frexp.c: New file.
338 * modules/frexp: New file.
339 * lib/frexp.c: New file.
340 * m4/frexp.m4: New file.
341 * lib/math_.h (frexp): New declaration.
342 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
344 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
346 2007-03-21 Bruno Haible <bruno@clisp.org>
348 * modules/isnanl-tests: New file.
349 * tests/test-isnanl.c: New file.
351 * modules/isnanl: New file.
352 * lib/isnanl.h: New file.
353 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
354 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
355 gl_FUNC_ISNANL_WORKS.
356 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
359 2007-03-21 Bruno Haible <bruno@clisp.org>
361 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
364 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
365 * lib/vasnprintf.c: Update.
366 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
367 tests/test-isnanl.h, remove tests/test-isnanl.c.
368 (Makefile.am): Update.
369 * tests/test-isnanl-nolibm.c: New file.
370 * tests/test-isnanl.h: New file.
371 * tests/test-isnanl.c: Remove file.
373 2007-03-21 Jim Meyering <jim@meyering.net>
375 When trying to open ".", treat ESTALE like EACCES.
376 * lib/savewd.c (savewd_save): Resort to forking not just upon
377 failure with EACCES, but also when errno is ESTALE.
379 2007-03-20 Bruno Haible <bruno@clisp.org>
381 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
382 Needed on AIX 5.1. Reported by Matthew Woehlke.
384 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
386 Suggestions by Bruno Haible:
387 * lib/acl-internal.h: Include "gettext.h" rather than rolling
389 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
390 * modules/acl (Depends-on): Add gettext.
392 2007-03-19 Bruno Haible <bruno@clisp.org>
394 * modules/iconvme: Remove file.
395 * lib/iconvme.h: Remove file.
396 * lib/iconvme.c: Remove file.
397 * m4/iconvme.m4: Remove file.
399 2007-03-19 Bruno Haible <bruno@clisp.org>
401 * doc/relocatable-maint.texi: Break long shell script line.
402 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
404 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
406 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
408 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
409 * lib/acl.c: Move header inclusions and related macro defns into
411 (S_ISLNK): Remove defn, since that's now done for us.
412 (file_has_acl): Move to lib/file-has-acl.c.
413 Call acl_trivial if available. This is the crucial part of the fix.
414 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
415 shared within the library. Rewrite a bit, partly to make it compatible
416 with the GNU coding style.
417 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
418 Remove unnecessary double-quotes.
419 Don't test for acl_to_text; the build will catch that.
420 Replace acl_entries if it doesn't exist and it is needed.
421 Check for -lsec and acl_trivial (as used on Solaris 10).
422 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
424 (Depends-on): Add sys_stat, for S_ISLNK.
426 2007-03-19 Ben Pfaff <blp@gnu.org>
428 * doc/gnulib.texi: Fix typos.
429 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
431 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
433 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
434 If size is zero here, buf must be zero.
436 2007-03-19 Simon Josefsson <simon@josefsson.org>
438 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
441 2007-03-18 Bruno Haible <bruno@clisp.org>
443 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
444 Suggested by Eric Blake.
446 2007-03-18 Ben Pfaff <blp@gnu.org>
448 * doc/relocatable.texi: Recommend using as prefix a directory
449 that does not exist and will never be created. Based on
450 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
453 2007-03-17 Bruno Haible <bruno@clisp.org>
455 * lib/fchownat.c: Include lchown.h.
457 2007-03-17 Bruno Haible <bruno@clisp.org>
459 Fix endless loop when the given allocated size was > INT_MAX.
460 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
461 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
462 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
463 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
464 * lib/sprintf.c (sprintf): Likewise.
466 2007-03-17 Bruno Haible <bruno@clisp.org>
468 * tests/test-argp-2.sh (func_compare): Output a context diff.
470 2007-03-17 Bruno Haible <bruno@clisp.org>
472 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
473 locale's decimal-point character.
475 2007-03-17 Bruno Haible <bruno@clisp.org>
477 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
478 before comparing it. Needed because on some platforms (e.g. x86) a
479 'long double' occupies less bytes than sizeof (long double).
481 2007-03-17 Bruno Haible <bruno@clisp.org>
483 * tests/test-crc.c (main): Make printf statements 64-bit clean.
484 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
485 * tests/test-getaddrinfo.c (simple): Likewise.
486 * tests/test-read-file.c (main): Likewise.
488 2007-03-17 Bruno Haible <bruno@clisp.org>
490 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
492 2007-03-17 Bruno Haible <bruno@clisp.org>
494 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
497 2007-03-17 Bruno Haible <bruno@clisp.org>
499 * tests/test-c-strcasecmp.c: Include c-strcase.h.
500 * tests/test-c-strncasecmp.c: Likewise.
502 2007-03-17 Bruno Haible <bruno@clisp.org>
504 * modules/stdlib (Depends-on): Add unistd.
505 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
506 Needed for MacOS X 10.3.
508 2007-03-17 Bruno Haible <bruno@clisp.org>
510 * lib/unistr/u-strdup.h: Include <stdlib.h>.
512 2007-03-17 Bruno Haible <bruno@clisp.org>
514 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
516 2007-03-17 Bruno Haible <bruno@clisp.org>
518 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
519 to reflect files copied from gnulib (with or without modifications).
520 Suggested by Jim Meyering.
522 2007-03-17 Eric Blake <ebb9@byu.net>
524 * NEWS: Document stdlib change from 2007-02-18.
526 2007-03-17 Jim Meyering <jim@meyering.net>
528 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
529 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
530 someone uses a name containing shell meta-characters.
531 Reported by Alfred M. Szmidt.
533 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
535 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
537 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
538 and copy gettext configuration files only if configure.ac contains
539 a use of AM_GNU_GETTEXT_VERSION.
541 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
543 * build-aux/bootstrap (gnulib_name): New variable.
544 (gnulib_tool_options): Use it.
546 2007-03-13 Simon Josefsson <simon@josefsson.org>
548 * tests/test-des.c: Use new namespace.
550 2007-03-15 Bruno Haible <bruno@clisp.org>
552 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
553 Reported by James Youngman <jay@gnu.org>.
555 2007-03-15 Bruno Haible <bruno@clisp.org>
557 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
558 declared prototype. Needed with cc on OSF/1 5.1.
560 2007-03-15 Bruno Haible <bruno@clisp.org>
562 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
563 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
564 (struct gl_list_implementation): Add dispose_fn argument to the
565 'create_empty', 'create' methods.
566 (struct gl_list_impl_base): Add field 'dispose_fn'.
567 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
569 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
571 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
572 dispose_fn on the dropped values.
573 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
575 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
577 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
578 (gl_tree_remove_node): Call dispose_fn on the dropped value.
579 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
580 (gl_tree_remove_node): Call dispose_fn on the dropped value.
581 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
583 (gl_tree_list_free): Call dispose_fn on the dropped values.
584 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
586 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
587 Add dispose_fn argument.
588 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
589 Call dispose_fn on the dropped values.
590 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
591 Add dispose_fn argument.
592 (gl_sublist_create): Initialize the 'dispose_fn' field.
593 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
594 * tests/test-array_list.c (main): Update.
595 * tests/test-carray_list.c (main): Update.
596 * tests/test-avltree_list.c (main): Update.
597 * tests/test-rbtree_list.c (main): Update.
598 * tests/test-avltreehash_list.c (main): Update.
599 * tests/test-rbtreehash_list.c (main): Update.
600 * tests/test-linked_list.c (main): Update.
601 * tests/test-linkedhash_list.c (main): Update.
602 * tests/test-array_oset.c (main): Update.
604 2007-03-15 Bruno Haible <bruno@clisp.org>
606 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
607 (gl_oset_create_empty): Add dispose_fn argument.
608 (struct gl_oset_implementation): Add dispose_fn argument to
609 'create_empty' method.
610 (struct gl_oset_impl_base): Add dispose_fn field.
611 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
612 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
613 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
615 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
616 (gl_tree_oset_free): Call dispose_fn on the dropped values.
617 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
619 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
621 * tests/test-array_oset.c (main): Update.
622 * tests/test-avltree_oset.c (main): Update.
623 * tests/test-rbtree_oset.c (main): Update.
624 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
626 2007-03-13 Bruno Haible <bruno@clisp.org>
628 * tests/test-stdbool.c (i): Update after last patch.
630 2007-03-12 Bruno Haible <bruno@clisp.org>
632 * lib/quotearg.c: Include <wctype.h> early, before the definition of
633 the iswprint macro. Needed on Solaris 2.5.1.
635 2007-03-12 Bruno Haible <bruno@clisp.org>
637 * tests/test-printf-frexp.c (main): Declare x as volatile.
639 2007-03-12 Simon Josefsson <simon@josefsson.org>
641 * doc/gnulib.texi (Build robot for gnulib): New section.
643 2007-03-12 Jim Meyering <jim@meyering.net>
645 * build-aux/bootstrap: New file.
646 * build-aux/bootstrap.conf: New file, from coreutils.
648 2007-03-11 Bruno Haible <bruno@clisp.org>
650 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
652 2007-03-12 Simon Josefsson <simon@josefsson.org>
654 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
655 avoid collisions with 'des_setkey'. Reported by Bruno Haible
656 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
658 2007-03-11 Bruno Haible <bruno@clisp.org>
660 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
661 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
663 2007-03-11 Bruno Haible <bruno@clisp.org>
665 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
666 formula. Needed for SunPRO C 5.0.
668 2007-03-11 Bruno Haible <bruno@clisp.org>
670 * modules/long-options (Depends-on): Add getopt.
672 2007-03-11 Bruno Haible <bruno@clisp.org>
674 * modules/modechange (Depends-on): Add stdbool.
676 2007-03-11 Bruno Haible <bruno@clisp.org>
678 * modules/i-ring (Depends-on): Add stdbool.
680 2007-03-11 Bruno Haible <bruno@clisp.org>
682 * modules/gc-des (Depends-on): Add stdbool.
684 2007-03-11 Bruno Haible <bruno@clisp.org>
686 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
688 2007-03-11 Bruno Haible <bruno@clisp.org>
690 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
692 2007-03-11 Bruno Haible <bruno@clisp.org>
694 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
696 2007-03-11 Bruno Haible <bruno@clisp.org>
698 * lib/vasnprintf.c (sprintf): Undefine.
700 2007-03-11 Bruno Haible <bruno@clisp.org>
702 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
703 initializers in SunPRO C and Compaq C compilers.
705 2007-03-11 Bruno Haible <bruno@clisp.org>
707 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
708 decrementing code ANSI C compliant.
710 2007-03-11 Bruno Haible <bruno@clisp.org>
712 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
713 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
715 2007-03-11 Bruno Haible <bruno@clisp.org>
717 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
718 <stdbool.h> substitute doesn't pass.
720 2007-03-11 Bruno Haible <bruno@clisp.org>
722 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
724 2007-03-11 Bruno Haible <bruno@clisp.org>
726 * gnulib-tool (func_create_megatestdir): Create also an autobuild
727 script, for submission to autobuild.josefsson.org.
729 2007-03-10 Bruno Haible <bruno@clisp.org>
731 * modules/canonicalize-lgpl-tests: New file.
732 * tests/test-canonicalize-lgpl.sh: New file.
733 * tests/test-canonicalize-lgpl.c: New file.
735 * modules/c-strcase-tests: New file.
736 * tests/test-c-strcase.sh: New file.
737 * tests/test-c-strcasecmp.c: New file.
738 * tests/test-c-strncasecmp.c: New file.
740 * modules/atexit-tests: New file.
741 * tests/test-atexit.sh: New file.
742 * tests/test-atexit.c: New file.
744 2007-03-10 Bruno Haible <bruno@clisp.org>
746 * tests/test-binary-io.sh: Use temporary filenames that are not so
747 likely to clash with those of other tests (in a parallel make).
748 * tests/test-binary-io.c: Likewise.
750 2007-03-10 Bruno Haible <bruno@clisp.org>
752 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
753 fallback; use #error instead.
754 Suggested by Simon Josefsson.
756 2007-03-10 Bruno Haible <bruno@clisp.org>
758 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
759 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
762 2007-03-10 Bruno Haible <bruno@clisp.org>
764 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
766 2007-03-10 Bruno Haible <bruno@clisp.org>
768 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
770 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
771 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
772 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
774 2007-03-10 Bruno Haible <bruno@clisp.org>
776 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
778 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
781 2007-03-09 Eric Blake <ebb9@byu.net>
782 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
784 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
785 types are not being provided by gnulib.
786 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
789 2007-03-10 Bruno Haible <bruno@clisp.org>
791 * lib/stdio_.h (__attribute__): New macro.
792 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
793 vsprintf): Specify __attribute__ __format__ for GCC.
794 Suggested by Eric Blake.
796 2007-03-09 Bruno Haible <bruno@clisp.org>
798 * modules/printf-posix-tests: New file.
799 * tests/test-printf-posix.sh: New file.
800 * tests/test-printf-posix.c: New file.
802 * modules/printf-posix: New file.
803 * lib/printf.c: New file.
804 * m4/printf-posix-rpl.m4: New file.
805 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
807 * lib/stdio_.h (printf): New declaration.
808 (format, __format__, ____printf____, ____scanf____, ____strftime____,
809 ____strfmon____): New macros.
810 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
813 2007-03-09 Bruno Haible <bruno@clisp.org>
815 * tests/test-vasnprintf-posix2.sh: New file.
816 * tests/test-vasnprintf-posix2.c: New file.
817 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
818 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
819 (Makefile.am): Activate test-vasnprintf-posix2.sh.
821 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
822 a locale dependent decimal point, rather than always '.'.
824 2007-03-09 Eric Blake <ebb9@byu.net>
826 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
827 spite of platforms like Tandem/NSK that define it to -1.
829 2007-03-08 Bruno Haible <bruno@clisp.org>
831 * modules/vprintf-posix-tests: New file.
832 * tests/test-vprintf-posix.sh: New file.
833 * tests/test-vprintf-posix.c: New file.
834 * tests/test-printf-posix.h: New file.
836 * modules/vprintf-posix: New file.
837 * lib/vprintf.c: New file.
838 * m4/vprintf-posix.m4: New file.
839 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
841 * lib/stdio_.h (vprintf): New declaration.
842 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
845 2007-03-08 Bruno Haible <bruno@clisp.org>
847 * modules/fprintf-posix-tests: New file.
848 * tests/test-fprintf-posix.sh: New file.
849 * tests/test-fprintf-posix.c: New file.
851 * modules/fprintf-posix: New file.
852 * lib/fprintf.c: New file.
853 * m4/fprintf-posix.m4: New file.
854 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
856 * lib/stdio_.h (fprintf): New declaration.
857 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
860 2007-03-08 Bruno Haible <bruno@clisp.org>
862 * modules/vfprintf-posix-tests: New file.
863 * tests/test-vfprintf-posix.sh: New file.
864 * tests/test-vfprintf-posix.c: New file.
865 * tests/test-fprintf-posix.h: New file.
866 * tests/test-fprintf-posix.out: New file.
868 * modules/vfprintf-posix: New file.
869 * lib/vfprintf.c: New file.
870 * m4/vfprintf-posix.m4: New file.
871 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
873 * lib/stdio_.h (vfprintf): New declaration.
874 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
877 2007-03-08 Bruno Haible <bruno@clisp.org>
879 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
881 2007-03-08 Bruno Haible <bruno@clisp.org>
883 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
884 instead of 'expr' invocations.
885 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
886 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
887 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
888 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
889 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
890 Suggested by Paul Eggert.
892 2007-03-08 Bruno Haible <bruno@clisp.org>
894 * modules/fseterr-tests: New file.
895 * tests/test-fseterr.c: New file.
897 * modules/fseterr: New file.
898 * lib/fseterr.h: New file.
899 * lib/fseterr.c: New file.
901 2007-03-08 Bruno Haible <bruno@clisp.org>
903 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
904 * lib/getopt_.h: Likewise.
905 * lib/mbswidth.h: Likewise.
906 * lib/setenv.h: Likewise.
907 * lib/vasnprintf.h: Likewise.
908 * lib/vasprintf.h: Likewise.
909 * lib/verror.h: Likewise.
910 * lib/xsetenv.h: Likewise.
911 * lib/xvasprintf.h: Likewise.
913 2007-03-08 Jim Meyering <jim@meyering.net>
915 * users.txt: Add parted.
917 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
919 2007-03-07 Bruno Haible <bruno@clisp.org>
921 * m4/printf.m4: Make the shell script snippets copy&pastable.
923 2007-03-02 Bruno Haible <bruno@clisp.org>
925 * lib/netinet_in_.h: New file.
926 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
927 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
928 * modules/netinet_in (Files): Add lib/netinet_in_.h.
929 (Depends-on): Add absolute-header.
930 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
933 2007-03-03 Bruno Haible <bruno@clisp.org>
935 * lib/sys_select_.h: New file.
936 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
937 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
938 * modules/sys_select (Files): Add lib/sys_select_.h.
939 (Depends-on): Add absolute-header.
940 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
943 2007-03-02 Bruno Haible <bruno@clisp.org>
945 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
946 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
948 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
949 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
950 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
951 * modules/sys_socket (Depends-on): Add absolute-header.
952 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
953 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
954 (Include): Remove requirement of inclusion of <sys/types.h>.
956 2007-03-02 Bruno Haible <bruno@clisp.org>
958 * lib/byteswap_.h (bswap_32): Fix formula.
960 2007-03-06 Bruno Haible <bruno@clisp.org>
962 * modules/sprintf-posix-tests: New file.
963 * tests/test-sprintf-posix.c: New file.
965 * modules/sprintf-posix: New file.
966 * lib/sprintf.c: New file.
967 * m4/sprintf-posix.m4: New file.
968 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
970 * lib/stdio_.h (sprintf): New declaration.
971 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
974 2007-03-06 Bruno Haible <bruno@clisp.org>
976 * modules/vsprintf-posix-tests: New file.
977 * tests/test-vsprintf-posix.c: New file.
978 * tests/test-sprintf-posix.h: New file.
980 * modules/vsprintf-posix: New file.
981 * lib/vsprintf.c: New file.
982 * m4/vsprintf-posix.m4: New file.
983 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
985 * lib/stdio_.h (vsprintf): New declaration.
986 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
989 2007-03-06 Bruno Haible <bruno@clisp.org>
991 * modules/vsnprintf (Depend-on): Remove minmax.
993 2007-03-06 Bruno Haible <bruno@clisp.org>
995 * modules/snprintf-posix-tests: New file.
996 * tests/test-snprintf-posix.c: New file.
998 * modules/snprintf-posix: New file.
999 * m4/snprintf-posix.m4: New file.
1000 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
1002 (gl_FUNC_SNPRINTF): Invoke it.
1003 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
1004 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
1006 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
1008 2007-03-06 Bruno Haible <bruno@clisp.org>
1010 * modules/vsnprintf-posix-tests: New file.
1011 * tests/test-vsnprintf-posix.c: New file.
1012 * tests/test-snprintf-posix.h: New file.
1014 * modules/vsnprintf-posix: New file.
1015 * m4/vsnprintf-posix.m4: New file.
1016 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
1018 (gl_FUNC_VSNPRINTF): Invoke it.
1019 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
1020 * lib/stdio_.h (vsnprintf): Define as a replacement if
1021 REPLACE_VSNPRINTF is set.
1022 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
1024 2007-03-06 Bruno Haible <bruno@clisp.org>
1026 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
1027 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
1029 2007-03-06 Bruno Haible <bruno@clisp.org>
1031 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
1032 (asinl): Declare also if HAVE_DECL_ASINL is set.
1033 (atanl): Declare also if HAVE_DECL_ATANL is set.
1034 (ceill): Declare also if HAVE_DECL_CEILL is set.
1035 (cosl): Declare also if HAVE_DECL_COSL is set.
1036 (expl): Declare also if HAVE_DECL_EXPL is set.
1037 (floorl): Declare also if HAVE_DECL_FLOORL is set.
1038 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
1039 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
1040 (logl): Declare also if HAVE_DECL_LOGL is set.
1041 (sinl): Declare also if HAVE_DECL_SINL is set.
1042 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
1043 (tanl): Declare also if HAVE_DECL_TANL is set.
1044 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
1045 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
1046 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
1047 declaration of frexpl, ldexpl.
1048 * modules/printf-frexpl (Depends-on): Add math.
1049 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
1051 2007-03-05 Bruno Haible <bruno@clisp.org>
1053 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
1054 frexpl and ldexpl are declared.
1055 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
1057 2007-03-05 Bruno Haible <bruno@clisp.org>
1059 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
1060 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
1062 2007-03-05 Bruno Haible <bruno@clisp.org>
1064 * lib/stdio_.h: Include <stddef.h>.
1066 2007-03-05 Bruno Haible <bruno@clisp.org>
1068 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
1070 2007-03-05 Bruno Haible <bruno@clisp.org>
1072 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
1073 NetBSD 4, from Ralf Wildenhues.
1075 2007-03-04 Bruno Haible <bruno@clisp.org>
1077 * lib/vasprintf.h: Update #if logic for the case when the functions
1078 exist but are overridden.
1080 2007-03-04 Bruno Haible <bruno@clisp.org>
1082 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
1083 implementations: glibc-2.4 and MacOS X 10.3.
1084 * tests/test-vasnprintf-posix.c (test_function): Test also the case
1085 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
1086 * tests/test-vasprintf-posix.c (test_function): Likewise.
1088 2007-03-04 Bruno Haible <bruno@clisp.org>
1090 * modules/vasprintf-posix-tests: New file.
1091 * tests/test-vasprintf-posix.c: New file.
1093 * modules/vasprintf-posix: New file.
1094 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
1096 * m4/vasprintf-posix.m4: New file.
1097 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
1099 (gl_FUNC_VASPRINTF): Invoke it.
1100 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
1102 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
1104 2007-03-04 Bruno Haible <bruno@clisp.org>
1106 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
1107 REPLACE_GETTIMEOFDAY.
1108 * modules/sys_time (Makefile.am): Likewise.
1109 * m4/sys_time_h.m4: Likewise.
1110 * m4/gettimeofday.m4: Likewise.
1112 2007-03-04 Bruno Haible <bruno@clisp.org>
1114 * modules/vasnprintf-posix-tests: New file.
1115 * tests/test-vasnprintf-posix.c: New file.
1117 * modules/vasnprintf-posix: New file.
1118 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
1120 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
1121 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
1122 REPLACE_VASNPRINTF is defined.
1123 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
1125 (gl_FUNC_VASNPRINTF): Invoke it.
1126 * m4/vasnprintf-posix.m4: New file.
1127 * m4/printf.m4: New file.
1129 2007-03-04 Bruno Haible <bruno@clisp.org>
1131 Compile progreloc.c only if --enable-relocatable is specified.
1132 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
1133 if --enable-relocatable was specified.
1134 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
1137 2007-03-04 Jim Meyering <jim@meyering.net>
1139 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
1140 Use it consistently, rather than enumerating errno constants.
1142 2007-03-04 Bruno Haible <bruno@clisp.org>
1144 * modules/xvasprintf-tests: New file.
1145 * tests/test-xvasprintf.c: New file.
1147 * modules/vasprintf-tests: New file.
1148 * tests/test-vasprintf.c: New file.
1150 * modules/vasnprintf-tests: New file.
1151 * tests/test-vasnprintf.c: New file.
1153 * modules/vsnprintf-tests: New file.
1154 * tests/test-vsnprintf.c: New file.
1156 * modules/snprintf-tests: New file.
1157 * tests/test-snprintf.c: New file.
1159 2007-03-04 Bruno Haible <bruno@clisp.org>
1161 Compile relocatable.c only if --enable-relocatable is specified.
1162 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
1163 gl_RELOCATABLE_LIBRARY.
1164 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
1165 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
1166 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
1167 gl_RELOCATABLE_LIBRARY.
1168 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
1169 (Makefile.am): Remove lib_SOURCES.
1170 * modules/relocatable-lib-lgpl (configure.ac): Invoke
1171 gl_RELOCATABLE_LIBRARY.
1172 (Makefile.am): Remove lib_SOURCES.
1173 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
1175 * modules/relocatable-prog-wrapper (configure.ac): Invoke
1176 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
1178 2007-03-04 Bruno Haible <bruno@clisp.org>
1180 * modules/argmatch-tests: New file.
1181 * tests/test-argmatch.c: New file.
1183 * tests/test-allocsa.c (main): Halve the number of loop runs.
1185 * modules/alloca-opt-tests: New file.
1186 * tests/test-alloca-opt.c: New file.
1188 2007-03-04 Jim Meyering <jim@meyering.net>
1190 Work around difference between Linux ACLs and Solaris 10 ZFS.
1191 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
1194 2007-03-03 Bruno Haible <bruno@clisp.org>
1196 * modules/relocatable-prog (Depends-on): Add back progreloc's
1197 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
1199 2007-03-03 Bruno Haible <bruno@clisp.org>
1201 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
1202 * modules/relocatable-lib: New file.
1204 2007-03-03 Bruno Haible <bruno@clisp.org>
1206 * modules/relocatable-prog: Renamed from modules/relocatable.
1207 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
1209 2007-03-03 Bruno Haible <bruno@clisp.org>
1211 * modules/relocatable-script (Files): Add doc/relocatable.texi,
1212 m4/relocatable-lib.m4.
1213 (Depends-on): Remove 'relocatable'.
1214 (configure.ac): Add gl_RELOCATABLE_NOP.
1216 2007-03-03 Bruno Haible <bruno@clisp.org>
1218 * modules/relocatable-prog-wrapper: New file.
1219 * modules/relocatable (Depends-on): Add it. Remove all other
1220 dependencies except progname.
1221 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
1223 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
1224 (gl_FUNC_STRERROR): Nop.
1225 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
1227 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
1228 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
1230 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
1231 (gl_FUNC_READLINK): Update.
1233 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
1235 2007-03-03 Bruno Haible <bruno@clisp.org>
1237 * lib/xreadlink.c: Include <unistd.h> unconditionally.
1238 * modules/xreadlink (Depends-on): Add unistd.
1239 * modules/xreadlink-with-size (Depends-on): Likewise.
1241 2007-03-03 Bruno Haible <bruno@clisp.org>
1243 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
1244 extracted from gt_FUNC_SETENV.
1245 (gt_FUNC_SETENV): Remove macro.
1246 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
1247 remove gt_FUNC_SETENV.
1249 2007-03-03 Bruno Haible <bruno@clisp.org>
1251 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
1252 ENABLE_RELOCATABLE here.
1253 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
1255 2007-03-03 Bruno Haible <bruno@clisp.org>
1257 * modules/rbtreehash-list-tests (Depends-on): Add progname.
1258 * tests/test-rbtreehash_list.c: Include progname.h.
1259 (main): Call set_program_name.
1261 * modules/rbtree-oset-tests (Depends-on): Add progname.
1262 * tests/test-rbtree_oset.c: Include progname.h.
1263 (main): Call set_program_name.
1265 * modules/rbtree-list-tests (Depends-on): Add progname.
1266 * tests/test-rbtree_list.c: Include progname.h.
1267 (main): Call set_program_name.
1269 * modules/linked-list-tests (Depends-on): Add progname.
1270 * tests/test-linked_list.c: Include progname.h.
1271 (main): Call set_program_name.
1273 2007-03-03 Bruno Haible <bruno@clisp.org>
1275 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
1276 All uses of __restrict changed to _Restrict_.
1277 * lib/glob_.h (__restrict): Remove macro.
1279 2007-03-02 Bruno Haible <bruno@clisp.org>
1281 * modules/gettext (configure.ac): Require gettext infrastructure
1282 from version 0.16.1.
1284 2007-03-02 Bruno Haible <bruno@clisp.org>
1286 * modules/linkedhash-list-tests (Depends-on): Add progname.
1287 * tests/test-linkedhash_list.c: Include progname.h.
1288 (main): Call set_program_name.
1290 * modules/carray-list-tests (Depends-on): Add progname.
1291 * tests/test-carray_list.c: Include progname.h.
1292 (main): Call set_program_name.
1294 * modules/avltreehash-list-tests (Depends-on): Add progname.
1295 * tests/test-avltreehash_list.c: Include progname.h.
1296 (main): Call set_program_name.
1298 * modules/avltree-oset-tests (Depends-on): Add progname.
1299 * tests/test-avltree_oset.c: Include progname.h.
1300 (main): Call set_program_name.
1302 * modules/avltree-list-tests (Depends-on): Add progname.
1303 * tests/test-avltree_list.c: Include progname.h.
1304 (main): Call set_program_name.
1306 * modules/array-oset-tests (Depends-on): Add progname.
1307 * tests/test-array_oset.c: Include progname.h.
1308 (main): Call set_program_name.
1310 * modules/array-list-tests (Depends-on): Add progname.
1311 * tests/test-array_list.c: Include progname.h.
1312 (main): Call set_program_name.
1314 * modules/argp-tests (Depends-on): Add progname.
1315 * tests/test-argp.c: Include argp.h first. Include progname.h.
1316 (main): Call set_program_name.
1318 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
1320 * doc/gnulib-tool.texi (Initial import): Reword description of
1321 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
1322 limited effect even if defined after the first system include.
1324 2007-03-01 Bruno Haible <bruno@clisp.org>
1326 * build-aux/config.libpath: Update to libtool-1.5.22.
1327 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1329 2007-03-01 Bruno Haible <bruno@clisp.org>
1331 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
1333 Reported by Ralf Wildenhues.
1335 2007-03-01 Bruno Haible <bruno@clisp.org>
1337 * build-aux/install-reloc: Remove object files left over by some
1339 Reported by Ralf Wildenhues.
1341 2007-03-01 Bruno Haible <bruno@clisp.org>
1343 * build-aux/install-reloc: Break long lines.
1345 2007-03-01 Bruno Haible <bruno@clisp.org>
1347 * doc/relocatable.texi: Document that it may not work on OpenBSD.
1348 Reported by Ralf Wildenhues.
1350 2007-03-01 Bruno Haible <bruno@clisp.org>
1352 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
1353 include ordering constraints.
1355 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
1357 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
1358 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
1359 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
1361 * lib/time_.h: Fix misspelling.
1362 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
1363 Require gl_HEADER_TIME_H_DEFAULTS.
1364 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
1365 * m4/time_r.m4 (gl_TIME_R): Likewise.
1366 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
1368 2007-03-01 Bruno Haible <bruno@clisp.org>
1370 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
1371 * m4/utimens.m4 (gl_UTIMENS): Likewise.
1373 2007-03-01 Jim Meyering <jim@meyering.net>
1375 * modules/xreadlink (Maintainer): Add my name.
1376 * modules/xreadlink-with-size (Depends-on): Alphabetize.
1378 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
1379 Bruno Haible <bruno@clisp.org>
1381 * build-aux/install-reloc: Compile also c-ctype.c.
1382 * build-aux/relocatable.sh.in: New file.
1383 * doc/relocatable.texi: New file.
1384 * doc/relocatable-maint.texi: New file.
1385 * doc/gnulib.texi: Include relocatable-maint.texi.
1386 * lib/progreloc.c: Include unistd.h unconditionally.
1387 * lib/relocwrapper.c: Include unistd.h unconditionally.
1389 (add_dotbin): Use c_tolower.
1390 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
1391 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
1392 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
1393 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
1394 to m4/relocatable-lib.m4.
1395 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
1396 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
1397 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
1398 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
1399 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
1400 * modules/relocatable: New file.
1401 * modules/relocatable-lib: New file.
1402 * modules/relocatable-script: New file.
1404 2007-02-28 Bruno Haible <bruno@clisp.org>
1406 Import --enable-relocatable infrastructure.
1407 * build-aux/config.libpath: New file, from GNU gettext.
1408 * build-aux/install-reloc: New file, from GNU gettext.
1409 * build-aux/reloc-ldflags: New file, from GNU gettext.
1410 * lib/relocatable.h: New file, from GNU gettext.
1411 * lib/relocatable.c: New file, from GNU gettext.
1412 * lib/relocwrapper.c: New file, from GNU gettext.
1413 * m4/relocatable.m4: New file, from GNU gettext.
1415 2007-02-28 Bruno Haible <bruno@clisp.org>
1417 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
1419 * modules/xreadlink: New file, from GNU gettext with modifications.
1420 * lib/xreadlink.c: New file, from GNU gettext.
1421 * lib/xreadlink.h: Add comments.
1422 (xreadlink): New declaration.
1424 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
1425 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
1426 lib/xreadlink-with-size.c.
1427 (configure.ac): Remove gl_XREADLINK invocation.
1428 (Makefile.am): Augment lib_SOURCES.
1429 * m4/xreadlink.m4: Remove file.
1430 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
1431 (xreadlink_with_size): Renamed from xreadink.
1432 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
1433 * modules/canonicalize (Depends-on): Replace xreadlink with
1434 xreadlink-with-size.
1435 * lib/canonicalize.c (canonicalize_filename_mode): Update.
1437 2007-02-25 Jim Meyering <jim@meyering.net>
1439 * build-aux/announce-gen: When complaining about excess arguments,
1442 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
1444 * README: Document signed integer overflow situation more
1447 2007-02-25 Bruno Haible <bruno@clisp.org>
1449 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
1450 'a' or 'A' conversion.
1452 2007-02-25 Bruno Haible <bruno@clisp.org>
1454 * modules/filename: Renamed from modules/pathname.
1455 (Files): Replace lib/pathname.h with lib/filename.h. Replace
1456 lib/concatpath.c with lib/concat-filename.c.
1457 (Makefile.am): Update.
1458 (Include): Replace pathname.h with filename.h.
1459 * lib/filename.h: Renamed from lib/pathname.h.
1460 (concatenated_filename): Renamed from concatenated_pathname.
1461 * lib/concat-filename.c: Renamed from lib/concatpath.c.
1462 (concatenated_filename): Renamed from concatenated_pathname.
1463 * lib/findprog.c: Include filename.h instead of pathname.h.
1464 (find_in_path): Update.
1465 * lib/javacomp.c: Include filename.h instead of pathname.h.
1466 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
1467 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
1468 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
1469 is_oldgcj_14_13_usable, is_javac_usable): Update.
1470 * lib/javaexec.c: Include filename.h instead of pathname.h.
1471 (execute_java_class): Update.
1472 * modules/findprog: Update.
1473 * modules/javacomp: Update.
1474 * modules/javaexec: Update.
1475 * MODULES.html.sh (File system functions): Add 'filename', remove
1478 2007-02-25 Bruno Haible <bruno@clisp.org>
1480 * modules/printf-frexpl-tests: New file.
1481 * tests/test-printf-frexpl.c: New file.
1483 * modules/printf-frexpl: New file.
1484 * lib/printf-frexpl.h: New file.
1485 * lib/printf-frexpl.c: New file.
1486 * m4/printf-frexpl.m4: New file.
1488 2007-02-25 Bruno Haible <bruno@clisp.org>
1490 * modules/printf-frexp-tests: New file.
1491 * tests/test-printf-frexp.c: New file.
1493 * modules/printf-frexp: New file.
1494 * lib/printf-frexp.h: New file.
1495 * lib/printf-frexp.c: New file.
1496 * m4/printf-frexp.m4: New file.
1498 2007-02-25 Bruno Haible <bruno@clisp.org>
1500 Assume automake >= 1.10 for the tests.
1501 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
1502 * modules/arctwo-tests: Likewise.
1503 * modules/argp-tests: Likewise.
1504 * modules/avltree-list-tests: Likewise.
1505 * modules/avltree-oset-tests: Likewise.
1506 * modules/avltreehash-list-tests: Likewise.
1507 * modules/carray-list-tests: Likewise.
1508 * modules/crc-tests: Likewise.
1509 * modules/des-tests: Likewise.
1510 * modules/gc-arcfour-tests: Likewise.
1511 * modules/gc-arctwo-tests: Likewise.
1512 * modules/gc-des-tests: Likewise.
1513 * modules/gc-hmac-md5-tests: Likewise.
1514 * modules/gc-hmac-sha1-tests: Likewise.
1515 * modules/gc-md2-tests: Likewise.
1516 * modules/gc-md4-tests: Likewise.
1517 * modules/gc-md5-tests: Likewise.
1518 * modules/gc-pbkdf2-sha1-tests: Likewise.
1519 * modules/gc-rijndael-tests: Likewise.
1520 * modules/gc-sha1-tests: Likewise.
1521 * modules/gc-tests: Likewise.
1522 * modules/getaddrinfo-tests: Likewise.
1523 * modules/hmac-md5-tests: Likewise.
1524 * modules/hmac-sha1-tests: Likewise.
1525 * modules/linked-list-tests: Likewise.
1526 * modules/linkedhash-list-tests: Likewise.
1527 * modules/lock-tests: Likewise.
1528 * modules/md2-tests: Likewise.
1529 * modules/md4-tests: Likewise.
1530 * modules/md5-tests: Likewise.
1531 * modules/rbtree-list-tests: Likewise.
1532 * modules/rbtree-oset-tests: Likewise.
1533 * modules/rbtreehash-list-tests: Likewise.
1534 * modules/read-file-tests: Likewise.
1535 * modules/rijndael-tests: Likewise.
1536 * modules/stdint-tests: Likewise.
1537 * modules/tls-tests: Likewise.
1539 2007-02-24 Bruno Haible <bruno@clisp.org>
1541 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
1542 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
1543 function; instead check whether isnan with a double argument links.
1544 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
1545 function; instead check whether isnan with a 'long double' argument
1547 Reported by Eric Blake <ebb9@byu.net>.
1549 2007-02-24 Bruno Haible <bruno@clisp.org>
1551 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
1553 * lib/isnanl.c: Remove all code. Just include isnan.c.
1554 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
1556 2007-02-25 Jim Meyering <jim@meyering.net>
1558 Avoid conflicting types for 'unsetenv' on FreeBSD.
1559 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
1560 conflicting with FreeBSD's (5.0 and 6.1) function declaration
1563 2007-02-24 Bruno Haible <bruno@clisp.org>
1565 * modules/isnanl-nolibm-tests: New file.
1566 * tests/test-isnanl.c: New file.
1568 * modules/isnanl-nolibm: New file.
1569 * lib/isnanl.h: New file.
1570 * lib/isnanl.c: New file.
1571 * m4/isnanl.m4: New file.
1573 2007-02-24 Bruno Haible <bruno@clisp.org>
1575 * modules/isnan-nolibm-tests: New file.
1576 * tests/test-isnan.c: New file.
1578 * modules/isnan-nolibm: New file.
1579 * lib/isnan.h: New file.
1580 * lib/isnan.c: New file.
1581 * m4/isnan.m4: New file.
1583 2007-02-24 Bruno Haible <bruno@clisp.org>
1585 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
1586 assume that an exponent fits in 20 bits.
1588 2007-02-24 Jim Meyering <jim@meyering.net>
1590 * m4/regex.m4: Update the description of the configure-time option,
1591 --without-included-regex, to state accurately what the defaults are,
1592 and perhaps to give people an idea why using this option is risky.
1594 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
1596 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
1597 loops on small arguments. This attempts to avoid the problem
1598 Bruno Haible reported for AIX 4.3.2 in
1599 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
1601 2007-02-23 Bruno Haible <bruno@clisp.org>
1603 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
1604 Needed for help2man.
1606 2007-02-23 Karl Berry <karl@gnu.org>
1608 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
1609 exists, foo.h should be cvs-ignored, not committed.
1611 2007-02-23 Eric Blake <ebb9@byu.net>
1613 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
1614 * lib/stat-time.h (includes): Likewise.
1615 * lib/utimecmp.c (includes): Likewise.
1616 * lib/utimens.h (includes): Likewise.
1617 * lib/getdate.y (includes): Also include "timespec.h" for use
1618 internal to the module.
1619 * modules/utimens (Depends-on): Revert yesterday's patch.
1620 * modules/nanosleep (Depends-on): Add missing dependency.
1622 2007-02-22 Bruno Haible <bruno@clisp.org>
1624 * lib/glob.c: Don't include getlogin_r.h.
1626 2007-02-22 Jim Meyering <jim@meyering.net>
1628 * modules/utimens (Depends-on): Add timespec, required for
1629 utimens.h's inclusion of timespec.h.
1631 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
1633 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
1634 long unreadable paths in GNU/Linux. Problem reported by Andreas
1636 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
1637 I'll try to think of a better way to fix the Solaris problem.
1639 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
1640 like glibc; on Solaris 10, it fails with errno == EINVAL.
1641 POSIX says the behavior is unspecified if the first argument is NULL,
1642 so play it safe and never pass NULL to the system getcwd.
1644 2007-02-21 Jim Meyering <jim@meyering.net>
1646 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
1647 of gettimeofday. It would conflict with the one now always
1648 provided via sys_time_.h. Reported by Matthew Woehlke, as
1649 an IRIX 6.5 build failure.
1651 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
1653 Minor fixups to port to Solaris 10 with Sun C 5.8.
1654 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
1655 * modules/getcwd (Depends-on): Add dirfd.
1656 * lib/putenv.c (putenv): #undef it.
1657 (rpl_putenv): New decl.
1658 (malloc, free): Include <stdlib.h> rather than prototyping separately.
1660 2007-02-20 Bruno Haible <bruno@clisp.org>
1662 * modules/stdio-tests: New file.
1663 * tests/test-stdio.c: New file.
1665 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
1666 (Depends-on): Add stdio.
1667 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
1668 (Include): Use <stdio.h> instead of vsnprintf.h.
1669 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
1670 HAVE_DECL_VSNPRINTF.
1671 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
1673 * modules/snprintf (Files): Remove lib/snprintf.h.
1674 (Depends-on): Add stdio.
1675 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
1676 (Include): Use <stdio.h> instead of snprintf.h.
1677 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
1679 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
1680 * lib/getaddrinfo.c: Likewise.
1682 * modules/stdio: New file.
1683 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
1684 * lib/snprintf.h: Remove file.
1685 * lib/vsnprintf.h: Remove file.
1686 * lib/.cppi-disable: Remove snprintf.h.
1687 * m4/stdio_h.m4: New file.
1688 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
1690 2007-02-20 Jim Meyering <jim@meyering.net>
1692 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
1693 used by e.g., mingw. From Bruno Haible.
1695 2007-02-19 Bruno Haible <bruno@clisp.org>
1697 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
1699 Reported by Ben Pfaff <blp@cs.stanford.edu>.
1701 2007-02-19 Bruno Haible <bruno@clisp.org>
1703 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
1706 2007-02-19 Bruno Haible <bruno@clisp.org>
1708 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
1710 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
1712 2007-02-19 Jim Meyering <jim@meyering.net>
1714 Don't use FD after a successful "fdopendir (fd)".
1715 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
1716 Reset it by calling dirfd on the just-obtained DIR*.
1718 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
1719 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
1721 2007-02-18 Bruno Haible <bruno@clisp.org>
1723 * lib/readlink.c: Include <unistd.h>.
1724 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
1726 * modules/readlink (Depends-on): Add unistd.
1727 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1728 (Include): Add <unistd.h>.
1730 * lib/getlogin_r.h: Remove file.
1731 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
1732 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
1733 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
1734 HAVE_DECL_GETLOGIN_R.
1735 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
1736 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1737 (Include): Use <unistd.h> instead of getlogin_r.h.
1739 * lib/getcwd.h: Remove file.
1740 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
1741 * lib/xgetcwd.c: Likewise.
1742 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
1743 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
1744 * modules/getcwd (Files): Remove lib/getcwd.h.
1745 (Depends-on): Add unistd.
1746 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1747 (Include): Use <unistd.h> instad of getcwd.h.
1749 * lib/ftruncate.c: Include <unistd.h> first.
1750 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
1752 * modules/ftruncate (Depends-on): Add unistd.
1753 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1755 * lib/fchdir.c: Include <unistd.h> first.
1756 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
1757 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
1758 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
1759 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1760 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
1762 * lib/dup2.c: Include <unistd.h> first.
1763 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
1765 * modules/dup2 (Depends-on): Add unistd.
1766 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1768 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
1769 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
1770 REPLACE_CHOWN. Don't define chown as a macro here.
1771 * modules/chown (Depends-on): Add unistd.
1772 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1774 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
1775 Add definition for GL_LINK_WARNING.
1776 (chown, dup2): New declarations.
1777 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
1779 (ftruncate): New declaration.
1780 (getcwd): New declaration, taken from old getcwd.h.
1781 (getlogin_r): New declaration, taken from old getlogin_r.h.
1782 (readlink): New declaration.
1783 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
1784 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
1785 (gl_PREREQ_UNISTD): Remove macro.
1786 (gl_UNISTD_MODULE_INDICATOR): New macro.
1787 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
1788 many new variables. Don't set UNISTD_H.
1789 * modules/unistd (Description): Change.
1790 (Depends-on): Add link-warning.
1791 (configure.ac): Update.
1792 (Makefile.am): Create unistd.h always. Substitute many new variables
1795 2007-02-18 Bruno Haible <bruno@clisp.org>
1797 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
1798 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
1800 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
1801 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
1802 * lib/getsubopt.h: Remove file.
1803 * modules/getsubopt (Files): Remove lib/getsubopt.h.
1804 (Depends-on): Add stdlib.
1805 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1806 (Includes): Use <stdlib.h> instead of getsubopt.h.
1807 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
1809 * lib/getsubopt.c: Don't include getsubopt.h.
1811 2007-02-18 Bruno Haible <bruno@clisp.org>
1813 * modules/fchdir (Depends-on): Add dup2.
1815 2007-02-18 Bruno Haible <bruno@clisp.org>
1817 * lib/stdlib_.h: Handle glibc's special invocation convention
1820 2007-02-18 Bruno Haible <bruno@clisp.org>
1822 * modules/stdlib-tests: New file.
1823 * tests/test-stdlib.c: New file.
1825 * modules/mkstemp (Files): Remove lib/mkstemp.h.
1826 (Depends-on): Add stdlib.
1827 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1828 (Includes): Use <stdlib.h> instead of mkstemp.h.
1829 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
1830 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
1831 * lib/mkstemp.c: Don't include mkstemp.h.
1832 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
1833 * lib/stdlib--.h: Don't include mkstemp.h.
1835 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
1836 (Depends-on): Add stdlib.
1837 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1838 (Includes): Use <stdlib.h> instead of mkdtemp.h.
1839 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
1841 * lib/mkdtemp.c: Don't include mkdtemp.h.
1842 * lib/clean-temp.c: Don't include mkdtemp.h.
1844 * modules/exit (Files): Remove lib/exit.h.
1845 (Depends-on): Add stdlib.
1846 (Makefile.am): Remove lib_SOURCES.
1847 (Include): Use <stdlib.h> instead of exit.h.
1848 * lib/argmatch.c: Don't include exit.h.
1849 * lib/execute.c: Likewise.
1850 * lib/pagealign_alloc.c: Likewise.
1851 * lib/pipe.c: Likewise.
1852 * lib/wait-process.c: Likewise.
1853 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
1854 * lib/exitfail.c: Likewise.
1855 * lib/savewd.c: Likewise.
1856 * lib/xsetenv.c: Likewise.
1858 * modules/stdlib: New file.
1859 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
1860 and extra comments about mkstemp().
1861 * lib/exit.h: Remove file.
1862 * lib/mkdtemp.h: Remove file.
1863 * lib/mkstemp.h: Remove file.
1864 * m4/stdlib_h.m4: New file.
1865 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
1867 2007-02-18 Bruno Haible <bruno@clisp.org>
1869 * modules/math-tests: New file.
1870 * tests/test-math.c: New file.
1872 * modules/math: New file.
1873 * modules/mathl (Files): Remove lib/mathl.h.
1874 (Depends-on): Add math.
1875 (Makefile.am): Don't mention mathl.h.
1876 (Include): Use <math.h> instead of mathl.h.
1877 * lib/math_.h: New file.
1878 * lib/mathl.h: Remove file.
1879 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
1881 * lib/asinl.c: Likewise.
1882 * lib/atanl.c: Likewise.
1883 * lib/ceill.c: Likewise.
1884 * lib/cosl.c: Likewise.
1885 * lib/expl.c: Likewise.
1886 * lib/floorl.c: Likewise.
1887 * lib/frexpl.c: Likewise.
1888 * lib/ldexpl.c: Likewise.
1889 * lib/logl.c: Likewise.
1890 * lib/sincosl.c: Likewise.
1891 * lib/sinl.c: Likewise.
1892 * lib/sqrtl.c: Likewise.
1893 * lib/tanl.c: Likewise.
1894 * lib/trigl.c: Likewise.
1895 * m4/math_h.m4: New file.
1896 * MODULES.html.sh (Mathematics): Add math.
1898 2007-02-17 Bruno Haible <bruno@clisp.org>
1900 * modules/wctype-tests: New file.
1901 * tests/test-wctype.c: New file.
1903 * modules/wchar-tests: New file.
1904 * tests/test-wchar.c: New file.
1906 * modules/unistd-tests: New file.
1907 * tests/test-unistd.c: New file.
1909 * modules/time-tests: New file.
1910 * tests/test-time.c: New file.
1912 * modules/sysexits-tests: New file.
1913 * tests/test-sysexits.c: New file.
1915 * modules/sys_time-tests: New file.
1916 * tests/test-sys_time.c: New file.
1918 * modules/sys_stat-tests: New file.
1919 * tests/test-sys_stat.c: New file.
1921 * modules/sys_socket-tests: New file.
1922 * tests/test-sys_socket.c: New file.
1924 * modules/sys_select-tests: New file.
1925 * tests/test-sys_select.c: New file.
1927 * modules/string-tests: New file.
1928 * tests/test-string.c: New file.
1930 * modules/stdbool-tests: New file.
1931 * tests/test-stdbool.c: New file.
1933 * modules/netinet_in-tests: New file.
1934 * tests/test-netinet_in.c: New file.
1936 * modules/inttypes-tests: New file.
1937 * tests/test-inttypes.c: New file.
1939 * modules/fcntl-tests: New file.
1940 * tests/test-fcntl.c: New file.
1942 * modules/byteswap-tests: New file.
1943 * tests/test-byteswap.c: New file.
1945 * modules/arpa_inet-tests: New file.
1946 * tests/test-arpa_inet.c: New file.
1948 2007-02-17 Bruno Haible <bruno@clisp.org>
1950 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
1951 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
1952 if the corresponding module is not enabled. Emit link warnings if
1953 the function is used nevertheless.
1954 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
1955 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
1956 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
1957 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
1958 * modules/inttypes (Depends-on): Add link-warning.
1959 (Makefile.am): Copy the contents of build-aux/link-warning.h into
1960 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
1961 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
1962 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
1963 * modules/imaxdiv (configure.ac): Likewise.
1964 * modules/strtoimax (configure.ac): Likewise.
1965 * modules/strtoumax (configure.ac): Likewise.
1967 2007-02-17 Bruno Haible <bruno@clisp.org>
1969 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
1970 gl_STRING_MODULE_INDICATOR_DEFAULTS.
1971 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
1972 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
1974 2007-02-17 Bruno Haible <bruno@clisp.org>
1976 * modules/link-warning: New file.
1977 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
1978 * lib/string_.h (GL_LINK_WARNING): Remove definition.
1979 * modules/string (Depends-on): Add link-warning.
1980 (Makefile.am): Copy the contents of build-aux/link-warning.h into
1982 * MODULES.html.sh (Support for building libraries and executables): Add
1985 2007-02-17 Bruno Haible <bruno@clisp.org>
1987 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
1988 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
1989 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
1992 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
1993 Bruno Haible <bruno@clisp.org>
1995 * modules/tmpfile: New file.
1996 * lib/tmpfile.c: New file.
1997 * m4/tmpfile.m4: New file.
1998 * MODULES.html.sh (func_all_modules): New section "Input/output".
2000 2007-02-15 Bruno Haible <bruno@clisp.org>
2002 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
2003 (supports_delete_on_close): New function.
2004 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
2006 2007-02-14 Bruno Haible <bruno@clisp.org>
2008 * modules/mbspcasecmp-tests: New file.
2009 * tests/test-mbspcasecmp.sh: New file.
2010 * tests/test-mbspcasecmp.c: New file.
2012 New module mbspcasecmp.
2013 * modules/mbspcasecmp: New file.
2014 * lib/mbspcasecmp.c: New file.
2015 * lib/string_.h (strncasecmp): Change warning message.
2016 (mbspcasecmp): New declaration.
2017 * m4/mbspcasecmp.m4: New file.
2018 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
2020 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
2021 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
2023 2007-02-14 Bruno Haible <bruno@clisp.org>
2025 * modules/mbsncasecmp-tests: New file.
2026 * tests/test-mbsncasecmp.sh: New file.
2027 * tests/test-mbsncasecmp.c: New file.
2029 New module mbsncasecmp.
2030 * modules/mbsncasecmp: New file.
2031 * lib/mbsncasecmp.c: New file.
2032 * lib/string_.h (mbsncasecmp): New declaration.
2033 * m4/mbsncasecmp.m4: New file.
2034 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
2036 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
2037 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
2039 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
2041 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
2042 Verify that it doesn't overlap with our flags.
2043 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
2044 do not have the desired effect in multibyte locales; instead, use
2046 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
2047 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
2048 we don't require GNU fnmatch ourselves (if our users require it, they
2049 should do so explicitly).
2051 Fix regex code so it doesn't rely on strcasecmp.
2052 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
2053 Otherwise, include gnulib's langinfo.h.
2054 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
2055 undesirable behavior in non-C locales. Instead, rely on localecharset.
2056 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
2057 * modules/regex (FILES): Remove m4/codeset.m4.
2058 (Depends-on): Add localcharset. Remove strcase.
2060 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2062 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
2063 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
2065 2007-02-13 Bruno Haible <bruno@clisp.org>
2067 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
2068 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2070 2007-02-12 Bruno Haible <bruno@clisp.org>
2072 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
2073 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
2074 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
2075 time warning rather than a link error.
2077 2007-02-12 Bruno Haible <bruno@clisp.org>
2079 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
2080 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
2081 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2083 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
2085 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
2088 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
2090 New module 'time', so that apps can include <time.h> as per
2091 POSIX and GNU instead of separate include files like time_r.h
2092 and timegm.h. This implementation tries out a simpler approach
2093 for replacing decls in standard include files (as compared to
2094 the string module), somewhat as an experiment.
2096 * config/srclist.txt: Comment out mktime.c for now.
2097 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
2098 since it doesn't apply any more. Use generic wording instead.
2099 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
2101 * lib/time_.h, m4/time_h.m4, modules/time: New files.
2102 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
2103 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
2104 Don't include <sys/types.h>; no longer needed since we assume C89.
2105 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
2106 * lib/strftime.c: Likewise.
2107 * lib/time_r.c: Likewise.
2108 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
2109 * lib/nanosleep.c: Include <time.h> first, to check interface.
2110 * lib/strptime.c: Likewise.
2111 * lib/time_r.c: Likewise.
2112 * lib/timegm.c: Likewise.
2113 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
2115 * lib/timegm.c: Don't include timegm.h; no longer needed.
2116 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
2117 time.h now handles any problems in that area.
2118 (struct timespec, nanosleep): Remove; time.h now arranges for these.
2119 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
2120 that time.h defines struct timespec.
2121 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
2122 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
2124 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
2125 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
2126 needed. Set REPLACE_LOCALTIME.
2127 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
2128 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
2129 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
2130 nanosleep; time_h.m4 now does that. Don't require
2131 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
2132 module handles this now.
2133 * modules/getdate (Depends-on): Remove timespec. Add time.
2134 * modules/nanosleep (Depends-on): Likewise.
2135 * modules/stat-time (Depends-on): Likewise.
2136 * modules/nanosleep (Include): Include time.h, not timespec.h.
2137 * modules/strptime (Files): Remove lib/strptime.h.
2138 (Depends-on): Add extensions, time.
2139 (Include): Include time.h, not strptime.h.
2140 * modules/time_r (Files): Remove lib/time_r.h.
2141 (Depends-on): Add time.
2142 (Include): Include time.h, not time_r.h.
2143 * modules/timegm: Likewise.
2144 * modules/timespec (Description): Now does timespec-related decls
2145 of our own, instead of struct timespec itself.
2146 (Depends-on): Add time; remove extensions.
2147 (Maintainer): Add self.
2148 * modules/utimecmp (Depends-on): Add time; remove timespec.
2149 * modules/utimens (Depends-on): Likewise.
2150 * modules/xnanosleep (Depends-on): Likewise.
2152 2007-02-11 Bruno Haible <bruno@clisp.org>
2154 * lib/c-strstr.c: Include allocsa.h.
2155 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
2156 * lib/c-strcasestr.c: Include allocsa.h.
2157 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
2158 * lib/strcasestr.c: Include allocsa.h.
2159 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
2160 * lib/mbsstr.c: Include allocsa.h.
2161 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
2162 allocsa/freesa instead of malloc/free.
2163 * lib/mbscasestr.c: Include allocsa.h.
2164 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
2165 allocsa/freesa instead of malloc/free.
2166 * modules/c-strstr (Depends-on): Add allocsa.
2167 * modules/c-strcasestr (Depends-on): Likewise.
2168 * modules/strcasestr (Depends-on): Likewise.
2169 * modules/mbsstr (Depends-on): Likewise.
2170 * modules/mbscasestr (Depends-on): Likewise.
2172 2007-02-11 Bruno Haible <bruno@clisp.org>
2174 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
2176 * modules/mbsspn-tests: New file.
2177 * tests/test-mbsspn.sh: New file.
2178 * tests/test-mbsspn.c: New file.
2180 2007-02-11 Bruno Haible <bruno@clisp.org>
2182 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
2184 * modules/mbspbrk-tests: New file.
2185 * tests/test-mbspbrk.sh: New file.
2186 * tests/test-mbspbrk.c: New file.
2188 2007-02-11 Bruno Haible <bruno@clisp.org>
2190 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
2193 * modules/mbscspn-tests: New file.
2194 * tests/test-mbscspn.sh: New file.
2195 * tests/test-mbscspn.c: New file.
2197 2007-02-11 Bruno Haible <bruno@clisp.org>
2199 * modules/mbscasecmp-tests: New file.
2200 * tests/test-mbscasecmp.sh: New file.
2201 * tests/test-mbscasecmp.c: New file.
2203 2007-02-11 Bruno Haible <bruno@clisp.org>
2205 Ensure O(n) worst-case complexity of mbscasestr.
2206 * lib/mbscasestr.c: Include stdbool.h.
2207 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
2209 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
2210 the bookkeeping indicates that it's worth it.
2211 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
2213 * modules/mbscasestr-tests: New file.
2214 * tests/test-mbscasestr1.c: New file.
2215 * tests/test-mbscasestr2.sh: New file.
2216 * tests/test-mbscasestr2.c: New file.
2217 * tests/test-mbscasestr3.sh: New file.
2218 * tests/test-mbscasestr3.c: New file.
2219 * tests/test-mbscasestr4.sh: New file.
2220 * tests/test-mbscasestr4.c: New file.
2221 * m4/locale-tr.m4: New file.
2223 2007-02-11 Bruno Haible <bruno@clisp.org>
2225 Ensure O(n) worst-case complexity of mbsstr.
2226 * lib/mbsstr.c: Include stdbool.h.
2227 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
2229 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
2230 bookkeeping indicates that it's worth it.
2231 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
2233 * modules/mbsstr-tests: New file.
2234 * tests/test-mbsstr1.c: New file.
2235 * tests/test-mbsstr2.sh: New file.
2236 * tests/test-mbsstr2.c: New file.
2237 * tests/test-mbsstr3.sh: New file.
2238 * tests/test-mbsstr3.c: New file.
2239 * m4/locale-fr.m4: New file.
2241 2007-02-11 Bruno Haible <bruno@clisp.org>
2243 * lib/mbsrchr.c (mbsrchr): Fix bug.
2245 * modules/mbsrchr-tests: New file.
2246 * tests/test-mbsrchr.sh: New file.
2247 * tests/test-mbsrchr.c: New file.
2249 2007-02-11 Bruno Haible <bruno@clisp.org>
2251 * lib/mbschr.c (mbschr): Fix bug.
2253 * modules/mbschr-tests: New file.
2254 * tests/test-mbschr.sh: New file.
2255 * tests/test-mbschr.c: New file.
2256 * m4/locale-zh.m4: New file.
2258 2007-02-11 Bruno Haible <bruno@clisp.org>
2260 Support for copying multibyte string iterators.
2261 * lib/mbiter.h: Include <string.h>.
2262 (mbiter_multi_copy): New function.
2263 (mbi_copy): New macro.
2264 * lib/mbuiter.h: Include <string.h>.
2265 (mbuiter_multi_copy): New function.
2266 (mbui_copy): New macro.
2268 2007-02-11 Bruno Haible <bruno@clisp.org>
2271 * modules/mbslen: New file.
2272 * lib/mbslen.c: New file.
2273 * lib/string_.h (mbslen): New declaration.
2274 * m4/mbslen.m4: New file.
2275 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
2277 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
2278 * MODULES.html.sh (Internationalization functions): Add mbslen.
2280 2007-02-11 Bruno Haible <bruno@clisp.org>
2282 Ensure O(n) worst-case complexity of strcasestr substitute.
2283 * lib/strcasestr.c: Include stdbool.h.
2284 (knuth_morris_pratt): New function.
2285 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
2286 bookkeeping indicates that it's worth it.
2287 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
2289 * modules/strcasestr-tests: New file.
2290 * tests/test-strcasestr.c: New file.
2292 2007-02-11 Bruno Haible <bruno@clisp.org>
2294 Ensure O(n) worst-case complexity of c_strcasestr.
2295 * lib/c-strcasestr.c: Include stdbool.h, string.h.
2296 (knuth_morris_pratt): New function.
2297 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
2298 the bookkeeping indicates that it's worth it.
2299 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
2301 * modules/c-strcasestr-tests: New file.
2302 * tests/test-c-strcasestr.c: New file.
2304 2007-02-11 Bruno Haible <bruno@clisp.org>
2306 Ensure O(n) worst-case complexity of c_strstr.
2307 * lib/c-strstr.c: Include stdbool.h, string.h.
2308 (knuth_morris_pratt): New function.
2309 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
2310 bookkeeping indicates that it's worth it.
2311 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
2313 * lib/c-strstr.c: Complete rewrite for maintainability.
2315 * modules/c-strstr-tests: New file.
2316 * tests/test-c-strstr.c: New file.
2318 2007-02-11 Bruno Haible <bruno@clisp.org>
2320 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
2321 5.2.1 and earlier, whereby \055 was treated just like the range
2323 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
2325 2007-02-08 Bruno Haible <bruno@clisp.org>
2327 * modules/regex (Depends-on): Add stdbool.
2328 Reported by Dalibor Topic <robilad@kaffe.org>.
2330 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
2332 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
2333 Prefer returning from main to exiting from it.
2334 Remove unnecessary parens after sizeof.
2336 2007-02-05 Bruno Haible <bruno@clisp.org>
2339 * modules/mbssep: New file.
2340 * lib/mbssep.c: New file.
2341 * lib/string_.h (strsep): Add a conditional link warning.
2342 (mbssep): New declaration.
2343 * m4/mbssep.m4: New file.
2344 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
2346 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
2347 * MODULES.html.sh (Internationalization functions): Add mbssep.
2349 2007-02-05 Bruno Haible <bruno@clisp.org>
2351 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
2352 Optimize search in case of 1 delimiter.
2354 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
2356 * lib/acl.h: Include sys/types.h before sys/acl.h.
2358 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
2360 Merge upstream fix for glibc bugzilla #3957:
2362 2007-02-05 Jakub Jelinek <jakub@redhat.com>
2364 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
2365 bit for RE_HAT_LISTS_NOT_NEWLINE.
2366 (build_charclass_op): Remove bogus comment.
2368 2007-02-05 Simon Josefsson <simon@josefsson.org>
2370 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
2372 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
2374 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
2375 * lib/memmem.c [!defined _LIBC]: Include config.h.
2377 2007-02-04 Bruno Haible <bruno@clisp.org>
2379 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
2382 2007-02-04 Bruno Haible <bruno@clisp.org>
2384 New module mbstok_r.
2385 * modules/mbstok_r: New file.
2386 * lib/mbstok_r.c: New file.
2387 * lib/string_.h (strtok_r): Change argument names to match the
2388 comments. Add a conditional link warning.
2389 (mbstok_r): New declaration.
2390 * m4/mbstok_r.m4: New file.
2391 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
2393 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
2394 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
2396 2007-02-04 Bruno Haible <bruno@clisp.org>
2399 * modules/mbsspn: New file.
2400 * lib/mbsspn.c: New file.
2401 * lib/string_.h (strspn): Add a conditional link warning.
2402 (mbsspn): New declaration.
2403 * m4/mbsspn.m4: New file.
2404 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
2406 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
2407 * MODULES.html.sh (Internationalization functions): Add mbsspn.
2409 2007-02-04 Bruno Haible <bruno@clisp.org>
2412 * modules/mbspbrk: New file.
2413 * lib/mbspbrk.c: New file.
2414 * lib/string_.h (strpbrk): Add a conditional link warning.
2415 (mbspbrk): New declaration.
2416 * m4/mbspbrk.m4: New file.
2417 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
2419 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
2420 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
2422 2007-02-04 Bruno Haible <bruno@clisp.org>
2425 * modules/mbscspn: New file.
2426 * lib/mbscspn.c: New file.
2427 * lib/string_.h (strcspn): Add a conditional link warning.
2428 (mbscspn): New declaration.
2429 * m4/mbscspn.m4: New file.
2430 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
2432 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
2433 * MODULES.html.sh (Internationalization functions): Add mbscspn.
2435 2007-02-04 Bruno Haible <bruno@clisp.org>
2437 New module mbscasestr, reduced goal of strcasestr.
2438 * modules/mbscasestr: New file.
2439 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
2440 (mbscasestr): Renamed from strcasestr.
2441 * lib/strcasestr.c: Don't include mbuiter.h.
2442 (strcasestr): Remove support for multibyte locales.
2443 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
2444 Change the conditional link warning.
2445 (mbscasestr): New declaration.
2446 * m4/mbscasestr.m4: New file.
2447 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
2448 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
2450 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
2451 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2452 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
2453 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
2454 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
2455 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
2456 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
2457 (Depends-on): Remove mbuiter.
2458 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
2460 2007-02-04 Bruno Haible <bruno@clisp.org>
2462 Simplify handling of strncasecmp.
2463 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
2464 the conditional link warning.
2465 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2466 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
2467 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
2468 * modules/strcase (configure.ac): Don't invoke
2469 gl_STRING_MODULE_INDICATOR.
2470 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
2472 2007-02-04 Bruno Haible <bruno@clisp.org>
2474 New module mbscasecmp, reduced goal of strcasecmp.
2475 * modules/mbscasecmp: New file.
2476 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
2477 (mbscasecmp): Renamed from strcasecmp.
2478 * lib/strcasecmp.c: Don't include mbuiter.h.
2479 (strcasecmp): Remove support for multibyte locales.
2480 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
2481 Change the conditional link warning.
2482 (mbscasecmp): New declaration.
2483 * m4/mbscasecmp.m4: New file.
2484 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
2485 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
2487 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
2488 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
2490 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
2491 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
2492 * modules/strcase (Files): Remove m4/mbrtowc.m4.
2493 (Depends-on): Remove mbuiter.
2494 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
2496 2007-02-04 Bruno Haible <bruno@clisp.org>
2498 New module mbsstr. Remove module strstr.
2499 * modules/mbsstr: New file.
2500 * modules/strstr: Remove file.
2501 * lib/mbsstr.c: Renamed from lib/strstr.c.
2502 (mbsstr): Renamed from strstr.
2503 * lib/string_.h (strstr): Remove declaration. Change the conditional
2505 (mbsstr): New declaration.
2506 * m4/mbsstr.m4: New file.
2507 * m4/strstr.m4: Remove file.
2508 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
2510 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
2511 Don't initialize GNULIB_STRSTR.
2512 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
2513 substitute GNULIB_STRSTR and REPLACE_STRSTR.
2514 * MODULES.html.sh (Internationalization functions): Add mbsstr.
2515 (Support for systems lacking ANSI C 89): Remove strstr.
2517 2007-02-04 Bruno Haible <bruno@clisp.org>
2520 * modules/mbsrchr: New file.
2521 * lib/mbsrchr.c: New file.
2522 * lib/string_.h (strrchr): Add a conditional link warning.
2523 (mbsrchr): New declaration.
2524 * m4/mbsrchr.m4: New file.
2525 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
2527 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
2528 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
2530 2007-02-04 Bruno Haible <bruno@clisp.org>
2533 * modules/mbschr: New file.
2534 * lib/mbschr.c: New file.
2535 * lib/string_.h (strchr): Add a conditional link warning.
2536 (mbschr): New declaration.
2537 * m4/mbschr.m4: New file.
2538 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
2540 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
2541 * MODULES.html.sh (Internationalization functions): Add mbschr.
2543 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
2545 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
2547 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
2549 2007-02-04 Bruno Haible <bruno@clisp.org>
2551 New module description section 'configure.ac-early'.
2552 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
2553 (func_get_autoconf_early_snippet): New function.
2554 (func_import, func_create_testdir): Use it. Remove special cases for
2555 modules 'extensions' and 'lock'.
2556 * modules/extensions (configure.ac-early): Require
2557 gl_USE_SYSTEM_EXTENSIONS.
2558 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
2560 2007-02-04 Bruno Haible <bruno@clisp.org>
2562 Make use of gcj-4.3's -fsource and -ftarget option.
2563 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
2564 and if so try the options -fsource and -ftarget.
2565 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
2566 source_version, ftarget_option, target_version arguments.
2567 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
2568 (is_envjavac_oldgcj_14_14_usable): Renamed from
2569 is_envjavac_gcj_14_14_usable.
2570 (is_envjavac_oldgcj_14_13_usable): Renamed from
2571 is_envjavac_gcj_14_13_usable.
2572 (is_gcj_present): Update.
2573 (is_gcj_43, is_gcj43_usable): New functions.
2574 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
2575 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
2576 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
2577 try the options -fsource and -ftarget.
2579 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
2581 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
2582 checking code. Set N = ceil (1.5 * N) rather than to a slightly
2585 2007-02-03 Jim Meyering <jim@meyering.net>
2587 Give tools a better chance to allocate space for very large buffers.
2588 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
2590 Make pwd and readlink work also when run with an unreadable parent dir
2591 on systems with openat support.
2592 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
2593 provided getcwd function, even when we have openat support.
2594 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
2596 2007-02-02 Bruno Haible <bruno@clisp.org>
2598 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
2599 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
2600 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
2601 portability problems if one of these functions is only used on specific
2603 Reported by Paul Eggert.
2605 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
2607 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
2608 is causing more trouble than it's curing.
2609 * lib/regex_internal.h (__mempcpy): Remove.
2610 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
2611 (and make the code a tad smaller to boot).
2612 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
2614 2007-02-02 Jim Meyering <jim@meyering.net>
2616 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
2617 section, not in the Makefile.am: one.
2619 2007-02-02 Eric Blake <ebb9@byu.net>
2621 * lib/strchrnul.c: Always include config.h first.
2623 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
2624 gnulib strstr is not necessary here.
2626 2007-02-02 Simon Josefsson <simon@josefsson.org>
2628 * m4/socklen.m4: Fix typo.
2630 2007-02-02 Eric Blake <ebb9@byu.net>
2632 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
2633 * modules/netinet_in (Makefile.am): Likewise.
2635 2007-02-01 Bruno Haible <bruno@clisp.org>
2637 * lib/string_.h (GL_LINK_WARNING): New macro.
2638 (strcasecmp, strstr, strcasestr): If provided by the system,
2639 conditionally define as a macro that leads to a warning instead of to
2641 (strncasecmp): Conditionally define as a macro that leads to a warning.
2643 2007-02-01 Karl Berry <karl@gnu.org>
2645 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
2647 2007-02-01 Bruno Haible <bruno@clisp.org>
2649 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
2652 2007-02-01 Eric Blake <ebb9@byu.net>
2654 * modules/regex (Depends-on): Revert dependence on mempcpy.
2655 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
2656 module's definition of mempcpy.
2657 Reported by Paul Eggert.
2659 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
2661 * lib/string_.h: If the gnulib module XYZ is not present, undefine
2662 the symbol XYZ before redefining it. This fixes a problem with
2663 programs that don't use XYZ, when compiled on systems that define
2664 XYZ to something else.
2666 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
2668 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
2669 occurs when "mkdir -m foo" creates a setgid directory that is (1)
2670 writeable to group or other and (2) is intended to have a special
2671 mode bit that is set or cleared. In such a case, the directory
2672 should be neither group- nor other-writeable until the special
2673 mode bits are right.
2675 2007-01-31 Eric Blake <ebb9@byu.net>
2677 * modules/mountlist (Depends-on): Add strstr.
2679 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
2681 * modules/string (Makefile.am): Remove redundant replacement.
2682 * modules/regex (Depends-on): Add mempcpy.
2684 2007-01-31 Bruno Haible <bruno@clisp.org>
2686 New module description field 'Link'.
2687 * gnulib-tool (func_usage): Document --extract-link-directive.
2688 (sed_extract_prog): Recognize 'Link' directive.
2689 (func_get_link_directive): New function.
2690 (func_import): Show summary of link directives.
2691 Handle --extract-link-directive option.
2692 * modules/acl (Link): New section.
2693 * modules/clock-time (Link): New section.
2694 * modules/euidaccess (Link): New section.
2695 * modules/gettext (Link): New section.
2696 * modules/iconv (Link): New section.
2697 * modules/lock (Link): New section.
2698 * modules/nanosleep (Link): New section.
2699 * modules/readline (Link): New section.
2701 2007-01-27 Bruno Haible <bruno@clisp.org>
2703 Enforce the use of gnulib modules for unportable <string.h> functions.
2704 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
2705 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
2706 (gl_HEADER_STRING_H_BODY): Require it.
2707 * lib/string_.h: If the gnulib module XYZ is not present, redefine
2708 the symbol XYZ to one that gives a link error.
2709 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
2710 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
2711 * modules/mempcpy (configure.ac): Likewise.
2712 * modules/memrchr (configure.ac): Likewise.
2713 * modules/stpcpy (configure.ac): Likewise.
2714 * modules/stpncpy (configure.ac): Likewise.
2715 * modules/strcase (configure.ac): Likewise.
2716 * modules/strcasestr (configure.ac): Likewise.
2717 * modules/strchrnul (configure.ac): Likewise.
2718 * modules/strdup (configure.ac): Likewise.
2719 * modules/strndup (configure.ac): Likewise.
2720 * modules/strnlen (configure.ac): Likewise.
2721 * modules/strpbrk (configure.ac): Likewise.
2722 * modules/strsep (configure.ac): Likewise.
2723 * modules/strstr (configure.ac): Likewise.
2724 * modules/strtok_r (configure.ac): Likewise.
2726 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
2728 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
2730 2007-01-30 Jim Meyering <jim@meyering.net>
2732 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
2734 2007-01-29 Bruno Haible <bruno@clisp.org>
2736 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
2737 * lib/execute.c: Likewise.
2738 * lib/pipe.c: Likewise.
2739 * lib/printf-args.h: Likewise.
2740 * lib/printf-args.c: Likewise.
2741 * lib/printf-parse.c: Likewise.
2742 * lib/vasnprintf.c: Likewise.
2744 2007-01-29 Eric Blake <ebb9@byu.net>
2746 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
2749 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
2751 * lib/strptime.h (strptime): Use 'restrict' for args where
2752 POSIX requires this.
2753 * lib/strptime.c (strptime): Likewise.
2754 Change license notice from LGPL to GPL, since gnulib-tool will
2755 change this as needed.
2756 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
2758 Include "strptime.h" first, to check interface.
2759 Do not #undef _LIBC and _NL_CURRENT.
2760 Do not include <stdlib.h>; no longer needed.
2761 Include "time_r.h" and declare ptime_locale_status
2762 only if _LIBC is not defined.
2763 (__P): Remove unused macro.
2764 (match_string): Bring back glibc version, but use it only if _LIBC
2766 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
2767 Remove unnecessary assertion and abort() call.
2768 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
2769 * m4/strptime.m4: Fix serial number comment.
2770 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
2771 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
2772 (Depends-on): Add time_r.
2774 2007-01-29 Bruno Haible <bruno@clisp.org>
2776 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
2778 * modules/strptime (Depends-on): Add stdbool.
2779 * lib/strptime.h: Include <time.h> always. Add comments.
2781 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
2783 * modules/strptime: New file.
2784 * lib/strptime.h: New file.
2785 * lib/strptime.c: New file.
2786 * m4/strptime.m4: New file.
2788 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
2790 * MODULES.html.sh: New module mpsort.
2791 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
2793 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
2794 a circularity problem with HP-UX ia64 reported by Bob Proulx in
2795 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
2797 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
2799 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
2801 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
2802 the parameter matches the prototype.
2804 2007-01-28 Jim Meyering <jim@meyering.net>
2806 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
2807 sys/time.h here, reverting that part of the previous patch:
2808 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
2810 2007-01-28 Bruno Haible <bruno@clisp.org>
2812 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
2813 value of $(SYS_TIME_H).
2814 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
2815 remove it conditionally, too. [added by Jim Meyering]
2816 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
2817 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
2818 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
2819 GETTIMEOFDAY_REPLACEMENT to 1.
2821 2007-01-28 Bruno Haible <bruno@clisp.org>
2823 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
2824 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
2825 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
2826 Set UNISTD_H instead of UNISTD_H2.
2827 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
2829 2007-01-28 Bruno Haible <bruno@clisp.org>
2831 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
2832 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
2834 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2836 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
2837 (func_create_testdir): Ensure C locale for `grep' and `tr'
2839 (func_create_megatestdir): Avoid one `grep'. Fix bug in
2840 ACLOCAL_AMFLAGS parsing state machine.
2842 2007-01-27 Bruno Haible <bruno@clisp.org>
2844 * modules/unistr/base: Update.
2846 2007-01-27 Bruno Haible <bruno@clisp.org>
2848 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
2849 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
2850 * modules/unistr/u32-mbtouc-unsafe: Renamed from
2851 modules/unistr/u32-mbtouc.
2852 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
2853 * lib/unistr.h: Update.
2854 * lib/linebreak.c: Update.
2855 * modules/unistr/u32-mbtouc: Renamed from
2856 modules/unistr/u32-mbtouc-safe.
2857 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
2858 * lib/unistr.h: Update.
2859 * lib/unistr/u32-to-u8.c: Update.
2860 * lib/unistr/u32-to-u16.c: Update.
2862 2007-01-27 Bruno Haible <bruno@clisp.org>
2864 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
2865 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
2866 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
2867 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
2868 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
2869 * modules/unistr/u16-mbtouc-unsafe: Renamed from
2870 modules/unistr/u16-mbtouc.
2871 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
2872 * lib/unistr.h: Update.
2873 * lib/linebreak.c: Update.
2874 * modules/linebreak: Update.
2875 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
2876 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
2877 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
2878 * modules/unistr/u16-mbtouc: Renamed from
2879 modules/unistr/u16-mbtouc-safe.
2880 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
2881 * lib/unistr.h: Update.
2882 * lib/unistr/u16-to-u8.c: Update.
2883 * modules/unistr/u16-to-u8: Update.
2884 * lib/unistr/u16-to-u32.c: Update.
2885 * modules/unistr/u16-to-u32: Update.
2887 2007-01-27 Bruno Haible <bruno@clisp.org>
2889 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
2890 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
2891 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
2892 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
2893 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
2894 * modules/unistr/u8-mbtouc-unsafe: Renamed from
2895 modules/unistr/u8-mbtouc.
2896 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
2897 * lib/unistr.h: Update.
2898 * lib/striconveh.c: Update.
2899 * modules/striconveh: Update.
2900 * lib/linebreak.c: Update.
2901 * modules/linebreak: Update.
2902 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
2903 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
2904 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
2905 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
2906 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
2907 * lib/unistr.h: Update.
2908 * lib/striconveh.c: Update.
2909 * modules/striconveh: Update.
2910 * lib/unistr/u8-to-u16.c: Update.
2911 * modules/unistr/u8-to-u16: Update.
2912 * lib/unistr/u8-to-u32.c: Update.
2913 * modules/unistr/u8-to-u32: Update.
2915 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2918 * lib/argz.c: Do not include strings.h nor memory.h, include
2919 string.h unconditionally. Patch by Simon Josefsson.
2921 2007-01-27 Bruno Haible <bruno@clisp.org>
2923 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
2924 from gl_HEADER_STRING_H_BODY.
2925 (gl_HEADER_STRING_H_BODY): Require it.
2926 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
2927 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
2928 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
2929 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
2930 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2931 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
2932 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2933 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
2934 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
2935 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
2936 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
2937 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
2938 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
2939 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2940 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
2942 2007-01-27 Bruno Haible <bruno@clisp.org>
2944 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
2945 check_PROGRAMS into noinst_PROGRAMS.
2946 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
2947 check_PROGRAMS in this case.
2948 (func_import): Set for_test to false.
2949 (func_create_testdir): Set for_test to true.
2951 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2952 Bruno Haible <bruno@clisp.org>
2954 * modules/strcasestr (Files): Remove lib/strcasestr.h.
2955 (Depends-on): Add string.
2956 (Includes): Use <string.h> instead of strcasestr.h.
2957 * modules/string (Makefile.am): Also substitute the value of
2959 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
2960 assume strcasestr is declared in <string.h> not <strings.h>. Also
2961 set REPLACE_STRCASESTR.
2962 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
2964 * lib/strcasestr.h: Remove file.
2965 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
2966 * lib/string_.h (strcasestr): New declaration.
2968 2007-01-27 Bruno Haible <bruno@clisp.org>
2970 * lib/string_.h: Use 'extern'.
2972 2007-01-27 Jim Meyering <jim@meyering.net>
2974 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
2975 of set-but-not-used local, "q".
2977 * lib/mempcpy.c: Include <config.h> before <string.h>.
2978 This fixes a compilation error on HP-UX, due to the system's
2979 "restrict"-using mempcpy prototype.
2981 2007-01-26 Bruno Haible <bruno@clisp.org>
2984 * lib/javacomp.c: Include c-strstr.h.
2985 (is_envjavac_gcj): Use c_strstr instead of strstr.
2986 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
2988 2007-01-26 Bruno Haible <bruno@clisp.org>
2990 * MODULES.html.sh (Unicode string functions): Add the new modules.
2992 * modules/uniconv/u32-strconv-to-locale: New file.
2993 * lib/uniconv/u32-strconv-to-locale.c: New file.
2995 * modules/uniconv/u16-strconv-to-locale: New file.
2996 * lib/uniconv/u16-strconv-to-locale.c: New file.
2998 * modules/uniconv/u8-strconv-to-locale: New file.
2999 * lib/uniconv/u8-strconv-to-locale.c: New file.
3001 * modules/uniconv/u32-strconv-from-locale: New file.
3002 * lib/uniconv/u32-strconv-from-locale.c: New file.
3004 * modules/uniconv/u16-strconv-from-locale: New file.
3005 * lib/uniconv/u16-strconv-from-locale.c: New file.
3007 * modules/uniconv/u8-strconv-from-locale: New file.
3008 * lib/uniconv/u8-strconv-from-locale.c: New file.
3010 * modules/uniconv/u32-strconv-to-enc: New file.
3011 * lib/uniconv/u32-strconv-to-enc.c: New file.
3012 * modules/uniconv/u32-strconv-to-enc-tests: New file.
3013 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
3015 * modules/uniconv/u16-strconv-to-enc: New file.
3016 * lib/uniconv/u16-strconv-to-enc.c: New file.
3017 * lib/uniconv/u-strconv-to-enc.h: New file.
3018 * modules/uniconv/u16-strconv-to-enc-tests: New file.
3019 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
3021 * modules/uniconv/u8-strconv-to-enc: New file.
3022 * lib/uniconv/u8-strconv-to-enc.c: New file.
3023 * modules/uniconv/u8-strconv-to-enc-tests: New file.
3024 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
3026 * modules/uniconv/u32-strconv-from-enc: New file.
3027 * lib/uniconv/u32-strconv-from-enc.c: New file.
3028 * modules/uniconv/u32-strconv-from-enc-tests: New file.
3029 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
3031 * modules/uniconv/u16-strconv-from-enc: New file.
3032 * lib/uniconv/u16-strconv-from-enc.c: New file.
3033 * modules/uniconv/u16-strconv-from-enc-tests: New file.
3034 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
3036 * modules/uniconv/u8-strconv-from-enc: New file.
3037 * lib/uniconv/u8-strconv-from-enc.c: New file.
3038 * lib/uniconv/u-strconv-from-enc.h: New file.
3039 * modules/uniconv/u8-strconv-from-enc-tests: New file.
3040 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
3042 * modules/uniconv/u32-conv-from-enc: New file.
3043 * lib/uniconv/u32-conv-from-enc.c: New file.
3044 * modules/uniconv/u32-conv-from-enc-tests: New file.
3045 * tests/uniconv/test-u32-conv-from-enc.c: New file.
3047 * modules/uniconv/u16-conv-from-enc: New file.
3048 * lib/uniconv/u16-conv-from-enc.c: New file.
3049 * lib/uniconv/u-conv-from-enc.h: New file.
3050 * modules/uniconv/u16-conv-from-enc-tests: New file.
3051 * tests/uniconv/test-u16-conv-from-enc.c: New file.
3053 * modules/uniconv/u8-conv-from-enc: New file.
3054 * lib/uniconv/u8-conv-from-enc.c: New file.
3055 * modules/uniconv/u8-conv-from-enc-tests: New file.
3056 * tests/uniconv/test-u8-conv-from-enc.c: New file.
3058 * modules/uniconv/base: New file.
3059 * lib/uniconv.h: New file.
3061 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
3063 * doc/gnulib-tool.texi (Initial import): Update to match current
3064 behavior with strdup module.
3065 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
3066 * lib/memmem.h: Remove; all uses removed. This is now done
3068 * lib/mempcpy.h: Likewise.
3069 * lib/memrchr.h: Likewise.
3070 * lib/stpcpy.h: Likewise.
3071 * lib/stpncpy.h: Likewise.
3072 * lib/strcase.h: Likewise.
3073 * lib/strchrnul.h: Likewise.
3074 * lib/strdup.h: Likewise.
3075 * lib/strndup.h: Likewise.
3076 * lib/strnlen.h: Likewise.
3077 * lib/strpbrk.h: Likewise.
3078 * lib/strsep.h: Likewise.
3079 * lib/strstr.h: Likewise.
3080 * lib/strtok_r.h: Likewise.
3081 * lib/string_.h: New file.
3082 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
3083 Rely on <string.h> instead.
3084 * lib/canon-host.c: Likewise.
3085 * lib/chdir-long.c: Likewise.
3086 * lib/concatpath.c: Likewise.
3087 * lib/exclude.c: Likewise.
3088 * lib/fchdir.c: Likewise.
3089 * lib/getaddrinfo.c: Likewise.
3090 * lib/getcwd.c: Likewise.
3091 * lib/getsubopt.c: Likewise.
3092 * lib/glob.c: Likewise.
3093 * lib/hard-locale.c: Likewise.
3094 * lib/iconvme.c: Likewise.
3095 * lib/javacomp.c: Likewise.
3096 * lib/mempcpy.c: Likewise.
3097 * lib/memrchr.c: Likewise.
3098 * lib/regex_internal.h: Likewise.
3099 * lib/stpncpy.c: Likewise.
3100 * lib/strcasecmp.c: Likewise.
3101 * lib/strchrnul.c: Likewise.
3102 * lib/strdup.c: Likewise.
3103 * lib/striconv.c: Likewise.
3104 * lib/striconveh.c: Likewise.
3105 * lib/striconveha.c: Likewise.
3106 * lib/strncasecmp.c: Likewise.
3107 * lib/strndup.c: Likewise.
3108 * lib/strnlen.c: Likewise.
3109 * lib/strsep.c: Likewise.
3110 * lib/strstr.c: Likewise.
3111 * lib/strtok_r.c: Likewise.
3112 * lib/userspec.c: Likewise.
3113 * lib/w32spawn.h: Likewise.
3114 * lib/xstrndup.c: Likewise.
3115 * lib/mountlist.c (strstr): Remove decl.
3116 * m4/string_h.m4: New file.
3117 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
3118 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
3119 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
3120 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
3121 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
3122 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
3123 Set REPLACE_STRCASECMP if necessary.
3124 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
3125 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
3126 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
3127 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
3128 HAVE_DECL_STRDUP if necessary.
3129 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
3130 since gl_FUNC_STRNDUP does that now.
3131 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
3132 Check for decl here...
3133 (gl_PREREQ_STRNLEN): ... not here.
3134 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
3135 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
3136 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
3137 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
3139 * modules/string: New file.
3140 * modules/memmem (Files): Remove special-purpose include file.
3141 (Depends-on): Add string.
3142 (Include): Include <string.h>, not the removed file.
3143 * modules/mempcpy: Likewise.
3144 * modules/memrchr: Likewise.
3145 * modules/stpcpy: Likewise.
3146 * modules/stpncpy: Likewise.
3147 * modules/strcase: Likewise.
3148 * modules/strchrnul: Likewise.
3149 * modules/strdup: Likewise.
3150 * modules/strndup: Likewise.
3151 * modules/strnlen: Likewise.
3152 * modules/strpbrk: Likewise.
3153 * modules/strsep: Likewise.
3154 * modules/strstr: Likewise.
3155 * modules/strtok_r: Likewise.
3156 * tests/test-dirname.c: Don't include "strdup.h", since
3157 <string.h> now suffices.
3158 * tests/test-memmem.c: Don't include "memmem.h", since
3159 <string.h> now suffices.
3161 2007-01-25 Bruno Haible <bruno@clisp.org>
3163 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
3166 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
3167 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
3168 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
3169 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
3171 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
3172 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
3173 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
3174 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
3175 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
3176 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
3178 2007-01-24 Bruno Haible <bruno@clisp.org>
3180 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
3181 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
3182 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
3183 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
3185 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
3186 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
3187 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
3188 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
3189 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
3190 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
3192 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
3194 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
3195 Reported by Ralf Wildenhues.
3197 2007-01-24 Bruno Haible <bruno@clisp.org>
3199 Drop AC_REQUIRE calls that are redundant with the module dependencies.
3200 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
3202 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
3203 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
3204 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
3206 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
3208 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
3209 Don't use 'exit'; just return from 'main'.
3210 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
3212 * lib/fnmatch_.h: Readjust white space and comments to match
3213 glibc, to avoid spurious diffs.
3215 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
3217 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
3218 2004-12-01 change by Jakub Jelinek, since this code won't compile
3219 if !LIBC. Problem reported by Bob Proulx.
3221 2007-01-23 Bruno Haible <bruno@clisp.org>
3223 * lib/striconveh.c: Include c-strcaseeq.h.
3224 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
3225 * modules/striconveh (Depends-on): Add c-strcaseeq.
3227 2007-01-23 Bruno Haible <bruno@clisp.org>
3229 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
3231 * modules/c-strcaseeq: New file.
3232 * lib/c-strcaseeq.h: New file.
3234 * modules/streq: New file.
3235 * lib/streq.h: New file.
3237 2007-01-23 Bruno Haible <bruno@clisp.org>
3239 * modules/striconveha-tests: New file.
3240 * tests/test-striconveha.c: New file.
3242 * lib/striconveha.h: Include <stdbool.h>.
3243 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
3244 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
3245 (mem_iconveha_notranslit): Renamed from mem_iconveha.
3246 (mem_iconveha): New function.
3247 (str_iconveha_notranslit): Renamed from str_iconveha.
3248 (str_iconveha): New function.
3249 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
3252 2007-01-23 Bruno Haible <bruno@clisp.org>
3254 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
3255 encodings without forgiving before trying any encoding with handler.
3256 (str_iconveha): Try all encodings without forgiving before trying any
3257 encoding with handler.
3259 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
3261 Import the following changes from libc.
3263 2005-10-14 Ulrich Drepper <drepper@redhat.com>
3265 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
3267 2004-12-01 Jakub Jelinek <jakub@redhat.com>
3269 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
3270 normal_bracket label.
3272 2004-09-01 Jakub Jelinek <jakub@redhat.com>
3275 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
3276 to normal_bracket after fetching the next character.
3278 2007-01-22 Bruno Haible <bruno@clisp.org>
3280 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
3282 * lib/striconveh.c (iconv_carefully_1): New function.
3283 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
3285 (str_cd_iconveh): Update.
3286 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
3287 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
3288 * tests/test-striconveh.c (MAGIC): New macro.
3289 (new_offsets): New function.
3290 (main): Test call with and without offsets.
3292 2007-01-22 Bruno Haible <bruno@clisp.org>
3294 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
3295 * modules/sys_select (Makefile.am): Likewise.
3296 * modules/sys_socket (Makefile.am): Likewise.
3297 * modules/sys_time (Makefile.am): Likewise.
3299 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
3301 * modules/gettimeofday (License): Change from GPL to LGPL, since
3302 gettimeofday is a library function.
3304 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3306 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
3308 2007-01-21 Bruno Haible <bruno@clisp.org>
3310 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
3312 2007-01-21 Bruno Haible <bruno@clisp.org>
3314 * modules/striconveha: New file.
3315 * lib/striconveha.h: New file.
3316 * lib/striconveha.c: New file.
3317 * MODULES.html.sh (Internationalization functions): Add striconveha.
3318 * lib/striconv.c (str_iconv): Optimize the case of an empty input
3320 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
3322 2007-01-21 Bruno Haible <bruno@clisp.org>
3324 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
3325 * lib/striconveh.c (str_iconveh): Likewise.
3327 2007-01-21 Bruno Haible <bruno@clisp.org>
3329 * lib/striconveh.h (mem_iconveh): New declaration.
3330 * lib/striconveh.c (mem_iconveh): New function.
3331 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
3333 2007-01-21 Bruno Haible <bruno@clisp.org>
3335 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
3337 * lib/striconveh.h (mem_cd_iconveh): Change specification.
3338 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
3339 original result buffer.
3340 (str_cd_iconveh): Update.
3341 * tests/test-striconveh.c (main): Update.
3343 * lib/striconv.h (mem_cd_iconv): Change specification.
3344 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
3346 (str_cd_iconv): Update.
3347 * tests/test-striconv.c (main): Update.
3349 2007-01-21 Bruno Haible <bruno@clisp.org>
3351 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
3353 2007-01-20 Jim Meyering <jim@meyering.net>
3355 * lib/userspec.c (parse_with_separator): If a user or group string
3356 starts with "+", skip the corresponding name-to-ID look-up, since
3357 such a look-up must fail: user and group names may not include "+".
3359 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
3361 * lib/poll.c: Include sys/time.h and time.h unconditionally,
3362 since we now assume the sys_time module.
3363 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
3364 check for sys/time.h; no longer needed.
3365 * modules/poll (Depends-on): Depend on sys_time.
3367 2007-01-18 Bruno Haible <bruno@clisp.org>
3369 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
3370 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
3372 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
3375 * tests/test-gettimeofday.c: Include <time.h>.
3376 (dummy): Remove variable.
3378 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
3379 gl_HEADER_SYS_TIME_H.
3380 (gl_HEADER_SYS_TIME_H): New macro.
3382 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
3383 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
3384 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
3385 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
3386 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
3387 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
3388 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
3389 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
3390 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
3391 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
3392 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
3394 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
3395 last change; it caused a compilation error when cross-compiling to
3398 2007-01-18 Jim Meyering <jim@meyering.net>
3400 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
3401 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
3402 than the race-prone "test -d sys || mkdir sys".
3403 (configure.ac): Use AC_PROG_MKDIR_P.
3404 * modules/sys_select: Likewise.
3405 * modules/sys_socket: Likewise.
3406 * modules/sys_time: Likewise.
3408 2007-01-18 Eric Blake <ebb9@byu.net>
3410 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
3411 replace gettimeofday.
3412 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
3413 name, to avoid infinite recursion.
3415 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
3417 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
3419 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
3420 assume timespec.h defines struct timeval.
3421 * lib/settime.c: Likewise.
3422 * lib/utimens.c: Likewise.
3423 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
3424 since we now assume the gettimeofday module.
3425 * lib/tempname.c (__gen_tempname): Likewise.
3426 * lib/gettimeofday.h: Remove.
3427 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
3428 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
3429 Include <time.h>, for 'time()'.
3430 (localtime_buffer_addr): Also use this workaround if
3431 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
3432 to simplify the uses. All uses changed.
3433 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
3434 that #undef is inside {}, and 'const' follows type name consistently.
3435 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
3436 (gettimeofday): Do not use the maximum possible value for
3437 tv->tv_usec, since that might break usages other than ls.c.
3438 Instead, we'll leave ls.c alone. This undoes today's patch
3439 by Bruno. Add a compile-time warning for 1s-clock resolution;
3440 we've never observed the problem but might as well keep the
3442 * lib/nanosleep.c: Include timespec.h first, for interface check.
3443 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
3444 now assume the sys_time module.
3445 * lib/tempname.c: Likewise.
3446 * lib/timespec.h: Likewise.
3447 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
3449 * lib/strftime.c: Likewise.
3450 * lib/timespec.h: Likewise.
3451 * lib/posixtm.c: Include posixtm.h first, for interface check.
3452 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
3453 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
3454 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
3455 * lib/sys_time_.h: New file.
3456 * lib/timespec.h (struct timespec): Use long int, not long.
3457 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
3458 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
3459 Remove obsolescent call to AC_HEADER_TIME.
3460 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
3461 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
3462 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
3463 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
3465 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
3466 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
3467 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
3468 into the sys_time module. Check for gettimeofday just once.
3469 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
3470 for gettimeofday signature to just check the signature. Merely
3471 compile it, since linking doesn't test signature. Improve test for
3472 whether gettimeofday.o is actually needed.
3473 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
3474 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
3475 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
3476 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
3477 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
3478 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
3479 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
3480 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
3481 than worrying about sys/time.h.
3482 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
3483 Don't bother worrying about TIME_WITH_SYS_TIME.
3484 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
3485 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
3486 * m4/sys_time_h.m4: New file.
3487 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
3488 Don't include sys/time.h. Return from main rather than exiting.
3489 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
3491 * modules/gethrxtime (Depends-on): Add sys_time.
3492 * modules/gettime (Depends-on): Likewise.
3493 * modules/gettimeofday (Depends-on): Likewise.
3494 * modules/nanosleep (Depends-on): Likewise.
3495 * modules/settime (Depends-on): Likewise.
3496 * modules/tempname (Depends-on): Likewise.
3497 * modules/utimens (Depends-on): Likewise.
3498 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
3499 (Include:) Change back to <sys/time.h>.
3500 (Maintainer:) Add self.
3501 * modules/sys_time: New file.
3502 * modules/tempname (Depends-on): Add gettimeofday.
3503 * tests/test-gettimeofday.c: Include <sys/time.h>
3504 rather than gettimeofday.h.
3506 2007-01-17 Bruno Haible <bruno@clisp.org>
3508 * gnulib-tool (func_get_license): Revert last patch. Instead, let
3509 the license default to GPL.
3510 (func_create_testdir): Don't complain if a module is LGPL and its
3511 tests module depends on GPLed modules.
3513 2007-01-17 Bruno Haible <bruno@clisp.org>
3515 * lib/gettimeofday.c (gettimeofday): Add code for the case
3516 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
3517 maximum possible value for tv->tv_usec, rather than the minimum one.
3519 2005-10-08 Martin Lambers <marlam@marlam.de>
3520 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
3521 2007-01-16 Bruno Haible <bruno@clisp.org>
3523 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
3524 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
3525 gl_FUNC_GETTIMEOFDAY.
3526 (Include): Add gettimeofday.h.
3527 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
3528 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
3529 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
3530 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
3531 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
3532 * lib/gettimeofday.h: New file.
3533 * lib/gettimeofday.c: Include <sys/timeb.h>.
3534 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
3535 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
3536 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
3537 fall back on time().
3539 * tests/test-gettimeofday.c: New file.
3540 * modules/gettimeofday-tests: New file.
3542 2007-01-16 Eric Blake <ebb9@byu.net>
3544 * modules/fnmatch (Depends-on): Depend on wchar.
3545 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
3546 * m4/fnmatch.m4: Likewise.
3547 * modules/mbchar (Makefile.am): Assume <wchar.h>.
3548 * m4/mbchar.m4: Likewise.
3549 * modules/mbswidth (Depends-on): Depend on wchar.
3550 * lib/mbswidth.c: Assume <wchar.h>.
3551 * m4/mbswidth.m4: Likewise.
3552 * modules/quotearg (Depends-on): Depend on wchar.
3553 * lib/quotearg.c: Assume <wchar.h>.
3554 * m4/quotearg.m4: Likewise.
3555 * modules/regex (Depends-on): Depend on wchar.
3556 * lib/regex_internal.h: Assume <wchar.h>.
3557 * m4/regex.m4: Likewise.
3558 * modules/stdint (Depends-on): Depend on wchar.
3559 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
3560 * m4/stdint.m4: Likewise.
3561 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
3562 * modules/strftime (Depends-on): Depend on wchar.
3563 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
3564 * modules/strtol (Depends-on): Depend on wchar.
3565 * lib/strtol.c: Assume <wchar.h>.
3566 * modules/wcwidth (Depends-on): Depend on wchar.
3567 * lib/wcwidth.h: Assume <wchar.h>.
3568 * m4/wcwidth.m4: Likewise.
3570 2007-01-16 Bruno Haible <bruno@clisp.org>
3572 * modules/csharpexec-script: New, created from...
3573 * modules/csharpexec: ... this.
3575 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
3577 * modules/javaexec-script: New, created from...
3578 * modules/javaexec: ... this.
3580 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3582 * modules/poll (Dependencies): Add sys_select.
3584 2007-01-15 Jim Meyering <jim@meyering.net>
3586 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
3587 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
3588 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
3589 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
3591 2007-01-15 Bruno Haible <bruno@clisp.org>
3593 * modules/striconveh: New file.
3594 * lib/striconveh.h: New file.
3595 * lib/striconveh.c: New file.
3596 * MODULES.html.sh (Internationalization functions): Add striconveh.
3598 * modules/striconveh-tests: New file.
3599 * tests/test-striconveh.c: New file.
3601 2007-01-15 Bruno Haible <bruno@clisp.org>
3603 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
3604 not from GNU libiconv or GNU libc.
3606 2007-01-15 Bruno Haible <bruno@clisp.org>
3608 * doc/gnulib-intro.texi (Copyright): Explain the different license
3609 terms for module descriptions, autoconf macros, tests, documentation.
3611 2007-01-14 Bruno Haible <bruno@clisp.org>
3613 * modules/striconv-tests: New file.
3614 * tests/test-striconv.c: New file.
3616 2007-01-14 Bruno Haible <bruno@clisp.org>
3618 * modules/iconv-tests: New file.
3619 * tests/test-iconv.c: New file.
3621 2007-01-14 Bruno Haible <bruno@clisp.org>
3623 * gnulib-tool (func_get_license): For test modules, use the license of
3626 2007-01-14 Bruno Haible <bruno@clisp.org>
3628 * modules/iconv (Include): Clarify that <iconv.h> can only be included
3629 if iconv is found to exist.
3631 2007-01-14 Bruno Haible <bruno@clisp.org>
3633 * modules/c-ctype-tests: New file.
3634 * tests/test-c-ctype.c: New file.
3636 2007-01-14 Bruno Haible <bruno@clisp.org>
3638 * modules/binary-io-tests: New file.
3639 * tests/test-binary-io.sh: New file.
3640 * tests/test-binary-io.c: New file.
3642 2007-01-14 Bruno Haible <bruno@clisp.org>
3644 * modules/array-oset-tests: New file.
3645 * tests/test-array_oset.c: New file.
3647 2007-01-14 Bruno Haible <bruno@clisp.org>
3649 * modules/array-list-tests: New file.
3650 * tests/test-array_list.c: New file.
3652 2007-01-14 Bruno Haible <bruno@clisp.org>
3654 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
3656 Reported by Simon Josefsson in
3657 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
3659 2007-01-14 Bruno Haible <bruno@clisp.org>
3661 * modules/allocsa-tests: New file.
3662 * tests/test-allocsa.c: New file.
3664 2007-01-14 Bruno Haible <bruno@clisp.org>
3666 * modules/fchdir (Depends-on): Add absolute-header.
3667 * modules/unistd (Depends-on): Likewise.
3669 2006-12-30 Bruno Haible <bruno@clisp.org>
3671 * modules/fchdir: New file.
3672 * modules/unistd (Files): Add lib/unistd_.h.
3673 (Makefile.am): Generate unistd.h from unistd_.h.
3674 * lib/fchdir.c: New file.
3675 * lib/dirent_.h: New file.
3676 * lib/unistd_.h: New file.
3677 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
3678 * m4/fchdir.m4: New file.
3679 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
3680 (gl_HEADER_UNISTD): Invoke it.
3681 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
3683 * lib/backupfile.c (opendir, closedir): Undefine.
3684 * lib/chown.c (open, close): Undefine.
3685 * lib/clean-temp.c (open, close): Undefine.
3686 * lib/copy-file.c (open, close): Undefine.
3687 * lib/execute.c (open, close): Undefine.
3688 * lib/fsusage.c (open, close): Undefine.
3689 * lib/gc-gnulib.c (open, close): Undefine.
3690 * lib/getcwd.c (opendir, closedir): Undefine.
3691 * lib/glob.c (opendir, closedir): Undefine.
3692 * lib/javacomp.c (open, close): Undefine.
3693 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
3694 * lib/openat-proc.c (open, close): Undefine.
3695 * lib/pagealign_alloc.c (open, close): Undefine.
3696 * lib/pipe.c (open, close): Undefine.
3697 * lib/progreloc.c (open, close): Undefine.
3698 * lib/savedir.c (opendir, closedir): Undefine.
3699 * lib/utime.c (open, close): Undefine.
3700 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
3702 2007-01-10 Bruno Haible <bruno@clisp.org>
3704 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
3706 2007-01-12 Eric Blake <ebb9@byu.net>
3708 Provide a robust <wchar.h>. Further simplifications are now
3709 possible in other modules, but not included here.
3710 * modules/wchar: New module.
3711 * m4/wchar.m4: New file.
3712 * lib/wchar_.h: Likewise.
3713 * modules/mbchar (Depends-on): Depend on wchar, as the first use
3715 * MODULES.html.sh (Extended multibyte and wide character utilities):
3718 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
3720 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
3721 to a reasonable default for memory allocation.
3722 (xreadlink): Don't allocate a huge buffer, to work around a buggy
3723 file system that reports garbage st_size values for symlinks.
3724 Problem reported by Liyang Hu.
3726 2007-01-11 Simon Josefsson <simon@josefsson.org>
3728 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
3729 Emacs .#* auto-save files).
3731 2007-01-11 Bruno Haible <bruno@clisp.org>
3733 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
3736 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
3738 Use @...@ consistently in lib/wctype_.h.
3739 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
3740 on it being set to 1 or 0.
3741 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
3742 go back to AC_SUBSTing it.
3743 * modules/wctype (Makefile.am): Undo previous change.
3745 2007-01-10 Eric Blake <ebb9@byu.net>
3747 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
3748 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
3749 * modules/wctype (Makefile.am): Likewise.
3750 Reported by Chris McGuire.
3752 2007-01-10 Jim Meyering <jim@meyering.net>
3754 fts.c: a small readability/maintainability improvement
3755 * lib/fts.c (fts_read): Make this code slightly more readable and
3756 maintainable by hoisting the "sp->fts_cur = p" assignments to
3757 immediately follow the statements that set P. Derived from
3758 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
3760 2007-01-10 Eric Blake <ebb9@byu.net>
3762 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
3763 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
3764 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3765 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
3766 Reported by Chris McGuire.
3768 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3770 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
3773 2007-01-09 Bruno Haible <bruno@clisp.org>
3775 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
3776 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
3778 (func_module): Use them.
3780 2007-01-09 Bruno Haible <bruno@clisp.org>
3782 * modules/unistr/base: New file.
3783 * lib/unistr.h: New file.
3785 * modules/unistr/u8-to-u16: New file.
3786 * lib/unistr/u8-to-u16.c: New file.
3788 * modules/unistr/u8-to-u32: New file.
3789 * lib/unistr/u8-to-u32.c: New file.
3791 * modules/unistr/u16-to-u8: New file.
3792 * lib/unistr/u16-to-u8.c: New file.
3794 * modules/unistr/u16-to-u32: New file.
3795 * lib/unistr/u16-to-u32.c: New file.
3797 * modules/unistr/u32-to-u8: New file.
3798 * lib/unistr/u32-to-u8.c: New file.
3800 * modules/unistr/u32-to-u16: New file.
3801 * lib/unistr/u32-to-u16.c: New file.
3803 * modules/unistr/u8-check: New file.
3804 * modules/unistr/u16-check: New file.
3805 * modules/unistr/u32-check: New file.
3806 * lib/unistr/u8-check.c: New file.
3807 * lib/unistr/u16-check.c: New file.
3808 * lib/unistr/u32-check.c: New file.
3810 * modules/unistr/u8-chr: New file.
3811 * modules/unistr/u16-chr: New file.
3812 * modules/unistr/u32-chr: New file.
3813 * lib/unistr/u8-chr.c: New file.
3814 * lib/unistr/u16-chr.c: New file.
3815 * lib/unistr/u32-chr.c: New file.
3817 * modules/unistr/u8-cmp: New file.
3818 * modules/unistr/u16-cmp: New file.
3819 * modules/unistr/u32-cmp: New file.
3820 * lib/unistr/u8-cmp.c: New file.
3821 * lib/unistr/u16-cmp.c: New file.
3822 * lib/unistr/u32-cmp.c: New file.
3824 * modules/unistr/u8-cpy: New file.
3825 * modules/unistr/u16-cpy: New file.
3826 * modules/unistr/u32-cpy: New file.
3827 * lib/unistr/u8-cpy.c: New file.
3828 * lib/unistr/u16-cpy.c: New file.
3829 * lib/unistr/u32-cpy.c: New file.
3830 * lib/unistr/u-cpy.h: New file.
3832 * modules/unistr/u8-cpy-alloc: New file.
3833 * modules/unistr/u16-cpy-alloc: New file.
3834 * modules/unistr/u32-cpy-alloc: New file.
3835 * lib/unistr/u8-cpy-alloc.c: New file.
3836 * lib/unistr/u16-cpy-alloc.c: New file.
3837 * lib/unistr/u32-cpy-alloc.c: New file.
3838 * lib/unistr/u-cpy-alloc.h: New file.
3840 * modules/unistr/u8-endswith: New file.
3841 * modules/unistr/u16-endswith: New file.
3842 * modules/unistr/u32-endswith: New file.
3843 * lib/unistr/u8-endswith.c: New file.
3844 * lib/unistr/u16-endswith.c: New file.
3845 * lib/unistr/u32-endswith.c: New file.
3846 * lib/unistr/u-endswith.h: New file.
3848 * modules/unistr/u8-mblen: New file.
3849 * modules/unistr/u16-mblen: New file.
3850 * modules/unistr/u32-mblen: New file.
3851 * lib/unistr/u8-mblen.c: New file.
3852 * lib/unistr/u16-mblen.c: New file.
3853 * lib/unistr/u32-mblen.c: New file.
3855 * modules/unistr/u8-mbtouc: New file.
3856 * modules/unistr/u16-mbtouc: New file.
3857 * modules/unistr/u32-mbtouc: New file.
3858 * lib/unistr/u8-mbtouc.c: New file.
3859 * lib/unistr/u16-mbtouc.c: New file.
3860 * lib/unistr/u32-mbtouc.c: New file.
3862 * modules/unistr/u8-mbtouc-safe: New file.
3863 * modules/unistr/u16-mbtouc-safe: New file.
3864 * modules/unistr/u32-mbtouc-safe: New file.
3865 * lib/unistr/u8-mbtouc-safe.c: New file.
3866 * lib/unistr/u16-mbtouc-safe.c: New file.
3867 * lib/unistr/u32-mbtouc-safe.c: New file.
3869 * modules/unistr/u8-move: New file.
3870 * modules/unistr/u16-move: New file.
3871 * modules/unistr/u32-move: New file.
3872 * lib/unistr/u8-move.c: New file.
3873 * lib/unistr/u16-move.c: New file.
3874 * lib/unistr/u32-move.c: New file.
3875 * lib/unistr/u-move.h: New file.
3877 * modules/unistr/u8-next: New file.
3878 * modules/unistr/u16-next: New file.
3879 * modules/unistr/u32-next: New file.
3880 * lib/unistr/u8-next.c: New file.
3881 * lib/unistr/u16-next.c: New file.
3882 * lib/unistr/u32-next.c: New file.
3884 * modules/unistr/u8-prev: New file.
3885 * modules/unistr/u16-prev: New file.
3886 * modules/unistr/u32-prev: New file.
3887 * lib/unistr/u8-prev.c: New file.
3888 * lib/unistr/u16-prev.c: New file.
3889 * lib/unistr/u32-prev.c: New file.
3891 * modules/unistr/u8-set: New file.
3892 * modules/unistr/u16-set: New file.
3893 * modules/unistr/u32-set: New file.
3894 * lib/unistr/u8-set.c: New file.
3895 * lib/unistr/u16-set.c: New file.
3896 * lib/unistr/u32-set.c: New file.
3897 * lib/unistr/u-set.h: New file.
3899 * modules/unistr/u8-startswith: New file.
3900 * modules/unistr/u16-startswith: New file.
3901 * modules/unistr/u32-startswith: New file.
3902 * lib/unistr/u8-startswith.c: New file.
3903 * lib/unistr/u16-startswith.c: New file.
3904 * lib/unistr/u32-startswith.c: New file.
3905 * lib/unistr/u-startswith.h: New file.
3907 * modules/unistr/u8-stpcpy: New file.
3908 * modules/unistr/u16-stpcpy: New file.
3909 * modules/unistr/u32-stpcpy: New file.
3910 * lib/unistr/u8-stpcpy.c: New file.
3911 * lib/unistr/u16-stpcpy.c: New file.
3912 * lib/unistr/u32-stpcpy.c: New file.
3913 * lib/unistr/u-stpcpy.h: New file.
3915 * modules/unistr/u8-stpncpy: New file.
3916 * modules/unistr/u16-stpncpy: New file.
3917 * modules/unistr/u32-stpncpy: New file.
3918 * lib/unistr/u8-stpncpy.c: New file.
3919 * lib/unistr/u16-stpncpy.c: New file.
3920 * lib/unistr/u32-stpncpy.c: New file.
3921 * lib/unistr/u-stpncpy.h: New file.
3923 * modules/unistr/u8-strcat: New file.
3924 * modules/unistr/u16-strcat: New file.
3925 * modules/unistr/u32-strcat: New file.
3926 * lib/unistr/u8-strcat.c: New file.
3927 * lib/unistr/u16-strcat.c: New file.
3928 * lib/unistr/u32-strcat.c: New file.
3929 * lib/unistr/u-strcat.h: New file.
3931 * modules/unistr/u8-strchr: New file.
3932 * modules/unistr/u16-strchr: New file.
3933 * modules/unistr/u32-strchr: New file.
3934 * lib/unistr/u8-strchr.c: New file.
3935 * lib/unistr/u16-strchr.c: New file.
3936 * lib/unistr/u32-strchr.c: New file.
3938 * modules/unistr/u8-strcmp: New file.
3939 * modules/unistr/u16-strcmp: New file.
3940 * modules/unistr/u32-strcmp: New file.
3941 * lib/unistr/u8-strcmp.c: New file.
3942 * lib/unistr/u16-strcmp.c: New file.
3943 * lib/unistr/u32-strcmp.c: New file.
3945 * modules/unistr/u8-strcpy: New file.
3946 * modules/unistr/u16-strcpy: New file.
3947 * modules/unistr/u32-strcpy: New file.
3948 * lib/unistr/u8-strcpy.c: New file.
3949 * lib/unistr/u16-strcpy.c: New file.
3950 * lib/unistr/u32-strcpy.c: New file.
3951 * lib/unistr/u-strcpy.h: New file.
3953 * modules/unistr/u8-strcspn: New file.
3954 * modules/unistr/u16-strcspn: New file.
3955 * modules/unistr/u32-strcspn: New file.
3956 * lib/unistr/u8-strcspn.c: New file.
3957 * lib/unistr/u16-strcspn.c: New file.
3958 * lib/unistr/u32-strcspn.c: New file.
3959 * lib/unistr/u-strcspn.h: New file.
3961 * modules/unistr/u8-strdup: New file.
3962 * modules/unistr/u16-strdup: New file.
3963 * modules/unistr/u32-strdup: New file.
3964 * lib/unistr/u8-strdup.c: New file.
3965 * lib/unistr/u16-strdup.c: New file.
3966 * lib/unistr/u32-strdup.c: New file.
3967 * lib/unistr/u-strdup.h: New file.
3969 * modules/unistr/u8-strlen: New file.
3970 * modules/unistr/u16-strlen: New file.
3971 * modules/unistr/u32-strlen: New file.
3972 * lib/unistr/u8-strlen.c: New file.
3973 * lib/unistr/u16-strlen.c: New file.
3974 * lib/unistr/u32-strlen.c: New file.
3975 * lib/unistr/u-strlen.h: New file.
3977 * modules/unistr/u8-strmblen: New file.
3978 * modules/unistr/u16-strmblen: New file.
3979 * modules/unistr/u32-strmblen: New file.
3980 * lib/unistr/u8-strmblen.c: New file.
3981 * lib/unistr/u16-strmblen.c: New file.
3982 * lib/unistr/u32-strmblen.c: New file.
3984 * modules/unistr/u8-strmbtouc: New file.
3985 * modules/unistr/u16-strmbtouc: New file.
3986 * modules/unistr/u32-strmbtouc: New file.
3987 * lib/unistr/u8-strmbtouc.c: New file.
3988 * lib/unistr/u16-strmbtouc.c: New file.
3989 * lib/unistr/u32-strmbtouc.c: New file.
3991 * modules/unistr/u8-strncat: New file.
3992 * modules/unistr/u16-strncat: New file.
3993 * modules/unistr/u32-strncat: New file.
3994 * lib/unistr/u8-strncat.c: New file.
3995 * lib/unistr/u16-strncat.c: New file.
3996 * lib/unistr/u32-strncat.c: New file.
3997 * lib/unistr/u-strncat.h: New file.
3999 * modules/unistr/u8-strncmp: New file.
4000 * modules/unistr/u16-strncmp: New file.
4001 * modules/unistr/u32-strncmp: New file.
4002 * lib/unistr/u8-strncmp.c: New file.
4003 * lib/unistr/u16-strncmp.c: New file.
4004 * lib/unistr/u32-strncmp.c: New file.
4006 * modules/unistr/u8-strncpy: New file.
4007 * modules/unistr/u16-strncpy: New file.
4008 * modules/unistr/u32-strncpy: New file.
4009 * lib/unistr/u8-strncpy.c: New file.
4010 * lib/unistr/u16-strncpy.c: New file.
4011 * lib/unistr/u32-strncpy.c: New file.
4012 * lib/unistr/u-strncpy.h: New file.
4014 * modules/unistr/u8-strnlen: New file.
4015 * modules/unistr/u16-strnlen: New file.
4016 * modules/unistr/u32-strnlen: New file.
4017 * lib/unistr/u8-strnlen.c: New file.
4018 * lib/unistr/u16-strnlen.c: New file.
4019 * lib/unistr/u32-strnlen.c: New file.
4020 * lib/unistr/u-strnlen.h: New file.
4022 * modules/unistr/u8-strpbrk: New file.
4023 * modules/unistr/u16-strpbrk: New file.
4024 * modules/unistr/u32-strpbrk: New file.
4025 * lib/unistr/u8-strpbrk.c: New file.
4026 * lib/unistr/u16-strpbrk.c: New file.
4027 * lib/unistr/u32-strpbrk.c: New file.
4028 * lib/unistr/u-strpbrk.h: New file.
4030 * modules/unistr/u8-strrchr: New file.
4031 * modules/unistr/u16-strrchr: New file.
4032 * modules/unistr/u32-strrchr: New file.
4033 * lib/unistr/u8-strrchr.c: New file.
4034 * lib/unistr/u16-strrchr.c: New file.
4035 * lib/unistr/u32-strrchr.c: New file.
4037 * modules/unistr/u8-strspn: New file.
4038 * modules/unistr/u16-strspn: New file.
4039 * modules/unistr/u32-strspn: New file.
4040 * lib/unistr/u8-strspn.c: New file.
4041 * lib/unistr/u16-strspn.c: New file.
4042 * lib/unistr/u32-strspn.c: New file.
4043 * lib/unistr/u-strspn.h: New file.
4045 * modules/unistr/u8-strstr: New file.
4046 * modules/unistr/u16-strstr: New file.
4047 * modules/unistr/u32-strstr: New file.
4048 * lib/unistr/u8-strstr.c: New file.
4049 * lib/unistr/u16-strstr.c: New file.
4050 * lib/unistr/u32-strstr.c: New file.
4051 * lib/unistr/u-strstr.h: New file.
4053 * modules/unistr/u8-strtok: New file.
4054 * modules/unistr/u16-strtok: New file.
4055 * modules/unistr/u32-strtok: New file.
4056 * lib/unistr/u8-strtok.c: New file.
4057 * lib/unistr/u16-strtok.c: New file.
4058 * lib/unistr/u32-strtok.c: New file.
4059 * lib/unistr/u-strtok.h: New file.
4061 * modules/unistr/u8-uctomb: New file.
4062 * modules/unistr/u16-uctomb: New file.
4063 * modules/unistr/u32-uctomb: New file.
4064 * lib/unistr/u8-uctomb.c: New file.
4065 * lib/unistr/u16-uctomb.c: New file.
4066 * lib/unistr/u32-uctomb.c: New file.
4068 * MODULES.html.sh (Unicode string functions): Add the new modules.
4070 2007-01-08 Bruno Haible <bruno@clisp.org>
4072 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
4073 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
4076 2007-01-08 Karl Berry <karl@gnu.org>
4078 * doc/error.texi: mention that main() fns must set program_name
4079 when progname is used.
4081 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
4083 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
4084 WCTYPE_H is empty, for the benefit of builds from non-distclean
4085 directories. Problem reported by Eric Blake in
4086 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
4088 2007-01-08 Bruno Haible <bruno@clisp.org>
4090 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
4091 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
4092 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
4093 PROVIDE_CANONICALIZE_FILENAME_MODE.
4094 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
4096 2007-01-08 Bruno Haible <bruno@clisp.org>
4098 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
4099 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
4100 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
4101 * lib/fts.c: Likewise.
4102 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
4104 2006-12-25 Bruno Haible <bruno@clisp.org>
4106 * modules/utf8-ucs4-safe: New file.
4107 * lib/utf8-ucs4-safe.h: New file.
4108 * lib/unistr/utf8-ucs4-safe.c: New file.
4110 * modules/utf16-ucs4-safe: New file.
4111 * lib/utf16-ucs4-safe.h: New file.
4112 * lib/unistr/utf16-ucs4-safe.c: New file.
4114 * MODULES.html.sh (Unicode string functions): Add the new modules.
4116 2007-01-08 Bruno Haible <bruno@clisp.org>
4118 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
4119 (Depends-on): Add unitypes.
4120 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
4121 (u8_mbtouc_aux): Move out to separate file.
4122 (u8_mbtouc): Use ucs4_t, uint8_t types.
4123 * lib/unistr/utf8-ucs4.c: New file.
4125 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
4126 (Depends-on): Add unitypes.
4127 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
4128 (u16_mbtouc_aux): Move out to separate file.
4129 (u16_mbtouc): Use ucs4_t, uint16_t types.
4130 * lib/unistr/utf16-ucs4.c: New file.
4132 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
4133 (Depends-on): Add unitypes.
4134 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
4135 (u8_uctomb_aux): Move out to separate file.
4136 (u8_uctomb): Use ucs4_t, uint8_t types.
4137 * lib/unistr/ucs4-utf8.c: New file.
4139 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
4140 (Depends-on): Add unitypes.
4141 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
4142 (u16_uctomb_aux): Move out to separate file.
4143 (u16_uctomb): Use ucs4_t, uint16_t types.
4144 * lib/unistr/ucs4-utf16.c: New file.
4146 2006-12-25 Bruno Haible <bruno@clisp.org>
4148 * modules/unitypes: New file.
4149 * lib/unitypes.h: New file.
4150 * MODULES.html.sh (func_all_modules): New section "Unicode string
4151 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
4152 this section. Add unitypes.
4154 2007-01-08 Bruno Haible <bruno@clisp.org>
4156 Avoid variable names that conflict with those from libtool.
4157 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
4158 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
4159 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
4160 library_names_spec to acl_library_names_spec, hardcode_* to
4162 Reported by Ralf Wildenhues.
4164 2007-01-08 Bruno Haible <bruno@clisp.org>
4166 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
4168 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
4170 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
4171 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
4173 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
4175 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
4176 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
4177 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
4178 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
4180 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
4182 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
4183 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
4185 * lib/gc-libgcrypt.c: Likewise.
4186 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
4187 * modules/gc-arctwo (configure.ac): Likewise.
4188 * modules/gc-des (configure.ac): Likewise.
4189 * modules/gc-hmac-md5 (configure.ac): Likewise.
4190 * modules/gc-hmac-sha1 (configure.ac): Likewise.
4191 * modules/gc-md2 (configure.ac): Likewise.
4192 * modules/gc-md4 (configure.ac): Likewise.
4193 * modules/gc-md5 (configure.ac): Likewise.
4194 * modules/gc-random (configure.ac): Likewise.
4195 * modules/gc-rijndael (configure.ac): Likewise.
4196 * modules/gc-sha1 (configure.ac): Likewise.
4198 2007-01-08 Bruno Haible <bruno@clisp.org>
4200 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
4202 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
4204 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
4206 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
4207 * modules/fcntl-safer (configure.ac): Likewise.
4208 * modules/fopen-safer (configure.ac): Likewise.
4209 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
4210 GNULIB_FWRITEERROR macro definition.
4212 2007-01-08 Bruno Haible <bruno@clisp.org>
4214 * m4/gnulib-common.m4: New file.
4215 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
4216 (func_get_filelist): Add m4/gnulib-common.m4.
4218 2007-01-08 Bruno Haible <bruno@clisp.org>
4220 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
4223 2007-01-08 Jim Meyering <jim@meyering.net>
4225 Use a more robust test for a "can't happen" condition.
4226 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
4227 narrowed the st_size value. Presuming the "can't happen" condition
4228 is true, that narrowing could conceivably convert an invalid st_size
4229 value into a valid one. Instead, use a change based on Matthew
4230 Woehlke's original patch.
4232 Slight readability improvement: use an assert-like macro
4233 in place of literal "abort ()" uses.
4234 * lib/fts.c (fts_assert): Define.
4235 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
4236 Use this macro instead of a bare 'abort'.
4238 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
4240 Don't worry about using IRIX 5.3's wctype.h broken definitions;
4241 simply work around them.
4242 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
4243 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
4244 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
4246 Don't bother to define as macros, since the standard doesn't require it.
4247 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
4248 longer worry about IRIX 5.3.
4249 (HAVE_WCTYPE_CTMP_BUG): Remove.
4251 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
4253 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
4254 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
4255 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
4256 Problems reported by Georg Schwarz for IRIX 5.3.
4258 * gnulib-tool (autoconf_minversion): Take the maximum version number
4259 found, not the minimum. Problem reported by James Youngman.
4261 2007-01-03 Karl Berry <karl@gnu.org>
4263 * doc/error.texi: new file, explaining interaction with progname.
4264 * doc/gnulib.texi: include it. Update copyright.
4266 2007-01-03 Simon Josefsson <simon@josefsson.org>
4268 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
4269 AC_CANONICAL_HOST, to improve autobuild outputs.
4271 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
4272 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
4274 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
4275 sockets, server sockets, and other file descriptors. Count errors
4276 to compute the return value. Reorder the code a bit to be easier
4277 to follow. Don't set event bits that were not requested (except
4278 POLLERR and POLLHUP).
4280 2007-01-01 Bruno Haible <bruno@clisp.org>
4282 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
4284 2007-01-03 Jim Meyering <jim@meyering.net>
4286 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
4288 2007-01-02 Bruno Haible <bruno@clisp.org>
4290 * modules/settime (Include): Require timespec.h.
4291 * modules/nanosleep (Include): Likewise.
4293 2007-01-01 Bruno Haible <bruno@clisp.org>
4295 * gnulib-tool (func_emit_copyright_notice): Bump year.
4296 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
4298 2007-01-01 Bruno Haible <bruno@clisp.org>
4300 Improve support for OpenBSD.
4301 * build-aux/config.rpath (libname_spec): Export.
4302 (library_names_spec): New variable. Export.
4303 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
4304 library_names_spec from the config.rpath output. Locate shared library
4305 through the name pattern in library_names_spec.
4307 2007-01-01 Eric Blake <ebb9@byu.net>
4309 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
4311 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
4313 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
4314 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
4315 assume the C locale, and avoid an "eval" that could cause trouble.
4316 Problem with SORT reported by Bob Proulx.
4318 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
4319 Define. Trivial patch from Henning Nielsen Lund, originally
4320 sent to bug-grep@gnu.org today.
4322 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
4324 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
4325 struct stat. Problem reported by Henning Nielsen Lund.
4326 * lib/acl.c: Include acl.h first, to check interface. Don't
4327 bother to include sys/types.h and sys/stat.h again.
4329 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
4331 Import the following change from libc; problem reported by
4334 2005-10-13 Ulrich Drepper <drepper@redhat.com>
4337 * lib/argp.h: Remove __NTH for __argp_usage inline function.
4339 2006-12-28 Jim Meyering <jim@meyering.net>
4341 * build-aux/announce-gen: Do not assume that the package
4342 builds any of tar.gz, tar.bz2, and .xdelta files.
4343 Suggestion from Simon Josefsson.
4345 2006-12-28 Simon Josefsson <simon@josefsson.org>
4347 * modules/announce-gen: New file.
4349 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
4351 * lib/mbchar.h: Just include <wctype.h>; the wctype module
4352 handles its gotchas now.
4353 * lib/mbswidth.c: Likewise.
4354 * lib/wcwidth.h: Likewise.
4355 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
4356 and iswcntrl; the wctype module does this stuff now.
4357 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
4358 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4359 * modules/mbchar (Depends-on): Add wctype.
4360 * modules/mbswidth (Depends-on): Likewise.
4361 * modules/wcwidth (Depends-on): Likewise.
4363 2006-12-27 Eric Blake <ebb9@byu.net>
4365 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
4366 module uses more than what <wctype.h> is required to provide.
4368 2006-12-26 Eric Blake <ebb9@byu.net>
4370 * gnulib-tool (sed_extract_prog): Avoid space-tab.
4372 2006-12-26 Eric Blake <ebb9@byu.net>
4374 * modules/absolute-header: New module.
4375 * modules/fcntl (Depends-on): Depend on it.
4376 * modules/inttypes (Depends-on): Likewise.
4377 * modules/stdint (Depends-on): Likewise.
4378 * modules/sys_stat (Depends-on): Likewise.
4379 * modules/wctype (Depends-on): Likewise.
4380 * MODULES.html.sh (Support for building libraries and
4381 executables): Document it.
4383 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
4385 * gnulib-tool (SED): Remove, undoing previous change.
4386 The problem was that it broke coreutils on Solaris, because
4387 "sed --posix" leaked into a makefile.
4388 (sed): New alias, if 'alias' and GNU sed.
4390 2006-12-24 Jim Meyering <jim@meyering.net>
4392 Work around an fchownat bug in glibc-2.4:
4393 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
4394 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
4395 in spite of the -P option.
4396 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
4398 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
4399 * modules/openat (Files): Add lib/fchownat.c.
4400 * lib/openat.c (fchownat): Don't define here. Move to...
4401 * lib/fchownat.c: ...this new file.
4403 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
4405 Fix bug reported by Bruno Haible in
4406 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
4407 where quotearg.c didn't compile on Mac OS X 10.2 because it
4408 lacks <wchar.h> and wint_t.
4409 * lib/wctype_.h (__wctype_wint_t): New type.
4410 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
4411 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
4412 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
4413 Arg is now of type __wctype_wint_t, not wint_t.
4414 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
4415 substitute HAVE_WINT_T.
4416 * modules/wctype (Files): Add m4/wint_t.m4.
4417 (wctype.h): Substitute HAVE_WINT_T.
4419 2006-12-23 Bruno Haible <bruno@clisp.org>
4421 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
4423 2006-12-23 Bruno Haible <bruno@clisp.org>
4425 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
4427 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
4430 2006-12-22 Bruno Haible <bruno@clisp.org>
4432 * lib/copy-file.c: Include acl.h.
4433 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
4434 Close the file descriptors only after being done with copy_acl.
4435 * modules/copy-file (Depends-on): Add acl.
4437 2006-12-22 Bruno Haible <bruno@clisp.org>
4439 * gnulib-tool (SED): New variable.
4440 Use $SED instead of sed everywhere.
4442 2006-12-22 Bruno Haible <bruno@clisp.org>
4444 * modules/no-c++: New file.
4445 * m4/no-c++.m4: New file.
4446 * MODULES.html.sh (Support for building libraries and executables):
4449 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
4451 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
4452 Include <limits.h>, and use its INT_MAX to rewrite the
4453 j loop so that it does not overflow 'int'. Problem reported by
4455 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
4456 Play it safe by shifting left by 1 rather than multiplying by 2,
4457 as GCC is less likely to optimize this away when the value
4458 is signed (when it assumes overflow leads to undefined behavior).
4459 Also, don't assume time_t uses two's complement.
4461 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
4463 * MODULES.html.sh: New module wctype.
4464 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
4465 * lib/fnmatch.c: Don't bother to include <wchar.h> before
4466 <wctype.h>, since the new wctype module should fix this.
4467 * lib/quotearg.c: Include <wctype.h> unconditionally, since
4468 the wctype module should arrange for it.
4469 * lib/regex_internal.h: Likewise.
4470 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
4471 since the wctype module should handle this now.
4472 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
4473 * modules/fnmatch (Depends-on): Add wctype.
4474 * modules/quotearg (Depends-on): Likewise.
4475 * modules/regex (Depends-on): Likewise.
4477 2006-12-19 Bruno Haible <bruno@clisp.org>
4479 * lib/strdup.h [C++]: Wrap definitions in extern "C".
4480 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
4482 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4484 * modules/savewd (Depends-on): Fix dependency on fcntl.
4486 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
4488 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
4489 conforms to C99, rather than relying on the user's environment
4490 setting of STDINT_H.
4492 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
4493 and Eric Blake <ebb9@byu.net>
4495 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
4496 This is more consistent with the other defines here.
4497 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
4498 Port to z/OS. Problem reported by Paul Gilmartin.
4499 Change local vars to use gl_ prefix rather than ac_.
4500 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
4502 * modules/double-slash-root: New module.
4503 * modules/dirname (Files): Remove m4/double-slash-root.m4.
4504 (Depends-on): Add double-slash-root.
4505 * MODULES.html.sh (File system functions): Mention new module.
4507 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
4509 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
4510 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
4511 This is for the benefit of gzip, which doesn't do i18n.
4513 2006-12-12 Jim Meyering <jim@meyering.net>
4515 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
4516 Reported by Andreas Schwab <schwab@suse.de>.
4518 2006-12-12 Bruno Haible <bruno@clisp.org>
4520 Merge these changes.
4521 2006-09-05 Bruno Haible <bruno@clisp.org>
4522 * lib/iconvme.c (iconv_string): No need to save and restore errno when
4523 iconv_alloc succeeded.
4524 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
4525 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
4526 test for " && dest " at the end - dest is always != NULL there. Call
4527 iconv with 4xNULL arguments initially, to reset the state. Call iconv
4528 with 2xNULL arguments, also to flush the state storage. Handle the
4529 IRIX iconv behaviour. Realloc the final result, to throw away unused
4532 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
4534 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
4535 and fchmodat unconditionally, since glibc 2.4 has them.
4536 Problem reported by Arkadiusz Miskiewicz.
4538 2006-12-10 Bruno Haible <bruno@clisp.org>
4540 * gnulib-tool (func_import): Show the include files only for those
4541 modules that are copied and specified.
4542 Reported by Karl Berry.
4544 2006-12-08 Jim Meyering <jim@meyering.net>
4546 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
4547 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
4549 * build-aux/announce-gen: Add two new options, both optional:
4550 --bootstrap-tools=TOOL_LIST
4551 a comma-separated list of tools, e.g.,
4552 autoconf,automake,bison,gnulib
4553 --gnulib-snapshot-date=DATE
4554 if gnulib is in the bootstrap tool list,
4555 then report this as the snapshot date.
4556 If not specified, use the current date/time.
4557 If you specify a date here, be sure it's UTC.
4559 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4561 * tests/test-argp-2.sh: Fix test to match actual output.
4562 (func_compare): Fix sed script to be portable.
4564 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
4566 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
4567 workaround for this case. It is not autoconfigured now; offhand
4568 it's hard to see how to autoconfigure it.
4570 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
4572 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
4573 a directory that is about to be chowned. Such a directory's
4574 initial file permissions should permit the owner only and this
4575 should not be changed until after the chown, since the group and
4576 other bits would be incorrect if they granted permission before
4579 Fix porting problem for iswctype reported by Georg Schwarz in:
4580 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
4581 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
4582 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
4583 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
4584 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4586 2006-12-03 Jim Meyering <jim@meyering.net>
4588 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
4589 p->fts_statp may not yet be defined.
4590 (fts_read): Instead, set it in the caller, once p->fts_statp is
4591 sure to be defined, and corresponds to a top-level directory.
4592 This bug made du -x fail. Here's the coreutils test case:
4593 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
4594 Reported by Mike Frysinger.
4596 2006-12-01 Jim Meyering <jim@meyering.net>
4598 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
4599 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
4600 Reported by Simon Josefsson.
4602 2006-11-30 Jim Meyering <jim@meyering.net>
4604 * m4/warning.m4: Use the all-permissive copyright notice
4605 recommended by RMS (rather than LGPL).
4606 * m4/vararrays.m4: Likewise.
4607 * m4/flexmember.m4: Likewise.
4609 2006-11-29 Bruno Haible <bruno@clisp.org>
4611 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
4612 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
4614 Reported by Simon Josefsson <simon@josefsson.org>.
4616 2006-11-28 James Youngman <jay@gnu.org>
4618 * README: Advise users that they might find the bug-gnulib@gnu.org
4619 and autotools-announce@gnu.org mailing lists useful.
4621 2006-11-28 Bruno Haible <bruno@clisp.org>
4623 * m4/ptrdiff_max.m4: Remove file.
4625 2006-11-21 Bruno Haible <bruno@clisp.org>
4627 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
4629 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
4630 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
4632 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
4633 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
4635 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
4637 2006-11-28 Jim Meyering <jim@meyering.net>
4639 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
4640 warning from "gcc -Wshadow" about shadowing the builtin.
4642 2006-11-27 Bruno Haible <bruno@clisp.org>
4644 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
4646 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
4648 2006-11-27 Bruno Haible <bruno@clisp.org>
4649 Paul Eggert <eggert@cs.ucla.edu>
4651 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
4653 2006-11-26 Bruno Haible <bruno@clisp.org>
4655 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
4658 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
4659 Bruno Haible <bruno@clisp.org>
4661 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
4662 if compiling with "gcc -ansi".
4664 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
4666 Fix some incompatibilities with gcc -ansi -pedantic.
4667 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
4668 if compiling pedantically with GCC, unless it's C99 or later.
4669 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
4670 it mishandles gcc -ansi -pedantic as well.
4671 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
4673 * lib/regexec.c (check_node_accept_bytes): Don't use auto
4674 initializers for struct if -pedantic, unless it's C99 or later.
4676 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
4678 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
4679 Don't close an fd more than once. Identical atimes indicate
4680 success, not failure.
4682 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
4684 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
4686 2006-11-23 Jim Meyering <jim@meyering.net>
4688 * build-aux/announce-gen: New file. From coreutils.
4690 2006-11-22 Jim Meyering <jim@meyering.net>
4692 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
4693 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
4694 (fts_read): Use a temporary to narrow the overused st_size member
4695 before using it in a switch statement. Reported by Matthew Woehlke.
4697 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
4698 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
4700 2006-11-20 Bruno Haible <bruno@clisp.org>
4702 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
4703 changequote instead of pairs of brackets.
4704 Reported by Andreas Schwab <schwab@suse.de>.
4706 2006-11-21 Jim Meyering <jim@meyering.net>
4708 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
4709 so as to remain compatible with older compilers.
4710 Patch from Michael Deutschmann.
4712 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
4714 * MODULES.html.sh (File system functions): Add openat.
4716 * lib/openat.h (rpl_fstatat): New macro, if
4717 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
4718 (fstatat): Define to rpl_fstatat under the same conditions,
4719 unless COMPILING_FSTATAT.
4720 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
4721 seems to have the bug.
4722 * lib/fstatat.c: New file.
4723 * modules/openat (Files): Add it.
4725 2006-11-20 Bruno Haible <bruno@clisp.org>
4727 * Makefile: New file.
4729 2006-11-20 Jim Meyering <jim@meyering.net>
4731 The beginnings of syntax-related checks for gnulib.
4732 * lib/Makefile: New file.
4733 * lib/t-idcache: New script. Ensure that the two halves of
4734 idcache.c stay in sync.
4736 * lib/idcache.c: Adjust comments in user- and group- portions to
4737 be more accurate, and to be consistent with one another.
4739 2006-11-20 Jim Meyering <jim@meyering.net>
4741 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
4742 continue using the flexible array member (thus, this module performs
4743 half as many malloc calls), with the addition that...
4744 (getgroup, getuser): Consistently record a non-match via an empty
4745 "name" string, and map an empty string match to a NULL return value.
4746 * modules/idcache (Depends-on): Re-add flexmember.
4748 * lib/idcache.c (getuser): Remove all uses of the register keyword.
4749 (getuidbyname, getgroup, getgidbyname): Likewise.
4751 Use cleaner syntax: NULL rather than 0.
4752 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
4754 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
4756 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
4757 It mishandled the case where the group was missing.
4758 Problem reported by Greg Schafer.
4759 * modules/idcache: Likewise.
4761 2006-11-18 Jim Meyering <jim@meyering.net>
4763 * check-module (%exempt_header): Add exception for some
4764 conditionally-included headers.
4766 * modules/i-ring (Depends-on): Add verify.
4767 (License): Change to LGPL.
4769 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
4771 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
4772 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
4773 and inttostr.h. Use snprintf rather than uinttostr, so that
4774 LGPLed code doesn't depend on GPLed.
4776 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
4778 * modules/inline (License): Change from GPL to LGPL.
4780 2006-11-17 Jim Meyering <jim@meyering.net>
4782 * modules/d-type (License): Switch to LGPL.
4784 2006-11-15 Bruno Haible <bruno@clisp.org>
4786 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
4788 2006-11-15 Eric Blake <ebb9@byu.net>
4790 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
4791 the module dependency.
4793 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
4794 Bruno Haible <bruno@clisp.org>
4796 * gnulib-tool (func_create_testdir): Add license consistency check.
4798 2006-11-15 Eric Blake <ebb9@byu.net>
4800 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
4801 random "(cached)" in configure output.
4803 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4805 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
4806 test for conforming inttypes.h is both announced and cached.
4808 * MODULES.html.sh (seen_modules, seen_files): New variables.
4809 (func_module): Rewrite to use a few less gnulib-tool and sed
4810 invocations. Avoid a couple of quadratic algorithms for ...
4811 (missed_modules, missed_files): ... these, with ...
4812 (func_append, func_tmpdir): ... these new functions, from
4813 gnulib-tool. Analogously, install traps for cleanup.
4815 * tests/test-gc.c (main): Remove unused variables.
4816 * tests/test-read-file.c: Include stdlib.h, for 'free'.
4818 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
4820 * modules/inttostr (License): Change to LGPL.
4822 2006-11-14 Eric Blake <ebb9@byu.net>
4824 * modules/tempname (License): Change to LGPL.
4826 2006-11-14 Eric Blake <ebb9@byu.net>
4828 * doc/functions.texi (Function Portability): *printf functions on
4829 Cygwin now understand all POSIX size specifiers.
4831 2006-11-14 Bruno Haible <bruno@clisp.org>
4833 * modules/c-ctype (License): Change to LGPL.
4835 2006-11-12 Bruno Haible <bruno@clisp.org>
4837 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
4838 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
4839 for GNOME libraries, for which the include files are installed in
4840 subdirectories of $prefix/include.
4842 2006-11-12 Bruno Haible <bruno@clisp.org>
4844 * m4/lib-link.m4: Require at least autoconf-2.54.
4845 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
4846 name to underscores for the --with option.
4848 2006-11-13 Bruno Haible <bruno@clisp.org>
4850 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
4851 the tests directory.
4852 Reported by Ralf Wildenhues.
4854 2006-11-13 Bruno Haible <bruno@clisp.org>
4856 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
4857 (func_emit_initmacro_end): Undo the override here.
4858 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
4859 Works around the famous automake error in coreutils.
4861 2006-11-13 Eric Blake <ebb9@byu.net>
4863 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
4864 element, not its node.
4866 2006-11-12 Bruno Haible <bruno@clisp.org>
4868 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
4869 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
4871 2006-11-12 Bruno Haible <bruno@clisp.org>
4873 * gnulib-tool: New option --local-symlink.
4874 (func_usage): Document it.
4875 (lsymbolic): New variable.
4876 (func_import, func_create_testdir): If --symlink was not specified,
4877 test whether --local-symlink was specified and the file comes from
4878 the local_gnulib_dir.
4880 2006-11-12 Bruno Haible <bruno@clisp.org>
4882 * gnulib-tool (func_ln): New function.
4883 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
4885 2006-11-12 Bruno Haible <bruno@clisp.org>
4887 Finish support for source files in subdirectories.
4888 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
4889 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
4891 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
4893 2006-11-12 Bruno Haible <bruno@clisp.org>
4895 * gnulib-tool (func_get_automake_snippet): Synthesize also an
4896 EXTRA_lib_SOURCES augmentation.
4897 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
4899 2006-11-12 Jim Meyering <jim@meyering.net>
4901 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
4902 file descriptors. This also averts a failure on systems with
4903 native openat support when a traversed directory lacks "x" access.
4904 * lib/fts_.h: Include "i-ring.h"
4905 (struct FTS) [fts_fd_ring]: New member.
4906 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
4907 (FCHDIR): Add parentheses.
4908 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
4909 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
4910 When descending, rather than simply closing the previous
4911 fts_cwd_fd value, push that file descriptor onto the ring.
4912 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
4913 (fts_open): Initialize the new fd_ring member.
4914 (fts_close): Clear the ring.
4915 (fts_safe_changedir): When possible, use our new fd_ring to skip
4916 the diropen and fstat and dev/ino comparison that would normally
4917 accompany a virtual `chdir ("..")'.
4919 * modules/fts (Depends-on): Add i-ring.
4920 * modules/i-ring: New module.
4921 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
4922 * m4/i-ring.m4: New file.
4924 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4926 * gnulib-tool (func_create_testdir): Fix replacement of
4927 `build-aux' in configure.ac. Run autotools in gltests
4929 (func_create_testdir, func_create_megatestdir, test): There is
4930 no need for '--force' in most autotool invocations in a new
4931 tree. Actually fail the whole test if any of the tools, or the
4932 configure or make stages fail.
4935 * build-aux/gnupload: Revert last change. Add pointer to upload
4936 instructions of the GNU Maintenance Instructions.
4937 Suggestion by Karl Berry.
4939 2006-11-10 Jim Meyering <jim@meyering.net>
4941 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
4943 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
4945 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
4946 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
4947 (bind_textdomain_codeset) [! ENABLE_NLS]:
4948 Evaluate all the arguments. That way, callers get compatible behavior
4949 if the arguments have side effects. Also, it avoids some GCC
4950 diagnostics in some cases; Joel E. Denny reported problems when Bison
4951 was configured with --enable-gcc-warnigs.
4953 2006-11-10 Jim Meyering <jim@meyering.net>
4955 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
4956 relevant options in CFLAGS (like -O, -fno-inline) are taken into
4959 2006-11-10 Jim Meyering <jim@meyering.net>
4961 * modules/inline: New file/module.
4962 * modules/xalloc (Files): Remove m4/inline.m4.
4963 (Depends-on): Add inline, instead.
4964 * modules/oset: Likewise.
4965 * modules/list: Likewise.
4967 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
4969 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
4970 Problem reported by Matthew Woehlke.
4972 2006-11-09 Bruno Haible <bruno@clisp.org>
4974 * lib/tempname.c (gen_tempname): Remove variant that invokes
4976 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
4979 2006-11-08 Bruno Haible <bruno@clisp.org>
4981 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
4982 to 'yes' instead of 'cross-compiling'.
4984 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
4986 * lib/quotearg.h (quotearg_free): New decl.
4987 * lib/quotearg.c (quotearg_free): New function.
4988 (slot0, nslots, slotvec0, slotvec):
4989 Now file-scope so that quotearg_free can get at them.
4991 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4994 * build-aux/gnupload: Add missing 'gnu' to example URL.
4995 Report by Karl Berry.
4997 2006-11-08 Bruno Haible <bruno@clisp.org>
4999 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
5000 Suggested by Paul Eggert.
5002 2006-11-08 Jim Meyering <jim@meyering.net>
5004 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
5005 It's already included if !_LIBC.
5006 (fts_safe_changedir): Add a comment.
5008 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
5010 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
5011 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
5014 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
5015 definitions up, to avoid colliding with change below.
5016 (static_inline) [HAVE_INLINE]: New macro.
5017 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
5018 Provide extern decls when !HAVE_INLINE. Do not define unless
5019 static_inline is defined, either by us or by xmalloc.c. Use
5020 static_inline rather than static inline.
5021 (XCALLOC): Optimize sizeof(T) = 1 case.
5022 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
5024 2006-11-07 Bruno Haible <bruno@clisp.org>
5026 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
5027 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
5029 * modules/xalloc (Files): Add m4/inline.m4.
5031 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5034 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
5035 (Miscellanous Notes): ...from this.
5037 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
5039 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5040 Mention that offsetof should be used instead of sizeof.
5043 2006-11-07 Bruno Haible <bruno@clisp.org>
5045 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
5047 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
5049 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
5050 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
5051 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
5052 (gl_tree_add_before, gl_tree_add_after):
5053 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
5054 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
5055 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
5056 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
5057 (gl_linked_add_after, gl_linked_add_at): Likewise.
5058 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
5059 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
5060 (gl_tree_add_before, gl_tree_add_after): Likewise.
5061 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
5062 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
5063 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
5065 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5067 * lib/gl_oset.h: Use C comment style, not C++ comment style.
5069 2006-11-06 Bruno Haible <bruno@clisp.org>
5071 * m4/inline.m4: New file.
5072 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
5073 * modules/list (Files): Add m4/inline.m4.
5074 * modules/oset (Files): Likewise.
5076 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
5078 * lib/idcache.c: Include <stddef.h>, for offsetof.
5079 (struct userid.name): Change from char * to a flexible array member.
5081 * modules/idcache (Depends-on): Add flexmember.
5083 * MODULES.html.sh (Core language properties): New module flexmember.
5084 * modules/flexmember, m4/flexmember.m4: New files.
5086 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
5087 inline functions that are identical with the old xnmalloc_inline,
5088 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
5089 that we can avoid some unnecessary integer multiplications and
5090 divisions in the common case where the element size is known at
5092 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
5094 (xnboundedmalloc): Remove.
5095 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
5096 arguments, for consistency with rest of this header.
5097 (xcharalloc): Rewrite using XNMALLOC.
5098 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
5099 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
5100 versions have been moved to lib/xalloc.h and renamed to be the
5101 non-*_inline versions.
5102 (xmalloc, xrealloc): Implement without reference to the xnmalloc
5103 and xnrealloc functions, since those functions are now inline and
5105 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
5106 renaming described above.
5107 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
5108 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
5109 captures the dependency in AC_C_INLINE.
5111 New module canonicalize-lgpl, proposed by Charles Wilson in
5112 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
5113 with a few small changes afterwards.
5114 * MODULES.html.sh (File system functions): New module
5116 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
5117 and canonicalize_file_name.
5118 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
5119 * modules/canonicalize-lgpl: New files.
5121 2006-11-05 Bruno Haible <bruno@clisp.org>
5123 * gnulib-tool (func_import, func_create_testdir): Create directories
5124 also for files in subdirectories of lib/.
5126 2006-11-05 Bruno Haible <bruno@clisp.org>
5128 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
5131 2006-11-03 Bruno Haible <bruno@clisp.org>
5133 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
5134 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
5135 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
5136 (xnboundedmalloc): New inline function.
5137 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
5138 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
5140 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
5142 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
5143 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
5144 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
5146 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
5147 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
5149 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
5150 gl_tree_add_after): Use XMALLOC instead of xmalloc.
5151 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
5153 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
5154 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
5155 gl_tree_add_after): Use XMALLOC instead of xmalloc.
5156 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
5157 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
5158 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
5159 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
5161 2006-11-03 Bruno Haible <bruno@clisp.org>
5163 * lib/c-ctype.h [C++]: Define functions without name mangling.
5164 * lib/fwriteerror.h [C++]: Likewise.
5165 * lib/gcd.h [C++]: Likewise.
5166 * lib/linebreak.h [C++]: Likewise.
5168 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
5170 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
5171 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
5172 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
5173 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
5174 Check for functions and headers just once.
5175 Check for declaration of canonicalize_file_name.
5176 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
5178 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
5180 * gnulib-tool (func_import): Fix typo in actioncmd.
5182 2006-11-02 Bruno Haible <bruno@clisp.org>
5184 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
5185 newline sequence in the Makefile.am snippet as a space, like "make"
5187 Reported by Roger Persson <perrog@gmail.com>.
5189 2006-11-01 Bruno Haible <bruno@clisp.org>
5191 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
5192 already declared in <string.h>.
5193 * lib/strcase.h (strncasecmp): Don't declare it if yes.
5195 2006-11-01 Bruno Haible <bruno@clisp.org>
5197 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
5198 * lib/strcase.h: Include <string.h>.
5199 (strcasecmp): Define to rpl_strcasecmp here.
5201 2006-11-01 Bruno Haible <bruno@clisp.org>
5203 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
5205 2006-11-01 Eric Blake <ebb9@byu.net>
5207 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
5209 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
5211 2006-10-29 Bruno Haible <bruno@clisp.org>
5213 Make it compile in C++ mode.
5214 * lib/full-write.c (full_rw): Add a cast.
5216 2006-11-01 Bruno Haible <bruno@clisp.org>
5218 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
5220 Reported by Roger Persson <perrog@gmail.com>.
5222 2006-11-01 Eric Blake <ebb9@byu.net>
5224 * lib/getopt_.h: Fix comments.
5226 2006-10-31 Eric Blake <ebb9@byu.net>
5228 * modules/tmpdir (Depends-on): Add sys_stat.
5229 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
5230 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
5231 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
5232 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
5235 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
5237 Avoid some C++ diagnostics reported by Bruno Haible.
5238 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
5240 (quotearg_alloc): Use xcharalloc rather than xmalloc.
5241 (struct slotvec): Move to top level.
5242 (quotearg_n_options): Rewrite to avoid xmalloc.
5243 * lib/xalloc.h (xcharalloc): New function.
5244 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
5245 [defined __cplusplus]: Add function template that provides result
5246 type propagation. This part of the change is from Bruno Haible.
5248 2006-10-29 Bruno Haible <bruno@clisp.org>
5250 Make it compile in C++ mode.
5251 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
5252 * lib/strnlen1.c (strnlen1): Cast memchr result.
5253 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
5254 * lib/clean-temp.c (string_equals, string_hash): Add casts.
5255 (create_temp_dir): Rename local variable 'template'.
5256 (compile_csharp_using_sscli): Add cast.
5257 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
5258 * lib/findprog.c (find_in_path): Likewise.
5259 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
5260 * lib/wait-process.c (register_slave_subprocess): Likewise.
5262 2006-10-22 Bruno Haible <bruno@clisp.org>
5264 * modules/tsearch: New file.
5265 * lib/tsearch.h: New file.
5266 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
5267 * m4/tsearch.m4: New file.
5268 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
5270 2006-10-29 Eric Blake <ebb9@byu.net>
5272 * lib/arcfour.c: Assume config.h.
5273 * lib/arctwo.c: Likewise.
5274 * lib/base64.c: Likewise.
5275 * lib/check-version.c: Likewise.
5276 * lib/crc.c: Likewise.
5277 * lib/des.c: Likewise.
5278 * lib/gc-gnulib.c: Likewise.
5279 * lib/gc-libgcrypt.c: Likewise.
5280 * lib/gc-pbkdf2-sha1.c: Likewise.
5281 * lib/getaddrinfo.c: Likewise.
5282 * lib/getdelim.c: Likewise.
5283 * lib/getline.c: Likewise.
5284 * lib/hmac-md5.c: Likewise.
5285 * lib/hmac-sha1.c: Likewise.
5286 * lib/iconvme.c: Likewise.
5287 * lib/md2.c: Likewise.
5288 * lib/md4.c: Likewise.
5289 * lib/memxor.c: Likewise.
5290 * lib/read-file.c: Likewise.
5291 * lib/readline.c: Likewise.
5292 * lib/rijndael-alg-fst.c: Likewise.
5293 * lib/rijndael-api-fst.c: Likewise.
5294 * lib/xgetdomainname.c: Likewise.
5296 2006-10-28 Eric Blake <ebb9@byu.net>
5298 * lib/xstrndup.c: Assume config.h.
5300 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
5302 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
5303 stat-macros.h is now for our own macros, whereas stat_h is for
5304 macros in the <sys/stat.h> name space.
5305 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
5306 (STAT_MACROS_H): Remove.
5307 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
5308 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
5309 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
5310 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
5311 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
5312 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
5313 Move these macros to ...
5314 * lib/stat_.h: here. Don't include stat-macros.h.
5315 * lib/canonicalize.c: Don't include stat-macros.h.
5316 * lib/chown.c: Likewise.
5317 * lib/euidaccess.c: Likewise.
5318 * lib/file-type.c: Likewise.
5319 * lib/filemode.c: Likewise.
5320 * lib/glob.c: Likewise.
5321 * lib/isapipe.c: Likewise.
5322 * lib/lchown.c: Likewise.
5323 * lib/lstat.c: Likewise.
5324 * lib/mkdir-p.c: Likewise.
5325 * lib/rmdir.c: Likewise.
5326 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
5327 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
5328 unless mkdir isn't declared, to speed up 'configure'.
5329 Always create sys/stat.h, since it's unlikely any real sys/stat.h
5330 would define all the S_* symbols.
5331 * modules/canonicalize (Depends-on):
5332 Depend on sys_stat, not stat-macros.
5333 * modules/chown: Likewise.
5334 * modules/euidaccess: Likewise.
5335 * modules/filemode: Likewise.
5336 * modules/file-type: Likewise.
5337 * modules/glob: Likewise.
5338 * modules/isapipe: Likewise.
5339 * modules/lchown: Likewise.
5340 * modules/lstat: Likewise.
5341 * modules/mkancesdirs: Likewise.
5342 * modules/rmdir: Likewise.
5343 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
5344 * modules/modechange: Likewise.
5345 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
5346 (configure.ac): Remove gl_STAT_MACROS.
5347 * modules/sys_stat (Depends-on): Remove stat-macros.
5349 2006-10-27 Bruno Haible <bruno@clisp.org>
5351 * m4/signed.m4: Remove file.
5352 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
5354 * modules/vasnprintf (Files): Remove m4/signed.m4.
5356 2006-10-27 Bruno Haible <bruno@clisp.org>
5358 Update to GNU gettext 0.16.
5359 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
5360 m4/inttypes-h.m4, m4/signed.m4.
5361 * m4/gettext.m4: Update to GNU gettext 0.16.
5362 * m4/intl.m4: New file, from GNU gettext.
5363 * m4/intldir.m4: New file, from GNU gettext.
5364 * config/srclist.txt: Update
5366 2006-10-27 Eric Blake <ebb9@byu.net>
5368 * MODULES.html.sh: Document tempname.
5369 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
5371 (Files): Move lib/tempname.c...
5372 * modules/tempname: ...to this new module.
5373 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
5374 (gl_PREREQ_TEMPNAME): Move...
5375 * m4/tempname.m4: ...to this new file.
5376 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
5377 * modules/sys_stat (Depends-on): Add stat-macros.
5378 * lib/stat_.h (includes): Pick up stat macros.
5379 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
5380 if stat macros are broken.
5381 * lib/tempname.c (includes): No need to include "stat-macros.h".
5382 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
5383 (direxists, __path_search) [!_LIBC]: Don't compile these in
5384 gnulib; the tmpdir module covers that.
5385 * lib/tempname.h: New file.
5387 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
5389 * COPYING: Explain how gnulib-tool converts licence headers.
5390 Almost all wording by Eric Blake.
5392 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
5394 * lib/mbchar.h (is_basic_table): Make read-only.
5395 * lib/mbchar.c (is_basic_table): Likewise.
5396 Reported by John Darrington.
5398 2006-10-25 Bruno Haible <bruno@clisp.org>
5400 * lib/progname.h (set_program_name): Undefine before defining.
5402 2006-10-25 Bruno Haible <bruno@clisp.org>
5404 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
5405 false for non-gcc C++ compilers.
5406 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5408 2006-10-24 Bruno Haible <bruno@clisp.org>
5410 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
5411 iconv implementations like Irix iconv.
5413 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
5415 * modules/vararrays: New file.
5416 * m4/vararrays.m4: New file, taken from diffutils.
5417 * MODULES.html.sh: New module vararrays.
5419 2006-10-24 Karl Berry <karl@gnu.org>
5421 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
5422 Don't call GNU Unix.
5424 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5426 * users.txt: Add Libtool.
5430 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
5432 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
5433 to gnulib's policy of including config.h unconditionally.
5435 2006-10-24 Bruno Haible <bruno@clisp.org>
5437 * modules/wcwidth (Files): Add m4/wint_t.m4.
5438 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
5439 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
5441 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
5443 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
5444 to pacify GCC with some -W flags enabled. Problem reported by
5447 2006-10-24 Jim Meyering <jim@meyering.net>
5449 * MODULES.html.sh: Remove uinttostr. It's not a module.
5450 Reported by Karl Berry.
5452 2006-10-23 Bruno Haible <bruno@clisp.org>
5454 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
5456 2006-10-24 Bruno Haible <bruno@clisp.org>
5458 * lib/gl_list.h: Use C comment style, not C++ comment style.
5460 2006-10-23 Eric Blake <ebb9@byu.net>
5462 * lib/getaddrinfo.c (includes): Add missing include.
5464 2006-10-23 Bruno Haible <bruno@clisp.org>
5465 Paul Eggert <eggert@cs.ucla.edu>
5467 Ability to rename obstack_free.
5468 * lib/obstack.h (__obstack_free): New macro. Declare instead of
5470 (obstack_free): Invoke the __obstack_free macro.
5471 * lib/obstack.c (obstack_free): Use __obstack_free macro.
5473 2006-10-23 Bruno Haible <bruno@clisp.org>
5474 Paul Eggert <eggert@cs.ucla.edu>
5476 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
5477 __argc, __argv from the declaration. (They are defined as macros on
5480 2006-10-22 Bruno Haible <bruno@clisp.org>
5482 * doc/gnulib-intro.texi: New file.
5483 * doc/gnulib.texi: Include it.
5485 2006-10-21 Bruno Haible <bruno@clisp.org>
5487 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
5488 "Introduction", "Miscellanous Notes", "Particular Modules".
5490 2006-10-21 Bruno Haible <bruno@clisp.org>
5492 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5493 Change mostlyclean-local rule to avoid sh syntax error from bash
5494 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
5496 2006-10-23 Jim Meyering <jim@meyering.net>
5498 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
5499 in place of snprintf.
5501 * modules/inttostr (Files): Add lib/uinttostr.c.
5502 * lib/uinttostr.c (inttostr): New file/function.
5503 * lib/inttostr.h (uinttostr): Declare.
5504 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
5505 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
5507 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
5509 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
5511 * lib/canonicalize.c (ELOOP): Define if not already defined.
5512 Problem reported by Bruno Haible in
5513 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
5515 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
5517 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
5518 Problem reported by Perry Smith and Ville Laurikari.
5520 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
5523 2006-10-19 Bruno Haible <bruno@clisp.org>
5525 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
5528 2006-10-19 Bruno Haible <bruno@clisp.org>
5530 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
5533 2006-10-19 Bruno Haible <bruno@clisp.org>
5535 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
5537 2006-10-19 Bruno Haible <bruno@clisp.org>
5539 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
5542 2006-10-19 Bruno Haible <bruno@clisp.org>
5544 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
5547 2006-10-19 Bruno Haible <bruno@clisp.org>
5549 * gnulib-tool (func_create_testdir): Don't include ftruncate and
5550 mountlist by default.
5552 2006-10-16 Bruno Haible <bruno@clisp.org>
5554 * lib/c-strstr.c: Include c-strstr.h.
5556 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
5558 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
5561 2006-10-18 Bruno Haible <bruno@clisp.org>
5563 * lib/lock.h [C++]: Wrap definitions in extern "C".
5565 2006-10-18 Bruno Haible <bruno@clisp.org>
5567 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
5570 2006-10-18 Bruno Haible <bruno@clisp.org>
5572 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
5574 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
5576 * lib/xstrtol.h: Include gettext.h.
5577 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
5578 Problem reported by Eric Blake.
5579 * modules/xstrtol (Depends-on): Add gettext-h.
5581 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
5583 * lib/strftime.c (advance): New macro.
5584 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
5585 incomplete type, so you can't add 0 to it. Problem and patch
5586 reported by Eelco Dolstra for dietlibc.
5588 2006-10-18 Jim Meyering <jim@meyering.net>
5590 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
5591 type for a local, and rename it: s/up/user_proc/.
5593 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
5595 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
5596 READ_UTMP_USER_PROCESS.
5597 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
5599 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
5601 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
5602 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
5604 2006-10-17 Eric Blake <ebb9@byu.net>
5606 * lib/sigprocmask.c (sigprocmask): Fix typo.
5608 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
5610 * modules/clean-temp (Makefile.am): Don't add to make output...
5611 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
5614 2006-10-17 Bruno Haible <bruno@clisp.org>
5616 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
5617 differently if DEFAULT_TEXT_DOMAIN is set.
5619 2006-10-16 Bruno Haible <bruno@clisp.org>
5621 * lib/clean-temp.c: Include fwriteerror.h.
5623 2006-10-16 Bruno Haible <bruno@clisp.org>
5625 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
5627 2006-10-16 Bruno Haible <bruno@clisp.org>
5629 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
5630 * lib/sigprocmask.h: Include <sys/types.h>.
5631 (sigset_t): Use the system's definition if present.
5633 2006-10-17 Eric Blake <ebb9@byu.net>
5635 * lib/xvasprintf.c (includes): Assume config.h.
5636 * lib/xasprintf.c (includes): Likewise.
5638 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
5640 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
5641 at least as wide as intmax_t.
5643 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
5645 (Imported from Automake.)
5646 * build-aux/gnupload: Update to version 1.1 of directive file.
5648 2006-10-16 Eric Blake <ebb9@byu.net>
5650 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
5651 match Automake 1.10a.
5653 2006-10-14 Bruno Haible <bruno@clisp.org>
5655 * modules/sigprocmask: New file.
5656 * lib/sigprocmask.h: New file.
5657 * lib/sigprocmask.c: New file.
5658 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
5659 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
5660 request sigprocmask.o.
5661 (gl_PREREQ_SIGPROCMASK): New macro.
5662 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
5663 (Depends-on): Add sigprocmask.
5664 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
5665 gt_SIGNALBLOCKING. Test for 'raise' only once.
5666 * lib/fatal-signal.c: Include sigprocmask.h.
5667 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
5668 unblock_fatal_signals): Define always.
5669 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
5672 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
5675 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
5676 which incorrectly sets the mode of an existing destination
5677 directory. In some cases the unpatched install-sh could do the
5678 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
5679 system. We hope this is rare in practice, but it's clearly worth
5680 fixing. Problem reported by Alex Unleashed in
5681 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
5682 Also, don't bother to check for -m bugs unless we're using -m;
5683 suggested by Stepan Kasal.
5685 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5688 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
5689 `-c' flag, so they appear at the same position as in %FASTDEP%
5690 mode in depend2.am. Fixes build failure for FreeBSD's c89,
5691 which ignores unknown options only after the first non-option.
5692 Bug report against M4 by Nelson H. F. Beebe.
5694 2006-10-13 Jim Meyering <jim@meyering.net>
5696 Fix a bug in yesterday's change.
5697 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
5698 p->fts_statp->st_dev would be used uninitialized.
5699 Ensures that we always call fts_stat on the very first entry.
5700 Miklos Szeredi reported that find -xdev stopped working.
5702 2006-10-12 Bruno Haible <bruno@clisp.org>
5704 * gnulib-tool (func_get_automake_snippet): Append an automatically
5705 computed EXTRA_DIST augmentation.
5706 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
5707 * modules/alloca-opt (Makefile.am): Likewise.
5708 * modules/allocsa (Makefile.am): Likewise.
5709 * modules/arcfour (Makefile.am): Likewise.
5710 * modules/arctwo (Makefile.am): Likewise.
5711 * modules/argmatch (Makefile.am): Likewise.
5712 * modules/argz (Makefile.am): Likewise.
5713 * modules/atexit (Makefile.am): Likewise.
5714 * modules/backupfile (Makefile.am): Likewise.
5715 * modules/byteswap (Makefile.am): Likewise.
5716 * modules/c-strtod (Makefile.am): Likewise.
5717 * modules/c-strtold (Makefile.am): Likewise.
5718 * modules/calloc (Makefile.am): Likewise.
5719 * modules/canon-host (Makefile.am): Likewise.
5720 * modules/canonicalize (Makefile.am): Likewise.
5721 * modules/chdir-long (Makefile.am): Likewise.
5722 * modules/chdir-safer (Makefile.am): Likewise.
5723 * modules/check-version (Makefile.am): Likewise.
5724 * modules/chown (Makefile.am): Likewise.
5725 * modules/cloexec (Makefile.am): Likewise.
5726 * modules/close-stream (Makefile.am): Likewise.
5727 * modules/closeout (Makefile.am): Likewise.
5728 * modules/crc (Makefile.am): Likewise.
5729 * modules/csharpexec (Makefile.am): Likewise.
5730 * modules/cycle-check (Makefile.am): Likewise.
5731 * modules/des (Makefile.am): Likewise.
5732 * modules/dev-ino (Makefile.am): Likewise.
5733 * modules/dirfd (Makefile.am): Likewise.
5734 * modules/dirname (Makefile.am): Likewise.
5735 * modules/dup2 (Makefile.am): Likewise.
5736 * modules/eealloc (Makefile.am): Likewise.
5737 * modules/error (Makefile.am): Likewise.
5738 * modules/euidaccess (Makefile.am): Likewise.
5739 * modules/exclude (Makefile.am): Likewise.
5740 * modules/exitfail (Makefile.am): Likewise.
5741 * modules/fcntl-safer (Makefile.am): Likewise.
5742 * modules/fcntl (Makefile.am): Likewise.
5743 * modules/file-type (Makefile.am): Likewise.
5744 * modules/fileblocks (Makefile.am): Likewise.
5745 * modules/filemode (Makefile.am): Likewise.
5746 * modules/filenamecat (Makefile.am): Likewise.
5747 * modules/fnmatch (Makefile.am): Likewise.
5748 * modules/fopen-safer (Makefile.am): Likewise.
5749 * modules/fpending (Makefile.am): Likewise.
5750 * modules/fprintftime (Makefile.am): Likewise.
5751 * modules/free (Makefile.am): Likewise.
5752 * modules/fsusage (Makefile.am): Likewise.
5753 * modules/ftruncate (Makefile.am): Likewise.
5754 * modules/fts (Makefile.am): Likewise.
5755 * modules/gc-arcfour (Makefile.am): Likewise.
5756 * modules/gc-des (Makefile.am): Likewise.
5757 * modules/gc-hmac-md5 (Makefile.am): Likewise.
5758 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
5759 * modules/gc-md4 (Makefile.am): Likewise.
5760 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
5761 * modules/gc-sha1 (Makefile.am): Likewise.
5762 * modules/gc (Makefile.am): Likewise.
5763 * modules/getaddrinfo (Makefile.am): Likewise.
5764 * modules/getcwd (Makefile.am): Likewise.
5765 * modules/getdelim (Makefile.am): Likewise.
5766 * modules/getdomainname (Makefile.am): Likewise.
5767 * modules/getgroups (Makefile.am): Likewise.
5768 * modules/gethostname (Makefile.am): Likewise.
5769 * modules/gethrxtime (Makefile.am): Likewise.
5770 * modules/getline (Makefile.am): Likewise.
5771 * modules/getloadavg (Makefile.am): Likewise.
5772 * modules/getlogin_r (Makefile.am): Likewise.
5773 * modules/getndelim2 (Makefile.am): Likewise.
5774 * modules/getopt (Makefile.am): Likewise.
5775 * modules/getpagesize (Makefile.am): Likewise.
5776 * modules/getpass-gnu (Makefile.am): Likewise.
5777 * modules/getpass (Makefile.am): Likewise.
5778 * modules/getsubopt (Makefile.am): Likewise.
5779 * modules/gettime (Makefile.am): Likewise.
5780 * modules/gettimeofday (Makefile.am): Likewise.
5781 * modules/getugroups (Makefile.am): Likewise.
5782 * modules/getusershell (Makefile.am): Likewise.
5783 * modules/glob (Makefile.am): Likewise.
5784 * modules/group-member (Makefile.am): Likewise.
5785 * modules/hard-locale (Makefile.am): Likewise.
5786 * modules/hash (Makefile.am): Likewise.
5787 * modules/hmac-md5 (Makefile.am): Likewise.
5788 * modules/hmac-sha1 (Makefile.am): Likewise.
5789 * modules/human (Makefile.am): Likewise.
5790 * modules/idcache (Makefile.am): Likewise.
5791 * modules/imaxabs (Makefile.am): Likewise.
5792 * modules/imaxdiv (Makefile.am): Likewise.
5793 * modules/inet_ntop (Makefile.am): Likewise.
5794 * modules/inet_pton (Makefile.am): Likewise.
5795 * modules/intprops (Makefile.am): Likewise.
5796 * modules/inttostr (Makefile.am): Likewise.
5797 * modules/inttypes (Makefile.am): Likewise.
5798 * modules/isapipe (Makefile.am): Likewise.
5799 * modules/javaversion (Makefile.am): Likewise.
5800 * modules/lchmod (Makefile.am): Likewise.
5801 * modules/lchown (Makefile.am): Likewise.
5802 * modules/localcharset (Makefile.am): Likewise.
5803 * modules/long-options (Makefile.am): Likewise.
5804 * modules/lstat (Makefile.am): Likewise.
5805 * modules/malloc (Makefile.am): Likewise.
5806 * modules/mathl (Makefile.am): Likewise.
5807 * modules/mbchar (Makefile.am): Likewise.
5808 * modules/md2 (Makefile.am): Likewise.
5809 * modules/md4 (Makefile.am): Likewise.
5810 * modules/md5 (Makefile.am): Likewise.
5811 * modules/memcasecmp (Makefile.am): Likewise.
5812 * modules/memchr (Makefile.am): Likewise.
5813 * modules/memcmp (Makefile.am): Likewise.
5814 * modules/memcoll (Makefile.am): Likewise.
5815 * modules/memcpy (Makefile.am): Likewise.
5816 * modules/memmem (Makefile.am): Likewise.
5817 * modules/memmove (Makefile.am): Likewise.
5818 * modules/mempcpy (Makefile.am): Likewise.
5819 * modules/memrchr (Makefile.am): Likewise.
5820 * modules/memset (Makefile.am): Likewise.
5821 * modules/memxor (Makefile.am): Likewise.
5822 * modules/mkancesdirs (Makefile.am): Likewise.
5823 * modules/mkdir-p (Makefile.am): Likewise.
5824 * modules/mkdir (Makefile.am): Likewise.
5825 * modules/mkdtemp (Makefile.am): Likewise.
5826 * modules/mkstemp (Makefile.am): Likewise.
5827 * modules/mktime (Makefile.am): Likewise.
5828 * modules/modechange (Makefile.am): Likewise.
5829 * modules/mountlist (Makefile.am): Likewise.
5830 * modules/nanosleep (Makefile.am): Likewise.
5831 * modules/obstack (Makefile.am): Likewise.
5832 * modules/openat (Makefile.am): Likewise.
5833 * modules/pagealign_alloc (Makefile.am): Likewise.
5834 * modules/pathmax (Makefile.am): Likewise.
5835 * modules/physmem (Makefile.am): Likewise.
5836 * modules/poll (Makefile.am): Likewise.
5837 * modules/posixtm (Makefile.am): Likewise.
5838 * modules/posixver (Makefile.am): Likewise.
5839 * modules/putenv (Makefile.am): Likewise.
5840 * modules/quote (Makefile.am): Likewise.
5841 * modules/quotearg (Makefile.am): Likewise.
5842 * modules/raise (Makefile.am): Likewise.
5843 * modules/read-file (Makefile.am): Likewise.
5844 * modules/readline (Makefile.am): Likewise.
5845 * modules/readlink (Makefile.am): Likewise.
5846 * modules/readtokens (Makefile.am): Likewise.
5847 * modules/readutmp (Makefile.am): Likewise.
5848 * modules/realloc (Makefile.am): Likewise.
5849 * modules/regex (Makefile.am): Likewise.
5850 * modules/rename-dest-slash (Makefile.am): Likewise.
5851 * modules/rename (Makefile.am): Likewise.
5852 * modules/rijndael (Makefile.am): Likewise.
5853 * modules/rmdir (Makefile.am): Likewise.
5854 * modules/rpmatch (Makefile.am): Likewise.
5855 * modules/safe-read (Makefile.am): Likewise.
5856 * modules/safe-write (Makefile.am): Likewise.
5857 * modules/same-inode (Makefile.am): Likewise.
5858 * modules/same (Makefile.am): Likewise.
5859 * modules/save-cwd (Makefile.am): Likewise.
5860 * modules/savedir (Makefile.am): Likewise.
5861 * modules/setenv (Makefile.am): Likewise.
5862 * modules/settime (Makefile.am): Likewise.
5863 * modules/sha1 (Makefile.am): Likewise.
5864 * modules/sig2str (Makefile.am): Likewise.
5865 * modules/snprintf (Makefile.am): Likewise.
5866 * modules/stat-macros (Makefile.am): Likewise.
5867 * modules/stat-time (Makefile.am): Likewise.
5868 * modules/stdbool (Makefile.am): Likewise.
5869 * modules/stdint (Makefile.am): Likewise.
5870 * modules/stdlib-safer (Makefile.am): Likewise.
5871 * modules/stpcpy (Makefile.am): Likewise.
5872 * modules/stpncpy (Makefile.am): Likewise.
5873 * modules/strcase (Makefile.am): Likewise.
5874 * modules/strcasestr (Makefile.am): Likewise.
5875 * modules/strchrnul (Makefile.am): Likewise.
5876 * modules/strcspn (Makefile.am): Likewise.
5877 * modules/strdup (Makefile.am): Likewise.
5878 * modules/strerror (Makefile.am): Likewise.
5879 * modules/strftime (Makefile.am): Likewise.
5880 * modules/strndup (Makefile.am): Likewise.
5881 * modules/strnlen (Makefile.am): Likewise.
5882 * modules/strpbrk (Makefile.am): Likewise.
5883 * modules/strsep (Makefile.am): Likewise.
5884 * modules/strstr (Makefile.am): Likewise.
5885 * modules/strtod (Makefile.am): Likewise.
5886 * modules/strtoimax (Makefile.am): Likewise.
5887 * modules/strtok_r (Makefile.am): Likewise.
5888 * modules/strtol (Makefile.am): Likewise.
5889 * modules/strtoll (Makefile.am): Likewise.
5890 * modules/strtoul (Makefile.am): Likewise.
5891 * modules/strtoull (Makefile.am): Likewise.
5892 * modules/strtoumax (Makefile.am): Likewise.
5893 * modules/strverscmp (Makefile.am): Likewise.
5894 * modules/sys_socket (Makefile.am): Likewise.
5895 * modules/sys_stat (Makefile.am): Likewise.
5896 * modules/sysexits (Makefile.am): Likewise.
5897 * modules/time_r (Makefile.am): Likewise.
5898 * modules/timegm (Makefile.am): Likewise.
5899 * modules/timespec (Makefile.am): Likewise.
5900 * modules/tmpfile-safer (Makefile.am): Likewise.
5901 * modules/trim (Makefile.am): Likewise.
5902 * modules/unistd-safer (Makefile.am): Likewise.
5903 * modules/unlinkdir (Makefile.am): Likewise.
5904 * modules/unlocked-io (Makefile.am): Likewise.
5905 * modules/userspec (Makefile.am): Likewise.
5906 * modules/utime (Makefile.am): Likewise.
5907 * modules/utimecmp (Makefile.am): Likewise.
5908 * modules/utimens (Makefile.am): Likewise.
5909 * modules/vasnprintf (Makefile.am): Likewise.
5910 * modules/vasprintf (Makefile.am): Likewise.
5911 * modules/vsnprintf (Makefile.am): Likewise.
5912 * modules/xalloc (Makefile.am): Likewise.
5913 * modules/xgetcwd (Makefile.am): Likewise.
5914 * modules/xnanosleep (Makefile.am): Likewise.
5915 * modules/xreadlink (Makefile.am): Likewise.
5916 * modules/xstrtod (Makefile.am): Likewise.
5917 * modules/xstrtol (Makefile.am): Likewise.
5918 * modules/xstrtold (Makefile.am): Likewise.
5919 * modules/yesno (Makefile.am): Likewise.
5920 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
5922 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
5924 * modules/error (Makefile.am): Distribute files through
5925 EXTRA_DIST, not lib_SOURCES.
5927 2006-10-12 Eric Blake <ebb9@byu.net>
5929 * modules/error (Makefile.am): Distribute files in /lib.
5930 * modules/obstack (Makefile.am): Likewise.
5932 2006-10-12 Bruno Haible <bruno@clisp.org>
5934 * modules/acl (Makefile.am): Distribute all files in lib/ through
5936 * modules/arcfour (Makefile.am): Likewise.
5937 * modules/arctwo (Makefile.am): Likewise.
5938 * modules/argmatch (Makefile.am): Likewise.
5939 * modules/argz (Makefile.am): Likewise.
5940 * modules/atexit (Makefile.am): Likewise.
5941 * modules/backupfile (Makefile.am): Likewise.
5942 * modules/c-strtod (Makefile.am): Likewise.
5943 * modules/c-strtold (Makefile.am): Likewise.
5944 * modules/calloc (Makefile.am): Likewise.
5945 * modules/canon-host (Makefile.am): Likewise.
5946 * modules/canonicalize (Makefile.am): Likewise.
5947 * modules/chdir-long (Makefile.am): Likewise.
5948 * modules/chdir-safer (Makefile.am): Likewise.
5949 * modules/check-version (Makefile.am): Likewise.
5950 * modules/chown (Makefile.am): Likewise.
5951 * modules/cloexec (Makefile.am): Likewise.
5952 * modules/close-stream (Makefile.am): Likewise.
5953 * modules/closeout (Makefile.am): Likewise.
5954 * modules/crc (Makefile.am): Likewise.
5955 * modules/cycle-check (Makefile.am): Likewise.
5956 * modules/des (Makefile.am): Likewise.
5957 * modules/dirfd (Makefile.am): Likewise.
5958 * modules/dirname (Makefile.am): Likewise.
5959 * modules/dup2 (Makefile.am): Likewise.
5960 * modules/euidaccess (Makefile.am): Likewise.
5961 * modules/exclude (Makefile.am): Likewise.
5962 * modules/exitfail (Makefile.am): Likewise.
5963 * modules/fcntl-safer (Makefile.am): Likewise.
5964 * modules/file-type (Makefile.am): Likewise.
5965 * modules/fileblocks (Makefile.am): Likewise.
5966 * modules/filemode (Makefile.am): Likewise.
5967 * modules/filenamecat (Makefile.am): Likewise.
5968 * modules/fnmatch (Makefile.am): Likewise.
5969 * modules/fopen-safer (Makefile.am): Likewise.
5970 * modules/fpending (Makefile.am): Likewise.
5971 * modules/fprintftime (Makefile.am): Likewise.
5972 * modules/free (Makefile.am): Likewise.
5973 * modules/fsusage (Makefile.am): Likewise.
5974 * modules/ftruncate (Makefile.am): Likewise.
5975 * modules/fts (Makefile.am): Likewise.
5976 * modules/gc (Makefile.am): Likewise.
5977 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
5978 * modules/getaddrinfo (Makefile.am): Likewise.
5979 * modules/getcwd (Makefile.am): Likewise.
5980 * modules/getdelim (Makefile.am): Likewise.
5981 * modules/getdomainname (Makefile.am): Likewise.
5982 * modules/getgroups (Makefile.am): Likewise.
5983 * modules/gethostname (Makefile.am): Likewise.
5984 * modules/gethrxtime (Makefile.am): Likewise.
5985 * modules/getline (Makefile.am): Likewise.
5986 * modules/getloadavg (Makefile.am): Likewise.
5987 * modules/getlogin_r (Makefile.am): Likewise.
5988 * modules/getopt (Makefile.am): Likewise.
5989 * modules/getpass (Makefile.am): Likewise.
5990 * modules/getpass-gnu (Makefile.am): Likewise.
5991 * modules/getsubopt (Makefile.am): Likewise.
5992 * modules/gettime (Makefile.am): Likewise.
5993 * modules/gettimeofday (Makefile.am): Likewise.
5994 * modules/getugroups (Makefile.am): Likewise.
5995 * modules/getusershell (Makefile.am): Likewise.
5996 * modules/glob (Makefile.am): Likewise.
5997 * modules/group-member (Makefile.am): Likewise.
5998 * modules/hard-locale (Makefile.am): Likewise.
5999 * modules/hash (Makefile.am): Likewise.
6000 * modules/hmac-md5 (Makefile.am): Likewise.
6001 * modules/hmac-sha1 (Makefile.am): Likewise.
6002 * modules/human (Makefile.am): Likewise.
6003 * modules/idcache (Makefile.am): Likewise.
6004 * modules/imaxabs (Makefile.am): Likewise.
6005 * modules/imaxdiv (Makefile.am): Likewise.
6006 * modules/inet_ntop (Makefile.am): Likewise.
6007 * modules/inet_pton (Makefile.am): Likewise.
6008 * modules/inttostr (Makefile.am): Likewise.
6009 * modules/isapipe (Makefile.am): Likewise.
6010 * modules/lchown (Makefile.am): Likewise.
6011 * modules/long-options (Makefile.am): Likewise.
6012 * modules/lstat (Makefile.am): Likewise.
6013 * modules/malloc (Makefile.am): Likewise.
6014 * modules/mathl (Makefile.am): Likewise.
6015 * modules/mbchar (Makefile.am): Likewise.
6016 * modules/md2 (Makefile.am): Likewise.
6017 * modules/md4 (Makefile.am): Likewise.
6018 * modules/md5 (Makefile.am): Likewise.
6019 * modules/memcasecmp (Makefile.am): Likewise.
6020 * modules/memchr (Makefile.am): Likewise.
6021 * modules/memcmp (Makefile.am): Likewise.
6022 * modules/memcoll (Makefile.am): Likewise.
6023 * modules/memcpy (Makefile.am): Likewise.
6024 * modules/memmem (Makefile.am): Likewise.
6025 * modules/memmove (Makefile.am): Likewise.
6026 * modules/mempcpy (Makefile.am): Likewise.
6027 * modules/memrchr (Makefile.am): Likewise.
6028 * modules/memset (Makefile.am): Likewise.
6029 * modules/memxor (Makefile.am): Likewise.
6030 * modules/mkancesdirs (Makefile.am): Likewise.
6031 * modules/mkdir (Makefile.am): Likewise.
6032 * modules/mkdir-p (Makefile.am): Likewise.
6033 * modules/mkdtemp (Makefile.am): Likewise.
6034 * modules/mkstemp (Makefile.am): Likewise.
6035 * modules/mktime (Makefile.am): Likewise.
6036 * modules/modechange (Makefile.am): Likewise.
6037 * modules/mountlist (Makefile.am): Likewise.
6038 * modules/nanosleep (Makefile.am): Likewise.
6039 * modules/openat (Makefile.am): Likewise.
6040 * modules/pagealign_alloc (Makefile.am): Likewise.
6041 * modules/physmem (Makefile.am): Likewise.
6042 * modules/poll (Makefile.am): Likewise.
6043 * modules/posixtm (Makefile.am): Likewise.
6044 * modules/posixver (Makefile.am): Likewise.
6045 * modules/putenv (Makefile.am): Likewise.
6046 * modules/quote (Makefile.am): Likewise.
6047 * modules/quotearg (Makefile.am): Likewise.
6048 * modules/raise (Makefile.am): Likewise.
6049 * modules/read-file (Makefile.am): Likewise.
6050 * modules/readline (Makefile.am): Likewise.
6051 * modules/readlink (Makefile.am): Likewise.
6052 * modules/readtokens (Makefile.am): Likewise.
6053 * modules/readutmp (Makefile.am): Likewise.
6054 * modules/realloc (Makefile.am): Likewise.
6055 * modules/regex (Makefile.am): Likewise.
6056 * modules/rename (Makefile.am): Likewise.
6057 * modules/rename-dest-slash (Makefile.am): Likewise.
6058 * modules/rijndael (Makefile.am): Likewise.
6059 * modules/rmdir (Makefile.am): Likewise.
6060 * modules/rpmatch (Makefile.am): Likewise.
6061 * modules/safe-read (Makefile.am): Likewise.
6062 * modules/safe-write (Makefile.am): Likewise.
6063 * modules/same (Makefile.am): Likewise.
6064 * modules/save-cwd (Makefile.am): Likewise.
6065 * modules/savedir (Makefile.am): Likewise.
6066 * modules/setenv (Makefile.am): Likewise.
6067 * modules/settime (Makefile.am): Likewise.
6068 * modules/sha1 (Makefile.am): Likewise.
6069 * modules/sig2str (Makefile.am): Likewise.
6070 * modules/snprintf (Makefile.am): Likewise.
6071 * modules/stdlib-safer (Makefile.am): Likewise.
6072 * modules/stpcpy (Makefile.am): Likewise.
6073 * modules/stpncpy (Makefile.am): Likewise.
6074 * modules/strcase (Makefile.am): Likewise.
6075 * modules/strcasestr (Makefile.am): Likewise.
6076 * modules/strchrnul (Makefile.am): Likewise.
6077 * modules/strcspn (Makefile.am): Likewise.
6078 * modules/strdup (Makefile.am): Likewise.
6079 * modules/strerror (Makefile.am): Likewise.
6080 * modules/strftime (Makefile.am): Likewise.
6081 * modules/strndup (Makefile.am): Likewise.
6082 * modules/strnlen (Makefile.am): Likewise.
6083 * modules/strpbrk (Makefile.am): Likewise.
6084 * modules/strsep (Makefile.am): Likewise.
6085 * modules/strstr (Makefile.am): Likewise.
6086 * modules/strtod (Makefile.am): Likewise.
6087 * modules/strtoimax (Makefile.am): Likewise.
6088 * modules/strtok_r (Makefile.am): Likewise.
6089 * modules/strtol (Makefile.am): Likewise.
6090 * modules/strtoll (Makefile.am): Likewise.
6091 * modules/strtoul (Makefile.am): Likewise.
6092 * modules/strtoull (Makefile.am): Likewise.
6093 * modules/strtoumax (Makefile.am): Likewise.
6094 * modules/strverscmp (Makefile.am): Likewise.
6095 * modules/time_r (Makefile.am): Likewise.
6096 * modules/timegm (Makefile.am): Likewise.
6097 * modules/tmpfile-safer (Makefile.am): Likewise.
6098 * modules/unistd-safer (Makefile.am): Likewise.
6099 * modules/unlinkdir (Makefile.am): Likewise.
6100 * modules/userspec (Makefile.am): Likewise.
6101 * modules/utime (Makefile.am): Likewise.
6102 * modules/utimecmp (Makefile.am): Likewise.
6103 * modules/utimens (Makefile.am): Likewise.
6104 * modules/vasnprintf (Makefile.am): Likewise.
6105 * modules/vasprintf (Makefile.am): Likewise.
6106 * modules/vsnprintf (Makefile.am): Likewise.
6107 * modules/xalloc (Makefile.am): Likewise.
6108 * modules/xgetcwd (Makefile.am): Likewise.
6109 * modules/xnanosleep (Makefile.am): Likewise.
6110 * modules/xreadlink (Makefile.am): Likewise.
6111 * modules/xstrtod (Makefile.am): Likewise.
6112 * modules/xstrtol (Makefile.am): Likewise.
6113 * modules/xstrtold (Makefile.am): Likewise.
6114 * modules/yesno (Makefile.am): Likewise.
6116 2006-10-12 Jim Meyering <jim@meyering.net>
6118 * m4/getloadavg.m4: Revert the change below.
6120 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
6121 lib/getloadavg.c using "ls -L", not "test -f". The latter would
6122 fail with a symlink, which is what coreutils' ./bootstrap now
6125 2006-10-12 Bruno Haible <bruno@clisp.org>
6127 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
6129 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
6130 MSVC and mingw explicitly.
6132 2006-10-11 Simon Josefsson <jas@extundo.com>
6133 Bruno Haible <bruno@clisp.org>
6135 Add support for multiple gnulib-tool invocations in the scope of a
6136 single configure.ac file.
6137 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
6138 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
6139 with the same contents as the _LIBADD variable.
6140 (func_emit_initmacro_start, func_emit_initmacro_end,
6141 func_emit_initmacro_done): New functions.
6142 (func_import, func_create_testdir): Invoke them. Allow the identifiers
6143 gl_LIBOBJS and gl_LTLIBOBJS.
6145 2006-10-11 Bruno Haible <bruno@clisp.org>
6147 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
6148 (func_create_testdir): Don't create po/Makefile.am, don't invoke
6149 autoreconf. Instead, invoke autopoint explicitly but move back the
6150 *.m4 files from gnulib.
6152 2006-10-11 Bruno Haible <bruno@clisp.org>
6154 * gnulib-tool (func_usage): Make module names after --create-testdir
6156 (func_create_testdir): If no module was specified, use nearly all
6159 2006-10-12 Jim Meyering <jim@meyering.net>
6161 Big performance improvement for fts-based tools that use FTS_NOSTAT.
6162 Avoid spurious inode-mismatch problems on non-POSIX file systems.
6163 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
6164 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
6165 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
6166 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
6167 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
6168 (fts_set_stat_required): New function.
6169 (fts_open): Defer the calls to fts_stat, if possible or requested.
6170 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
6171 into fts_stat itself.
6172 (fts_read): Perform any required (deferred) fts_stat call.
6173 (fts_build): Likewise, for the directory we're about to open and read.
6174 In the readdir loop, carefully decide whether each entry will require
6175 an eventual call to fts_stat, using dirent.d_type info if available.
6176 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
6177 a command line argument into this function. Update all callers.
6178 Map a return value of FTS_DOT to FTS_D for a command line argument.
6179 * modules/fts (Depends-on): Add d-type. Alphabetize.
6180 Thanks to Miklos Szeredi for his tenacity and for the initial
6181 bug report about "find" failing on a FUSE-based file system.
6183 * lib/fts.c (fts_open): Use consistent indentation.
6185 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
6187 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
6188 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
6189 reported by Jim Meyering. All uses of cache variables renamed
6190 to match Autoconf's.
6191 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
6194 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
6195 Fix misspelling in diagnostic.
6197 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
6199 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
6200 defined. Problem reported by Matthew Woehlke.
6202 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
6203 Add support for Tandem NonStop R series.
6204 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
6207 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
6208 (has_trailing_slash): Omit size arg; all callers changed.
6209 Omit 'inline', since it doesn't help performance and we'd
6210 need to configure it.
6211 Don't count //, ///, etc. as having a trailing slash.
6212 As a side effect, this removes a C99ism reported by Matthew Woehlke.
6213 (rpl_rename_dest_slash): On failure, use rename's errno rather
6214 than (in some cases) an incorrect or junk errno.
6215 Simplify code by removing need to compute length; this does
6216 cause it to make two passes instead of one over the file name,
6219 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
6220 change, since Autoconf's version may no longer be appropriate now
6221 that we are using CVS Autoconf's version. Add support for Tandem.
6223 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
6224 Bruno Haible <bruno@clisp.org>
6226 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
6227 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
6228 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
6229 gl_AC_TYPE_LONG_LONG.
6231 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
6232 instead of HAVE_LONG_LONG.
6233 * lib/printf-args.c (printf_fetchargs): Likewise.
6234 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
6235 * lib/vasnprintf.c (VASNPRINTF): Likewise.
6236 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
6237 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
6238 gl_AC_TYPE_LONG_LONG.
6240 2006-10-11 Bruno Haible <bruno@clisp.org>
6242 * m4/longlong.m4: Add comments.
6243 * m4/ulonglong.m4: Likewise.
6245 2006-10-10 Bruno Haible <bruno@clisp.org>
6247 Make it possible to #define stpcpy, strdup to aliases.
6248 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
6249 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
6251 2006-10-10 Bruno Haible <bruno@clisp.org>
6253 Make it possible to #define gcd to an alias.
6254 * lib/gcd.c: Include config.h.
6256 2006-10-10 Bruno Haible <bruno@clisp.org>
6258 Make it possible to #define c_isascii to an alias.
6259 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
6260 defined. Undefine the macros before defining them, to avoid gcc
6262 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
6263 define NO_C_CTYPE_MACROS early.
6265 2006-10-10 Bruno Haible <bruno@clisp.org>
6267 Make it possible to #define set_program_name to an alias.
6268 * lib/progname.c: Don't undefine set_program_name; instead, undefine
6269 ENABLE_RELOCATABLE early.
6271 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
6273 Port to Tandem NSK OSS, which has 64-bit signed int but at most
6274 32-bit unsigned int. Problem reported by Matthew Woehlke in:
6275 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
6276 More generally, don't assume that 64-bit signed int is available
6277 if unsigned int is, and vice versa.
6278 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
6279 unsigned symbols, not on their signed counterparts.
6280 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
6281 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
6282 (UINT64_C, UINTMAX_C):
6284 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
6285 unsigned counterparts.
6286 (Have_long_long, Unsigned): New macros.
6287 (Int): Renamed from INT.
6288 (strtoimax): Use the new macros.
6289 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
6290 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
6291 * modules/inttypes (inttypes.h): Substitute
6292 HAVE_UNSIGNED_LONG_LONG_INT.
6293 * modules/stdint (stdint.h): Likewise.
6294 (Files): Add m4/ulonglong.m4.
6296 2006-10-10 Bruno Haible <bruno@clisp.org>
6298 Fix a gcc -Wshadow warning.
6299 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
6301 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
6302 gl_linked_indexof_from_to): Likewise.
6303 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
6305 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
6307 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
6308 Reported by Eric Blake.
6310 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
6312 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
6313 for NetBSD. Problem reported by Bruno Haible.
6315 2006-10-09 Jim Meyering <jim@meyering.net>
6317 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
6318 Patch from Bruno Haible.
6320 2006-10-09 Jim Meyering <jim@meyering.net>
6322 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
6323 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
6324 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
6326 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
6328 Don't include <config.h> twice; this doesn't work in some cases,
6329 e.g., when config.h has "#define intmax_t long long int" and
6330 we include <config.h>, <inttypes.h>, <config.h> in that order.
6331 Problem reported by Matthew Woehlke in:
6332 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
6333 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
6334 * lib/fts-cycle.c: Don't include config.h.
6335 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
6336 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
6337 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
6338 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
6340 * lib/xstrtoumax.c: Likewise.
6341 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
6342 __strtol and the like, so that this module is more like its siblings.
6343 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
6344 Remove; no longer needed now that we assume gnulib inttypes.h.
6346 2006-10-08 Bruno Haible <bruno@clisp.org>
6348 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
6351 2006-10-07 Jim Meyering <jim@meyering.net>
6353 * modules/inttypes (inttypes.h): Revert what seems to have been
6354 an inadvertent part of today's change: use "|", not "/" in the
6355 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
6357 2006-10-07 Bruno Haible <bruno@clisp.org>
6359 * modules/sublist: New file.
6361 2006-10-07 Bruno Haible <bruno@clisp.org>
6363 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
6364 * modules/argz (argz.h): Likewise.
6365 * modules/arpa_inet (arpa/inet.h): Likewise.
6366 * modules/byteswap (byteswap.h): Likewise.
6367 * modules/configmake (configmake.h): Likewise.
6368 * modules/fcntl (fcntl.h): Likewise.
6369 * modules/fnmatch (fnmatch.h): Likewise.
6370 * modules/getopt (getopt.h): Likewise.
6371 * modules/glob (glob.h): Likewise.
6372 * modules/inttypes (inttypes.h): Likewise.
6373 * modules/netinet_in (netinet/in.h): Likewise.
6374 * modules/poll (poll.h): Likewise.
6375 * modules/stdbool (stdbool.h): Likewise.
6376 * modules/stdint (stdint.h): Likewise.
6377 * modules/sys_select (sys/select.h): Likewise.
6378 * modules/sys_socket (sys/socket.h): Likewise.
6379 * modules/sys_stat (sys/stat.h): Likewise.
6380 * modules/sysexits (sysexits.h): Likewise.
6381 * modules/unistd (unistd.h): Likewise.
6382 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6383 Add a "DO NOT EDIT" comment to the generated file.
6384 (func_import): Likewise for gnulib-comp.m4.
6386 2006-10-07 Bruno Haible <bruno@clisp.org>
6388 * lib/gl_sublist.h: New file.
6389 * lib/gl_sublist.c: New file.
6391 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
6393 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
6394 name (relative to the original working directory) and the file
6395 name component (relative to the temporary working directory). All
6397 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
6398 * lib/mkdir-p.c (make_dir_parents): Likewise.
6399 * lib/mkdir-p.h (make_dir_parents): Likewise.
6401 2006-10-06 Eric Blake <ebb9@byu.net>
6403 Define several macros for use by the clean-temp module.
6404 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
6405 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
6406 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
6408 * lib/clean-temp.h (close_stream_temp): New declaration.
6409 * lib/clean-temp.c (includes): Pull in headers according to what
6410 other modules are in use.
6411 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
6413 2006-10-06 Bruno Haible <bruno@clisp.org>
6415 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
6416 instead of fopen, fwriteerror.
6418 2006-10-06 Bruno Haible <bruno@clisp.org>
6420 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
6421 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
6423 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
6424 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
6425 Return an error indicator.
6426 Suggested by Eric Blake.
6428 2006-10-06 Bruno Haible <bruno@clisp.org>
6430 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
6431 Reported by Eric Blake.
6433 2006-10-06 Bruno Haible <bruno@clisp.org>
6435 * modules/closeout (Description): Mention stderr too.
6437 2006-10-06 Bruno Haible <bruno@clisp.org>
6438 and Paul Eggert <eggert@cs.ucla.edu>
6440 * lib/closeout.c (close_stdout): Also close stderr.
6441 * lib/closeout.h: Update comment.
6443 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
6445 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
6446 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
6447 * lib/dirchownmod.c: Include lchown.h.
6448 * lib/lchown.c: Don't include files that lchown.h now includes.
6449 Don't declare chown, since lchown.h now does that.
6450 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
6451 (lchown): Define to rpl_chown if lchown is declared but
6452 does not exist. Declare using a prototype if lchown is not
6453 declared. Add a copyright notice.
6454 * lib/mkstemp.h: Include <unistd.h>.
6455 * lib/openat.c: Include lchown.h.
6457 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
6458 we now test for that separately.
6459 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
6460 rather than O_NOFOLLOW, when testing whether it's possible to
6461 avoid a race condition reliably.
6462 * lib/savewd.c (savewd_chdir): Likewise.
6464 Remove macros that are no longer needed now that stdint.h is
6466 * lib/fsusage.c (UINTMAX_MAX): Remove.
6467 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
6468 * lib/utimecmp.c (SIZE_MAX): Remove.
6470 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
6472 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
6473 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
6476 2006-10-05 Bruno Haible <bruno@clisp.org>
6478 * lib/gl_list.h (gl_sortedlist_search_from_to,
6479 gl_sortedlist_indexof_from_to): New declarations.
6480 (gl_list_implementation): New fields sortedlist_search_from_to,
6481 sortedlist_indexof_from_to.
6482 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
6484 * lib/gl_list.c (gl_sortedlist_search_from_to,
6485 gl_sortedlist_indexof_from_to): New functions.
6486 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
6488 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
6489 (gl_array_sortedlist_search_from_to): New function.
6490 (gl_array_list_implementation): Update.
6491 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
6493 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
6494 (gl_carray_sortedlist_search_from_to): New function.
6495 (gl_carray_list_implementation): Update.
6496 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
6497 gl_linked_sortedlist_indexof_from_to): New functions.
6498 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
6499 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
6500 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
6501 gl_tree_sortedlist_indexof_from_to): New functions.
6502 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
6503 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
6505 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
6506 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
6509 2006-10-05 Bruno Haible <bruno@clisp.org>
6511 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
6512 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
6513 (struct gl_list_implementation): Add fields search_from_to,
6514 indexof_from_to. Remove fields search, indexof.
6515 (gl_list_search): Use the search_from_to method.
6516 (gl_list_search_from, gl_list_search_from_to): New functions.
6517 (gl_list_indexof): Use the indexof_from_to method.
6518 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
6519 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
6520 (gl_list_search_from, gl_list_search_from_to): New functions.
6521 (gl_list_indexof): Use the indexof_from_to method.
6522 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
6523 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
6524 gl_array_indexof. Add start_index, end_index arguments.
6525 (gl_array_search_from_to): Renamed from gl_array_search. Add
6526 start_index, end_index arguments.
6527 (gl_array_remove, gl_array_list_implementation): Update.
6528 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
6529 gl_carray_indexof. Add start_index, end_index arguments.
6530 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
6531 start_index, end_index arguments.
6532 (gl_carray_remove, gl_carray_list_implementation): Update.
6533 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
6534 gl_linked_search. Add start_index, end_index arguments.
6535 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
6536 start_index, end_index arguments.
6537 (gl_linked_remove): Update.
6538 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
6539 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
6540 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
6542 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
6543 gl_tree_search. Add start_index, end_index arguments.
6544 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
6545 start_index, end_index arguments.
6546 (gl_tree_remove): Update.
6547 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
6548 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
6549 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
6551 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
6552 gl_tree_search. Add start_index, end_index arguments.
6553 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
6554 start_index, end_index arguments.
6555 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
6557 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
6559 2006-10-05 Bruno Haible <bruno@clisp.org>
6561 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
6563 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
6564 fwriteerror_temp): New declarations.
6565 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
6566 (descriptors): New variable.
6567 (cleanup): First, close the descriptors.
6568 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
6569 fclose_temp, fwriteerror_temp): New functions.
6571 2006-10-04 Jim Meyering <jim@meyering.net>
6573 * lib/fts.c (fts_open): Tiny comment change.
6575 2006-10-04 Bruno Haible <bruno@clisp.org>
6577 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
6578 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
6580 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
6581 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
6583 (gl_LOCK): Require gl_LOCK_BODY.
6585 2006-10-04 Bruno Haible <bruno@clisp.org>
6587 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
6588 (gl_oset_search_atleast): New declaration.
6589 (struct gl_oset_implementation): Add field 'search_atleast'.
6590 (gl_oset_search_atleast): New inline function.
6591 * lib/gl_oset.c (gl_oset_search_atleast): New function.
6592 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
6593 (gl_array_oset_implementation): Update.
6594 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
6595 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
6596 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
6598 2006-10-04 Bruno Haible <bruno@clisp.org>
6600 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
6602 2006-10-03 Bruno Haible <bruno@clisp.org>
6604 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
6605 from gl_avltreehash_list_implementation.
6607 2006-10-03 Bruno Haible <bruno@clisp.org>
6609 * lib/gl_oset.c (gl_oset_add): Fix return type.
6611 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
6613 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
6615 2006-10-02 Eric Blake <ebb9@byu.net>
6617 * modules/strnlen (Depends-on): Add extensions.
6619 2006-10-02 Eric Blake <ebb9@byu.net>
6621 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
6622 definition in 2.60+.
6624 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
6626 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
6629 2006-10-02 Bruno Haible <bruno@clisp.org>
6631 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
6632 to the AUTOMAKE_OPTIONS.
6633 Reported by Jim Meyering.
6635 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
6637 Work around bug in Solaris 10 /proc file system:
6638 /proc/self/fd/NNN/.. isn't the parent directory of
6639 the directory whose file descriptor is NNN. This needs to
6640 be worked around at run time, not compile time, since a
6641 program might be built on Solaris 8, where things work, and
6643 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
6644 to use the following interface instead:
6645 (OPENAT_BUFFER_SIZE): New macro.
6646 (openat_proc_name): New function.
6647 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
6648 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
6650 * lib/openat-proc.c: New file.
6651 * modules/openat (Files): Add lib/openat-proc.c.
6652 (Depends-on): Add same-inode, stdbool.
6653 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
6655 2006-09-29 Bruno Haible <bruno@clisp.org>
6657 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
6658 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
6659 argument. Set stdout_closed before testing for ferror, not after.
6660 (fwriteerror, fwriteerror_no_ebadf): New functions.
6662 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6664 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
6666 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
6668 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
6669 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
6671 2006-09-28 Jim Meyering <jim@meyering.net>
6673 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
6676 2006-09-28 Bruno Haible <bruno@clisp.org>
6678 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
6679 * modules/linkedhash-list (Depends-on): Likewise.
6680 * modules/rbtreehash-list (Depends-on): Likewise.
6682 2006-09-28 Bruno Haible <bruno@clisp.org>
6684 * lib/strndup.h: Simplify the redefinition of strndup.
6685 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
6686 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
6688 2006-09-28 Bruno Haible <bruno@clisp.org>
6690 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
6691 * lib/gl_linkedhash_list.c: Likewise.
6692 * lib/gl_rbtreehash_list.c: Likewise.
6694 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
6696 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
6699 * lib/__fpending.h: Don't include <stdio_ext.h> unless
6700 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
6701 it causes <stdio_ext.h> to cause a compile-time error.
6702 Problem reported by Nelson H. F. Beebe.
6703 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
6704 of HAVE_DECL___PENDING.
6706 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
6707 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
6710 2006-09-27 Jim Meyering <jim@meyering.net>
6712 This file could end up with a definition for a function
6713 named __strndup, rather than rpl_strndup on a system with
6714 incomplete weak_alias support.
6715 * lib/strndup.c (strndup): Rename from __strndup.
6716 Remove #defines that used to map __strndup to strndup.
6717 Don't use K&R prototypes.
6718 Remove LIBC-related code, since this file is not sync'd with glibc.
6719 * lib/strndup.h: Revamp, accordingly.
6720 * m4/strndup.m4: Modernize.
6722 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
6724 * modules/savewd (Depends-on): Add 'raise'.
6725 * lib/savewd.c: Include <signal.h>, for 'raise'.
6727 2006-09-26 Jim Meyering <jim@meyering.net>
6729 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
6730 when we detect Darwin 8.7.0's acl_get_file bug.
6731 Rearrange to perform the new (below) run-test while $LIBS
6732 contains any acl-related library. Set USE_ACL at the end.
6733 (gl_ACL_GET_FILE): New function.
6735 2006-09-26 Eric Blake <ebb9@byu.net>
6737 * lib/verror.c: Include <config.h> unconditionally.
6739 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
6741 * modules/clock-time (Maintainer): Add self.
6742 * modules/getlogin_r (Depends-on): Add extensions.
6744 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6746 * modules/clock-time: New module.
6747 * modules/nanosleep (Depends-on): Add clock-time.
6748 * modules/gethrxtime (Depends-on): Likewise.
6749 * modules/gettime (Depends-on): Likewise.
6750 * modules/settime (Depends-on): Likewise.
6752 * modules/fts-lgpl: Depend on openat.
6753 * modules/mkancesdirs: Depend on savewd.
6754 * modules/mkdir-p: Likewise.
6756 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6758 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
6760 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
6761 `gl_have_arbitrary_file_name_length_limit' to
6762 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
6763 actually works between configure runs.
6765 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6766 Bruno Haible <bruno@clisp.org>
6768 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
6770 2006-09-25 Jim Meyering <jim@meyering.net>
6772 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
6773 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
6775 2006-09-25 Eric Blake <ebb9@byu.net>
6777 * gnulib-tool (func_import, func_create_testdir): Fix typos in
6778 exec's in 2006-09-18 patch when shuffling fds.
6780 2006-09-25 Bruno Haible <bruno@clisp.org>
6782 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
6783 Reported by Jim Meyering.
6785 2006-09-24 Jim Meyering <jim@meyering.net>
6787 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
6788 compare a pointer against a literal "0". That caused failures with
6789 at least HP-UX's hpcc.
6791 2006-09-22 Simon Josefsson <jas@extundo.com>
6795 * modules/gc-hmac-sha1:
6796 * modules/gc-hmac-md5:
6798 * modules/gc-arcfour: Distribute more files.
6800 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6802 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
6803 (gl_linked_iterator_from_to): Initialize struct completely.
6804 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
6805 (gl_tree_iterator_from_to): Likewise
6806 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
6807 * lib/gl_array_list.c [lint] (gl_array_iterator)
6808 (gl_array_iterator_from_to): Likewise.
6809 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
6810 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
6811 (gl_carray_iterator_from_to): Likewise.
6813 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
6814 * lib/md4.c (md4_process_block): Remove unused variable.
6815 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
6816 parentheses for clarity.
6818 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6820 * modules/bison-i18n (Depends-on): Add gettext.
6822 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6824 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
6825 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
6826 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
6827 also add missing comma that caused broken test.
6828 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
6829 stdlib.h, for `abort'.
6830 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
6832 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
6833 include unistd.h if present, for `rmdir'.
6834 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
6836 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
6837 in the process include standard headers for prototypes.
6838 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
6839 gets declared on GNU/Linux.
6840 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
6841 unistd.h, for `rmdir'.
6842 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
6844 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
6846 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
6848 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
6850 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6852 * gnulib-tool (func_version): Create output all at once. This
6853 may help avoid triggering unnecessary SIGPIPEs, and at any
6854 rate it doesn't hurt.
6856 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6857 Bruno Haible <bruno@clisp.org>
6859 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
6860 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
6861 * m4/signed.m4 (bh_C_SIGNED): Likewise.
6863 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
6864 (gl_FUNC_VASPRINTF): Invoke it.
6866 2006-09-22 Bruno Haible <bruno@clisp.org>
6868 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
6869 getloadavg.c as first argument.
6871 2006-09-22 Bruno Haible <bruno@clisp.org>
6873 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
6874 at the beginning of the gl_INIT macro.
6875 * modules/getloadavg (configure.ac): Pass $gl_source_base to
6878 2006-09-22 Bruno Haible <bruno@clisp.org>
6880 * gnulib-tool (func_create_megatestdir): Don't include the config-h
6882 Suggested by Ralf Wildenhues.
6884 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
6886 Import this patch from libc:
6888 2006-09-06 Jakub Jelinek <jakub@redhat.com>
6890 * lib/regex_internal.c (re_string_reconstruct): Handle
6891 offset < pstr->valid_raw_len && pstr->offsets_needed case.
6892 Ensure no bytes read before raw_mbs array. Pass a saved copy of
6893 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
6894 re_string_context_at.
6896 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
6898 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
6899 gl_REGEX now does it for us.
6900 (gl_REGEX): Add test taken from
6901 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
6903 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
6904 Check that large offsets work. Modernize Autoconf usages.
6905 Prefer "yes" to mean a good thing rather than a bad.
6906 Don't put "#define mkstemp" in config.h, as this might interfere
6907 with standard system headers that "#define mkstemp mkstemp64".
6909 * modules/mkstemp (Depends-on): Add extensions, so that
6910 mkstemp is visible on some platforms.
6911 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
6912 (Include): Change to "mkstemp.h" from <stdlib.h>.
6913 (Files): Add mkstemp.h.
6915 * lib/mkstemp.h: New file, since some standard headers
6917 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
6918 Include "mkstemp.h".
6919 Make the _LIBC code resemble glibc original more,
6920 e.g., use K&R style.
6921 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
6922 (mkstemp): Remove, since mkstemp.h does this for us.
6923 * lib/stdlib--.h: Include mkstemp.h.
6925 Import this patch from libc:
6927 2006-04-07 Ulrich Drepper <drepper@redhat.com>
6929 * lib/tempname.c (__gen_tempname): Change attempts_min
6930 into a macro. Use preprocessor to decide how to initialize
6931 attempts [Coverity CID 67].
6933 2006-09-20 Bruno Haible <bruno@clisp.org>
6935 * lib/mkdtemp.c: Import from libc.
6936 2006-04-07 Ulrich Drepper <drepper@redhat.com>
6937 * sysdeps/posix/tempname.c (__gen_tempname): Change
6938 attempts_min into a macro. Use preprocessor to decide how to
6939 initialize attempts [Coverity CID 67].
6940 2001-11-27 Paul Eggert <eggert@twinsun.com>
6941 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
6942 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
6944 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6946 * gnulib-tool (func_exit): New function, to allow to pass the
6947 exit status portably through the trap. Use everywhere.
6948 (--help, --version): Signal a write error.
6949 (trap): catch SIGPIPE, for write errors.
6950 Exit at the end of the trap, with the correct exit status.
6952 2006-09-19 Karl Berry <karl@gnu.org>
6954 * doc/gnulib.texi: note about the license texinfo files.
6956 2006-09-19 Eric Blake <ebb9@byu.net>
6958 * gnulib-tool: Avoid space-tab.
6960 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
6962 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
6963 that prevented coreutils 6.1 from building. Problem reported
6964 by Petter Reinholdtsen.
6966 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
6968 * gnulib-tool (avoidlist): Fix typo that broke options like
6969 --avoid=lock that are used by coreutils bootstrap.
6971 2006-09-18 Mark D. Baushke <mdb@gnu.org>
6973 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
6974 more systematically.
6976 2006-09-18 Jim Meyering <jim@meyering.net>
6978 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
6980 2006-09-18 Bruno Haible <bruno@clisp.org>
6982 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
6984 2006-09-18 Bruno Haible <bruno@clisp.org>
6986 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
6987 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
6988 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
6989 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
6990 * m4/gettext.m4: Require autoconf >= 2.52.
6991 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
6992 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
6993 of gl_cv_header_inttypes_h.
6995 2006-09-18 Bruno Haible <bruno@clisp.org>
6997 * lib/javaversion.c: Include configmake.h.
6999 2006-09-18 Bruno Haible <bruno@clisp.org>
7001 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
7002 avoid that the while loops be executed in a subshell.
7004 2006-09-18 Bruno Haible <bruno@clisp.org>
7006 * MODULES.html.sh (func_module): Break long lines.
7007 Suggested by Bruce Korb <bkorb@gnu.org>.
7009 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7011 Speed up by a factor of 1.12.
7012 * gnulib-tool (nl): New variable.
7013 (func_import): Rewrite include directive extraction to only read each
7016 2006-09-17 Bruno Haible <bruno@clisp.org>
7018 * modules/javaversion (Makefile.am): Remove DEFS setting.
7019 (Depends-on): Add configmake, for PKGDATADIR definition.
7021 2006-09-17 Bruno Haible <bruno@clisp.org>
7023 * gnulib-tool (func_create_testdir): Rewrite all files at once.
7025 2006-09-17 Bruno Haible <bruno@clisp.org>
7027 * gnulib-tool (func_append): New function, stolen from libtool.m4.
7028 (func_modules_transitive_closure, func_modules_add_dummy,
7029 func_modules_to_filelist, func_import, func_create_testdir,
7030 func_create_megatestdir, ...): Use it wherever possible.
7031 Suggested by Ralf Wildenhues.
7033 2006-09-16 Karl Berry <karl@gnu.org>
7035 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
7036 to avoid sectioning errors.
7037 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
7038 [ifinfo]: blank line after @center-ed titles.
7039 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
7040 Spell FSF address consistently with others.
7041 (These changes approved by rms.)
7043 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7045 Speed up by a factor of 1.61.
7046 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
7047 already checked module names again.
7049 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7051 Speed up by a factor of 1.13.
7052 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
7053 for new_files, and the input to func_add_or_update.
7055 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7057 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
7058 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
7060 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
7062 * modules/mkancesdirs (Depends-on): Add fcntl.
7063 * modules/savewd: New file.
7064 * MODULES.html.sh (File system functions): Add savewd.
7066 * modules/configmake (Makefile.am): Add support for the
7067 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
7069 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
7071 * m4/savewd.m4: New file.
7073 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
7075 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
7076 (dirchownmod): New arg FD. All callers changed.
7077 Use FD rather than opening the directory ourself, as opening is
7078 now the caller's responsibility.
7079 * lib/dirchownmod.h: Likewise.
7080 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
7081 hosts that require <sys/types.h> before <sys/stat.h>. Include
7082 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
7084 (mkancesdirs): Return length of prefix of FILE that has already
7085 been made, or -2 if there is a child doing the work. Redo
7086 algorithm so that it is O(N) rather than O(N**2). Optimize away
7087 ".", and treat ".." specially since it might stray back into
7088 already-created areas. Use a subprocess if necessary. New arg
7089 WD; all users changed. MAKE_DIR function should now return 1
7090 if it creates a directory that is not readable. Return -2 if
7091 a child process is spun off.
7092 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
7093 Adjust signature to match code.
7094 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
7095 (make_dir_parents): Use a subprocess if necessary. New arg WD;
7097 * lib/savewd.c, lib/savewd.h: New files.
7099 2006-09-15 Jim Meyering <jim@meyering.net>
7101 * modules/rename-dest-slash: New module.
7102 * MODULES.html.sh (posix_compat): Add it here.
7104 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
7106 2006-09-15 Jim Meyering <jim@meyering.net>
7108 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
7111 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
7113 2006-09-15 Jim Meyering <jim@meyering.net>
7115 * lib/rename-dest-slash.c (has_trailing_slash): Use
7116 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
7117 (rpl_rename_dest_slash): Perform the cheaper trailing slash
7118 test before testing whether SRC is a directory.
7119 Suggestions from Bruno Haible.
7121 Avoid a warning about an unused variable.
7122 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
7123 into the #ifdef block where it's used.
7125 * lib/rename-dest-slash.c: New file.
7127 2006-09-14 Bruno Haible <bruno@clisp.org>
7129 * lib/allocsa.c: Include <config.h> unconditionally.
7130 * lib/asnprintf.c: Likewise.
7131 * lib/asprintf.c: Likewise.
7132 * lib/c-strcasecmp.c: Likewise.
7133 * lib/c-strcasestr.c: Likewise.
7134 * lib/c-strncasecmp.c: Likewise.
7135 * lib/c-strstr.c: Likewise.
7136 * lib/classpath.c: Likewise.
7137 * lib/clean-temp.c: Likewise.
7138 * lib/concatpath.c: Likewise.
7139 * lib/copy-file.c: Likewise.
7140 * lib/csharpcomp.c: Likewise.
7141 * lib/csharpexec.c: Likewise.
7142 * lib/execute.c: Likewise.
7143 * lib/fatal-signal.c: Likewise.
7144 * lib/findprog.c: Likewise.
7145 * lib/fwriteerror.c: Likewise.
7146 * lib/gl_array_list.c: Likewise.
7147 * lib/gl_array_oset.c: Likewise.
7148 * lib/gl_avltree_list.c: Likewise.
7149 * lib/gl_avltree_oset.c: Likewise.
7150 * lib/gl_avltreehash_list.c: Likewise.
7151 * lib/gl_carray_list.c: Likewise.
7152 * lib/gl_linked_list.c: Likewise.
7153 * lib/gl_linkedhash_list.c: Likewise.
7154 * lib/gl_list.c: Likewise.
7155 * lib/gl_oset.c: Likewise.
7156 * lib/gl_rbtree_list.c: Likewise.
7157 * lib/gl_rbtree_oset.c: Likewise.
7158 * lib/gl_rbtreehash_list.c: Likewise.
7159 * lib/imaxabs.c: Likewise.
7160 * lib/imaxdiv.c: Likewise.
7161 * lib/javacomp.c: Likewise.
7162 * lib/javaexec.c: Likewise.
7163 * lib/javaversion.c: Likewise.
7164 * lib/linebreak.c: Likewise.
7165 * lib/localcharset.c: Likewise.
7166 * lib/lock.c: Likewise.
7167 * lib/mbchar.c: Likewise.
7168 * lib/mbswidth.c: Likewise.
7169 * lib/mkdtemp.c: Likewise.
7170 * lib/pipe.c: Likewise.
7171 * lib/printf-args.c: Likewise.
7172 * lib/printf-parse.c: Likewise.
7173 * lib/progname.c: Likewise.
7174 * lib/progreloc.c: Likewise.
7175 * lib/readlink.c: Likewise.
7176 * lib/sh-quote.c: Likewise.
7177 * lib/stpcpy.c: Likewise.
7178 * lib/stpncpy.c: Likewise.
7179 * lib/strcasecmp.c: Likewise.
7180 * lib/strcasestr.c: Likewise.
7181 * lib/strcspn.c: Likewise.
7182 * lib/striconv.c: Likewise.
7183 * lib/strncasecmp.c: Likewise.
7184 * lib/strnlen1.c: Likewise.
7185 * lib/strstr.c: Likewise.
7186 * lib/strtok_r.c: Likewise.
7187 * lib/tls.c: Likewise.
7188 * lib/tmpdir.c: Likewise.
7189 * lib/unicodeio.c: Likewise.
7190 * lib/unsetenv.c: Likewise.
7191 * lib/vasnprintf.c: Likewise.
7192 * lib/vasprintf.c: Likewise.
7193 * lib/wait-process.c: Likewise.
7194 * lib/xallocsa.c: Likewise.
7195 * lib/xsetenv.c: Likewise.
7196 * lib/xstriconv.c: Likewise.
7198 2006-09-13 Simon Josefsson <jas@extundo.com>
7200 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
7201 that internally, suggested by Ralf Wildenhues
7202 <Ralf.Wildenhues@gmx.de>.
7204 2006-09-13 Simon Josefsson <jas@extundo.com>
7206 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
7208 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7210 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
7212 * lib/_fpending.c: Include <config.h> unconditionally, since we no
7213 longer worry about uses that don't define HAVE_CONFIG_H.
7214 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
7215 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
7216 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
7217 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
7218 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
7219 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
7220 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
7221 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
7222 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
7223 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
7224 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
7225 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
7226 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
7227 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
7228 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
7229 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
7230 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
7231 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
7232 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
7233 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
7234 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
7235 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
7236 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
7237 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
7238 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
7239 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
7240 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
7241 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
7242 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
7243 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
7244 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
7245 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
7246 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
7247 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
7248 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
7249 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
7250 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
7251 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
7252 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
7253 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
7254 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
7257 2006-09-13 Eric Blake <ebb9@byu.net>
7259 * lib/getopt.c: Fix typo in last commit.
7261 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
7263 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
7266 2006-09-12 Jim Meyering <jim@meyering.net>
7268 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
7269 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
7270 Reported by Nelson H. F. Beebe.
7272 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
7274 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
7275 program_invocation_name and program_invocation_short_name are
7277 * lib/argp-namefrob.h: Move declarations of program_invocation_name
7278 and program_invocation_short_name to argp.h, so they are visible
7280 * lib/argp.h: Likewise
7282 2006-09-10 Bruno Haible <bruno@clisp.org>
7284 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
7285 m4/inttypes_h.m4, m4/uintmax_t.m4.
7287 2006-09-10 Bruno Haible <bruno@clisp.org>
7289 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
7290 gl_AC_TYPE_UINTMAX_T.
7292 2006-09-10 Bruno Haible <bruno@clisp.org>
7294 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
7296 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
7298 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
7299 convention. Text proposed by Bruno Haible.
7300 (struct argp_option): Document the use of N_() wrappers.
7302 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
7303 '\v', and translate the two parts separately, instead of feeding
7304 the whole string to gettext. This allows to exclude
7305 '\v' from the strings visible to the translator by writing doc
7306 strings as N_("..") "\v" N_("..").
7308 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
7310 * config/srclist.txt: Undo latest change; the bug was fixed.
7312 2006-09-09 Bruno Haible <bruno@clisp.org>
7314 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
7315 assignments if building a library without libtool.
7316 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
7317 in func_emit_lib_Makefile_am.
7318 (func_import): When building a static library libfoo.a, arrange to
7319 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
7320 (func_create_testdir): Likewise.
7321 * modules/gc (configure.ac, Makefile.am): If building statically,
7322 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
7323 * modules/iconvme (configure.ac, Makefile.am): Likewise.
7324 * modules/striconv (configure.ac, Makefile.am): Likewise.
7325 Based on a suggestion by Ralf Wildenhues.
7327 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
7329 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
7330 Check for unistd.h too, since Autoconf doesn't assume POSIX.
7333 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
7334 Add year_2050_test to catch glibc bug 2821
7335 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
7337 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
7338 Prefer #ifdef to #if.
7340 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
7341 Return from 'main' instead of calling 'exit'.
7343 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
7345 * lib/mktime.c (guess_time_tm): Fix bug where mktime
7346 returned the maximum time_t value rather than (time_t) -1.
7347 Problem originally reported by William Bardwell
7348 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
7350 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
7352 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
7355 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
7357 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
7360 2006-09-08 Jim Meyering <jim@meyering.net>
7362 Don't make generated files read-only. That would bother too many
7363 people. However, do retain the ability to work when targets are
7364 read-only: remove the destination and temporary files before writing
7365 them (when generated via sed or echo), or by using the -f option for
7366 both cp and mv commands. Suggestion to use -f from Paul Eggert.
7367 * modules/alloca-opt, modules/argz, modules/arpa_inet:
7368 * modules/byteswap, modules/configmake, modules/fcntl:
7369 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
7370 * modules/localcharset, modules/netinet_in, modules/poll:
7371 * modules/stdbool, modules/stdint, modules/sys_select:
7372 * modules/sys_socket, modules/sys_stat, modules/sysexits:
7374 2006-09-08 Jim Meyering <jim@meyering.net>
7376 Avoid new build failure on FreeBSD 6.0.
7377 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
7378 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
7379 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
7381 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7383 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
7385 2006-09-07 Jim Meyering <jim@meyering.net>
7387 Fix global typo in last change: use chmod u-w, not chmod u-x.
7388 Spotted by Paul Eggert and Bruce Korb.
7389 * modules/alloca-opt, modules/argz, modules/arpa_inet:
7390 * modules/byteswap, modules/configmake, modules/fcntl:
7391 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
7392 * modules/localcharset, modules/netinet_in, modules/poll:
7393 * modules/stdbool, modules/stdint, modules/sys_select:
7394 * modules/sys_socket, modules/sys_stat, modules/sysexits:
7396 2006-09-06 Jim Meyering <jim@meyering.net>
7398 Make generated files be read-only.
7399 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
7400 Ensure that each generated file is now read-only.
7401 * modules/argz: Likewise.
7402 * modules/arpa_inet: Likewise.
7403 * modules/byteswap: Likewise.
7404 * modules/configmake: Likewise.
7405 * modules/fcntl: Likewise.
7406 * modules/fnmatch: Likewise.
7407 * modules/getopt: Likewise.
7408 * modules/glob: Likewise.
7409 * modules/inttypes: Likewise.
7410 * modules/netinet_in: Likewise.
7411 * modules/poll: Likewise.
7412 * modules/stdbool: Likewise.
7413 * modules/stdint: Likewise.
7414 * modules/sys_select: Likewise.
7415 * modules/sys_socket: Likewise.
7416 * modules/sys_stat: Likewise.
7417 * modules/sysexits: Likewise.
7418 * modules/localcharset: Same as above, but continue using temporary
7419 file named "t-$@" (why different?) rather than the "$@-t" used
7422 * modules/sysexits (Makefile.am): Replace literal occurrences
7423 of "sysexit.h" more readable, and more consistent, "$@".
7425 2006-09-06 Bruno Haible <bruno@clisp.org>
7427 * modules/striconv: New file.
7428 * modules/xstriconv: New file.
7429 * MODULES.html.sh (Internationalization functions): Add striconv,
7432 2006-09-06 Bruno Haible <bruno@clisp.org>
7434 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
7435 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
7436 not using libtool correctly.
7438 2006-09-06 Bruno Haible <bruno@clisp.org>
7440 * lib/striconv.h: New file.
7441 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
7443 * lib/xstriconv.h: New file.
7444 * lib/xstriconv.c: New file.
7446 2006-09-06 Bruno Haible <bruno@clisp.org>
7448 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
7451 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7453 * lib/argz_.h: Sync from Libtool.
7455 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
7456 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7458 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
7460 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
7462 * modules/trim: New file.
7464 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
7466 * lib/trim.h: New file.
7467 * lib/trim.c: New file.
7469 2006-09-05 Bruno Haible <bruno@clisp.org>
7471 * MODULES.html.sh (String handling): Add trim.
7473 2006-09-04 Karl Berry <karl@gnu.org>
7475 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
7478 2006-09-03 Bruno Haible <bruno@clisp.org>
7480 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
7483 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
7485 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
7486 not gl_GETLOADAVG. Omit unneeded semicolons.
7487 Problems reported by Ralf Wildenhues in
7488 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
7489 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
7490 at the end, which is the usual gnulib style.
7492 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
7493 of doing all the work ourselves.
7494 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
7495 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
7497 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
7499 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
7500 Problem reported by Ralf Wildenhues in
7501 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
7503 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
7504 HAVE_STRUCT_STATFS_F_FSTYPENAME.
7506 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
7508 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
7509 yesterday's patch by changing test -n to test -z.
7511 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
7513 * modules/getloadavg (Files): Add m4/getloadavg.m4.
7514 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
7515 the former is now obsolescent.
7517 * modules/chdir-long (Depends-on): Add fcntl.
7519 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
7521 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
7522 obsolescent, and programs should use gnulib instead.
7523 * m4/getloadavg.m4: New file, with contents taken from Autoconf
7524 but with prefixes changed.
7526 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
7528 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
7529 or stdbool.h, because they might not exist while configuring.
7531 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
7532 Don't include unistd.h or limits.h; not needed, since chdir-long.h
7534 (O_DIRECTORY): Remove.
7536 2006-08-31 Eric Blake <ebb9@byu.net>
7538 * gnulib-tool: Don't let emacs change spaces to TAB.
7540 2006-08-31 Bruno Haible <bruno@clisp.org>
7542 * gnulib-tool: When calling func_import more than once, do it in a
7544 Reported by Eric Blake <ebb9@byu.net>.
7546 2006-08-31 Bruno Haible <bruno@clisp.org>
7548 * gnulib-tool (nl): Remove variable.
7549 (sed_transform_lib_file): Use more robust test for config-h module.
7550 (func_import): Fix typo in 2006-08-25 patch.
7552 2006-08-31 Bruno Haible <bruno@clisp.org>
7554 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
7555 specified, augment Makefile.am variables instead of assigning them.
7557 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
7559 Work around a bug in both the Linux and SunOS 64-bit kernels:
7560 nanosleep mishandles sleeps for longer than 2**31 seconds.
7561 Problem reported by Frank v Waveren in
7562 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
7563 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
7564 Check for nanosleep bug.
7565 (LIB_NANOSLEEP): Append clock_gettime library if needed.
7567 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
7569 Work around a bug in both the Linux and SunOS 64-bit kernels:
7570 nanosleep mishandles sleeps for longer than 2**31 seconds.
7571 Problem reported by Frank v Waveren in
7572 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
7573 * lib/nanosleep.c (BILLION): New constant.
7574 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
7575 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
7578 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
7580 * modules/nanosleep (Depends-on): Add gettime.
7582 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
7583 and Simon Josefsson <jas@extundo.com>
7584 and Oskar Liljeblad <oskar@osk.mine.nu>
7586 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
7587 * gnulib-tool (func_import): New license type 'unmodifiable license
7589 * modules/fdl: Use it. Longer description.
7590 * module/gpl, module/lgpl: New files.
7592 2006-08-30 Jim Meyering <jim@meyering.net>
7594 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
7595 shadowing the parameter.
7597 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7601 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7603 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
7604 sharing with gnulib. Report by Eric Blake.
7606 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
7608 * modules/isapipe: New file.
7609 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
7611 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
7613 * modules/configmake (Makefile.am): Add a comment, and omit
7614 the CONFIGMAKE_ prefix from generated macro names. Suggested
7617 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
7619 * m4/isapipe.m4: New file.
7621 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
7623 * lib/isapipe.c, lib/isapipe.h: New files.
7625 2006-08-29 Jim Meyering <jim@meyering.net>
7627 * modules/configmake (Makefile.am): Make configmake.h depend on
7628 Makefile. Otherwise, a stale configmake.h could hang around.
7630 2006-08-29 Eric Blake <ebb9@byu.net>
7632 * lib/error.c (error_at_line, print_errno_message): Match libc, after
7633 resolution of upstream bug 3044.
7635 2006-08-29 Bruno Haible <bruno@clisp.org>
7637 * modules/localcharset (Depends-on): Add configmake.
7638 (Makefile.am): Remove setting of LIBDIR through DEFS.
7640 2006-08-29 Bruno Haible <bruno@clisp.org>
7642 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
7645 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
7647 * modules/fcntl: New file.
7648 * modules/chdir-safer (Depends-on): Add fcntl.
7649 * modules/fts: Likewise.
7650 * modules/mkdir-p: Likewise.
7652 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
7653 This undoes the most recent change, since we're now addressing the
7654 problem in a different way.
7656 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
7657 into output, since the output might be called Makefile.am even
7658 if $makefile_name is something different.
7659 (func_import): Use $makefile_am rather than
7660 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
7663 * modules/inttypes (Files): Add m4/inttypes-h.m4.
7665 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
7667 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
7668 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
7669 recent change to stdint.m4, since we're now addressing the problem in a
7672 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
7674 * m4/fcntl_h.m4: New file.
7676 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
7678 * lib/fcntl_.h: New file.
7679 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
7681 * lib/dirchownmod.c: Likewise.
7682 * lib/fts.c: Likewise.
7684 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
7685 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
7686 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
7687 just before including <inttypes.h>, to avoid circular inclusion.
7689 2006-08-28 Jim Meyering <jim@meyering.net>
7691 * doc/visibility.texi: Actually read and correct the grammar of the
7692 sentence affected by yesterday's change.
7694 2006-08-28 Eric Blake <ebb9@byu.net>
7696 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
7699 2006-08-28 Eric Blake <ebb9@byu.net>
7701 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
7703 2006-08-28 Eric Blake <ebb9@byu.net>
7705 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
7707 2006-08-28 Bruno Haible <bruno@clisp.org>
7709 * modules/c-strstr: New file, from GNU gettext.
7710 * MODULES.html.sh (String handling): Add c-strstr.
7712 2006-08-28 Bruno Haible <bruno@clisp.org>
7714 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
7716 Reported by Eric Blake.
7718 2006-08-28 Bruno Haible <bruno@clisp.org>
7720 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
7721 (VASNPRINTF): Return a string of length > INT_MAX without failing.
7722 * lib/vasprintf.c: Include errno.h, limits.h.
7723 (EOVERFLOW): New fallback definition.
7724 (vasprintf): Test here whether the string length is > INT_MAX.
7725 * lib/vsnprintf.c: Include errno.h, limits.h.
7726 (EOVERFLOW): New fallback definition.
7727 (vsnprintf): Fix bug when generated string was too long for the buffer.
7728 Test here whether the string length is > INT_MAX.
7730 2006-08-28 Bruno Haible <bruno@clisp.org>
7732 * lib/inttypes_.h (SCNX*): Remove definitions.
7733 Reported by Eric Blake.
7735 2006-08-28 Bruno Haible <bruno@clisp.org>
7737 * lib/c-strstr.h: New file, from GNU gettext.
7738 * lib/c-strstr.c: New file, from GNU gettext.
7740 2006-08-28 Bruno Haible <bruno@clisp.org>
7742 * gnulib-tool: Reorder some statements.
7744 2006-08-28 Bruno Haible <bruno@clisp.org>
7746 * gnulib-tool: New option --makefile-name.
7747 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
7749 (func_import): Write $makefile_name to the cache file, and read it from
7750 there unless explicitly specified. Use $makefile_name as file name
7751 instead of Makefile.am. Adjust the recommendations accordingly.
7753 2006-08-28 Bruno Haible <bruno@clisp.org>
7755 * gnulib-tool (func_verify_module): Check against misapplying patch.
7757 2006-08-28 Bruno Haible <bruno@clisp.org>
7759 * gnulib-tool (func_relativize, func_relconcat): New functions.
7760 Give an error if --local-dir is given with --update.
7761 Remove trailing slashes from $local_gnulib_dir.
7762 (func_import): Store the relativized $local_gnulib_dir in
7763 gnulib-cache.m4, and read it from there if not specified explicitly.
7765 2006-08-28 Bruno Haible <bruno@clisp.org>
7767 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
7768 is the current directory. Respect also $local_gnulib_dir.
7770 2006-08-28 Bruno Haible <bruno@clisp.org>
7771 Simon Josefsson <jas@extundo.com>
7774 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
7776 2006-08-27 Jim Meyering <jim@meyering.net>
7778 * doc/visibility.texi: Remove duplicate word: "pointer".
7780 2006-08-26 Bruno Haible <bruno@clisp.org>
7782 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
7783 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
7784 (Makefile.am): Create inttypes.h from inttypes_.h.
7785 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
7787 * modules/imaxabs: New file.
7789 * modules/imaxdiv: New file.
7791 2006-08-26 Bruno Haible <bruno@clisp.org>
7793 * m4/inttypes.m4: New file.
7794 * m4/_inttypes_h.m4: Remove file.
7795 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
7797 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
7799 * m4/imaxabs.m4: New file.
7801 * m4/imaxdiv.m4: New file.
7803 2006-08-26 Bruno Haible <bruno@clisp.org>
7805 * lib/inttypes_.h: New file.
7806 * lib/inttypes.h: Remove file.
7807 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
7809 * lib/imaxabs.c: New file.
7811 * lib/imaxdiv.c: New file.
7813 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
7815 New config-h module, so that "make" output needn't be cluttered
7817 * MODULES.html.sh (Support for building libraries and executables):
7819 * modules/config-h: New file.
7820 * gnulib-tool (nl, sed_transform_lib_file): New vars.
7821 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
7822 the config-h module is used.
7824 New configmake module, so that "make" output needn't be cluttered
7825 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
7826 * MODULES.html.sh (Support for building libraries and executables):
7828 * modules/configmake: New file.
7830 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
7832 * m4/config-h.m4: New file.
7834 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
7836 * config/srclist.txt: Add elisp-comp.
7838 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
7840 * MODULES.html.sh (Support for building libraries and executables):
7842 * build-aux/elisp-comp: New file.
7843 * modules/elisp-comp: New file.
7845 2006-08-24 Bruno Haible <bruno@clisp.org>
7847 * gnulib-tool (func_create_testdir): Use non-default values of
7848 sourcebase and m4base.
7850 2006-08-24 Bruno Haible <bruno@clisp.org>
7852 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
7855 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
7857 * modules/openat (Depends-on): Add lchown.
7859 2006-08-23 Bruno Haible <bruno@clisp.org>
7861 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
7862 of gl_LOCK_EARLY instead of gl_LOCK.
7864 2006-08-23 Bruno Haible <bruno@clisp.org>
7866 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
7868 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
7870 2006-08-23 Bruno Haible <bruno@clisp.org>
7872 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
7875 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
7876 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
7877 (gl_LOCK): New macro.
7879 2006-08-22 Simon Josefsson <jas@extundo.com>
7881 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
7884 2006-08-22 Simon Josefsson <jas@extundo.com>
7886 * MODULES.html.sh: Add "Support for maintaining and release
7889 * build-aux/gnupload: New file, from coreutils.
7891 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
7893 Avoid the need for AC_LIBSOURCES in m4 macros.
7894 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
7895 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
7896 * modules/check-version (EXTRA_DIST): Add check-version.h.
7897 * modules/crc (EXTRA_DIST): Add crc.h.
7898 * modules/des (EXTRA_DIST): Add des.h.
7899 * modules/gc (EXTRA_DIST): Add gc.h.
7900 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
7901 * modules/getline (EXTRA_DIST): Add getline.h.
7902 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
7903 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
7904 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
7905 * modules/md2 (EXTRA_DIST): Add md2.h.
7906 * modules/md4 (EXTRA_DIST): Add md4.h.
7907 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
7908 * modules/read-file (EXTRA_DIST): Add read-file.h.
7909 * modules/readline (EXTRA_DIST): Add readline.h.
7910 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
7913 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
7915 * m4/rijndael.m4 (gl_ARCFOUR):
7916 * m4/arctwo.m4 (gl_ARCTWO):
7917 * m4/check-version.m4 (gl_CHECK_VERSION):
7918 * m4/crc.m4 (gl_CRC):
7919 * m4/des.m4 (gl_DES):
7920 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
7922 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
7923 * m4/getline.m4 (gl_FUNC_GETLINE):
7924 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
7925 * m4/hmac-md5.m4 (gl_HMAC_MD5):
7926 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
7927 * m4/md2.m4 (gl_MD2):
7928 * m4/md4.m4 (gl_MD4):
7929 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
7930 * m4/read-file.m4 (gl_FUNC_READ_FILE):
7931 * m4/readline.m4 (gl_FUNC_READLINE):
7932 * m4/rijndael.m4 (gl_RIJNDAEL):
7933 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
7934 to get the necessary .h files and whatnot.
7936 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
7938 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
7939 gnulib rather than the other way around.
7940 * config/srclistvars.sh (COREUTILS): Remove.
7942 2006-08-22 Jim Meyering <jim@meyering.net>
7944 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
7946 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
7948 2006-08-22 Eric Blake <ebb9@byu.net>
7950 * modules/regexprops-generic: New file.
7951 * MODULES.html.sh (Support for building documentation): List it.
7953 2006-08-22 Eric Blake <ebb9@byu.net>
7955 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
7956 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
7957 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
7958 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
7960 2006-08-22 Bruno Haible <bruno@clisp.org>
7962 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
7963 and lib_LTLIBRARIES like the other lib_* variables.
7965 2006-08-22 Bruno Haible <bruno@clisp.org>
7967 * build-aux/x-to-1.in: New file, from GNU gettext.
7969 2006-08-22 Bruno Haible <bruno@clisp.org>
7971 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
7974 2006-08-22 Bruno Haible <bruno@clisp.org>
7976 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
7979 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
7982 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
7984 Problem reported by Bruno Haible.
7986 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
7988 Avoid the need for AC_LIBSOURCES in m4 macros.
7989 * modules/acl (EXTRA_DIST): Add acl.h.
7990 * modules/argmatch (Files): Add m4/argmatch.m4.
7991 (configure.ac): Add gl_ARGMATCH.
7992 (EXTRA_DIST): Renamed from lib_SOURCES, for
7993 consistency with the other modules. Remove argmatch.c.
7994 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
7995 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
7996 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
7997 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
7998 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
7999 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
8000 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
8001 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
8002 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
8003 * modules/closeout (EXTRA_DIST): Add closeout.h.
8004 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
8005 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
8006 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
8007 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
8008 dirname.h; remove basename.c and stripslash.c.
8009 * modules/exclude (EXTRA_DIST): Add exclude.h.
8010 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
8011 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
8012 * modules/file-type (EXTRA_DIST): Add file-type.h.
8013 * modules/filemode (EXTRA_DIST): Add filemode.h.
8014 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
8015 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
8016 * modules/fpending (EXTRA_DIST): Add __fpending.h.
8017 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
8018 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
8019 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
8020 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
8021 * modules/getdate (EXTRA_DIST): Add getdate.c.
8022 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
8023 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
8024 * modules/getpass (EXTRA_DIST): Add getpass.h.
8025 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
8026 * modules/group-member (EXTRA_DIST): Add group-member.h.
8027 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
8028 * modules/hash (EXTRA_DIST): Add hash.h.
8029 * modules/human (EXTRA_DIST): Add human.h.
8030 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
8031 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
8032 * modules/lchown (EXTRA_DIST): Add lchown.h.
8033 * modules/long-options (EXTRA_DIST): Add long-options.h.
8034 * modules/lstat (EXTRA_DIST): Add lstat.h.
8035 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
8036 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
8037 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
8038 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
8039 * modules/memxor (EXTRA_DIST): Add memxor.h.
8040 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
8041 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
8042 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
8043 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
8044 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
8045 * modules/physmem (EXTRA_DIST): Add physmem.h.
8046 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
8047 * modules/posixver (EXTRA_DIST): Add posixver.h.
8048 * modules/quote (EXTRA_DIST): Add quote.h.
8049 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
8050 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
8051 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
8052 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
8053 regex_internal.h regexec.c.
8054 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
8055 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
8056 * modules/same (EXTRA_DIST): Add same.h.
8057 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
8058 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
8059 * modules/savedir (EXTRA_DIST): Add savedir.h.
8060 * modules/sha1 (EXTRA_DIST): Add sha1.h.
8061 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
8062 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
8063 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
8064 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
8065 * modules/strdup (EXTRA_DIST): Add strdup.h.
8066 * modules/strftime (EXTRA_DIST): Add strftime.h.
8067 * modules/strndup (EXTRA_DIST): Add strndup.h.
8068 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
8069 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
8070 * modules/time_r (EXTRA_DIST): Add time_r.h.
8071 * modules/timespec (EXTRA_DIST): Add timespec.h.
8072 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
8073 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
8074 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
8075 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
8076 * modules/userspec (EXTRA_DIST): Add userspec.h.
8077 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
8078 * modules/utimens (EXTRA_DIST): Add utimens.h.
8079 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
8080 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
8081 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
8082 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
8083 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
8084 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
8085 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
8086 * modules/yesno (EXTRA_DIST): Add yesno.h.
8088 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
8090 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
8092 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
8093 * m4/dev-ino.m4, same-inode.m4: Remove.
8095 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
8096 * m4/acl.m4 (AC_FUNC_ACL):
8097 * m4/backupfile.m4 (gl_BACKUPFILE):
8098 * m4/c-strtod.m4 (gl_C99_STRTOLD):
8099 * m4/canon-host.m4 (gl_CANON_HOST):
8100 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
8101 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
8102 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
8103 * m4/cloexec.m4 (gl_CLOEXEC):
8104 * m4/close-stream.m4 (gl_CLOSE_STREAM):
8105 * m4/closeout.m4 (gl_CLOSEOUT):
8106 * m4/dirfd.m4 (gl_FUNC_DIRFD):
8107 * m4/dirname.m4 (gl_DIRNAME):
8108 * m4/exclude.m4 (gl_EXCLUDE):
8109 * m4/exitfail.m4 (gl_EXITFAIL):
8110 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
8111 * m4/file-type.m4 (gl_FILE_TYPE):
8112 * m4/filemode.m4 (gl_FILEMODE):
8113 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
8114 * m4/fpending.m4 (gl_FUNC_FPENDING):
8115 * m4/fprintftime.m4 (gl_FPRINTFTIME):
8116 * m4/fts.m4 (gl_FUNC_FTS):
8117 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
8118 * m4/getdate.m4 (gl_GETDATE):
8119 * m4/gethrxtime.m4 (gl_GETHRXTIME):
8120 * m4/getpagesize.m4 (gl_GETPAGESIZE):
8121 * m4/getpass.m4 (gl_FUNC_GETPASS):
8122 * m4/gettime.m4 (gl_GETTIME):
8123 * m4/getugroups.m4 (gl_GETUGROUPS):
8124 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
8125 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
8126 * m4/hard-locale.m4 (gl_HARD_LOCALE):
8127 * m4/hash.m4 (gl_HASH):
8128 * m4/idcache.m4 (gl_IDCACHE):
8129 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
8130 * m4/lchown.m4 (gl_FUNC_LCHOWN):
8131 * m4/long-options.m4 (gl_LONG_OPTIONS):
8132 * m4/lstat.m4 (gl_FUNC_LSTAT):
8133 * m4/md5.m4 (gl_MD5):
8134 * m4/memcasecmp.m4 (gl_MEMCASECMP):
8135 * m4/memcoll.m4 (gl_MEMCOLL):
8136 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
8137 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
8138 * m4/memxor.m4 (gl_MEMXOR):
8139 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
8140 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
8141 * m4/modechange.m4 (gl_MODECHANGE):
8142 * m4/mountlist.m4 (gl_MOUNTLIST):
8143 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
8144 * m4/openat.m4 (gl_FUNC_OPENAT):
8145 * m4/pathmax.m4 (gl_PATHMAX):
8146 * m4/physmem.m4 (gl_PHYSMEM):
8147 * m4/posixtm.m4 (gl_POSIXTM):
8148 * m4/posixver.m4 (gl_POSIXVER):
8149 * m4/quote.m4 (gl_QUOTE):
8150 * m4/quotearg.m4 (gl_QUOTEARG):
8151 * m4/readtokens.m4 (gl_READTOKENS):
8152 * m4/readutmp.m4 (gl_READUTMP):
8153 * m4/regex.m4 (gl_REGEX):
8154 * m4/safe-read.m4 (gl_SAFE_READ):
8155 * m4/safe-write.m4 (gl_SAFE_WRITE):
8156 * m4/same.m4 (gl_SAME):
8157 * m4/save-cwd.m4 (gl_SAVE_CWD):
8158 * m4/savedir.m4 (gl_SAVEDIR):
8159 * m4/settime.m4 (gl_SETTIME):
8160 * m4/sha1.m4 (gl_SHA1):
8161 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
8162 * m4/stat-macros.m4 (gl_STAT_MACROS):
8163 * m4/stat-time.m4 (gl_STAT_TIME):
8164 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
8165 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
8166 * m4/strdup.m4 (gl_FUNC_STRDUP):
8167 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
8168 * m4/strndup.m4 (gl_FUNC_STRNDUP):
8169 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
8170 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
8171 * m4/time_r.m4 (gl_TIME_R):
8172 * m4/timespec.m4 (gl_TIMESPEC):
8173 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
8174 * m4/unlinkdir.m4 (gl_UNLINKDIR):
8175 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
8176 * m4/userspec.m4 (gl_USERSPEC):
8177 * m4/utimecmp.m4 (gl_UTIMECMP):
8178 * m4/utimens.m4 (gl_UTIMENS):
8179 * m4/xalloc.m4 (gl_XALLOC):
8180 * m4/xgetcwd.m4 (gl_XGETCWD):
8181 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
8182 * m4/xreadlink.m4 (gl_XREADLINK):
8183 * m4/xstrtod.m4 (gl_XSTRTOD):
8184 * m4/yesno.m4 (gl_YESNO):
8185 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
8186 to get the necessary .h files and whatnot.
8188 2006-08-21 Mark D. Baushke <mdb@gnu.org>
8189 Bruno Haible <bruno@clisp.org>
8191 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
8192 /bin/sh understanding of '!' conditional negation.
8194 2006-08-21 Jim Meyering <jim@meyering.net>
8196 * modules/openat (Depends-on): Really alphabetize.
8198 * modules/acl (Depends-on): Add error and quote.
8200 * check-module (find_included_lib_files): Add at-func.c to the
8201 ok-to-include-more-than-once white list.
8203 * modules/openat (Depends-on): Add lstat. Alphabetize.
8205 2006-08-21 Bruno Haible <bruno@clisp.org>
8207 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8208 Emit a pkgdata_DATA variable only if some snippets add contents to it.
8209 Reported by Martin Lambers <marlam@marlam.de>.
8211 2006-08-21 Bruno Haible <bruno@clisp.org>
8213 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
8214 specify an installation location, don't emit a noinst_LIBRARIES or
8215 noinst_LTLIBRARIES assignment.
8217 2006-08-21 Bruno Haible <bruno@clisp.org>
8220 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
8221 BeOS has mbrtowc() but no <wctype.h>.
8223 2006-08-21 Bruno Haible <bruno@clisp.org>
8226 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
8229 2006-08-21 Bruno Haible <bruno@clisp.org>
8232 * lib/mbchar.h: Include <wctype.h> only if it exists.
8234 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
8236 Remove files that are no longer needed by their respective modules.
8237 * m4/obstack.m4: Remove.
8238 * m4/strerror_r.m4: Remove.
8239 * m4/uint32_t.m4: Remove.
8240 * m4/uintptr_t.m4: Remove.
8241 * m4/ullong_max.m4: Remove.
8242 * m4/xstrtoimax.m4: Remove.
8243 * m4/xstrtoumax.m4: Remove.
8245 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
8246 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
8247 dependencies now capture this.
8249 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
8250 Do not use AC_LIBSOURCES, since gnulib modules now do this.
8251 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
8252 * m4/human.m4 (gl_HUMAN): Likewise.
8253 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
8254 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
8256 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
8258 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
8259 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
8261 * m4/human.m4 (gl_HUMAN): Likewise.
8262 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
8263 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
8264 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
8265 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
8266 * m4/xstrtol (gl_XSTRTOL): Likewise.
8268 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
8269 AC_TYPE_LONG_LONG_INT.
8270 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
8271 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
8272 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
8273 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
8275 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
8278 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
8279 (gl_PREREQ_XSTRTOUL): Remove.
8281 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
8283 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
8286 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
8288 Add and change modules to make it easier for coreutils to use
8290 * modules/backupfile (Files): Remove m4/d-ino.m4.
8291 (Depends-on): Add d-ino.
8292 * modules/cycle-check (Depends-on): Add stdint.
8293 (lib_SOURCES): Add cycle-check.h.
8294 * modules/d-ino: New module.
8295 * modules/d-type: New module.
8296 * modules/error (Files): Remove m4/strerror_r.m4.
8297 * modules/filemode (Files): Add m4/st_dm_mode.m4.
8298 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
8299 m4/inttypes_h.m4, m4/uintmax_t.m4.
8300 (Depends-on): Add stdint.
8301 (lib_SOURCES): Add fsusage.h.
8302 * modules/getcwd (Files): Remove d-ino.m4.
8303 (Depends-on): Add d-ino.
8304 * modules/getndelim2 (Depends-on): Add stdint.
8305 * modules/glob (Files): Remove m4/d-type.m4.
8306 (Depends-on): Add d-type.
8307 * modules/host-os: New module.
8308 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
8309 m4/inttypes_h.m4, m4/uintmax_t.m4.
8310 * Depends-on: Add stdint.
8311 (lib_SOURCES): Add human.h.
8312 * modules/inttostr (Files): Remove m4/intmax_t.m4,
8313 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
8314 m4/uintmax_t.m4, m4/ulonglong.m4.
8315 (Depends-on): Add stdint.
8316 (EXTRA_DIST): Add inttostr.h.
8317 * modules/lchmod: New module.
8318 * modules/link-follow: New module.
8319 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
8320 (Depends-on): Add lchmod.
8321 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
8322 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
8323 (Depends-on): Add stdint.
8324 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
8325 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
8326 (Depends-on): Add stdint.
8327 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
8328 * modules/perl: New module.
8329 * modules/regex (Depends-on): Add stdint.
8330 * modules/rmdir-errno: New module.
8331 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
8333 (Depends-on): Add stdint.
8334 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
8336 (Depends-on): Add stdint.
8337 * modules/unlink-busy: New module.
8338 * modules/utimecmp (Depends-on): Add stdint.
8339 * modules/uptime: New module.
8340 * modules/winsz-ioctl: New module.
8341 * modules/winsz-termios: New module.
8342 * modules/xnanosleep (Depends-on): Add nanosleep.
8343 * modules/ullong_max: Remove.
8344 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
8345 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
8346 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
8347 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
8348 (Depends-on): Add inttypes.
8349 (lib_SOURCES): Add xstrtol.h.
8350 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
8351 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
8352 * MODULES.html.sh: Move 'assert' into the assert section.
8353 Move 'dummy' into the linking section.
8355 Add section for compatibility checks for POSIX:2001 functions,
8356 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
8357 winsz-ioctl, and winsz-termios into it.
8359 Add top-level Misc section and put host-os, perl, and uptime
8362 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
8364 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
8365 now assume the stdint module. Do not include inttypes.h.
8366 * lib/fsusage.h: Likewise.
8367 * lib/getndelim2.c: Likewise.
8368 * lib/human.h: Likewise.
8369 * lib/inttostr.h: Likewise.
8370 * lib/obstack.c: Likewise.
8371 * lib/regex_internal.h: Likewise.
8372 * lib/tempname.c: Likewise.
8373 * lib/utimecmp.c: Likewise.
8374 * lib/xstrtol.h: Likewise.
8376 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
8378 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
8379 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
8380 * lib/xtime.h: Likewise.
8382 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
8384 * modules/openat (Files): Add lib/fchmodat.c.
8385 Fixes problem reported by Jay Youngman.
8387 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
8389 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
8390 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
8392 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
8393 Bruno Haible <bruno@clisp.org>
8395 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
8396 and is a script that invokes bison. Tighten the code. Add comments.
8398 2006-08-18 Jim Meyering <jim@meyering.net>
8400 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
8401 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
8402 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
8403 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
8405 2006-08-18 Bruno Haible <bruno@clisp.org>
8407 * modules/bison-i18n: New file.
8408 * MODULES.html.sh (Internationalization functions): Add it.
8410 2006-08-18 Bruno Haible <bruno@clisp.org>
8412 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
8413 sys/statvfs.h. When getmntinfo was found, check its declaration and
8414 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
8416 2006-08-18 Bruno Haible <bruno@clisp.org>
8418 * m4/bison-i18n.m4: New file, from bison.
8420 2006-08-18 Bruno Haible <bruno@clisp.org>
8422 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
8423 (ME_DUMMY): Treat "kernfs" as a dummy.
8424 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
8426 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
8428 Update from coreutils.
8430 2006-08-15 Jim Meyering <jim@meyering.net>
8432 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
8434 2006-01-17 Jim Meyering <jim@meyering.net>
8436 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
8438 2006-01-11 Jim Meyering <jim@meyering.net>
8440 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
8441 Check for the lchmod function.
8443 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
8445 Update from coreutils.
8447 * lib/__fpending.h: Add copyright notice.
8448 * lib/fprintftime.h: Likewise.
8449 * lib/savedir.c: Use (C) in copyright notice.
8450 * lib/savedir.h: Likewise.
8452 2006-08-15 Jim Meyering <jim@meyering.net>
8454 * lib/at-func.c: New file, with the logic of all emulated at-functions.
8455 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
8456 in support of the EXPECTED_ERRNO macro.
8457 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
8458 definitions. Instead, define the appropriate symbols and include
8460 * lib/mkdirat.c (mkdirat): Likewise.
8461 * lib/fchmodat.c (fchmodat): Likewise.
8462 (ENOSYS): Remove definition.
8463 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
8464 it. Don't include "unistd--.h" -- it wasn't ever used.
8466 2006-01-17 Jim Meyering <jim@meyering.net>
8468 Rewrite fts.c not to change the current working directory,
8469 by using openat, fstatat, fdopendir, etc..
8471 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
8472 (HAVE_OPENAT_SUPPORT): Define.
8473 [_LIBC] (fchdir): Don't undef or define; no longer used.
8474 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
8475 Now, this `function' always succeeds, and consumes its file descriptor
8476 parameter -- so callers must not close such FDs. Update callers.
8477 (diropen_fd, opendirat, cwd_advance_fd): New functions.
8478 (diropen): Add parameter, SP. Adjust all callers.
8479 Implement using diropen_fd, rather than open.
8480 (fts_open): Initialize new member, fts_cwd_fd.
8481 Remove fts_rft-setting code.
8482 (fts_close): Close fts_cwd_fd, if necessary.
8483 (__opendir2): Define in terms of opendir or opendirat,
8484 depending on whether the FST_NOCHDIR flag is set.
8485 (fts_build): Since fts_safe_changedir consumes its FD, and since
8486 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
8487 and close the dup'd file descriptor upon failure.
8488 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
8489 (fts_safe_changedir): Tweak semantics to reflect that this function
8490 now calls cwd_advance_fd and hence consumes its FD argument.
8491 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
8492 [struct FTS] (fts_rft): Remove now-unused member.
8493 [struct FTS] (fts_cycle.state): Improve comment.
8495 * lib/openat.c (openat_needs_fchdir): New function.
8496 * lib/openat.h (openat_needs_fchdir): Declare it.
8498 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
8500 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
8501 Problem and fix reported by Pádraig Brady in
8502 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
8504 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
8506 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
8508 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
8510 * lib/memcoll.c (memcoll): Optimize for the common case where the
8511 arguments are bytewise equal.
8513 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
8515 * doc/regexprops-generic.texi: Add a copyright notice.
8517 2006-08-15 Bruno Haible <bruno@clisp.org>
8519 * modules/tmpdir (License): Change to LGPL.
8521 2006-08-15 Bruno Haible <bruno@clisp.org>
8523 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
8526 2006-08-14 Simon Josefsson <jas@extundo.com>
8528 * config/srclist.txt: Add gnupload.
8530 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
8532 Change copyright notice from LGPL 2 to GPL 2, since that's the
8533 standard form used in the gnulib repository.
8534 * tests/test-lock.c: Likewise.
8535 * tests/test-stdint.c: Likewise.
8536 * tests/test-tls.c: Likewise.
8538 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
8539 prelude-manager. User shorter URLs for GNU projects, without '?'.
8540 Add copyright notice.
8542 * check-module: Add copyright notice. Output a copyright
8543 notice if "--version" is specified.
8544 * modules/COPYING: New file.
8545 * tests/test-getaddrinfo.c: Add copyright notice.
8546 * tests/test-verify.c: Likewise.
8548 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
8550 Change copyright notice from LGPL 2 to GPL 2, since that's the
8551 standard form used in the gnulib repository.
8552 * lib/lock.c: LGPL -> GPL.
8553 * lib/lock.h: Likewise.
8554 * lib/strnlen1.c: Likewise.
8555 * lib/strnlen1.h: Likewise.
8556 * lib/tls.c: Likewise.
8557 * lib/tls.h: Likewise.
8558 * lib/tmpdir.c: Likewise.
8560 * lib/TODO: Remove; this belongs only in coreutils.
8562 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
8564 Add copyright notices to long-enough files that lack them, since
8565 otherwise the files aren't clearly free. Use the same notice that
8566 getdate.texi already uses.
8567 * doc/alloca-opt.texi: Add copyright notice.
8568 * doc/alloca.texi: Likewise.
8569 * doc/ctime.texi: Likewise.
8570 * doc/functions.texi: Likewise.
8571 * doc/gcd.texi: Likewise.
8572 * doc/gnulib-tool.texi: Likewise.
8573 * doc/inet_ntoa.texi: Likewise.
8574 * doc/visibility.texi: Likewise.
8576 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
8577 * doc/quote.texi: Add copyright notice.
8579 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
8580 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
8581 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
8582 Mention SunOS 5.11. Mention that everything before SunOS 5.7
8583 is now obsolete, and give a pointer to the Sun list.
8584 Add copyright notice.
8586 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
8588 * config/srclistvars.sh: Add copyright notice.
8590 2006-08-14 Eric Blake <ebb9@byu.net>
8592 Import the following change from libc:
8594 2006-08-12 Ulrich Drepper <drepper@redhat.com>
8597 * lib/misc/error.c: Add space between program name and message if file
8600 2006-08-12 Karl Berry <karl@gnu.org>
8602 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
8603 remove, these originate in gnulib now.
8605 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8607 * doc/Makefile (standards.info standards.html standards.dvi):
8608 Also depend on make-stds.texi.
8610 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
8612 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
8613 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
8615 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
8616 in wchar_t. Problem reported by Eric Blake.
8618 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
8619 LEN is smaller than SIZE. Suggested by Bruno Haible.
8620 Also, help the compiler to keep LEN in a register.
8622 2006-08-11 Eric Blake <ebb9@byu.net>
8624 * users.txt: Sort. Add tar.
8626 2006-08-11 Bruno Haible <bruno@clisp.org>
8628 * users.txt: New file.
8630 2006-08-11 Bruno Haible <bruno@clisp.org>
8632 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
8633 before <wchar.h>. Needed for OSF/1 and BSD/OS.
8635 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
8637 * modules/snprintf (Depends-on): Remove minmax.
8638 (Maintainer): Add self and Bruno.
8640 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
8642 * lib/.cppi-disable: Add snprintf.h, socket_.h.
8643 * lib/snprintf.c: Include <errno.h> and <limits.h>.
8644 (EOVERFLOW): Define if the system does not.
8645 Do not include "minmax.h"; it wasn't used.
8646 (snprintf): Don't assume size_t promotes to an unsigned type.
8647 Fix bug when generated string was too long for the buffer: the
8648 buffer's contents are supposed to be the initial prefix of the
8649 output. Don't assume vasnprintf returns EOVERFLOW if the size
8650 exceeds INT_MAX; do the check ourselves.
8652 Import the following changes from libc:
8654 2006-06-02 Jakub Jelinek <jakub@redhat.com>
8656 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
8657 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
8658 set wc to the byte which couldn't be converted.
8659 (re_string_reconstruct): Don't clear valid_raw_len before calling
8660 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
8661 tip_context using re_string_context_at.
8663 2006-05-02 Ulrich Drepper <drepper@redhat.com>
8665 * lib/posix/regex.h: g++ still cannot handled [restrict].
8667 2006-04-21 Ulrich Drepper <drepper@redhat.com>
8669 * lib/posix/regex.h: Remove special handling for VMS.
8671 2006-08-10 Jim Meyering <jim@meyering.net>
8673 * modules/same-inode: New module.
8674 * modules/dev-ino: New module.
8675 * modules/cycle-check: Depend on these modules, rather than simply
8676 including their .h files.
8677 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
8678 required via m4/cycle-check.m4.
8679 * modules/same: Depend on new same-inode module, rather than
8680 including same-inode.h.
8681 * modules/chdir-safer: New file.
8683 * modules/chown (Depends-on): Add stat-macros.
8685 2006-08-10 Jim Meyering <jim@meyering.net>
8687 * m4/cycle-check.m4: New file.
8688 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
8689 * m4/dev-ino.m4, m4/same-inode.m4: New files.
8691 2006-08-10 Eric Blake <ebb9@byu.net>
8693 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
8694 in from original proposal.
8696 2006-08-10 Eric Blake <ebb9@byu.net>
8697 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8699 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
8702 2006-08-10 Bruno Haible <bruno@clisp.org>
8704 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
8707 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
8709 Sync from coreutils.
8711 2006-07-19 Mike Frysinger <vapier@gentoo.org>
8713 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
8714 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
8716 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
8718 * modules/restrict: Remove; no longer needed now that we assume
8719 Autoconf 2.59 or later.
8720 * MODULES.html.sh: Remove 'restrict'.
8721 * modules/argp (Depends-on): Remove 'restrict'.
8722 * modules/base64 (Depends-on): Likewise.
8723 * modules/gc (Depends-on): Likewise.
8724 * modules/getaddrinfo (Depends-on): Likewise.
8725 * modules/glob (Depends-on): Likewise.
8726 * modules/inet_ntop (Depends-on): Likewise.
8727 * modules/inet_pton (Depends-on): Likewise.
8728 * modules/memxor (Depends-on): Likewise.
8729 * modules/regex (Depends-on): Likewise.
8730 * modules/strtok_r (Depends-on): Likewise.
8731 * modules/time_r (Depends-on): Likewise.
8733 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
8735 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
8736 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
8737 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
8738 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
8739 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
8740 * m4/memxor.m4 (gl_MEMXOR): Likewise.
8741 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
8742 gl_C_RESTRICT replaced by AC_C_RESTRICT.
8744 Merge from coreutils.
8745 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
8746 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
8747 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
8748 * m4/time_r.m4 (gl_TIME_R): Likewise.
8750 2006-08-09 Karl Berry <karl@gnu.org>
8752 * config/srclist.txt: no more gettext-tools, per Bruno.
8754 2006-08-08 Eric Blake <ebb9@byu.net>
8756 * modules/verror: New module.
8757 * MODULES.html.sh: Document it.
8759 2006-08-08 Eric Blake <ebb9@byu.net>
8761 * lib/verror.h, lib/verror.c: New files.
8763 2006-08-08 Eric Blake <ebb9@byu.net>
8765 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
8766 verror_at_line output complies with GNU Coding Standards even when
8769 2006-08-07 Bruno Haible <bruno@clisp.org>
8771 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
8773 Reported by Ralf Wildenhues.
8775 2006-08-07 Bruno Haible <bruno@clisp.org>
8777 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
8778 in an AC_DEFUN. Needed so that the autoconf snippets can use
8781 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8783 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8784 Initialize pkgdata_DATA.
8785 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
8788 2006-08-06 Eric Blake <ebb9@byu.net>
8790 * lib/error.h: Fold in some upstream changes from glibc.
8791 * lib/error.c: Likewise.
8793 2006-08-04 Bruno Haible <bruno@clisp.org>
8795 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8796 Make the mostlyclean-local rule depend on mostlyclean-generic.
8797 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
8799 2006-07-31 Bruno Haible <bruno@clisp.org>
8801 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
8802 <stdlib.h>, <string.h>.
8804 2006-07-30 Bruno Haible <bruno@clisp.org>
8806 * modules/readlink (License): Change to LGPL.
8808 2006-07-30 Bruno Haible <bruno@clisp.org>
8810 * modules/javaversion (Makefile.am): Distribute javaversion.java and
8811 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
8812 set PKGDATADIR to point to it.
8814 2006-07-30 Bruno Haible <bruno@clisp.org>
8816 * modules/csharpexec (configure.ac): Comment out macro invocation.
8817 * modules/javaexec (configure.ac): Likewise.
8818 * modules/javacomp-script (configure.ac): Likewise.
8820 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
8822 2006-07-30 Bruno Haible <bruno@clisp.org>
8824 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
8827 2006-07-30 Bruno Haible <bruno@clisp.org>
8829 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
8831 2006-07-30 Bruno Haible <bruno@clisp.org>
8833 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8834 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
8837 2006-07-29 Bruno Haible <bruno@clisp.org>
8839 Make it possible for gnulib-tool to work with locally modified or
8840 augmented gnulib repositories.
8841 * gnulib-tool (func_usage): Document --local-dir option.
8842 (local_gnulib_dir): New variable.
8843 Handle --local-dir option.
8844 (func_lookup_file): New function.
8845 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
8846 (func_get_description, func_get_filelist, func_get_description,
8847 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
8848 func_get_automake_snippet, func_get_include_directive,
8849 func_get_license, func_get_maintainer): Use func_lookup_file.
8850 (func_import, func_create_testdir): Use func_lookup_file.
8852 2006-07-29 Bruno Haible <bruno@clisp.org>
8854 * modules/setenv (Depends-on): Add unistd.
8856 2006-07-29 Bruno Haible <bruno@clisp.org>
8858 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
8860 2006-07-29 Bruno Haible <bruno@clisp.org>
8862 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
8864 2006-07-29 Bruno Haible <bruno@clisp.org>
8866 * gnulib-tool (import, update): If there is no Makefile.am, look at
8867 aclocal.m4, instead of bailing out.
8869 2006-07-29 Bruno Haible <bruno@clisp.org>
8871 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
8872 Categorize the options by when they are useful.
8874 2006-07-29 Bruno Haible <bruno@clisp.org>
8876 * gnulib-tool (func_usage): Document option --no-libtool.
8877 Handle option --no-libtool.
8878 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
8879 for changed semantics of $libtool variable.
8880 (func_import): Likewise. If libtool is not used, show this through
8881 an option --no-libtool.
8882 (func_create_testdir): Update.
8884 2006-07-29 Bruno Haible <bruno@clisp.org>
8886 * gnulib-tool (func_import): Extend error message about missing
8889 2006-07-29 Bruno Haible <bruno@clisp.org>
8891 * gnulib-tool (func_import): Don't create the $docbase directory if
8892 there is no file to store there.
8894 2006-07-29 Bruno Haible <bruno@clisp.org>
8896 * gnulib-tool (autoconf_minversion): If a --dir option is given and
8897 relevant, look for configure.ac there, not in the current directory.
8898 Also use a simple search for AC_PREREQ, not "autoconf --trace".
8900 2006-07-29 Bruno Haible <bruno@clisp.org>
8902 * gnulib-tool (SORT): New variable.
8903 (func_usage): Undocument --assume-autoconf option.
8904 Remove --assume-autoconf option handling.
8905 (autoconf_minversion): Determine from the contents of configure.ac.
8906 (func_import): Remove autoconf_minversion handling.
8907 Suggested by Eric Blake.
8909 2006-07-29 Bruno Haible <bruno@clisp.org>
8911 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
8913 2006-07-29 Bruno Haible <bruno@clisp.org>
8915 * config/srclist.txt (*setenv.[ch]): Remove rules.
8917 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8919 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
8921 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8923 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
8926 2006-07-28 Simon Josefsson <jas@extundo.com>
8928 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
8929 * modules/inet_pton (Depends-on): Likewise.
8931 2006-07-28 Simon Josefsson <jas@extundo.com>
8933 * m4/netinet_in_h.m4: New file.
8935 2006-07-28 Simon Josefsson <jas@extundo.com>
8937 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
8940 2006-07-28 Simon Josefsson <jas@extundo.com>
8942 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
8945 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
8947 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
8948 setgid on directories only if they set these bits.
8949 * lib/modechange.h: Remove obsolete comment about masks.
8951 2006-07-28 Eric Blake <ebb9@byu.net>
8953 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
8956 2006-07-28 Bruno Haible <bruno@clisp.org>
8958 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
8960 2006-07-28 Bruno Haible <bruno@clisp.org>
8962 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
8964 2006-07-28 Bruno Haible <bruno@clisp.org>
8966 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
8967 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
8969 Avoids link error on FreeBSD 4.x.
8970 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
8972 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
8974 * lib/mbswidth.c (iswcntrl): Likewise.
8976 2006-07-27 Bruno Haible <bruno@clisp.org>
8978 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
8981 2006-07-27 Bruno Haible <bruno@clisp.org>
8983 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
8984 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
8987 2006-07-26 Eric Blake <ebb9@byu.net>
8989 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
8991 2006-07-26 Eric Blake <ebb9@byu.net>
8993 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
8994 like mingw that lack mkstemp.
8995 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
8996 avoid compilation warning on mingw.
8998 2006-07-26 Bruno Haible <bruno@clisp.org>
9000 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
9001 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
9002 INT_FAST*_MIN, INTPTR_MIN.
9004 2006-07-25 Bruno Haible <bruno@clisp.org>
9006 * modules/version-etc (Depends-on): Add stdarg.
9008 2006-07-25 Bruno Haible <bruno@clisp.org>
9010 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
9013 2006-07-25 Bruno Haible <bruno@clisp.org>
9015 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
9016 defined in <stdarg.h> or config.h.
9018 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
9020 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
9021 (gl_STDIO_SAFER): Remove.
9023 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
9025 * MODULES.html.sh (File stream based Input/Output):
9026 Add fopen-safer, tmpfile-safer; remove stdio-safer.
9027 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
9028 * modules/fopen-safer, modules/tmpfile-safer: New files.
9029 * modules/stdio-safer: Remove.
9031 2006-07-24 Bruno Haible <bruno@clisp.org>
9033 * modules/tmpdir: New file.
9034 * MODULES.html.sh (File system functions): Add it.
9036 2006-07-24 Bruno Haible <bruno@clisp.org>
9038 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
9039 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
9041 2006-07-24 Bruno Haible <bruno@clisp.org>
9043 * modules/clean-temp: New file.
9045 2006-07-24 Bruno Haible <bruno@clisp.org>
9047 * m4/tmpdir.m4: New file, from GNU gettext.
9049 2006-07-24 Bruno Haible <bruno@clisp.org>
9051 * lib/tmpdir.h: New file, from GNU gettext.
9052 * lib/tmpdir.c: New file, from GNU gettext.
9054 2006-07-24 Bruno Haible <bruno@clisp.org>
9056 * lib/clean-temp.h: New file, from GNU gettext.
9057 * lib/clean-temp.c: New file, from GNU gettext.
9059 2006-07-23 Eric Blake <ebb9@byu.net>
9061 * modules/stdio-safer (Files): Add tmpfile-safer.c.
9062 (Depends-on): Add binary-io.
9064 2006-07-23 Eric Blake <ebb9@byu.net>
9066 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
9068 2006-07-23 Eric Blake <ebb9@byu.net>
9070 * lib/tmpfile-safer.c: New file.
9071 * lib/stdio-safer.h (fopen_safer): Add prototype.
9072 * lib/stdio--.h (tmpfile): Make safer.
9074 2006-07-23 Bruno Haible <bruno@clisp.org>
9076 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
9077 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
9078 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
9079 gl_linked_remove_at): Use it.
9081 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
9082 and Simon Josefsson <jas@extundo.com>
9084 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
9086 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
9088 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
9090 * modules/close-stream: New file.
9091 * modules/closeout (Description): Make it clear that it exits
9092 with a diagnostic on error.
9093 (Depends-on): Add close-stream. Remove fpending, stdbool.
9094 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
9096 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
9098 * m4/close-stream.m4: New file.
9100 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
9102 * lib/close-stream.c, lib/close-stream.h: New files.
9104 2006-07-22 Bruno Haible <bruno@clisp.org>
9106 Merge from GNU gettext 0.15.
9108 2006-05-01 Bruno Haible <bruno@clisp.org>
9110 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
9112 2006-07-22 Bruno Haible <bruno@clisp.org>
9114 * modules/javaversion: New file.
9115 * MODULES.html.sh (Java): Add javaversion.
9117 2006-03-12 Bruno Haible <bruno@clisp.org>
9119 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
9121 2005-12-04 Bruno Haible <bruno@clisp.org>
9123 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
9126 2006-06-21 Bruno Haible <bruno@clisp.org>
9128 Avoid warnings from recent versions of mcs.
9129 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
9130 -o, -L, -r any more. Use options documented since mcs-1.0
9131 instead. Similarly for -g.
9133 2005-12-04 Bruno Haible <bruno@clisp.org>
9135 * build-aux/csharpcomp.sh.in: Suffix for resources is
9136 .resources, not .resource.
9138 2005-07-09 Bruno Haible <bruno@clisp.org>
9140 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
9142 Reported by Mark Junker <mjscod@gmx.de>.
9144 2006-07-22 Bruno Haible <bruno@clisp.org>
9146 * modules/gettext: Upgrade to gettext-0.15.
9147 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
9149 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
9151 2006-07-22 Bruno Haible <bruno@clisp.org>
9153 Merge from GNU gettext 0.15.
9155 2006-03-25 Bruno Haible <bruno@clisp.org>
9157 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
9159 2006-07-21 Bruno Haible <bruno@clisp.org>
9161 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
9164 2006-05-09 Bruno Haible <bruno@clisp.org>
9166 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
9167 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
9168 for the conftestver execution.
9170 2006-05-01 Bruno Haible <bruno@clisp.org>
9172 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
9173 optional target-version argument. Verify that the compiler
9174 groks source of the specified source-version, or add -source
9175 option as necessary. Verify that the compiler produces
9176 bytecode in the specified target-version, or add -target and
9177 -source options as necessary. Make the result of the test
9178 available as variable CONF_JAVAC. Also log error output in
9181 2006-03-11 Bruno Haible <bruno@clisp.org>
9183 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
9185 2006-05-09 Bruno Haible <bruno@clisp.org>
9187 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
9188 CLASSPATH_SEPARATOR to a semicolon.
9190 2006-03-12 Bruno Haible <bruno@clisp.org>
9192 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
9193 available as variable CONF_JAVA, for subsequent autoconf
9194 tests. Also log error output in config.log.
9196 2006-07-19 Bruno Haible <bruno@clisp.org>
9198 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
9199 that getline works on glibc2 systems. Needed to avoid trouble
9201 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
9203 2005-12-04 Bruno Haible <bruno@clisp.org>
9205 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
9206 launcher (untested).
9208 2005-12-04 Bruno Haible <bruno@clisp.org>
9210 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
9212 2006-07-22 Bruno Haible <bruno@clisp.org>
9214 * gettext.m4: Update from GNU gettext-0.15.
9217 * inttypes-pri.m4: Likewise.
9218 * inttypes-h.m4: Renamed from inttypes.m4.
9219 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
9221 2006-07-22 Bruno Haible <bruno@clisp.org>
9223 Merge from GNU gettext 0.15.
9225 2005-07-05 Bruno Haible <bruno@clisp.org>
9227 * printf-args.c (printf_fetchargs): Work around broken
9228 definition of wint_t on mingw.
9230 2005-02-12 Bruno Haible <bruno@clisp.org>
9232 * xallocsa.h: Add extern "C" for C++.
9234 2006-05-17 Bruno Haible <bruno@clisp.org>
9237 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
9239 2006-04-30 Bruno Haible <bruno@clisp.org>
9241 * progreloc.c: Include <mach-o/dyld.h> if available.
9242 (find_executable): Use _NSGetExecutablePath when possible.
9244 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
9246 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
9249 2005-12-29 Bruno Haible <bruno@clisp.org>
9251 * progreloc.c (set_program_name_and_installdir): Fix
9254 2005-12-04 Bruno Haible <bruno@clisp.org>
9257 * progreloc.c: Include <windows.h> also on Cygwin.
9258 (find_executable): Add support for Cygwin.
9259 (set_program_name_and_installdir): Handle also platforms with
9262 2006-07-11 Bruno Haible <bruno@clisp.org>
9264 * javacomp.c: Fix a comment.
9265 Reported by Jim Meyering.
9267 2006-04-30 Bruno Haible <bruno@clisp.org>
9269 * javacomp.h (compile_java_class): Add source_version,
9270 target_version arguments.
9271 * javacomp.c: Rewritten to choose only a compiler that
9272 respects the specified source_version and target_version.
9274 2006-06-27 Bruno Haible <bruno@clisp.org>
9276 Assume correct S_ISDIR macro.
9277 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
9279 2006-07-22 Bruno Haible <bruno@clisp.org>
9281 * javaversion.h: New file, from GNU gettext.
9282 * javaversion.c: New file, from GNU gettext.
9283 * javaversion.java: New file, from GNU gettext.
9284 * javaversion.class: New file, from GNU gettext.
9286 2006-05-17 Bruno Haible <bruno@clisp.org>
9289 * javaexec.c (execute_java_class): Test for jview program
9292 2006-04-09 Bruno Haible <bruno@clisp.org>
9294 * fatal-signal.c: Don't include string.h.
9295 (at_fatal_signal): Use a copying loop instead of memcpy.
9297 2005-12-04 Bruno Haible <bruno@clisp.org>
9299 * csharpexec.c: Add support for 'clix' launcher (untested).
9300 (execute_csharp_using_sscli): New function.
9301 (execute_csharp_program): Call it.
9303 2006-06-21 Bruno Haible <bruno@clisp.org>
9305 Avoid warnings from recent versions of mcs.
9306 * csharpcomp.c (compile_csharp_using_mono): Don't use options
9307 -o, -L, -r any more. Use options documented since mcs-1.0
9308 instead. Similarly for -g.
9310 2005-07-09 Bruno Haible <bruno@clisp.org>
9312 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
9314 Reported by Mark Junker <mjscod@gmx.de>.
9316 2006-06-17 Bruno Haible <bruno@clisp.org>
9318 * config.charset: Update for NetBSD 3.0.
9320 2006-05-17 Bruno Haible <bruno@clisp.org>
9323 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
9325 2006-05-16 Bruno Haible <bruno@clisp.org>
9327 * localcharset.c [CYGWIN]: Include <windows.h>.
9328 (get_charset_aliases): For Cygwin, return the same CPxxx
9329 aliases list as under WIN32.
9330 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
9331 the environment variables. Fall back to GetACP().
9333 2006-04-05 Bruno Haible <bruno@clisp.org>
9335 * config.charset: Update Juan Manuel Guerrero's address.
9337 2005-02-12 Bruno Haible <bruno@clisp.org>
9339 * allocsa.h: Add extern "C" for C++.
9341 2005-02-10 Bruno Haible <bruno@clisp.org>
9343 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
9344 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
9346 2006-07-22 Bruno Haible <bruno@clisp.org>
9348 * gettext.h: Update to GNU gettext-0.15.
9350 2006-07-22 Bruno Haible <bruno@clisp.org>
9352 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
9353 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
9354 lib-prefix.m4, longdouble.m4, ssize_t.m4.
9356 2006-07-21 Eric Blake <ebb9@byu.net>
9358 * modules/stdlib-safer: New file.
9359 * MODULES.html.sh (File stream based Input/Output): Add
9362 2006-07-21 Eric Blake <ebb9@byu.net>
9364 * lib/stdlib-safer.h: New file from coreutils, required by
9367 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
9369 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
9371 2006-07-20 Bruno Haible <bruno@clisp.org>
9373 * gnulib-tool: Recognize new option --assume-autoconf.
9374 (autoconf_minversion): New variable.
9375 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
9377 2006-07-20 Bruno Haible <bruno@clisp.org>
9379 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
9381 2006-07-19 Derek R. Price <derek@ximbiot.com>
9383 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
9384 Reindent and repaginate.
9386 2006-07-19 Derek Price <derek@ximbiot.com>
9388 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
9391 2006-07-17 Bruno Haible <bruno@clisp.org>
9393 * modules/list: New file.
9394 * modules/array-list: New file.
9395 * modules/carray-list, modules/carray-list-tests: New files.
9396 * modules/linked-list, modules/linked-list-tests: New files.
9397 * modules/avltree-list, modules/avltree-list-tests: New files.
9398 * modules/rbtree-list, modules/rbtree-list-tests: New files.
9399 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
9400 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
9401 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
9402 * modules/oset: New file.
9403 * modules/array-oset: New file.
9404 * modules/avltree-oset, modules/avltree-oset-tests: New files.
9405 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
9406 * tests/test-carray_list.c: New file.
9407 * tests/test-linked_list.c: New file.
9408 * tests/test-avltree_list.c: New file.
9409 * tests/test-rbtree_list.c: New file.
9410 * tests/test-linkedhash_list.c: New file.
9411 * tests/test-avltreehash_list.c: New file.
9412 * tests/test-rbtreehash_list.c: New file.
9413 * tests/test-avltree_oset.c: New file.
9414 * tests/test-rbtree_oset.c: New file.
9415 * MODULES.html.sh (Container data structures): New section.
9417 2006-07-17 Bruno Haible <bruno@clisp.org>
9419 * m4/gl_list.m4: New file.
9421 2006-07-17 Bruno Haible <bruno@clisp.org>
9423 * lib/gl_list.h: New file.
9424 * lib/gl_list.c: New file.
9425 * lib/gl_array_list.h: New file.
9426 * lib/gl_array_list.c: New file.
9427 * lib/gl_carray_list.h: New file.
9428 * lib/gl_carray_list.c: New file.
9429 * lib/gl_linked_list.h: New file.
9430 * lib/gl_linked_list.c: New file.
9431 * lib/gl_anylinked_list1.h: New file.
9432 * lib/gl_anylinked_list2.h: New file.
9433 * lib/gl_avltree_list.h: New file.
9434 * lib/gl_avltree_list.c: New file.
9435 * lib/gl_anyavltree_list1.h: New file.
9436 * lib/gl_anyavltree_list2.h: New file.
9437 * lib/gl_rbtree_list.h: New file.
9438 * lib/gl_rbtree_list.c: New file.
9439 * lib/gl_anyrbtree_list1.h: New file.
9440 * lib/gl_anyrbtree_list2.h: New file.
9441 * lib/gl_anytree_list1.h: New file.
9442 * lib/gl_anytree_list2.h: New file.
9443 * lib/gl_linkedhash_list.h: New file.
9444 * lib/gl_linkedhash_list.c: New file.
9445 * lib/gl_anyhash_list1.h: New file.
9446 * lib/gl_anyhash_list2.h: New file.
9447 * lib/gl_avltreehash_list.h: New file.
9448 * lib/gl_avltreehash_list.c: New file.
9449 * lib/gl_rbtreehash_list.h: New file.
9450 * lib/gl_rbtreehash_list.c: New file.
9451 * lib/gl_anytreehash_list1.h: New file.
9452 * lib/gl_anytreehash_list2.h: New file.
9454 * lib/gl_oset.h: New file.
9455 * lib/gl_oset.c: New file.
9456 * lib/gl_array_oset.h: New file.
9457 * lib/gl_array_oset.c: New file.
9458 * lib/gl_avltree_oset.h: New file.
9459 * lib/gl_avltree_oset.c: New file.
9460 * lib/gl_rbtree_oset.h: New file.
9461 * lib/gl_rbtree_oset.c: New file.
9462 * lib/gl_anytree_oset.h: New file.
9464 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
9466 * m4/mkancesdirs.m4: New file.
9467 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
9468 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
9469 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
9472 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
9474 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
9475 * lib/mkancesdirs.h: New files.
9476 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
9477 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
9478 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
9479 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
9480 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
9481 callers changed. Revamp internals significantly, by not
9482 attempting to create directories that are temporarily more
9483 permissive than the final results. Do not attempt to use
9484 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
9485 This removes some race conditions, fixes some bugs, and simplifies
9486 things. Use new dirchownmod function to do owner and mode changes.
9487 * lib/mkdir-p.h: Likewise.
9488 * lib/modechange.c (octal_to_mode): New function.
9489 (struct mode_change): New member mentioned.
9490 (make_node_op_equals): New arg mentioned. All callers changed.
9491 (mode_compile): Keep track of which mode bits the user has explicitly
9493 (mode_adjust): New arg DIR, so that we implement the X op correctly.
9494 New arg PMODE_BITS, to keep track of which mode bits the user
9495 mentioned; it treats S_ISUID and S_ISGID speciall.
9496 All callers changed.
9497 * lib/modechange.h: Likewise.
9499 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
9501 * MODULES.html.sh: Add mkancestors.
9502 * modules/mkancesdirs: New module.
9503 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
9504 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
9505 The chdir-safer and afs files are now orphans; I'll remove them
9506 unless someone speaks up.
9507 Add lib/dirchownmod.c, lib/dirchownmod.h.
9508 (Depends-on): Remove alloca, chown, save-cwd, dirname.
9509 Add lchown, mkancesdirs.
9510 (Maintainer): Add self.
9512 2006-07-15 Karl Berry <karl@gnu.org>
9514 * gnulib-tool: help message wording/arrangement.
9516 2006-07-14 Simon Josefsson <jas@extundo.com>
9518 * doc/gnulib.texi (Libtool and Windows): New section.
9520 2006-07-12 Simon Josefsson <jas@extundo.com>
9522 * modules/gendocs (License): Fix license, approved by Karl.
9524 2006-07-12 Eric Blake <ebb9@byu.net>
9526 * MODULES.html.sh: Add gendocs.
9528 2006-07-11 Eric Blake <ebb9@byu.net>
9530 * modules/fdl: New module, to install doc/fdl.texi.
9531 * MODULES.html.sh: Add new section for documentation modules.
9532 * gnulib-tool: Avoid space-tab.
9533 (--doc-base): New option, to manage files from doc.
9535 2006-07-11 Eric Blake <ebb9@byu.net>
9537 * m4/absolute-header.m4: Fix comments to match recent change.
9539 2006-07-11 Eric Blake <ebb9@byu.net>
9541 * gnulib-tool: List --doc-base before --tests-base.
9543 2006-07-11 Derek R. Price <derek@ximbiot.com>
9545 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
9547 2006-07-11 Bruno Haible <bruno@clisp.org>
9549 * README: Mention where to put documentation.
9551 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9553 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
9555 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
9557 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
9560 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
9562 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
9563 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
9564 "no/such/file/stdint.h" when there is no such file, so that
9565 the resulting C code can be parsed by dodgy compilers.
9566 Problems reported by Bob Proulx.
9568 2006-07-10 Derek R. Price <derek@ximbiot.com>
9570 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
9571 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
9572 macros into the GNU _D_EXACT_NAMLEN.
9573 * lib/savedir.c: Likewise.
9574 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
9576 2006-07-10 Derek R. Price <derek@ximbiot.com>
9577 and Paul Eggert <eggert@cs.ucla.edu>
9579 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
9581 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
9582 macros into the GNU _D_EXACT_NAMLEN.
9584 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
9586 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
9587 around the absolute name, to work around a problem with the HP-UX
9588 11.23 native C compiler, reported by Bob Proulx.
9590 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
9592 * doc/maintain.texi, make-stds.texi: Sync from
9593 <http://savannah.gnu.org/projects/gnustandards>.
9595 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
9597 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
9599 2006-07-09 Jim Meyering <jim@meyering.net>
9601 * m4/glob.m4: Remove a doubled word in a comment.
9603 2006-07-09 Jim Meyering <jim@meyering.net>
9605 * lib/argp-pv.c: Remove a doubled word in a comment.
9606 * lib/check-version.c (check_version): Likewise.
9607 * lib/javacomp.c (compile_java_class): Likewise.
9609 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
9611 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
9612 for the benefit of people using Autoconf 2.60. If you want to
9613 support older Autoconf versions you can copy m4/onceonly_2_57.m4
9614 (or m4/onceonly.m4, if pre-2.57) manually.
9616 2006-07-08 Jim Meyering <jim@meyering.net>
9618 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
9620 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
9621 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
9624 2006-07-08 Jim Meyering <jim@meyering.net>
9626 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
9628 2006-07-07 Simon Josefsson <jas@extundo.com>
9630 * tests/test-crc.c: Change expected crc value, the test vector
9631 were probably computed using the old broken crc.c?
9633 2006-07-06 Simon Josefsson <jas@extundo.com>
9635 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
9636 now the canonical place for the M4 file).
9638 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
9639 from the sys_socket dependency now.
9641 * modules/inet_pton (Files): Ditto.
9643 * modules/inet_ntop (Files): Ditto.
9645 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
9647 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
9648 not gl_PREREQ_GETUSERSHELL.
9650 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9652 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
9653 with only one argument, for Autoconf 2.60.
9654 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
9655 expand to nothing, so add a shell command to avoid syntax error.
9656 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9658 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9660 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
9662 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
9664 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
9665 no longer needed. Check for isblank decl.
9666 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
9667 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
9670 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
9672 * lib/getloadavg.c: Use __VMS, not VMS.
9673 * lib/getopt.c: Likewise.
9674 * lib/getpagesize.h: Likewise.
9675 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
9676 and probably does not work.
9678 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
9680 * lib/.cppi-disable: Add wcwidth.
9681 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
9682 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
9683 (ISGRAPH): Remove. All uses changed to isgraph.
9684 (FOLD) [!defined _LIBC]: Remove special case.
9685 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
9686 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
9688 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
9691 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
9693 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
9694 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
9695 brackets. Other minor changes to suppress some compiler
9698 2006-07-06 Derek R. Price <derek@ximbiot.com>
9699 and Paul Eggert <eggert@cs.ucla.edu>
9701 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
9702 of invoking obsolescent AC_HEADER_DIRENT macro.
9703 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
9704 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
9705 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9706 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
9707 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
9708 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
9709 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
9710 * m4/readdir.m4: Remove; no longer needed.
9712 2006-07-06 Derek R. Price <derek@ximbiot.com>
9713 and Paul Eggert <eggert@cs.ucla.edu>
9715 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
9716 Don't worry about this obsolete case any more.
9717 (HAVE_DIR): Remove. All uses removed; we now assume you can read
9719 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
9720 worry about this obsolete case any more.
9721 * lib/fts.c: Likewise.
9722 * lib/getcwd.c: Likewise.
9723 * lib/glob.h: Likewise.
9724 * lib/savedir.c: Likewise.
9726 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
9728 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
9729 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
9730 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
9733 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
9734 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
9735 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
9737 * m4/getdate.m4 (gl_GETDATE): Likewise.
9738 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
9739 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
9740 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9741 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
9742 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
9743 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
9744 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
9747 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
9749 * lib/memcasecmp.c: Include <limits.h>.
9750 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
9751 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
9752 Don't assume isdigit succeeds only on '0' through '9'.
9754 2006-07-05 Eric Blake <ebb9@byu.net>
9756 * modules/getaddrinfo (Depends-on): Add snprintf.
9758 2006-07-05 Eric Blake <ebb9@byu.net>
9760 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
9761 to avoid 'header present but could not be compiled' on cygwin.
9763 2006-07-05 Eric Blake <ebb9@byu.net>
9765 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
9766 missing from netdb.h.
9767 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
9769 2006-07-05 Derek R. Price <derek@ximbiot.com>
9771 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
9773 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
9774 * m4/getdate.m4 (gl_GETDATE): Likewise.
9775 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
9776 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
9777 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9778 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
9779 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
9781 2006-07-05 Derek R. Price <derek@ximbiot.com>
9783 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
9784 All uses of is_space replaced by isspace.
9785 * lib/exit.h: Don't talk about STDC_HEADERS.
9786 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
9787 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
9788 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
9789 replaced by isprint etc.
9790 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
9791 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
9792 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
9793 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
9794 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
9795 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
9797 2006-07-05 Bruno Haible <bruno@clisp.org>
9799 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
9800 the function exists, before testing against AIX.
9801 Reported by Martin Lambers <marlam@marlam.de>.
9803 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
9805 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
9806 From Mark D. Baushke.
9808 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
9810 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
9811 to the absolute name, not just one, to bypass Sun C 5.8's
9812 "warning: #include of /usr/include/... may be non-portable".
9814 2006-07-04 Eric Blake <ebb9@byu.net>
9816 * modules/dirname-tests: New test module.
9817 * tests/test-dirname.c: New file, replacing dirname.c
9818 TEST_DIRNAME section that was recently deleted.
9820 2006-07-04 Bruno Haible <bruno@clisp.org>
9822 Assume ANSI C header files and <ctype.h> functions.
9823 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
9824 (mbsnwidth): Use isprint, iscntrl instead.
9826 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
9828 Merge from coreutils.
9829 * MODULES.html.sh: Add xstrtold.
9830 * modules/xstrtold: New file.
9831 * modules/cycle-check (Files): Add lib/same-inode.h.
9832 * modules/dirname (Files): Add m4/double-slash-root.m4.
9833 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
9834 * modules/mkdir-p (Files): Add lib/same-inode.h.
9835 * modules/same (Files): Add lib/same-inode.h.
9837 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
9839 * m4/absolute-header.m4: Renamed from full-header-path.m4.
9840 This is to keep the terminology clean; POSIX talks about
9841 "absolute pathnames", not "full pathnames", but the GNU
9842 Coding Standards say to use "path" for something else;
9843 so use "absolute" to keep both sides happy.
9844 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
9845 Set gl_absolute_header, not gl_full_header_path.
9846 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
9847 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
9850 Merge from coreutils.
9852 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
9854 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
9855 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
9856 want to require the building of c-strtod.o.
9857 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
9859 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
9861 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
9863 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
9864 --as-needed option if available. Problem reported by Albert Chin in
9865 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
9866 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
9867 cc merely issues a bunch of annoying warnings for --as-needed
9868 (this problem was reported by Bob Proulx). Also, try linking with
9869 -lm to detect a bug in binutils 2.16 (this problem was reported
9870 by Ralf Wildenhues).
9872 2006-06-18 Jim Meyering <jim@meyering.net>
9874 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
9875 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
9877 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
9878 also check for glibc-2.4's abort-inducing bug.
9880 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
9881 Low-probability clean-up should be to use rmdir to get rid of
9882 the just-created directory, not unlink.
9884 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
9885 configure fail, and request a bug report to inform us about it.
9886 Add a comment that, barring reports to the contrary, in 2007 we'll
9887 assume ftruncate is universally available.
9889 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
9891 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
9893 2006-03-12 Jim Meyering <jim@meyering.net>
9895 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
9896 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
9897 * m4/same.m4 (gl_SAME): Likewise.
9898 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
9900 2006-03-11 Eric Blake <ebb9@byu.net>
9902 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
9903 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
9904 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
9905 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
9907 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
9909 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
9910 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
9911 reported by Mark D. Baushke, one in
9912 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
9914 Merge from coreutils.
9916 * lib/.cppi-disable: Add stdint_.h.
9917 * lib/.cvsignore: Add stdint.h.
9919 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
9921 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
9922 both double and long double versions.
9923 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
9924 * lib/xstrtold.c: New file.
9925 * lib/xstrtod.h (xstrtold): New decl.
9927 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
9929 * lib/filemode.c (setst): Remove.
9930 (strmode): Rewrite to avoid setst. This makes the code shorter,
9931 (arguably) clearer, and the generated code is a bit smaller on my
9932 Debian GNU/Linux stable x86 host.
9934 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
9936 * lib/filemode.c: Include "filemode.h" first, to test the interface.
9937 Assume that filemode.h includes sys/types.h and sys/stat.h.
9938 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
9939 (ftypelet): Reorder to put common cases first, for efficiency.
9940 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
9942 (strmode): Renamed from mode_string, and now stores 12 bytes instead
9943 of 10, for compatibility with FreeBSD. All callers changed.
9944 (filemodestring): Now stores 12 bytes instead of 10, and sets file
9945 types that can't be deduced solely from st_mode. First arg is now a
9947 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
9948 (strmode): Renamed from mode_string.
9949 (filemodestring): New decl.
9950 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
9951 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
9953 (S_ISPORT, S_ISWHT): New macros, if not already defined.
9955 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
9957 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
9958 fsusage.h now does that. Include fsusage.h first, to test interface.
9959 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
9960 at most one method (the old code could have generated decls that
9961 didn't conform to C89, not that this was ever exercised).
9962 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
9964 2006-03-19 Jim Meyering <jim@meyering.net>
9966 Work even in a chroot where d_ino values for entries in "/"
9967 don't match the stat.st_ino values for the same names.
9968 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
9969 number, iterate through all entries again, using lstat instead.
9970 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
9971 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
9973 * lib/getcwd.c (__getcwd): Clarify a comment.
9974 Use memcpy in place of a call to strcpy.
9976 2006-03-12 Jim Meyering <jim@meyering.net>
9978 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
9979 matches that of the current directory (which we're about to chdir ".."
9980 out of), then save the dev-ino of the parent, instead.
9982 * lib/same-inode.h (SAME_INODE): New file/macro.
9983 * lib/chdir-safer.c (SAME_INODE): Remove definition.
9984 Include "same-inode.h", instead.
9985 * lib/same.c: Likewise.
9986 * lib/cycle-check.h: Include "same-inode.h".
9987 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
9988 * lib/cycle-check.c (SAME_INODE): Remove definition.
9989 * lib/root-dev-ino.h: Include "same-inode.h".
9991 2006-03-11 Eric Blake <ebb9@byu.net>
9993 * lib/same.c (same_name): s/base_name/last_component/
9994 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
9995 * lib/filenamecat.c (file_name_concat): Likewise.
9997 2006-03-11 Eric Blake <ebb9@byu.net>,
9998 Paul Eggert <eggert@cs.ucla.edu>
10000 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
10001 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
10003 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
10004 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
10005 (last_component): New method.
10006 * lib/dirname.c (dir_len): Determine when drive letters need a
10007 subsequent slash. Preserve // when it is special.
10008 (dir_name): Don't append dot when drive letter is absolute.
10009 [TEST_DIRNAME]: Move into a full-blown gnulib test.
10010 * lib/basename.c (base_name): New semantics - malloc the result.
10011 Preserve // when it is special. Preserve relative files that look
10012 like drive letters.
10013 (base_len): Preserve // when it is special.
10014 (last_component): New method, similar to old base_name semantics.
10015 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
10016 base_name. Strip redundant slashes from ///.
10018 2006-07-03 Jim Meyering <jim@meyering.net>
10020 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
10021 macro is used before the first cycle_check call.
10023 2006-07-03 Eric Blake <ebb9@byu.net>
10025 * modules/dirname (Depends-on): Add xstrndup.
10027 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
10029 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
10030 test cases, so that config.log is a bit easier to follow.
10032 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
10034 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
10035 both are 64 bits, since this seems to be the tradition, and this
10036 prevents gcc -Wformat from warning about usages with PRIuMAX. If
10037 we ever run into a host that prefers long long to long in this
10038 case, we'll need another configure-time test. Problem reported by
10041 2006-07-02 Eric Blake <ebb9@byu.net>
10043 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
10045 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
10047 * modules/inttypes (Depends-on): No longer depends on stdint.
10048 * modules/stdint (Description): Say more about assumptions.
10049 Say that the fast types might differ. Say macros are used.
10050 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
10051 (Makefile.am): Revise list of substituted symbols to match
10053 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
10054 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
10055 * tests/test-stdint.c (verify_same_types)
10056 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
10057 the code conforms to C99/C89.
10058 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
10059 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
10061 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
10063 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
10064 but fix a bug, by requiring at least 64 bits.
10065 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
10066 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
10067 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
10068 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
10070 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
10071 changes. Make 2.59 a prerequisite. Check and substitute for
10072 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
10073 inttypes.h. Do not use special include files; just use the
10074 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
10075 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
10076 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
10077 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
10078 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
10079 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
10080 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
10081 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
10082 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
10083 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
10084 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
10085 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
10086 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
10087 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
10088 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
10089 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
10090 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
10091 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
10092 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
10093 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
10094 WINT_MAX. Check for C99 conformance more strictly, by detecting
10095 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
10096 not check for things that C99 does not require, e.g., int8_t. If
10097 a test isn't needed unless <stdint.h> isn't working, and is
10098 unlikely to be needed for any other reason, then don't do it
10099 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
10100 size_t, since we assume C89 freestanding at least. Do not check
10101 for sig_atomic_t, wchar_t, or wint_t, since the code now does
10102 the right thing even if the types are not defined. Instead use:
10103 (gl_STDINT_TYPE_PROPERTIES): New macro.
10104 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
10105 testing whether <sys/types.h> clashes, as Autoconf does this for
10106 us now. All uses removed.
10107 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
10108 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
10109 (gl_CHECK_TYPE_SAME):
10110 Remove; no longer needed.
10111 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
10112 exists, since we'll return 0 anyway in that case.
10113 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
10115 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
10117 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
10118 possible collision with system files.
10119 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
10120 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
10121 WCHAR_MIN and WCHAR_MAX in this case.
10122 (<stddef.h>): Do not include; no longer needed.
10123 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
10124 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
10125 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
10126 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
10127 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
10128 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
10129 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
10130 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
10131 !defined(__c99))]: Include in this case too, since it's harmless
10133 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
10134 dangerous to do so.
10135 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
10136 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
10137 (_STDINT_MIN, _STDINT_MAX): New macros.
10138 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
10139 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
10140 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
10141 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
10142 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
10143 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
10144 macros, not typedefs; this simplifies things quite a bit.
10145 Use long int for all types narrower than int64_t.
10146 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
10147 Define in terms of long long int or int64_t or long int,
10148 not int64_t or int32_t. This saves some compile-time testing.
10149 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
10150 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
10151 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
10152 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
10153 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
10154 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
10155 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
10156 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
10157 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
10158 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
10159 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
10160 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
10161 undef any previous version and define our own version, for
10162 simplicity and consistency with the new macros for types.
10163 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
10164 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
10165 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
10166 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
10167 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
10168 @WINT_T_SUFFIX@ to keep things simple here.
10169 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
10170 Simplify by assuming typical 8/16/32/64 host, since we're
10171 already doing that elsewhere anyway.
10172 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
10173 and assume long long int is 64 bits if available. This
10174 speeds up 'configure'.
10176 2006-07-01 Eric Blake <ebb9@byu.net>
10178 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
10179 Reported by Andreas Buening.
10181 2006-07-01 Eric Blake <ebb9@byu.net>
10183 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
10185 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
10187 * lib/getaddrinfo.c: fixed typo
10189 2006-06-29 Jim Meyering <jim@meyering.net>
10191 * modules/strftime (Maintainer): Add my name, since with the
10192 FPRINTFTIME changes strftime.c has forked from glibc.
10194 2006-06-29 Eric Blake <ebb9@byu.net>
10196 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
10198 2006-06-29 Eric Blake <ebb9@byu.net>
10200 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
10202 2006-06-29 Eric Blake <ebb9@byu.net>
10204 * lib/stat_.h: New file.
10206 2006-06-29 Eric Blake <ebb9@byu.net>
10208 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
10209 unused static function.
10211 2006-06-29 Eric Blake <ebb9@byu.net>
10213 * doc/functions.texi (Function Portability): Document missing lstat
10216 2006-06-29 Eric Blake <ebb9@byu.net>
10218 * MODULES.html.sh: Add sys_stat.
10219 * modules/sys_stat: New module.
10220 * modules/mkstemp (Depends-on): Add sys_stat.
10222 2006-06-29 Derek R. Price <derek@ximbiot.com>
10224 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
10226 2006-06-29 Derek R. Price <derek@ximbiot.com>
10228 * m4/c-bs-a.m4: Removed.
10230 2006-06-29 Derek R. Price <derek@ximbiot.com>
10232 * lib/strftime.c: Assume strftime() exists.
10234 2006-06-29 Derek Price <derek@ximbiot.com>
10236 * modules/c-bs-a: Removed - \a is C89.
10237 * MODULES.html.sh: Remove c-bs-a.
10239 2006-06-29 Bruno Haible <bruno@clisp.org>
10241 * modules/wcwidth (License): Change to LGPL.
10243 2006-06-28 Simon Josefsson <jas@extundo.com>
10245 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
10248 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
10251 2006-06-28 Simon Josefsson <jas@extundo.com>
10253 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
10255 2006-06-28 Simon Josefsson <jas@extundo.com>
10257 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
10258 functions there. It will succeed on Windows XP, but on Windows
10259 2000 and (presumably) earlier, it will fail, and use the internal
10261 (use_win32_p): New function.
10262 (getaddrinfo): Use strtoul on servname, to support numeric ports.
10263 Support AI_NUMERICSERV to disable getservbyname.
10264 (getnameinfo): New function, only supports
10265 NI_NUMERICHOST|NI_NUMERICSERV for now.
10267 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
10268 only have some of them. Add AI_NUMERICSERV. Add prototype for
10271 2006-06-28 Eric Blake <ebb9@byu.net>
10273 * modules/wcwidth: New file.
10274 * modules/mbchar (Depends-on): Add wcwidth.
10275 * modules/mbswidth (Depends-on): Add wcwidth.
10276 * MODULES.html.sh: Add wcwidth.
10278 2006-06-28 Eric Blake <ebb9@byu.net>
10280 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
10281 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
10283 2006-06-28 Eric Blake <ebb9@byu.net>
10285 * lib/xvasprintf.h: Fix comments.
10287 2006-06-28 Eric Blake <ebb9@byu.net>
10289 * lib/mbchar.h (wcwidth): Include wcwidth.h.
10290 * lib/mbswidth.c (wcwidth): Move from here...
10291 * lib/wcwidth.h: ...to this new file.
10293 2006-06-28 Derek R. Price <derek@ximbiot.com>
10295 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
10297 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
10299 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
10301 2006-06-28 Derek R. Price <derek@ximbiot.com>
10303 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
10304 Autoconf 2.60 says this stuff was obsolete.
10306 2006-06-28 Bruno Haible <bruno@clisp.org>
10308 * modules/wcwidth (Files): Add m4/wchar_t.m4.
10310 2006-06-28 Bruno Haible <bruno@clisp.org>
10312 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
10315 2006-06-28 Bruno Haible <bruno@clisp.org>
10317 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
10318 declaration for wcwidth.
10319 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
10321 2006-06-28 Bruno Haible <bruno@clisp.org>
10323 * lib/mkdtemp.c [MINGW]: Include <io.h>.
10324 (mkdir): Define using _mkdir.
10326 2006-06-28 Bruno Haible <bruno@clisp.org>
10328 * lib/getaddrinfo.h: Fix POSIX URL.
10329 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
10331 (use_win32_p): Make static.
10332 (getaddrinfo): Reject service name if it is empty or does not consist
10333 solely of decimal digits, or if its value is > 65535.
10334 (getnameinfo): Remove useless casts.
10336 2006-06-27 Simon Josefsson <jas@extundo.com>
10338 * modules/sys_select: New file, suggested by Bruno Haible, Paul
10339 Eggert and Martin Lambers.
10341 2006-06-27 Simon Josefsson <jas@extundo.com>
10343 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
10344 Eggert and Martin Lambers.
10346 2006-06-27 Bruno Haible <bruno@clisp.org>
10348 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
10349 result to 0, not to empty.
10350 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
10352 2006-06-27 Bruno Haible <bruno@clisp.org>
10354 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
10356 2006-06-26 Simon Josefsson <jas@extundo.com>
10358 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
10361 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
10363 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
10364 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
10365 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
10367 2006-06-26 Mark D. Baushke <mdb@gnu.org>
10369 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
10371 2006-06-26 Bruno Haible <bruno@clisp.org>
10373 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
10375 2006-06-26 Bruno Haible <bruno@clisp.org>
10377 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
10379 2006-06-26 Bruno Haible <bruno@clisp.org>
10381 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
10382 SGI C compiler in pre-C99 mode.
10383 Suggested by Mark D. Baushke and Larry Jones.
10385 2006-06-26 Bruno Haible <bruno@clisp.org>
10387 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
10389 Reported by Mark D. Baushke and Larry Jones.
10391 2006-06-26 Bruno Haible <bruno@clisp.org>
10393 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
10395 Suggested by Mark D. Baushke and Larry Jones.
10397 2006-06-23 Simon Josefsson <jas@extundo.com>
10398 Bruno Haible <bruno@clisp.org>
10400 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
10401 Emit mostlyclean-local rule.
10402 (func_emit_tests_Makefile_am): Likewise.
10403 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
10405 2006-06-23 Mark D. Baushke <mdb@gnu.org>
10407 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
10409 2006-06-23 Bruno Haible <bruno@clisp.org>
10411 * tests/test-stdint.c: Update to match ISO C 99 Technical
10414 2006-06-23 Bruno Haible <bruno@clisp.org>
10416 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
10418 2006-06-23 Bruno Haible <bruno@clisp.org>
10420 * lib/stdint_.h: Treat IRIX like OpenBSD.
10422 2006-06-23 Bruno Haible <bruno@clisp.org>
10424 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
10425 ISO C 99 Technical Corrigendum 1.
10427 2006-06-22 Simon Josefsson <jas@extundo.com>
10429 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
10432 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
10434 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
10435 needed. Some compiler complained about some of them. Problem reported
10437 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
10439 2006-06-21 Simon Josefsson <jas@extundo.com>
10441 * tests/test-getaddrinfo.c: New file.
10443 * modules/getaddrinfo-tests: New file.
10445 * MODULES.html.sh: Add inet_pton.
10447 * modules/inet_pton: New file.
10449 2006-06-21 Simon Josefsson <jas@extundo.com>
10451 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
10452 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
10453 of using the (limited) gnulib implementation on Windows XP.
10455 * m4/inet_pton.m4: New file.
10457 2006-06-21 Simon Josefsson <jas@extundo.com>
10459 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
10462 * lib/socket_.h: Don't define WINVER.
10464 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
10465 slightly modified to work in gnulib.
10467 2006-06-21 Simon Josefsson <jas@extundo.com>
10469 * doc/gnulib.texi (Windows sockets): Add.
10471 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
10473 * lib/read-file.c (fread_file): Start with buffer allocation of
10474 0 bytes rather than 1 byte; this simplifies the code.
10475 Don't invoke feof; it's not needed. Refactor to avoid duplicate
10476 code to free buffer and save/restore errno.
10477 (internal_read_file): Remove unused local.
10479 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
10481 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
10482 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
10483 Problem reported by Denis Excoffier in
10484 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
10486 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
10488 * modules/sys_socket, modules/socklen: Include sys/types since
10489 FreeBSD 4.x's sys/socket.h needs it.
10491 2006-06-19 Simon Josefsson <jas@extundo.com>
10493 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
10495 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
10497 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
10499 2006-06-19 Bruno Haible <bruno@clisp.org>
10501 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
10502 and FULL_PATH_INTTYPES_H in angle brackets.
10503 Reported by Mark D. Baushke <mdb@gnu.org>.
10505 2006-06-17 Eric Blake <ebb9@byu.net>
10507 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
10510 2006-06-17 Bruno Haible <bruno@clisp.org>
10512 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
10515 2006-06-17 Bruno Haible <bruno@clisp.org>
10517 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
10518 whether errno is declared. Assume <errno.h> declares errno.
10520 2006-06-17 Bruno Haible <bruno@clisp.org>
10522 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
10524 2006-06-17 Bruno Haible <bruno@clisp.org>
10526 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
10527 problem on Solaris 2.5.1.
10529 2006-06-16 Eric Blake <ebb9@byu.net>
10531 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
10532 * lib/unicodeio.c [!defined errno]: Likewise.
10533 * lib/strtol.c [!defined errno]: Likewise.
10534 * lib/strtod.c [!defined errno]: Likewise.
10536 2006-06-15 Eric Blake <ebb9@byu.net>
10538 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
10540 2006-06-15 Eric Blake <ebb9@byu.net>
10542 * config/srclist.txt (ssize_t.m4): Lose sync.
10544 2006-06-15 Bruno Haible <bruno@clisp.org>
10546 * modules/stdint (Files): Include m4/full-header-path.m4,
10547 m4/size_max.m4, m4/wchar_t.m4.
10548 (Makefile.am): Many more substitutions.
10549 * modules/stdint-tests: New file.
10550 * tests/test-stdint.c: New file.
10552 2006-06-15 Bruno Haible <bruno@clisp.org>
10554 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
10555 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
10556 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
10557 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
10558 gl_CHECK_TYPE_SAME): New macros.
10560 2006-06-15 Bruno Haible <bruno@clisp.org>
10562 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
10564 2006-06-15 Bruno Haible <bruno@clisp.org>
10566 * lib/stdint_.h: Rewritten to be fully auto-configured.
10567 Fixes bug on HP-UX/IA64.
10569 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
10571 * lib/getdate.y (__attribute__): Don't define if already defined.
10572 Problem reported by Larry Jones.
10573 * lib/utimens.c (__attribute__): Likewise.
10575 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
10577 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
10578 reported by Andreas Schwab.
10580 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10581 Bruno Haible <bruno@clisp.org>
10583 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
10584 check for the declaration of strnlen and a run test that exposes the
10585 AIX 5.1 strnlen bug. In the failure case, #define strndup to
10588 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10589 Bruno Haible <bruno@clisp.org>
10591 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
10593 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10595 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
10596 compile test, for Tru64 4.0D.
10598 2006-05-28 Karl Berry <karl@gnu.org>
10600 * config/srclist.txt (printf-args.c): lose sync.
10602 2006-05-26 Martin Lambers <marlam@marlam.de>
10604 * lib/getpass.c: Updates the test for the native W32 API, and adds
10605 missing includes, thus fixing compilation warnings.
10607 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
10609 * lib/exclude.c (exclude_fnmatch): New function.
10610 (excluded_file_name): Call exclude_fnmatch.
10611 * lib/exclude.h (excluded_file_name): New prototype
10613 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
10615 * lib/tempname.c (small_open, large_open): New macros.
10616 (__open, __open64) [!_LIBC]: Remove.
10617 (__gen_tempname): Use small_open and large_open instead of __open
10618 and __open64. This fixes a portability bug on HP-UX 11.11i
10619 reported by Simon Wing-Tang in
10620 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
10622 2006-05-24 Bruno Haible <bruno@clisp.org>
10624 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
10625 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
10626 Reported by Thorsten Maerz <torte@netztorte.de> via
10627 Aaron Stone <aaron@serendipity.cx>.
10629 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
10631 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
10632 gl_ rather than jm_. Link, don't run, so that cross-compiles are
10633 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
10634 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
10635 not really conditional on the cache.
10636 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
10638 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
10640 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
10641 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
10642 (my_usleep): Don't mishandle maximum value.
10644 2006-05-19 Jim Meyering <jim@meyering.net>
10646 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
10648 2006-05-17 Bruno Haible <bruno@clisp.org>
10650 Cygwin portability.
10651 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
10653 2006-05-17 Bruno Haible <bruno@clisp.org>
10655 * lib/stdint_.h: Fix recognition of Cygwin.
10657 2006-05-15 Bruno Haible <bruno@clisp.org>
10659 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
10660 on libtool patch by Ralf Wildenhues.
10662 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
10664 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
10665 test for C99 conformance; (bool) 0.5 is an integer constant
10666 expression, but (bool) -0.5 is not. Problem reported by Fedor
10667 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
10669 2006-05-11 Simon Josefsson <jas@extundo.com>
10671 * m4/xvasprintf.m4: Fix obvious typo.
10673 2006-05-11 Jim Meyering <jim@meyering.net>
10675 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
10678 2006-05-10 Simon Josefsson <jas@extundo.com>
10680 * lib/md4.c: Typo fix, update copyright years.
10681 (K1, K2): Don't use L because it turn computations into 64-bit on
10684 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
10686 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
10687 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
10688 unwanted sign propagation, e.g., on hosts with 64-bit int.
10689 There still are some problems with reeelly weird theoretical hosts
10690 (e.g., 33-bit int) but it's not worth worrying about now.
10691 * lib/sha1.c (rol): Likewise.
10692 (K1, K2, K3, K4): Remove unnecessary L suffix.
10694 2006-05-10 Bruno Haible <bruno@clisp.org>
10696 * lib/des.c: Cast to avoid warnings.
10698 2006-05-09 Bruno Haible <bruno@clisp.org>
10700 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
10701 (Depends-on): Depend also on xsize, stdarg.
10702 (configure.ac): Add gl_XVASPRINTF.
10704 2006-05-09 Bruno Haible <bruno@clisp.org>
10706 * m4/xvasprintf.m4: New file.
10708 2006-05-09 Bruno Haible <bruno@clisp.org>
10710 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
10711 (EOVERFLOW): Define fallback value.
10712 (xstrcat): New function.
10713 (xvasprintf): Recognize the special case of a string concatenation.
10715 2006-05-08 Eric Blake <ebb9@byu.net>
10717 * gnulib-tool (func_version): Base copyright year on CVS date.
10718 (func_emit_copyright_notice): New function.
10719 (func_emit_lib_Makefile_am): Use it.
10720 (func_emit_tests_Makefile_am): Likewise.
10721 (func_import): Likewise.
10723 2006-05-08 Bruno Haible <bruno@clisp.org>
10725 * modules/stdarg: New file.
10726 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
10728 2006-05-08 Bruno Haible <bruno@clisp.org>
10730 * m4/stdarg.m4: New file, from GNU gettext.
10732 2006-05-08 Bruno Haible <bruno@clisp.org>
10734 * config/srclist.txt (build-aux/config.rpath): different from latest
10737 2006-05-08 Bruno Haible <bruno@clisp.org>
10739 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
10741 2006-05-05 Jim Meyering <jim@meyering.net>
10743 * m4/warning.m4: New file, derived from bison's file by the same name.
10745 2006-05-03 Bruno Haible <bruno@clisp.org>
10747 * lib/stdint_.h: Shorter URL.
10748 * lib/inttypes.h: Likewise.
10750 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
10752 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
10754 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
10756 * lib/verify.h: Document the internals better. Most of this change
10757 was written by Bruno Haible.
10759 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
10761 * doc/verify.texi: New file, partly based on a proposal by
10764 2006-05-02 Bruno Haible <bruno@clisp.org>
10766 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
10768 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
10770 2006-04-29 Bruno Haible <bruno@clisp.org>
10772 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
10773 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
10775 2006-04-29 Bruno Haible <bruno@clisp.org>
10777 * gnulib-tool: Make --update option actually work.
10779 2006-04-29 Bruno Haible <bruno@clisp.org>
10781 * doc/gcd.texi: New file.
10782 * doc/gnulib.texi: Include it.
10784 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
10786 * lib/getdate.y (get_date): When adding relative date, start with the
10787 initial time, not with the result of the first mktime call.
10789 2006-04-25 Bruno Haible <bruno@clisp.org>
10791 * gnulib-tool (func_import): Output the include directives in three
10792 blocks, sorted separately.
10793 Reported by Ben Pfaff <blp@cs.stanford.edu>.
10795 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
10797 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
10798 to define main with arguments, for C++. Reported by Eric Blake.
10799 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
10800 Prefer 'int main ()' to 'int main (void)', for C++.
10801 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10802 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
10803 for 'main', for C99 and C++.
10805 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
10807 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
10808 Don't assume that exit status -1 is valid.
10809 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10810 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10811 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
10812 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
10813 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
10814 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
10815 not AC_TRY_RUN. Use return, not exit. Don't assume that
10816 functions can be used without declaring them, or that you can
10817 exit with status -1.
10818 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
10820 2006-04-24 Karl Berry <karl@gnu.org>
10822 * config/srclist.txt (longdouble.m4): sync lost.
10824 2006-04-24 Eric Blake <ebb9@byu.net>
10826 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
10828 2006-04-24 Bruno Haible <bruno@clisp.org>
10830 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
10831 poll() implementation in AIX.
10832 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10834 2006-04-24 Bruno Haible <bruno@clisp.org>
10836 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
10837 assigned exactly once.
10839 2006-04-23 Claudio Fontana <claudio@gnu.org>
10840 Bruno Haible <bruno@clisp.org>
10842 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
10843 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
10846 2006-04-23 Bruno Haible <bruno@clisp.org>
10848 * modules/copy-file: Depend on unistd.
10849 * modules/execute: Likewise.
10850 * modules/fatal-signal: Likewise.
10851 * modules/findprog: Likewise.
10852 * modules/mkdtemp : Likewise.
10853 * modules/pipe: Likewise.
10854 * modules/wait-process: Likewise.
10856 2006-04-23 Bruno Haible <bruno@clisp.org>
10858 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
10859 condition was already detected.
10860 Reported by Ben Pfaff <blp@cs.stanford.edu>.
10862 2006-04-23 Bruno Haible <bruno@clisp.org>
10864 * lib/copy-file.c: Include <unistd.h> unconditionally.
10865 * lib/execute.c: Likewise.
10866 * lib/fatal-signal.c: Likewise.
10867 * lib/findprog.c: Likewise.
10868 * lib/mkdtemp.c: Likewise.
10869 * lib/pipe.h: Likewise.
10870 * lib/pipe.c: Likewise.
10871 * lib/wait-process.h: Likewise.
10873 2006-04-23 Bruno Haible <bruno@clisp.org>
10875 * gnulib-tool (func_usage): Fix --import description. Document
10877 (func_import): Create temporary file in a temporary directory, if
10878 --dry-run is specified. Silence errors from 'grep' when there are no
10879 m4 files in $m4dir.
10880 (func_create_testdir): Silence errors from 'grep' when there are no
10881 m4 files in $m4dir.
10882 Reported by Karl Berry <karl@freefriends.org>.
10884 2006-04-20 Bruno Haible <bruno@clisp.org>
10886 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
10887 one argument, so that the code will be portable to Autoconf 2.60.
10888 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
10889 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10890 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
10892 2006-04-19 Derek Price <derek@ximbiot.com>
10893 Eric Blake <ebb9@byu.net>
10895 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
10896 rather than "/full/path.h". Update comment to match. Shorten &
10897 generalize m4_translit call via AS_TR_CPP.
10899 2006-04-19 Derek Price <derek@ximbiot.com>
10900 Eric Blake <ebb9@byu.net>
10902 * lib/inttypes.h: Correct grammar in comment.
10904 2006-04-18 Derek Price <derek@ximbiot.com>
10905 Paul Eggert <eggert@cs.ucla.edu>
10907 * modules/inttypes: New file.
10908 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
10910 2006-04-18 Derek Price <derek@ximbiot.com>
10911 Paul Eggert <eggert@cs.ucla.edu>
10913 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
10916 2006-04-18 Derek Price <derek@ximbiot.com>
10917 Paul Eggert <eggert@cs.ucla.edu>
10919 * lib/inttypes.h: New file.
10920 * lib/strtoimax.c: Assume <inttypes.h>.
10922 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
10924 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
10925 isn't mounted. Problem reported by Kir Kolyshkin.
10927 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
10929 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
10930 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
10932 * lib/regex.h (RE_DUP_MAX): Update comment to match current
10935 2006-04-12 Eric Blake <ebb9@byu.net>
10937 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
10938 is now done automatically by the corresponding Autoconf macro.
10940 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
10942 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
10945 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
10947 Merge regex changes from libc, removing some of our
10948 POSIX-conformance changes that were rejected and redoing them in a
10949 less-intrusive way.
10951 * lib/regcomp.c (re_compile_internal, init_dfa):
10952 Length arg is now size_t, not Idx. All uses changed.
10953 (peek_token): Forward decl now says internal_function.
10954 (__re_error_msgid, __re_error_msgid_idx):
10955 Now static rather than extern with attribute_hidden.
10956 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
10957 For some reason libc prefers K&R style defns for external functions.
10958 (regerror) [!defined _LIBC]: Likewise.
10959 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
10960 (seek_collating_symbol_entry, lookup_collation_sequence_value):
10961 (build_range_exp, build_collating_symbol):
10962 Use K&R-style defn.
10963 (re_compile_fastmap): Use '\0' to memset, not 0.
10964 (utf8_sb_map): Make the calculations more obvious.
10965 (init_dfa, parse_bracket_exp, build_charclass_op):
10966 Call calloc and cast result, as glibc does.
10967 (init_word_char, fetch_token, peek_token, peek_token_bracket):
10968 (build_range_exp, build_collating_symbol):
10969 Now internal functions.
10971 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
10973 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
10974 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
10975 Don't depend on VMS; depend on __VMS instead, for POSIX
10976 namespace cleanness.
10977 (regoff_t): Define to ssize_t, not long int.
10979 Remove the REG_ macros named below. Instead, make the old names
10980 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
10982 (REG_BACKSLASH_ESCAPE_IN_LISTS):
10983 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
10984 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
10985 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
10986 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
10987 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
10988 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
10989 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
10990 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
10991 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
10992 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
10993 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
10994 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
10995 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
10996 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
10997 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
10998 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
11000 Remove. All uses replaced by the old RE_* names.
11001 (RE_BACKSLASH_ESCAPE_IN_LISTS):
11002 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
11003 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
11004 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
11005 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
11006 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
11007 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
11008 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
11009 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
11010 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
11011 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
11012 Don't bother having these macros be independent of each others'
11013 values, since they no longer exist in the POSIX name space.
11015 Rename the following member names back to their old names,
11016 unless !__USE_GNU_REGEX. All uses changed back.
11017 (buffer): Renamed from re_buffer.
11018 (allocated): Renamed from re_allocated.
11019 (used): Renamed from re_used.
11020 (syntax): Renamed from re_syntax.
11021 (fastmap): Renamed from re_fastmap.
11022 (translate): Renamed from re_translate.
11023 (can_be_null): Renamed from re_can_be_null.
11024 (regs_allocated): Renamed from re_regs_allocated.
11025 (fastmap_accurate): Renamed from re_fastmap_accurate.
11026 (no_sub): Renamed from re_no_sub.
11027 (not_bol): Renamed from re_not_bol.
11028 (not_eol): Renamed from re_not_eol.
11029 (newline_anchor): Renamed from re_newline_anchor.
11030 (num_regs): Renamed from rm_num_regs.
11031 (start): Renamed from rm_start.
11032 (end): Renamed from rm_end.
11034 (free_state): Move up a bit.
11036 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
11037 #define to be empty.
11038 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
11039 when that is what is intended.
11040 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
11041 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
11043 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
11044 All uses changed back to re_malloc, etc. It's now the caller's
11045 responsibility to check for overflow; all callers changed.
11046 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
11047 (re_x2nrealloc): Remove.
11048 (free_state): Remove decl.
11050 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
11051 (re_set_registers, re_exec):
11052 Use K&R-style defn.
11054 2006-01-31 Roland McGrath <roland@redhat.com>
11056 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
11057 Reported by Mike Frysinger <vapier@gentoo.org>.
11059 2006-01-15 Andreas Jaeger <aj@suse.de>
11062 * lib/regex_internal.c (re_string_reconstruct): Adjust for
11063 build_wcs_upper_buffer change.
11064 (build_wcs_upper_buffer): Change return type.
11066 2005-12-10 Ulrich Drepper <drepper@redhat.com>
11068 * lib/regex_internal.h: Include <stdint.h> if available.
11070 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
11072 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
11074 2005-10-14 Ulrich Drepper <drepper@redhat.com>
11076 * lib/regcomp.c: Adjust for changed secondary hash function.
11078 2005-09-30 Ulrich Drepper <drepper@redhat.com>
11080 * lib/regex.h: Pretty printing.
11081 Clean up namespace a bit.
11083 2005-09-30 Jakub Jelinek <jakub@redhat.com>
11085 * lib/regexec.c (update_cur_sifted_state, check_arrival,
11086 check_arrival_add_next_nodes): Avoid using uninitialized variable.
11088 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
11089 Ulrich Drepper <drepper@redhat.com>
11092 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
11094 (bitset_word_t): Renamed from bitset_word. All uses changed.
11096 2005-09-22 Ulrich Drepper <drepper@redhat.com>
11099 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
11100 * lib/regcomp.c: Remove unnecessary uses of
11101 unsigned RE_TRANSLATE_TYPE.
11102 * lib/regex_internal.h: Likewise.
11103 * lib/regex_internal.c: Likewise.
11104 * lib/regexec.c: Likewise.
11105 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
11107 2005-09-07 Ulrich Drepper <drepper@redhat.com>
11109 * lib/regexec.c (find_recover_state): Remove unnecessary
11111 (transit_state_bkref): Make DFA a const pointer.
11112 (get_subexp): Likewise.
11113 (check_arrival): Likewise.
11114 (update_cur_sifted_state): Likewise.
11115 (re_search_internal): Likewise.
11116 (prune_impossible_nodes): Likewise.
11117 (acquire_init_state_context): Likewise.
11118 (proceed_next_node): Likewise.
11119 (set_regs): Likewise.
11120 (free_fail_stack_return): Likewise.
11121 (check_arrival_expand_ecl): Mark DFA parameter as const.
11122 (check_arrival_expand_ecl_sub): Likewise.
11123 (check_subexp_limits): Likewise.
11124 (sub_epsilon_src_nodes): Likewise.
11125 (add_epsilon_src_nodes): Likewise.
11126 (merge_state_array): Likewise.
11127 (update_regs): Likewise.
11128 (build_trtable): Likewise.
11129 (sift_states_backward): Mark MCTX parameter as const.
11130 (build_sifted_states): Likewise.
11131 (update_cur_sifted_state): Likewise.
11132 (sift_states_mkref): Likewise.
11133 (check_arrival_expand_ecl): Mark eclosure as const.
11134 (check_dst_limits_calc_pos_1): Likewise.
11135 * lib/regex_internal.h (re_match_context_t): Make dfa a const
11138 2005-09-06 Ulrich Drepper <drepper@redhat.com>
11140 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
11141 (transit_state_sb): Likewise.
11142 (transit_state_mb): Likewise.
11143 (sift_states_iter_mb): Likewise.
11144 (check_arrival_add_next_nodes): Likewise.
11145 (check_node_accept_bytes): Change first parameter to pointer-to-const.
11146 [_LIBC] (re_search_2_stub): Use mempcpy.
11148 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
11149 mbrtowc for very simple UTF-8 case.
11151 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
11152 a pointer-to-const.
11153 (re_acquire_state_context): Likewise.
11154 * lib/regex_internal.h: Adjust prototypes.
11156 * lib/regex.c: Prevent using C++ compilers.
11158 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
11159 (re_acquire_state_context): Likewise.
11161 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
11163 * modules/regex (Depends-on): Add ssize_t.
11165 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
11167 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
11170 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
11172 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
11174 2006-03-29 Mark D. Baushke <mdb@gnu.org>
11175 Bruno Haible <bruno@clisp.org>
11177 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
11178 <sys/types.h> and <inttypes.h>.
11180 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11182 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
11183 `__error_t_defined', so argp.h will not typedef the former.
11185 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
11187 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
11188 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
11189 glibc names. Even if glibc is changed to conform to POSIX, the
11190 traditional names will be available anyway, since regex depends on
11191 the extensions module. Also, fix a longstanding typo in the
11192 implementation of Spencer ERE test #75 from grep 2.3. Problems
11193 reported by Emanuele Giaquinta. Also, change sense of cached
11194 variable, so that the message makes sense.
11196 2006-03-24 Simon Josefsson <jas@extundo.com>
11198 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
11199 including some doc fixes.
11200 (base64_encode_alloc): Fix +1 bug on allocation failures.
11202 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11204 * lib/base64.c (base64_encode): Do not read past end of array with
11205 unsanitized input on systems with CHAR_BIT > 8.
11207 2006-03-24 Eric Blake <ebb9@byu.net>
11209 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
11211 2006-03-22 Karl Berry <karl@gnu.org>
11213 * config/srclist.txt (*setenv.[ch]): get from coreutils.
11214 * config/srclistvars.sh (COREUTILS): new var.
11216 2006-03-17 Jim Meyering <jim@meyering.net>
11218 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
11219 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
11221 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
11223 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
11224 no longer needs it. Instead, check that regoff_t is as least
11225 as wide as ptrdiff_t.
11227 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
11228 so that our regex.h stays compatible with the installed regex.
11229 This is helpful for installers who configure --without-included-regex.
11230 Problem reported by Emanuele Giaquinta.
11232 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
11234 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
11235 Typedef to long int, not to off_, as POSIX will likely change
11238 2006-03-15 Eric Blake <ebb9@byu.net>
11240 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
11242 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
11244 * lib/argp-help.c (validate_uparams): Fix typo
11245 * lib/argp-parse.c (argp_default_options): Consistently begin help
11246 messages with a lowercase letter.
11248 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
11250 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
11251 overrun buffers and shouldn't be used (much as gets shouldn't be
11253 * lib/time_r.c (asctime_r, ctime_r): Likewise.
11255 2006-03-08 Simon Josefsson <jas@extundo.com>
11257 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
11258 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11260 2006-03-08 Simon Josefsson <jas@extundo.com>
11262 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
11263 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11265 2006-03-08 Simon Josefsson <jas@extundo.com>
11267 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
11268 signal that configure disabled the device.
11270 2006-03-08 Simon Josefsson <jas@extundo.com>
11272 * build-aux/maint.mk: Fix refresh-po, to handle no translated
11275 2006-03-07 Simon Josefsson <jas@extundo.com>
11277 * modules/getopt (Depends-on): Add unistd.
11279 * modules/unistd: New file.
11281 2006-03-07 Simon Josefsson <jas@extundo.com>
11283 * modules/gc-random: New file.
11285 2006-03-07 Simon Josefsson <jas@extundo.com>
11287 * m4/unistd_h.m4: New file.
11289 2006-03-07 Simon Josefsson <jas@extundo.com>
11291 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
11292 test to be side-effect free by storing the result in the cache
11293 variable gl_cv_lib_readline, and moving the assignment of
11294 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
11295 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11297 2006-03-07 Simon Josefsson <jas@extundo.com>
11299 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
11300 error on missing devices (the functions will return an error).
11302 * m4/gc.m4: Move random stuff to gc-random.m4
11304 2006-03-07 Simon Josefsson <jas@extundo.com>
11306 * lib/unistd_.h: New file.
11308 2006-03-07 Simon Josefsson <jas@extundo.com>
11310 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
11312 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
11314 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
11315 Problem reported by Juan Manuel Guerrero.
11317 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
11319 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
11321 * lib/getlogin_r.c: Likewise.
11322 * lib/getlogin_r.h: Likewise.
11323 * lib/glob.c: Likewise.
11324 * lib/pagealign_alloc.c: Likewise.
11325 * lib/unistd_.h: Remove; no longer needed.
11327 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
11329 * MODULES.html.sh (Support for systems lacking POSIX:2001):
11331 * modules/c-stack (Depends-on): Add unistd.
11332 * modules/getlogin_r: Likewise.
11333 * modules/glob: Likewise.
11334 * modules/pagealign_alloc: Likewise.
11335 * modules/unistd (Files): Remove lib/unistd_.h.
11336 (EXTRA_DIST): Remove.
11337 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
11339 (MOSTLYCLEANFILES): Remove unistd.h-t.
11341 2006-03-03 Simon Josefsson <jas@extundo.com>
11343 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
11345 2006-03-03 Simon Josefsson <jas@extundo.com>
11347 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
11350 2006-03-03 Simon Josefsson <jas@extundo.com>
11352 * build-aux/maint.mk: Add indent target.
11354 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
11356 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
11357 our replacement poll.h in any case, to avoid a differing
11358 declaration from a system header. Seen on AIX.
11360 2006-03-01 Simon Josefsson <jas@extundo.com>
11362 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
11365 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
11367 * modules/gettime (Depends-on): Add extensions module.
11368 * modules/nanosleep (Depends-on): Likewise.
11369 * modules/settime (Depends-on): Likewise.
11371 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
11373 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
11374 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
11376 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11377 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
11379 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
11380 not "==". Reported by Ralf Wildenhues.
11382 2006-03-01 Karl Berry <karl@gnu.org>
11384 * doc/Copyright/request-*: new files, synced from gnuorg.
11386 2006-03-01 Karl Berry <karl@gnu.org>
11388 * config/srclist.txt (Copyright/*): new entries.
11390 2006-02-28 Simon Josefsson <jas@extundo.com>
11392 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
11394 2006-02-27 Simon Josefsson <jas@extundo.com>
11396 * lib/base64.h: Indent #define's. From Jim Meyering
11397 <jim@meyering.net>.
11399 2006-02-27 Jim Meyering <jim@meyering.net>
11401 Revert the change of 2006-02-24, so these files can continue
11402 to be sync'd from gettext.
11403 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
11406 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
11408 * modules/intprops: New file.
11409 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
11411 * modules/getloadavg (Files): Remove lib/intprops.h.
11412 (Depends-on): Add intprops.
11413 * modules/human: Likewise.
11414 * modules/inttostr: Likewise.
11415 * modules/openat: Likewise.
11416 * modules/sig2str: Likewise.
11417 * modules/userspec: Likewise.
11418 * modules/utimecmp: Likewise.
11419 * modules/xnanosleep: Likewise.
11420 * modules/xstrtol: Likewise.
11422 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
11424 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
11425 * modules/lock-tests (TESTS): Use $(EXEEXT).
11426 * modules/tls-tests: Likewise.
11427 * modules/argp-tests: Likewise.
11428 (check_PROGRAMS): New var, replacing...
11429 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
11431 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11433 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
11436 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
11438 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
11440 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11442 Sync from coreutils.
11443 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
11446 2006-02-22 Jim Meyering <jim@meyering.net>
11448 Sync from coreutils.
11449 * m4/chdir-safer.m4: New file.
11451 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
11453 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
11454 AT_FDCWD exceeds INT_MAX.
11455 * lib/openat.h (AT_FDCWD): Likewise.
11457 2006-02-17 Eric Blake <address@hidden>
11459 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
11461 2006-02-16 Simon Josefsson <jas@extundo.com>
11463 * modules/getaddrinfo (Depends-on): Add sys_socket.
11465 2006-02-15 Simon Josefsson <jas@extundo.com>
11467 * build-aux/maint.mk: Add dsyntax-check rule.
11469 2006-02-15 Eric Blake <ebb9@byu.net>
11471 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
11472 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
11473 'present but cannot compile' warnings on cygwin.
11474 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
11475 use ws2tcpip.h if sys/socket.h works.
11476 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
11477 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
11479 2006-02-14 Simon Josefsson <jas@extundo.com>
11481 * modules/maintainer-makefile (Files): Rename.
11483 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
11484 and (the local) Makefile.cfg to maint-cfg.mk.
11486 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
11489 * modules/maintainer-makefile: New module.
11491 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
11492 severaly stripped to make it possible to build it up from scratch
11493 with reliable tests.
11495 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
11496 fixes to permit overriding the default actions when configure and
11497 makefile are not available.
11499 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
11501 Sync from coreutils.
11502 * modules/lstat (Depends-on): Don't depend on xalloc.
11503 (License): Change from GPL to LGPL, since this is now simply a
11504 replacement for a libc function.
11506 2006-02-14 Jim Meyering <jim@meyering.net>
11508 Sync from coreutils.
11510 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
11511 failure on deficient systems, and simplify gnulib lgpl dependencies.
11512 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
11513 xmalloc/lstat combination. Based on a patch from Bruno Haible.
11515 * lib/xalloc-die.c: Remove unused definition of N_.
11517 2006-02-14 Jim Meyering <jim@meyering.net>
11519 Sync from coreutils.
11520 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
11521 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
11522 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
11523 double-quote uses of that variable, to accommodate the rare case in
11524 which getmntent is available in none of the libraries checked. This
11525 happens at least on FreeBSD 5.0.
11527 2006-02-13 Simon Josefsson <jas@extundo.com>
11529 * gnulib-tool (Usage): Fix --import, from
11530 karl@freefriends.org (Karl Berry).
11532 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
11534 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
11536 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
11538 * lib/argp-namefrob.h: Restore changes accidentally lost during the
11539 "autoupdate" on 2005-12-12.
11541 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
11543 * modules/closeout (Depends-on): Remove atexit.
11545 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
11547 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
11548 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
11550 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
11552 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
11553 __EXTENSIONS__ if this causes compilation to fail. Problem
11554 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
11555 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
11557 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
11559 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
11560 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
11561 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
11564 2006-01-26 Simon Josefsson <jas@extundo.com>
11566 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
11567 prototype is visible on mingw32.
11569 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
11572 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
11575 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
11577 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
11578 attempt to open for write; this always fails, at least on POSIX
11579 hosts. This reinstates the 2006-01-09 change, which was
11580 inadvertently removed.
11582 2006-01-26 Bruno Haible <bruno@clisp.org>
11584 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
11585 Reported by Paul Eggert.
11587 2006-01-26 Bruno Haible <bruno@clisp.org>
11588 Paul Eggert <eggert@cs.ucla.edu>
11590 * lib/stdbool_.h (_Bool)
11591 [(! (defined __cplusplus || defined __BEOS__)
11592 && !defined __GNUC__
11593 && !(defined __HP_cc || defined __xlc__
11594 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
11595 || defined __sgi))]:
11596 #define to signed char in these cases too; this simplifies
11597 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
11598 etc., separately) and makes it more conservative.
11600 2006-01-25 Simon Josefsson <jas@extundo.com>
11602 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
11603 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
11604 ws2tcpip.h with WINVER=0x0501. All for mingw32.
11606 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
11608 * lib/argp-namefrob.h: Bugfix. Remove stray #
11610 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
11612 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
11613 so that we test the test.
11614 Check for yet another HP-UX cc bug involving *bool |= bool.
11616 2006-01-25 Karl Berry <karl@gnu.org>
11618 * config/srclist.txt (vasnprintf.c): sync lost.
11620 2006-01-25 Jim Meyering <jim@meyering.net>
11622 Sync from the stable (b5) branch of coreutils:
11624 * lib/fts.c (fts_children): Don't let close() clobber errno from
11627 * lib/fts.c (fts_stat): When following a symlink-to-directory,
11628 don't necessarily interpret stat-fails+lstat-succeeds as indicating
11629 a dangling symlink. That can also happen at least for ELOOP.
11630 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
11631 FYI, this bug predates the inclusion of fts.c in coreutils.
11633 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
11634 in their own block, so pre-c99 compilers don't object.
11636 Avoid the double-free (first in fts_read, second in fts_close) that
11637 would occur when an `active' directory is made inaccessible (e.g.,
11638 via chmod a-x) during a traversal.
11639 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
11640 before returning. Reproduce this failure by
11641 mkdir -p a/b; cd a; chmod a-x . b
11642 Reported by Stavros Passas.
11644 2006-01-25 Jim Meyering <jim@meyering.net>
11646 * lib/fileblocks.c: Remove more useless parentheses.
11647 * lib/readutmp.h: Likewise.
11649 2006-01-25 Bruno Haible <bruno@clisp.org>
11651 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
11653 Reported by Paul Eggert.
11655 2006-01-25 Bruno Haible <bruno@clisp.org>
11657 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
11658 rid of a trap command. For Solaris sh.
11659 Reported by Mark D. Baushke <mdb@gnu.org>.
11661 2006-01-24 Simon Josefsson <jas@extundo.com>
11663 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
11666 2006-01-24 Karl Berry <karl@gnu.org>
11668 * config/srclist.txt (argp-namefrob.h): sync lost.
11670 2006-01-24 Jim Meyering <jim@meyering.net>
11672 * modules/openat (Files): Add lib/intprops.h.
11673 From Mark D. Baushke.
11675 2006-01-24 Jim Meyering <jim@meyering.net>
11677 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
11678 Reported by Mark D. Baushke.
11680 2006-01-24 Jim Meyering <jim@meyering.net>
11682 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
11684 2006-01-24 Bruno Haible <bruno@clisp.org>
11686 * modules/strnlen (Maintainer): Change from glibc to all.
11688 2006-01-24 Bruno Haible <bruno@clisp.org>
11690 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
11691 Patch by Paul Eggert.
11693 2006-01-24 Bruno Haible <bruno@clisp.org>
11695 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
11697 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
11700 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
11701 'signed char' to avoid problems with the built-in _Bool type.
11702 Reported by Paul Eggert on 2005-11-26.
11704 2006-01-24 Bruno Haible <bruno@clisp.org>
11706 * gnulib-tool (func_import): Avoid constructing complicated sed
11707 expressions inside backquote.
11708 Report and solution by Mark D. Baushke <mdb@gnu.org>.
11710 2006-01-23 Ulrich Drepper <drepper@redhat.com>
11712 These changes imported from libc.
11713 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
11714 test and two separate function calls.
11715 * lib/strndup.c (__strndup): Add libc_hidden_def.
11717 2006-01-23 Simon Josefsson <jas@extundo.com>
11719 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
11720 Remove the test_*_SOURCES variable: automake infers it by default.
11721 * modules/tls-tests: Likewise.
11723 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
11725 Work around porting bugs reported by Dieter in
11726 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
11727 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
11728 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
11729 Include "getopt.h" first, to check interface.
11730 (getenv): Declare only if defined HAVE_DECL_GETENV &&
11732 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
11733 (__strndup): Revert to K&R-style function dfns, the glibc style.
11734 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
11735 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
11736 Include strnlen.h first, to get prototype properly.
11737 (strnlen): Renamed from __strnlen.
11740 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
11742 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
11744 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
11746 * config/srclist.txt: Adjust to reflect glibc reorganization.
11747 This affects only comments.
11749 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
11751 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
11752 Reported by Bruce Korb <bkorb@gnu.org>.
11754 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
11756 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
11757 to pacify gcc -Wswitch-default.
11759 2006-01-22 Bruno Haible <bruno@clisp.org>
11761 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
11762 temporary buffer for sprintf, take into account the precision also
11763 for 'd', 'i', 'u', 'o', 'x', 'X'.
11765 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
11767 * modules/argp-tests: New module
11768 * tests/test-argp.c: New file
11769 * tests/test-argp-2.sh: New file
11771 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
11773 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
11774 (__argp_base_name): Removed
11775 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
11777 (__argp_base_name): Provide macro definition or extern declaration
11778 depending on the configuration
11780 2006-01-20 Simon Josefsson <jas@extundo.com>
11782 * modules/inet_ntop (Depends-on): Depend on sys_socket.
11784 2006-01-20 Simon Josefsson <jas@extundo.com>
11786 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
11788 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
11790 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
11791 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
11792 Suggested by Bruno Haible.
11794 2006-01-20 Karl Berry <karl@gnu.org>
11796 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
11797 until changes propagate, I guess.
11799 2006-01-19 Simon Josefsson <jas@extundo.com>
11801 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
11803 2006-01-19 Simon Josefsson <jas@extundo.com>
11805 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
11807 2006-01-19 Simon Josefsson <jas@extundo.com>
11809 * gnulib-tool: Set check_PROGRAMS.
11811 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
11812 modules/des-tests, modules/gc-arcfour-tests,
11813 modules/gc-arctwo-tests, modules/gc-des-tests,
11814 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
11815 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
11816 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
11817 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
11818 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
11819 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
11820 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
11823 2006-01-18 Simon Josefsson <jas@extundo.com>
11825 * modules/socklen (Depends-on): Depend on sys_socket.
11827 2006-01-18 Simon Josefsson <jas@extundo.com>
11829 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
11830 modules/des-tests, modules/gc-arcfour-tests,
11831 modules/gc-arctwo-tests, modules/gc-des-tests,
11832 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
11833 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
11834 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
11835 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
11836 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
11837 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
11838 $(EXEEXT) to automake TESTS variable, for mingw32.
11840 2006-01-17 Simon Josefsson <jas@extundo.com>
11842 * modules/socklen (Include): Need sys/socket.h.
11844 2006-01-17 Bruno Haible <bruno@clisp.org>
11846 * modules/ssize_t (Include): Add <sys/types.h>.
11848 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
11850 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
11851 it's not portable and it doesn't work with cross-compiles.
11852 Problem reported by Bruno Haible. Fix missing-$ typo in
11853 'test "gl_cv_ignore_unused_libraries" ...' that prevented
11854 -zignore from being used with Sun's C compiler.
11856 2006-01-12 Simon Josefsson <jas@extundo.com>
11858 * lib/base64.c: Fix warning, reported by Bruno Haible
11859 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
11861 2006-01-12 Bruno Haible <bruno@clisp.org>
11863 * modules/ldd: New file.
11864 * build-aux/ldd.sh.in: New file.
11865 * MODULES.html.sh (Support for building libraries and executables): Add
11868 2006-01-12 Bruno Haible <bruno@clisp.org>
11870 * m4/ldd.m4: New file.
11872 2006-01-12 Bruno Haible <bruno@clisp.org>
11874 * gnulib-tool (func_import, func_create_testdir): Don't go into an
11875 endless loop while replacing $auxdir with build-aux.
11877 2006-01-11 Simon Josefsson <jas@extundo.com>
11879 * lib/stdint_.h (SIZE_MAX): Add missing (.
11881 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
11883 Sync from coreutils.
11884 * lib/md5.c: Fix commentary typos.
11885 (alignof, UNALIGNED_P): No need for a GCC-specific version.
11886 * lib/md5.h (__attribute__): Remove; unused.
11887 * lib/sha1.c: Fix commentary to match md5 better.
11888 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
11889 so that we don't need to worry about alignment. All uses changed.
11890 This merges the 2005-10-28 md5 change into sha1.
11892 2006-01-11 Jim Meyering <jim@meyering.net>
11894 Sync from coreutils.
11895 * lib/md5.c (OP): Fix spacing.
11897 2006-01-11 Bruno Haible <bruno@clisp.org>
11899 Ensure automatic ordering between gl_LOCK and gl_ARGP.
11900 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
11901 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
11903 2006-01-11 Bruno Haible <bruno@clisp.org>
11905 Ensure automatic ordering between gl_LOCK and gl_ARGP.
11906 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
11907 the "early" section as well.
11909 2006-01-11 Bruno Haible <bruno@clisp.org>
11911 Avoid "ar: no archive members specified" error on MacOS X.
11912 * gnulib-tool (func_modules_add_dummy): New function.
11913 (func_import, func_create_testdir): Invoke it.
11915 2006-01-11 Bruno Haible <bruno@clisp.org>
11917 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
11918 with $auxdir in AC_CONFIG_FILES statements.
11920 2006-01-11 Bruno Haible <bruno@clisp.org>
11922 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11923 Initialize also noinst_HEADERS to empty.
11925 2006-01-11 Bruno Haible <bruno@clisp.org>
11927 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
11929 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
11932 2006-01-11 Bruno Haible <bruno@clisp.org>
11934 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
11935 overridable by the user.
11936 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11938 2006-01-10 Simon Josefsson <jas@extundo.com>
11940 * modules/sys_socket: New file.
11942 2006-01-10 Simon Josefsson <jas@extundo.com>
11944 * m4/sys_socket_h.m4: New file.
11946 2006-01-10 Simon Josefsson <jas@extundo.com>
11948 * lib/socket_.h: New file.
11950 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
11952 * modules/readutmp (Maintainer): Add myself.
11954 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
11956 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
11957 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
11958 People who are still concerned with buggy memcmp implementations
11959 can invoke gl_FUNC_MEMCMP themselves.
11961 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
11963 * lib/regex_internal.h (BITSET_WORD_BITS):
11964 Work around a bug in 64-bit PGC (before version 6.1-2), where the
11965 preprocessor mishandles large unsigned values as if they were signed.
11966 Problem reported by Claudio Fontana in
11967 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
11969 2006-01-10 Jim Meyering <jim@meyering.net>
11971 Avoid the double-free (first in fts_read, second in fts_close) that
11972 would occur when an `active' directory is made inaccessible (e.g.,
11973 via chmod a-x) during a traversal.
11974 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
11975 before returning. Reproduce this failure by
11976 mkdir -p a/b; cd a; chmod a-x . b
11977 Reported by Stavros Passas.
11979 Sync from coreutils.
11980 * lib/sha1.c: Tweak grammar in a comment.
11982 2006-01-10 Jim Meyering <jim@meyering.net>
11984 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
11985 Patch by Joerg Sonnenberger.
11987 2006-01-10 Bruno Haible <bruno@clisp.org>
11989 * modules/readutmp: Depend on module free.
11990 * modules/strtok_r: Depend on module restrict.
11992 2006-01-10 Bruno Haible <bruno@clisp.org>
11994 * modules/gettext (configure.ac): Add an invocation of
11995 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
11997 2006-01-10 Bruno Haible <bruno@clisp.org>
11999 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
12000 Reported by Werner Lemberg <wl@gnu.org>.
12002 2006-01-10 Bruno Haible <bruno@clisp.org>
12004 * lib/localcharset.c: Update from GNU gettext.
12006 2006-01-10 Bruno Haible <bruno@clisp.org>
12008 * lib/argp.h (__const): Remove macro. Use const instead.
12009 * lib/argp-fmtstream.h (__const): Likewise.
12010 * lib/glob_.h (__const): Remove macro.
12011 * lib/glob-libc.h: Use const instead of __const.
12013 2006-01-10 Bruno Haible <bruno@clisp.org>
12015 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
12017 Needed to avoid an automake error regarding the 'gettext' module.
12019 2006-01-09 Simon Josefsson <jas@extundo.com>
12021 * modules/inet_ntop (Depends-on): Add restrict.
12023 2006-01-09 Simon Josefsson <jas@extundo.com>
12025 * modules/gc-rijndael-tests (License): Put under LGPL.
12027 * modules/gc-des-tests (License): Likewise.
12029 * modules/gc-arcfour-tests (License): Likewise.
12031 * modules/gc-arctwo-tests (License): Likewise.
12033 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
12035 * modules/gc-hmac-sha1-tests (Files): Likewise.
12037 * modules/gc-hmac-md5-tests (License): Likewise.
12039 * modules/gc-sha1-tests (License): Likewise.
12041 * modules/gc-md5-tests (License): Likewise.
12043 * modules/gc-md4-tests (License): Likewise.
12045 * modules/gc-md2-tests (License): Likewise.
12047 * modules/gc-tests (License): Likewise.
12049 * modules/des-tests (License): Likewise.
12051 * modules/md4-tests (License): Likewise.
12053 * modules/md2-tests (License): Likewise.
12055 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
12057 Sync from coreutils:
12059 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
12060 * modules/lib-ignore: New file.
12061 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
12062 chdir-safer.m4, lchmod.m4.
12063 * modules/openat: Add mkdirat.c, openat-priv.h.
12065 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
12067 Sync from coreutils.
12068 * m4/lib-ignore.m4: New file.
12069 * m4/lchmod.m4: New file.
12071 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
12073 Sync from coreutils.
12074 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
12075 for write access: POSIX says that must fail.
12076 * lib/fts.c (diropen): Likewise.
12077 * lib/save-cwd.c (save_cwd): Likewise.
12078 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
12079 well, for minor improvements on hosts that lack O_DIRECTORY.
12080 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
12081 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
12082 Fall back on chown if open failed with EACCES.
12084 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
12085 Report an error at compile-time if only a 1-second nominal clock
12086 resolution is found.
12088 * lib/lchmod.h: New file.
12089 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
12090 (make_dir_parents): Use lchown rather than chown, and
12091 lchmod rather than chmod.
12093 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
12094 dummies too. Problem with "none" reported by Bob Proulx. Problem with
12095 "proc" reported by n0dalus.
12097 * lib/mountlist.c: Include <limits.h>.
12098 (dev_from_mount_options)
12099 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
12100 New function. It no longer assumes "dev=" has the System V meaning
12101 on Linux (since it doesn't). It also parses "dev=" more carefully.
12102 (read_file_system_list)
12103 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
12104 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
12107 * lib/posixtm.h (PDS_PRE_2000): New macro.
12108 * lib/posixtm.c (year): Arg is now syntax_bits rather than
12109 allow_century. All usages changed. Reject dates outside the range
12110 1969-1999 if PDS_PRE_2000 is used.
12112 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
12114 Sync from coreutils.
12115 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
12116 (Time of day items): Mention the possibility of leap seconds.
12117 Problem reported by Dr. David Alan Gilbert.
12119 2006-01-09 Jim Meyering <jim@meyering.net>
12121 Sync from coreutils.
12123 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
12125 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
12127 * lib/modechange.c (mode_compile): Reject an invalid mode string
12128 that starts with an octal digit. From Andreas Gruenbacher.
12130 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
12131 and dup to open_safer and dup_safer, respectively.
12132 (openat_permissive): Fix typo in comment.
12134 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
12135 "gettext.h"; either no longer needed or are guaranteed by openat.h.
12136 (_): Remove; no longer needed.
12137 (openat): Renamed from rpl_openat; no need for rpl_openat
12138 since openat.h renames openat for us.
12139 Replace most of the body with a call to openat_permissive,
12140 to avoid duplicate code.
12141 Port to (probably hypothetical) environments were mode_t is
12143 (openat_permissive): Require mode arg, so that we can check
12144 types better. Put it just after flags. Change cwd failure
12145 indicator from pointer-to-bool to pointer-to-errno-value.
12146 All callers changed.
12147 Invoke openat_save_fail and/or openat_restore_fail if
12148 cwd_errno is null, so that openat can call us.
12149 (openat_permissive, fdopendir, fstatat, unlinkat):
12150 Simplify errno handling to avoid some duplicate code,
12151 as it's OK to set errno on success.
12152 * lib/openat.h: Revamp code so that function macros depend on
12153 __OPENAT_PREFIX only, not also on AT_FDCWD.
12154 (openat_ro): Remove. Caller changed to use openat_permissive.
12155 (openat_permissive): Now a macro, if not a function.
12156 (openat_restore_fail, openat_save_fail): Now always functions,
12157 since mkdirat needs them even if __OPENAT_PREFIX is defined.
12159 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
12161 * lib/mkdirat.c: Include openat-priv.h.
12162 Remove definitions of macros defined therein.
12163 * lib/openat.c: Likewise.
12165 * lib/mkdirat.c (mkdirat): New file and function.
12166 * lib/openat.h (mkdirat): Declare.
12168 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
12170 * lib/openat.h (openat_permissive): Declare.
12171 (openat_ro): Define.
12173 * lib/openat.c (EXPECTED_ERRNO): New macro.
12174 (openat_permissive): New function -- used in remove.c rewrite.
12175 (all functions): Set errno just before returning, only if there
12176 was an actual failure.
12177 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
12179 Emulate openat-family functions using Linux's procfs, if possible.
12180 Idea and some code based on Ulrich Drepper's glibc changes.
12182 * lib/openat.c: (BUILD_PROC_NAME): New macro.
12183 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
12184 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
12185 before falling back on save_cwd and restore_cwd.
12186 (fdopendir, fstatat, unlinkat): Likewise.
12188 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
12189 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
12191 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
12192 as second argument to va_arg. Otherwise, some versions of gcc
12193 warn that `if this code is reached, the program will abort'.
12195 2006-01-09 Jim Meyering <jim@meyering.net>
12197 Sync from coreutils.
12198 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
12199 Require openat-priv.h.
12201 2006-01-09 Bruno Haible <bruno@clisp.org>
12203 * modules/strnlen (Include): Use strnlen.h.
12205 2006-01-09 Bruno Haible <bruno@clisp.org>
12207 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
12209 2006-01-09 Bruno Haible <bruno@clisp.org>
12211 * lib/sysexit_.h (EX_OK): New macro.
12212 Suggested by Martin Lambers <marlam@marlam.de>.
12214 2006-01-09 Bruno Haible <bruno@clisp.org>
12216 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
12217 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
12219 2006-01-09 Bruno Haible <bruno@clisp.org>
12221 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
12224 2006-01-09 Bruno Haible <bruno@clisp.org>
12226 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
12227 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
12228 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
12229 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
12231 2006-01-09 Bruno Haible <bruno@clisp.org>
12233 * build-aux/javacomp.sh.in: New file, moved from lib/.
12234 * modules/javacomp-script (Files): Update.
12235 (configure.ac): Add AC_CONFIG_FILES invocation.
12236 (EXTRA_DIST): Remove variable.
12238 * build-aux/javaexec.sh.in: New file, moved from lib/.
12239 * modules/javaexec (Files): Update.
12240 (configure.ac): Add AC_CONFIG_FILES invocation.
12241 (EXTRA_DIST): Remove javaexec.sh.in.
12243 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
12244 * modules/csharpcomp-script (Files): Update.
12245 (configure.ac): Add AC_CONFIG_FILES invocation.
12246 (EXTRA_DIST): Remove variable.
12248 * build-aux/csharpexec.sh.in: New file, moved from lib/.
12249 * modules/csharpexec (Files): Update.
12250 (configure.ac): Add AC_CONFIG_FILES invocation.
12251 (EXTRA_DIST): Remove csharpexec.sh.in.
12253 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
12255 Sync from coreutils.
12257 Add POSIX ACL support
12258 * lib/acl.h (copy_acl, set_acl): Add declarations.
12259 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
12260 systems other than Linux.
12261 (chmod_or_fchmod): New function: use fchmod when possible,
12262 and chmod otherwise.
12263 (file_has_acl): Add a POSIX ACL implementation, with a
12264 Linux-specific subcase.
12265 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
12266 S_ISVTX from one file to another. Fall back to fchmod/chmod when
12267 acls are unsupported.
12268 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
12269 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
12272 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
12274 Sync from coreutils.
12275 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
12277 2006-01-07 Bruno Haible <bruno@clisp.org>
12279 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
12282 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
12284 * lib/strftime.c (tzname): Don't declare if it is already #defined.
12285 Problem reported for Mingw by Mark Junker.
12287 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
12289 * README: Gnulib normally doesn't generate a tarball.
12291 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
12293 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
12294 long int, not int, for nanosecond counts, so that people who are
12295 used to POSIX struct timespec won't be surprised. Reported by Jim
12298 2005-12-28 Bruno Haible <bruno@clisp.org>
12300 * build-aux/config.rpath: Update from GNU gettext.
12302 2005-12-16 Jim Meyering <jim@meyering.net>
12304 * modules/fprintftime: New module.
12305 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
12307 2005-12-16 Jim Meyering <jim@meyering.net>
12309 * m4/fprintftime.m4: New file.
12311 2005-12-16 Jim Meyering <jim@meyering.net>
12313 * lib/fprintftime.c, lib/fprintftime.h: New files.
12315 2005-12-15 Simon Josefsson <jas@extundo.com>
12317 * modules/socklen (configure.ac): Fix M4 macro name, to align with
12320 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
12322 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
12323 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
12325 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
12327 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
12328 * lib/argp-help.c (fill_in_uparams): Check if the constructed
12329 struct uparams is valid. Fall back to the default values if it is
12332 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
12334 * modules/argp (Files): Add argp-pin.c
12335 (Depends-on): dirname
12336 (lib_SOURCES): Add argp-pin.c
12338 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
12340 * m4/argp.m4: Check if program_invocation_name and
12341 program_invocation_short_name are declared and define appropriate
12342 macros if they are not.
12344 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
12346 * lib/argp-help.c (__argp_base_name): New function
12347 (__argp_short_program_name): Rewrite using __argp_base_name
12348 * lib/argp-namefrob.h: Define program_invocation_name and
12349 program_invocation_short_name if requested
12350 (__argp_base_name): Add prototype
12351 * lib/argp-parse.c (argp_def): Use gettext wrappers
12352 (argp_default_parser): Use __argp_base_name
12353 * lib/argp-pin.c: New file. Defines program_invocation_name and
12354 program_invocation_short_name on systems that lack them.
12356 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
12358 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
12359 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
12360 porting problem reported by Georg Schwarz in
12361 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
12363 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
12365 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
12366 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
12367 porting problem reported by Georg Schwarz in
12368 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
12370 2005-12-05 Bruno Haible <bruno@clisp.org>
12372 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
12373 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
12374 Reported by Mark Junker <mjscod@gmx.de>.
12376 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
12378 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
12379 Use implementation from Albert Chin, with some
12380 comments/corrections by Stepan Kasal and myself.
12382 2005-12-02 Bruno Haible <bruno@clisp.org>
12384 * gnulib-tool (func_import): Accept GPLed build tool modules when
12386 * modules/csharpcomp-script: New file.
12387 * modules/csharpcomp: Depend on it.
12388 * modules/javacomp-script: New file.
12389 * modules/javacomp: Depend on it.
12390 Suggested by Simon Josefsson.
12392 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
12394 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
12395 statement, to work around an HP-UX 10.20 compiler bug reported by
12398 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
12400 * modules/savedir (Depends-on): Add openat.
12402 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
12404 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
12405 (uintmax_t) [defined uintmax_t]: Do not declare.
12406 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
12407 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
12408 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
12409 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
12410 sake of portability to weird hosts that C allows (though we don't
12411 know of any practical examples).
12413 * lib/savedir.h (fdsavedir): New decl.
12414 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
12415 contains most of the former guts of savedir.
12416 (savedir): Use savedirstream.
12417 Include "openat.h".
12419 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
12421 * modules/obstack (Files): Add m4/ulonglong.m4.
12422 Problem reported by Davide Angelocola.
12424 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
12426 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
12427 coreutils no longer futzes with rounding modes.
12429 2005-11-14 Jim Meyering <jim@meyering.net>
12431 * lib/mkstemp-safer.c: Include <config.h>, required for possible
12432 replacement of mkstemp.
12434 2005-11-10 Simon Josefsson <jas@extundo.com>
12436 * lib/readline.c: Remove EOL.
12438 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
12440 * modules/gethrxtime (Depends-on): Add gettime.
12442 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
12444 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
12445 or gettimeofday; no longer needed.
12447 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
12449 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
12451 (gethrxtime) [! (HAVE_NANOUPTIME
12452 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
12453 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
12454 our own approximation.
12456 2005-11-08 Eric Blake <ebb9@byu.net>
12458 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
12460 2005-11-08 Eric Blake <ebb9@byu.net>
12462 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
12464 2005-11-04 Bruno Haible <bruno@clisp.org>
12466 * gnulib-tool: Implement --update mode.
12468 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
12470 Fix porting problem reported by Theodoros V. Kalamatianos.
12471 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
12472 Don't assume that futimes failing means we must fail.
12474 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
12476 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
12477 variables to suggest the intended function of the PATH_MAX check.
12479 2005-10-30 Kean Johnston <jkj@sco.com>
12481 Trivial changes to support SCO systems.
12482 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
12484 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
12485 where __ptr is null when no I/O is pending.
12487 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
12489 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
12490 leave errno alone. Problem reported by Dmitry V. Levin.
12492 2005-10-28 Simon Josefsson <jas@extundo.com>
12494 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
12497 * tests/test-gc-md2.c, tests/test-md2.c: New files.
12499 * modules/md2, modules/md2-tests: New files.
12501 2005-10-28 Simon Josefsson <jas@extundo.com>
12503 * m4/inet_ntop.m4: More tests.
12505 * m4/gc-md2.m4, md2.m4: New file.
12507 2005-10-28 Simon Josefsson <jas@extundo.com>
12509 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
12510 "restrict" keywords, as per POSIX. Protect the function
12511 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
12512 Don't use K&R prototypes. Check the sprintf return values.
12513 Re-define EAFNOSUPPORT if not present. Indent.
12515 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
12516 suggested by Bruno Haible <bruno@clisp.org>.
12518 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
12520 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
12522 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
12525 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
12527 * lib/md2.h, lib/md2.c: New files.
12529 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
12531 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
12532 errno alone. Problem reported by Frederic Jolliton.
12534 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
12536 * modules/verify (License): Change from GPL to LGPL. This is a
12537 tiny module and there are apparently near-equivalents that are
12538 under the BSD license.
12540 2005-10-24 Simon Josefsson <jas@extundo.com>
12542 * modules/sha1: Relicense to LGPL.
12544 2005-10-24 Simon Josefsson <jas@extundo.com>
12546 * lib/md4.h: Shrink buffer size, now that we changed the type.
12548 2005-10-23 Simon Josefsson <jas@extundo.com>
12550 * gnulib-tool (func_import): Fix --tests-base.
12552 2005-10-22 Simon Josefsson <jas@extundo.com>
12554 * modules/arcfour (Depends-on): Need stdint.
12556 2005-10-22 Simon Josefsson <jas@extundo.com>
12558 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
12559 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
12561 2005-10-22 Simon Josefsson <jas@extundo.com>
12563 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
12564 suggested by Bruno Haible <bruno@clisp.org>.
12566 2005-10-22 Simon Josefsson <jas@extundo.com>
12568 * lib/crc.h: Include stddef.h, for size_t.
12570 2005-10-22 Simon Josefsson <jas@extundo.com>
12572 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
12573 arcfour_context struct (simplify test vector testing in GNU
12576 2005-10-21 Simon Josefsson <jas@extundo.com>
12578 * modules/des, modules/des-tests: New files.
12580 * modules/gc-des, modules/gc-des-tests: New files.
12582 * tests/test-des.c, tests/test-gc-des.c: New file.
12584 2005-10-21 Simon Josefsson <jas@extundo.com>
12586 * modules/arctwo, modules/arctwo-tests: New files.
12588 * tests/test-arctwo.c: New file.
12590 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
12592 * tests/test-gc-arctwo.c: New file.
12594 2005-10-21 Simon Josefsson <jas@extundo.com>
12596 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
12597 Bruno Haible <bruno@clisp.org>.
12599 * m4/gc-des.m4: New file.
12601 2005-10-21 Simon Josefsson <jas@extundo.com>
12603 * m4/arctwo.m4: New file.
12605 * m4/gc-arctwo.m4: New file.
12607 2005-10-21 Simon Josefsson <jas@extundo.com>
12609 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
12612 2005-10-21 Simon Josefsson <jas@extundo.com>
12614 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
12617 * lib/hmac-sha1.c (hmac_sha1): Likewise.
12619 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
12620 Bruno Haible <bruno@clisp.org>.
12622 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
12625 2005-10-21 Simon Josefsson <jas@extundo.com>
12627 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
12629 2005-10-21 Simon Josefsson <jas@extundo.com>
12631 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
12633 2005-10-21 Simon Josefsson <jas@extundo.com>
12635 * lib/des.h, lib/des.c: New files.
12637 * lib/gc-gnulib.c: Support DES.c
12639 2005-10-21 Simon Josefsson <jas@extundo.com>
12641 * lib/arctwo.h, lib/arctwo.c: New files.
12643 * lib/gc-gnulib.c: Support ARCTWO.
12645 2005-10-21 Simon Josefsson <jas@extundo.com>
12647 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
12648 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12650 2005-10-21 Simon Josefsson <jas@extundo.com>
12652 * gnulib-tool (func_import, func_create_testdir): Define automake
12653 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
12654 Makefile.am snippet),
12655 suggested by Bruno Haible <bruno@clisp.org>.
12657 * modules/gc (Makefile.am): Use it.
12659 2005-10-21 Bruno Haible <bruno@clisp.org>
12661 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
12664 2005-10-19 Simon Josefsson <jas@extundo.com>
12666 * tests/test-gc-rijndael.c: New file.
12668 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
12670 2005-10-19 Simon Josefsson <jas@extundo.com>
12672 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
12675 2005-10-19 Simon Josefsson <jas@extundo.com>
12677 * tests/test-gc-arcfour.c: New file.
12679 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
12681 2005-10-19 Simon Josefsson <jas@extundo.com>
12683 * modules/gc-md4, modules/gc-md4-tests: New file.
12685 * tests/test-gc-md4.c: New file.
12687 2005-10-19 Simon Josefsson <jas@extundo.com>
12689 * m4/gc-md4.m4: New file.
12691 2005-10-19 Simon Josefsson <jas@extundo.com>
12693 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
12694 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
12697 2005-10-19 Simon Josefsson <jas@extundo.com>
12699 * m4/gc-arcfour.m4: New file.
12701 * m4/gc-rijndael.m4: New file.
12703 2005-10-19 Simon Josefsson <jas@extundo.com>
12705 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
12707 2005-10-19 Simon Josefsson <jas@extundo.com>
12709 * lib/gc-gnulib.c: Support ARCFOUR.
12711 2005-10-19 Simon Josefsson <jas@extundo.com>
12713 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
12716 * lib/gc.h: Add ECB enum type.
12718 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
12720 2005-10-18 Simon Josefsson <jas@extundo.com>
12722 * tests/test-md5.c: New file.
12724 * modules/md5-tests: New file.
12726 2005-10-18 Simon Josefsson <jas@extundo.com>
12728 * tests/test-md4.c: New file.
12730 * modules/md4, modules/md4-tests: New files.
12732 2005-10-18 Simon Josefsson <jas@extundo.com>
12734 * m4/md4.m4: New file.
12736 2005-10-18 Simon Josefsson <jas@extundo.com>
12738 * lib/md4.h, lib/md4.c: New files, based on md5.?.
12740 2005-10-17 Stepan Kasal <kasal@ucw.cz>
12742 * gnulib-tool (func_create_testdir): Omit the second check whether
12743 BUILT_SOURCES in nonempty.
12745 2005-10-17 Simon Josefsson <jas@extundo.com>
12747 * tests/test-rijndael.c: New file.
12749 2005-10-17 Simon Josefsson <jas@extundo.com>
12751 * modules/sha1: Depend on stdint instead of md5.
12753 * modules/md5: Depend on stdint, remove uint32_t.
12755 2005-10-17 Simon Josefsson <jas@extundo.com>
12757 * modules/gc-sha1-tests: New file.
12759 * tests/test-gc-sha1.c: New file.
12761 2005-10-17 Simon Josefsson <jas@extundo.com>
12763 * m4/md5.m4: Remove call to uint32_t.m4.
12765 2005-10-17 Simon Josefsson <jas@extundo.com>
12767 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
12769 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
12772 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
12774 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
12776 2005-10-17 Simon Josefsson <jas@extundo.com>
12778 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
12780 2005-10-17 Simon Josefsson <jas@extundo.com>
12782 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
12784 2005-10-17 Simon Josefsson <jas@extundo.com>
12786 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
12788 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
12790 2005-10-17 Bruno Haible <bruno@clisp.org>
12792 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
12793 that it can also be used in a test.
12795 2005-10-16 Bruno Haible <bruno@clisp.org>
12797 * gnulib-tool (func_emit_tests_Makefile_am): Also define
12798 TESTS_ENVIRONMENT, so that individual tests can augment it.
12800 * gnulib-tool (func_create_testdir): Use an intermediate target for
12801 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
12802 macros, like $(ALLOCA_H), which cannot be passed through the command
12805 2005-10-15 Simon Josefsson <jas@extundo.com>
12807 * modules/rijndael-tests: New file.
12809 * modules/rijndael: New file.
12811 2005-10-15 Simon Josefsson <jas@extundo.com>
12813 * m4/rijndael.m4: New file.
12815 2005-10-15 Simon Josefsson <jas@extundo.com>
12817 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
12819 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
12821 2005-10-14 Simon Josefsson <jas@extundo.com>
12823 * tests/test-arcfour.c: New file.
12825 * modules/arcfour, modules/arcfour-tests: New files.
12827 2005-10-14 Simon Josefsson <jas@extundo.com>
12829 * m4/arcfour.m4: New file.
12831 2005-10-14 Simon Josefsson <jas@extundo.com>
12833 * lib/arcfour.h, lib/arcfour.c: New files.
12835 2005-10-14 Roland McGrath <roland@redhat.com>
12837 Import from libc. [BZ #1331]
12838 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
12840 Reported by Matej Vela <vela@debian.org>.
12842 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
12844 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
12845 include <wchar.h>; no longer needed.
12847 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
12849 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
12851 2005-10-14 Jakub Jelinek <jakub@redhat.com>
12852 and Ulrich Drepper <drepper@redhat.com>
12855 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
12856 instead of inline stream orientation test and two separate
12857 function calls. Pay no attention to USE_IN_LIBIO.
12859 2005-10-13 Simon Josefsson <jas@extundo.com>
12861 * modules/gc-hmac-md5-tests: New file.
12863 * tests/test-gc-hmac-sha1.c: New file.
12865 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
12867 * modules/gc-hmac-md5-tests: New file.
12869 * tests/test-gc-md5.c: New file.
12871 * modules/gc-md5-tests: New file.
12873 2005-10-13 Simon Josefsson <jas@extundo.com>
12875 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
12876 Move memory allocation outside of loop.
12878 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
12880 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
12881 intermediate directory is in a read-only file system. Problem
12882 reported by Eric Blake.
12884 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
12886 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
12888 2005-10-12 Simon Josefsson <jas@extundo.com>
12890 * tests/test-hmac-sha1.c: New file.
12892 * modules/hmac-sha1-tests: New file.
12894 * modules/hmac-sha1: New file.
12896 2005-10-12 Simon Josefsson <jas@extundo.com>
12898 * modules/gc-sha1: New file.
12900 2005-10-12 Simon Josefsson <jas@extundo.com>
12902 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
12904 * tests/test-gc-pbkdf2-sha1.c: New file.
12906 2005-10-12 Simon Josefsson <jas@extundo.com>
12908 * modules/gc-md5, modules/gc-hmac-md5: New files.
12910 * modules/gc (Files): Remove md5, memxor and hmac files.
12912 2005-10-12 Simon Josefsson <jas@extundo.com>
12914 * m4/gc-pbkdf2-sha1.m4: New file.
12916 * m4/gc-hmac-sha1.m4: New file.
12918 * m4/gc-sha1: New file.
12920 * m4/hmac-sha1.m4: New file.
12922 2005-10-12 Simon Josefsson <jas@extundo.com>
12924 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
12926 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
12928 2005-10-12 Simon Josefsson <jas@extundo.com>
12930 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
12931 suggested by Bruno Haible <bruno@clisp.org>.
12933 2005-10-12 Simon Josefsson <jas@extundo.com>
12935 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
12937 2005-10-12 Simon Josefsson <jas@extundo.com>
12939 * lib/gc-pbkdf2-sha1.c: New file.
12941 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
12943 2005-10-12 Simon Josefsson <jas@extundo.com>
12945 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
12947 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
12949 2005-10-12 Simon Josefsson <jas@extundo.com>
12951 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
12952 GC_USE_HMAC_MD5, respectively.
12954 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
12955 (gc_md5): Fix typo.
12957 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
12959 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
12961 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
12963 2005-10-12 Bruno Haible <bruno@clisp.org>
12965 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
12966 Reported by Stepan Kasal <kasal@ucw.cz>.
12968 2005-10-11 Simon Josefsson <jas@extundo.com>
12970 * tests/test-crc.c: New file.
12972 * modules/crc, modules/crc-tests: New files.
12974 2005-10-11 Simon Josefsson <jas@extundo.com>
12976 * m4/crc.m4: New file.
12978 2005-10-11 Simon Josefsson <jas@extundo.com>
12980 * lib/gc.h: Add gc_hash and gc_hash_buffer.
12982 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
12984 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
12986 2005-10-11 Simon Josefsson <jas@extundo.com>
12988 * lib/crc.h, lib/crc.c: New files.
12990 * lib/gc.h (gc_hash_buffer): Add doc.
12992 2005-10-11 Bruno Haible <bruno@clisp.org>
12994 * modules/c-strcasestr: New file.
12995 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
12997 2005-10-11 Bruno Haible <bruno@clisp.org>
12999 * modules/c-strcase: New file.
13000 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
13002 2005-10-11 Bruno Haible <bruno@clisp.org>
13004 * lib/strcasecmp.c: Include limits.h.
13005 (strcasecmp): Avoid integer overflow on exotic platforms.
13006 * lib/strncasecmp.c: Include limits.h.
13007 (strncasecmp): Avoid integer overflow on exotic platforms.
13008 Reported by Paul Eggert.
13010 2005-10-11 Bruno Haible <bruno@clisp.org>
13012 * lib/c-strcasestr.h: New file, from GNU gettext.
13013 * lib/c-strcasestr.c: New file, from GNU gettext.
13015 2005-10-11 Bruno Haible <bruno@clisp.org>
13017 * lib/c-strcase.h: New file, from GNU gettext.
13018 * lib/c-strcasecmp.c: New file, from GNU gettext.
13019 * lib/c-strncasecmp.c: New file, from GNU gettext.
13021 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
13023 * modules/mempcpy (License): GPL -> LGPL.
13024 * modules/strchrnul (License): Likewise.
13025 * modules/sysexits (License): Likewise.
13027 2005-10-08 Simon Josefsson <jas@extundo.com>
13029 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
13031 2005-10-07 Simon Josefsson <jas@extundo.com>
13033 * m4/memxor.m4: Remove gl_C_RESTRICT call.
13035 2005-10-06 Simon Josefsson <jas@extundo.com>
13037 * tests/test-hmac-md5.c: New file.
13039 * modules/hmac-md5-tests: New file.
13041 * modules/hmac-md5: New file.
13043 2005-10-06 Simon Josefsson <jas@extundo.com>
13045 * m4/hmac-md5.m4: New file.
13047 * m4/memxor.m4: Require gl_C_RESTRICT.
13049 2005-10-06 Simon Josefsson <jas@extundo.com>
13051 * lib/memxor.c (memxor): Avoid casts and warnings.
13053 2005-10-06 Simon Josefsson <jas@extundo.com>
13055 * lib/hmac-md5.c: New file.
13057 * lib/hmac.h: New file.
13059 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
13061 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
13062 promotes to int, not unsigned int, to catch the AIX 5.3
13065 2005-10-05 Simon Josefsson <jas@extundo.com>
13067 * modules/memxor: New file.
13069 * modules/iconv (Files): Move config.rpath to havelib, it is used
13072 * modules/havelib (Files): Add config.rpath.
13074 2005-10-05 Simon Josefsson <jas@extundo.com>
13076 * m4/memxor.m4: New file.
13078 2005-10-05 Simon Josefsson <jas@extundo.com>
13080 * lib/memxor.c (memxor): Fix compiler error.
13082 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
13083 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
13085 * lib/memxor.h, lib/memxor.c: New files.
13087 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
13088 we assume all systems have it, suggested by Jim Meyering
13089 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
13090 any systems lack sys/socket.h; mingw32 is known to lack it, but we
13091 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
13094 2005-10-05 Simon Josefsson <jas@extundo.com>
13096 * config/srclist.txt: Add glibc bug 1423 for md5.h.
13098 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
13100 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
13101 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
13102 needed, since the source code now assumes these .h files.
13104 2005-10-05 Derek Price <derek@ximbiot.com>
13106 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
13108 2005-10-05 Bruno Haible <bruno@clisp.org>
13110 * modules/stdint (License): Change to LGPL.
13112 2005-10-04 Simon Josefsson <jas@extundo.com>
13114 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
13115 D. Baushke" <mdb@gnu.org>.
13117 2005-10-04 Bruno Haible <bruno@clisp.org>
13119 * lib/verify.h (verify_true): Provide alternative definition for C++.
13121 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
13123 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
13124 (SSIZE_MAX): New macro, if not already defined.
13125 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
13128 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
13130 Sync from coreutils.
13131 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
13132 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
13133 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
13134 ULLONG_MAX doesn't work with 2.7.2.1.
13136 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
13138 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
13141 * modules/exclude (Depends-on): Depend on verify.
13142 * modules/strtoimax (Depends-on): Likewise.
13143 * modules/utimecmp (Depends-on): Likewise.
13145 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
13147 * lib/exclude.c: Include verify.h.
13148 (verify): Remove. All callers changed to use verify.h's version.
13149 * lib/strtoimax.c: Likewise.
13150 * lib/utimecmp.c: Likewis.e
13152 Sync from coreutils.
13153 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
13154 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
13155 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
13156 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
13157 bother returning ENOSYS if settimeofday or stime fails; just let
13158 them return whatever errno they want to return.
13159 * lib/utimens.c: Include unistd.h, for dup2.
13160 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
13161 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
13163 2005-10-02 Jim Meyering <jim@meyering.net>
13165 Sync from coreutils.
13166 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
13167 from glibc-2.2.5 that fails for read-only files.
13169 2005-10-02 Jim Meyering <jim@meyering.net>
13171 Sync from coreutils.
13172 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
13173 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
13174 `#if HAVE_CONFIG_H'.
13175 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
13176 Remove AT_FDCWD test.
13177 Do not consume the fd unless successful.
13178 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
13179 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
13180 block, so that we don't even try to compile it if settimeofday is
13181 available. This works around a compilation failure on OSF1 V5.1,
13182 due to stime requiring a `long int*' while tv_sec is `int'.
13184 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
13186 Sync from coreutils.
13187 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
13188 against `yes', rather than just testing for nonempty.
13190 2005-10-01 Simon Josefsson <jas@extundo.com>
13192 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
13195 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
13196 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
13197 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
13198 freeaddrinfo and gai_strerror are declared by the POSIX headers.
13199 Check if struct addrinfo is declared.
13201 2005-10-01 Simon Josefsson <jas@extundo.com>
13203 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
13204 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
13205 AI_* and EAI_* definitions. Protect function declarations.
13207 2005-10-01 Jim Meyering <jim@meyering.net>
13209 Sync from coreutils.
13211 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
13212 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
13213 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
13214 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
13215 in the inet and nsl libraries. Required on Solaris 5.7.
13217 2005-10-01 Jim Meyering <jim@meyering.net>
13219 Sync from coreutils.
13220 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
13221 in the inet and nsl libraries. Required on Solaris 5.7.
13223 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
13225 * lib/getdelim.c (getdelim): Remove unused variables.
13227 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
13229 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
13230 so that the code works even with ancient cpp. Portability problem
13231 with GCC 2.7.2.1 reported by Thomas M.Ott.
13233 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
13235 * modules/regex (Depends-on): Add strcase.
13237 * modules/gethostname (Licence): Change from GPL to LGPL, since
13238 gethostname.c is a trivial implementation of a standard library
13240 * modules/poll (License): Change from GPL to LGPL, since it's
13241 derived from LGPL code.
13243 2005-09-27 Jim Meyering <jim@meyering.net>
13245 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
13248 * lib/intprops.h (signed_type_or_expr__): Define.
13249 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
13250 for unsigned types.
13252 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
13254 * lib/verify.h (verify_expr): Remove, replacing with:
13255 (verify_true): New macro that returns true instead of void.
13256 (verify_type__): Remove.
13257 (verify): Use verify_true rather than verify_type__.
13259 2005-09-26 Bruno Haible <bruno@clisp.org>
13261 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
13263 (lib_SOURCES): Remove mbchar.c.
13264 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
13265 (Files): Add m4/mbrtowc.m4.
13266 * modules/mbiter: Likewise.
13267 * modules/mbuiter: Likewise.
13269 2005-09-26 Bruno Haible <bruno@clisp.org>
13271 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
13272 compile mbchar.c if they are not both present.
13273 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
13274 * m4/mbiter.m4 (gl_MBITER): Likewise.
13275 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
13276 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
13277 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
13279 2005-09-25 Jim Meyering <jim@meyering.net>
13281 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
13282 also uses socklen_t.
13284 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
13286 * lib/utimens.c (ENOSYS): Define if not already defined.
13287 (futimens): Support having a null PATH if the file descriptor
13290 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
13292 (__attribute): Define to empty unless GCC 3.1 or later.
13293 This works around a core dump on OpenBSD 3.4, which has GCC
13294 2.95.3, which dumps core when given __attribute__(()). It also
13295 simplifies other tests, since we really don't want to bother with
13296 worrying about which ancient version of GCC supported what.
13297 Original problem reported by Yoann Vandoorselaere, with part of
13298 the fix suggested by Derek Price.
13300 2005-09-24 Jim Meyering <jim@meyering.net>
13302 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
13303 so we can once again use a positive bitfield width of 1 -- now we
13304 don't have to explain why we were using a bitfield width of 2.
13306 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
13308 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
13309 and similarly for the other external symbols. Problem reported
13312 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
13313 bug reported by Jim Meyering.
13315 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
13316 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
13317 not needed, since socklen is a prerequisite module.
13319 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
13321 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
13322 Problem reported by Eric Blake.
13323 (getaddrinfo): Initialize se so that it's not garbage.
13324 Redo internal storage allocation so that it doesn't make unportable
13325 assumptions about alignment.
13328 * lib/utimens.c (futimens): Use futimesat if available.
13329 Prefer it to futimes since it doesn't have the futimes bug.
13331 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
13332 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
13333 Instead, declare a function that returns a pointer to an array,
13334 and use verify_type__ to declare the size of the array.
13335 Problem and germ of a solution reported by Bruno Haible.
13336 (verify_type__): Use 2, not 1, for bitfield size, to avoid
13337 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
13339 2005-09-23 Jim Meyering <jim@meyering.net>
13341 Sync from coreutils.
13342 Correct build failure (socklen_t not defined) on at least
13343 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
13344 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
13346 2005-09-23 Jim Meyering <jim@meyering.net>
13348 * modules/getaddrinfo (Depends-on): Add socklen.
13350 2005-09-23 Bruno Haible <bruno@clisp.org>
13352 * tests/test-verify.c: New file.
13354 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
13356 Sync from coreutils.
13358 * modules/argmatch (Depends-on): Add verify.
13359 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
13361 * modules/save-cwd (Depends-on): Likewise.
13363 * modules/openat (Files): Add lib/openat-die.c.
13364 (Depends-on): Remove error, exitfail.
13367 * modules/verify: New file.
13368 * MODULES.html.sh (Diagnostics <assert.h>): New section,
13369 with "verify" module.
13371 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
13373 Sync from coreutils.
13375 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
13376 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
13377 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
13378 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
13379 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
13380 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
13381 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
13382 Don't bother checking for string.h, stdlib.h, unistd.h.
13383 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
13384 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
13386 * m4/jm-macros.m4 (gl_MACROS): Likewise.
13387 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
13389 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
13390 (gl_GETDATE): Use it.
13392 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
13394 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
13396 Sync from coreutils.
13398 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
13400 * lib/argmatch.h: Include verify.h
13401 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
13402 (ARGMATCH_ASSERT): Remove; unused.
13403 * lib/canonicalize.c: Assume STDC_HEADERS.
13404 * lib/exclude.c: Include "strcase.h".
13405 * lib/regex_internal.h [!defined _LIBC]: Likewise.
13406 * lib/getusershell.c: Include stdio--.h rather than stdio.h
13408 (getusershell): Call fopen, not fopen_safer.
13409 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
13410 Do not include unistd-safer.h.
13411 (save_cwd): Don't call fd_safer; no longer needed
13412 now that we include fcntl--.h.
13414 * lib/getdate.y (relative_time): New type.
13415 (RELATIVE_TIME_0): New constant.
13416 (parser_control): Use relative_time instead of doing it ourselves.
13417 (%union): Add new relative_time rel member.
13418 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
13420 (relunit, relunit_snumber): Now of type rel.
13421 (zone, rel, relunit, get_date): Adjust to above changes.
13423 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
13424 Do not include unistd-safer.h.
13425 (getloadavg): Don't call fd_safer; no longer needed
13426 now that we include fcntl--.h.
13428 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
13429 (make_dir_parents): Treat ENOSYS like EEXIST.
13431 Improve quality of diagnostics on restore_cwd failure.
13432 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
13433 (make_dir_parents): Last arg is now int * (for errno), not bool *.
13434 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
13435 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
13436 each time through the loop. Do not diagnose restore_cwd failure;
13437 that is the caller's job (and perhaps the caller does not care).
13439 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
13440 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
13441 If the file already exists but is not a directory, don't bother
13442 to try to make its parents.
13443 Close potential file descriptor leak if we can't chdir("/") (!).
13444 Don't always return true if chdir($PWD) fails; return true only
13445 if the requested action was done successfully (except for the
13447 Don't log final directory unless we actually made it.
13448 Refactor to avoid duplicate code to fix up permissions.
13449 Don't attempt to fix up parent permissions if chdir($PWD) fails.
13451 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
13452 to make it a bit faster and (I hope) clearer.
13453 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
13454 Fix bug in formats like %2N.
13456 * lib/verify.h: New file.
13458 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
13460 Sync from coreutils.
13461 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
13463 2005-09-22 Jim Meyering <jim@meyering.net>
13465 Sync from coreutils.
13467 * m4/lstat.m4 (gl_FUNC_LSTAT):
13468 Use AC_LIBSOURCES to require lstat.c and lstat.h.
13469 Remove obsolete comment.
13470 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
13471 * m4/xstrtod.m4: Likewise.
13473 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
13475 2005-09-22 Jim Meyering <jim@meyering.net>
13477 Sync from coreutils.
13479 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
13481 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
13482 the .tm_year member, since otherwise gcc-4.0 would now warn about
13483 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
13485 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
13486 order to avoid an unsuppressible warning from gcc on 64-bit systems.
13488 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
13489 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
13490 when run in a time zone for which daylight savings time is in effect
13491 for the starting date.
13493 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
13494 stop us from restricting permissions of just-created absolute-named
13496 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
13497 to restore initial working directory.
13498 * lib/mkdir-p.c (make_dir_parents): New parameter:
13499 different_working_dir, to tell caller if/when we change the working
13500 directory and are unable to return to the initial one.
13501 * lib/mkdir-p.h (make_dir_parents): Update prototype.
13502 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
13503 `return false'. This fixes a bug introduced on 2004-07-30.
13505 * lib/openat.c (fdopendir): Be sure to close the supplied
13506 file descriptor before returning. This makes our replacement
13507 implementation a little closer to Solaris's, where fdopendir
13508 ties the file descriptor to the returned DIR* pointer.
13509 * lib/openat.c (unlinkat): New function.
13510 * lib/openat.h (unlinkat): Add prototype.
13511 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
13512 (openat_restore_fail): Rename from openat_restore_die.
13513 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
13515 Provide an alternative to exiting immediately upon save_cwd or
13516 restore_cwd failure. Now, an application can arrange e.g.,
13517 to perform a longjump in that case.
13518 * lib/openat.c: Include dirname.h.
13519 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
13520 (rpl_openat, fdopendir, fstatat): Call openat_save_die
13521 and openat_restore_die rather than calling error directly.
13522 Don't include "error.h" or "exitfail.h"; they're no longer needed.
13524 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
13525 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
13528 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
13529 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
13530 int utc, int nanoseconds);
13532 date should not have to allocate a megabyte of virtual memory to
13533 handle a format argument like +%1048575T. When implemented with
13534 strftime, it must allocate such a buffer, use strftime to fill it
13535 in, print it, then free it.
13536 With fprintftime, it simply prints everything and exits.
13537 With no need for memory allocation, that's one fewer way to fail.
13538 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
13539 optional field width, not before, so we accept %9:z, not %:9z.
13540 (my_strftime): Be sure to use L_('x') for literals.
13542 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
13543 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
13544 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
13545 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
13546 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
13547 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
13548 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
13549 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
13550 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
13551 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
13552 * lib/xgethostname.c, lib/xreadlink.c:
13553 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
13555 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
13556 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
13557 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
13558 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
13559 and don't include <sys/file.h>).
13561 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
13563 Sync from coreutils.
13565 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
13566 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
13567 [!LDAV_DONE]: Avoid unused variable warning.
13569 2005-09-21 Bruno Haible <bruno@clisp.org>
13571 * lib/unicodeio.h (unicode_to_mb): New declaration.
13573 2005-09-20 Derek Price <derek@ximbiot.com>
13575 * lib/getaddrinfo.c: Don't include <netdb.h> included from
13578 2005-09-20 Bruno Haible <bruno@clisp.org>
13580 * gnulib-tool: Remove trailing slashes from the values specified for
13581 --source-base, --m4-base, --tests-base, --aux-dir.
13582 Suggested by Simon Josefsson <jas@extundo.com>.
13584 2005-09-20 Bruno Haible <bruno@clisp.org>
13586 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
13587 func_modules_to_filelist, func_import, func_create_testdir): Make all
13588 sorting results locale-independent, so that gnulib-cache.m4 doesn't
13589 change when gnulib-tool is invoked in a different locale.
13591 2005-09-19 Simon Josefsson <jas@extundo.com>
13593 * m4/socklen.m4: Fix typo.
13595 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13597 Use a consistent style for including <config.h>.
13598 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
13599 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
13600 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
13601 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
13602 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
13603 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
13604 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
13605 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
13606 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
13607 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
13608 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
13609 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
13610 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
13611 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
13612 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
13613 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
13614 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
13615 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
13616 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
13617 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
13618 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
13619 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
13620 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
13621 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
13622 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
13623 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
13624 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
13625 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
13626 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
13627 lib/xstrtoumax.c, lib/yesno.c:
13628 Standardize inclusion of config.h.
13629 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
13630 lib/inttostr.h: Removed inclusion of config.h from header files.
13631 * lib/inttostr.c: Adjusted in-tree users.
13632 * lib/timespec.h: Remove superfluous warning to include config.h.
13633 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
13634 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
13635 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
13636 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
13637 config.h with HAVE_CONFIG_H.
13639 2005-09-19 Jim Meyering <jim@meyering.net>
13641 * modules/pathmax (License): Change to LGPL.
13643 2005-09-19 Derek Price <derek@ximbiot.com>
13645 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
13647 2005-09-19 Bruno Haible <bruno@clisp.org>
13649 * gnulib-tool (import): Provide default for --tests-base.
13651 2005-09-19 Bruno Haible <bruno@clisp.org>
13653 * doc/quote.texi: New file, extracted from gnulib.texi.
13654 * doc/ctime.texi: New file, extracted from gnulib.texi.
13655 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
13656 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
13657 * doc/gnulib.texi: Include them.
13659 2005-09-18 Bruno Haible <bruno@clisp.org>
13662 * gnulib-tool (func_readlink): New function.
13663 (func_ln_if_changed): Use it.
13665 2005-09-18 Bruno Haible <bruno@clisp.org>
13667 * gnulib-tool: Support --with-tests also with --import.
13668 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
13669 (func_import): Use variables $testsbase and $inctests. Emit a
13670 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
13671 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
13672 SUBDIRS += $testsdir.
13673 (func_create_testdir): Update.
13675 2005-09-18 Bruno Haible <bruno@clisp.org>
13677 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
13678 instead of $dry_run.
13679 (func_cp_if_changed, func_mv_if_changed): Remove functions.
13680 (func_ln_if_changed): Don't handle dry-run here.
13681 (func_import): In dry-run mode, detect more precisely which actions
13682 would be performed, and don't use "...ing" verbs.
13684 2005-09-18 Bruno Haible <bruno@clisp.org>
13686 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
13687 (func_import): Use join on two temporary files instead of three nested
13688 loops, in order to determine which files are new or old.
13690 2005-09-18 Bruno Haible <bruno@clisp.org>
13692 * gnulib-tool (func_import): Comment out code that spits out the
13693 new files with --dry-run.
13695 2005-09-18 Bruno Haible <bruno@clisp.org>
13697 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
13699 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
13701 * lib/stat-time.h: New file.
13702 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
13703 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
13704 in a different way.
13705 (timespec_cmp): New function.
13706 * lib/utimecmp.c: Include stat-time.h.
13707 (SYSCALL_RESOLUTION): Depend on whether various struct stat
13708 members exist, not on the obsolescent ST_MTIM_NSEC.
13709 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
13711 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
13713 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
13715 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
13717 * MODULES.html.sh (File system functions): Add stat-time.
13718 * modules/stat-time: New file.
13719 * modules/timespec (Files): Remove m4/st_mtim.m4; this
13720 is now done in a different way, by the stat-time module.
13721 * modules/utimecmp (Depends-on): Add stat-time.
13723 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
13725 * m4/st_mtim.m4: Remove. Superseded by...
13726 * m4/stat-time.m4: New file.
13727 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
13728 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
13730 2005-09-15 Derek Price <derek@ximbiot.com>
13732 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
13734 2005-09-15 Derek Price <derek@ximbiot.com>
13736 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
13737 * lib/regex_internal.c: Ditto, using this...
13738 (__GNUC_PREREQ): ...new macro.
13739 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
13741 (__GNUC_PREREQ): ...this new macro.
13743 * lib/strstr.h: Include string.h. Define strstr as a macro here.
13745 2005-09-15 Derek Price <derek@ximbiot.com>
13746 Paul Eggert <eggert@cs.ucla.edu>
13748 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
13749 changes, consolidating in...
13750 * lib/regex_internal.h: ...this file.
13752 2005-09-13 Jim Meyering <jim@meyering.net>
13754 * lib/canon-host.c: Filter through gnu indent and reword comments
13756 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
13758 2005-09-13 Derek Price <derek@ximbiot.com>
13760 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
13762 Reported by Jim Meyering <jim@meyering.net>.
13764 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
13766 * lib/base64.c: Typo.
13767 (base64_encode): Put b64str in initialized data section.
13769 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
13771 Merge glibc and coreutils changes into gnulib, plus a few
13773 * lib/md5.c: Use #error rather than a string.
13774 (CYCLIC): New macro, from glibc source. Use it instead of rol.
13775 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
13776 (__attribute__): Define to empty for non recent-GCC.
13777 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
13778 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
13779 Renamed from their non-__ counterparts, with new macros replacing
13780 them if not _LIBC. Add __THROW attribute.
13782 (struct md5_ctx): Align buffer if using GCC.
13783 * lib/sha1.h (struct sha1_ctx): Likewise.
13784 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
13785 The old name was backwards.
13786 (NOTSWAP): Remove; not used.
13787 (rol): New macro, moved here from md5.h.
13788 (sha1_process_block): Remove a FIXME that doesn't make sense.
13790 2005-09-12 Derek Price <derek@ximbiot.com>
13792 Return usable errors from canon-host.
13793 * lib/canon-host.h: New file.
13794 * lib/canon-host.c (canon_host): Wrap...
13795 (canon_host_r): ...this new function, which now relies exclusively on
13797 (ch_strerror): New function.
13798 (last_cherror): New global.
13799 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
13801 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
13803 (freeaddrinfo): Free ai->ai_canonname when set.
13805 2005-09-12 Derek Price <derek@ximbiot.com>
13807 Make canon-host require getaddrinfo.
13808 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
13809 AC_LIBSOURCE canon-host.h. Call...
13810 (gl_PREREQ_CANON_HOST): ...this new function, which requires
13812 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
13814 2005-09-12 Derek Price <derek@ximbiot.com>
13816 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
13818 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
13820 2005-09-12 Derek Price <derek@ximbiot.com>
13822 * lib/gai_strerror.c: Include config.h when available. Include
13823 getaddrinfo.h before other headers to test interface.
13824 Reported by Larry Jones <lawrence.jones@ugs.com>.
13826 2005-09-12 Derek Price <derek@ximbiot.com>
13827 Paul Eggert <eggert@cs.ucla.edu>
13829 * modules/glob (Files): Add glob-libc.h.
13831 2005-09-12 Derek Price <derek@ximbiot.com>
13832 Paul Eggert <eggert@cs.ucla.edu>
13834 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
13835 glob_.h, glob-libc.h.
13836 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
13838 2005-09-12 Derek Price <derek@ximbiot.com>
13839 Paul Eggert <eggert@cs.ucla.edu>
13841 * lib/glob-libc.h: Renamed from glob_.h. The new version is
13842 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
13843 protecting things that should be done only in gnulib contexts.
13844 * lib/glob_.h: New file, containing only the glob things needed for
13846 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
13847 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
13848 (glob, globfree, glob_pattern_p): Now defined simply in terms of
13849 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
13850 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
13851 and to respect the namespace rules better.
13853 2005-09-08 Simon Josefsson <jas@extundo.com>
13855 * modules/socklen: New file.
13857 2005-09-08 Simon Josefsson <jas@extundo.com>
13859 * m4/socklen.m4: New file.
13861 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
13863 * modules/utimens (Files): Add m4/utimbuf.m4, since
13864 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
13865 Reported by Sergey Poznyakoff.
13867 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
13869 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
13870 definitions, since that's the preferred style in glibc.
13871 Fix a minor spacing issue, and update copyright notice to match
13874 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
13876 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
13878 2005-09-06 Simon Josefsson <jas@extundo.com>
13880 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
13881 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
13883 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
13885 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
13888 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
13890 * config/srclist.txt: Add glibc bug 1302.
13892 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
13894 Change bitset word type from unsigned int to unsigned long int,
13895 as this has better performance on typical 64-bit hosts.
13896 Port bitset code to hosts with unusual word sizes.
13897 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
13898 (build_collating_symbol):
13899 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
13900 argument is a bitset. This is merely a style issue, but it makes
13901 it clearer that an entire array is expected.
13902 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
13903 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
13904 Port to the case where bitset_word is not the same as unsigned int.
13905 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
13906 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
13908 * lib/regexec.c (check_dst_limits_calc_pos_1,
13909 check_subexp_matching_top):
13910 (build_trtable, group_nodes_into_DFAstates):
13912 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
13913 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
13914 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
13915 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
13916 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
13917 * lib/regcomp.c (optimize_subexps, lower_subexp):
13918 Work even if bitset_word has holes in its bitwise representation.
13919 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
13920 * lib/regexec.c (check_dst_limits_calc_pos_1,
13921 check_subexp_matching_top):
13923 * lib/regex_internal.c (re_string_reconstruct):
13924 Don't assume UCHAR_MAX == 255.
13925 * lib/regex_internal.h (bitset_set_all): Likewise.
13926 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
13928 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
13929 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
13931 (BITSET_WORD_MAX): New macro.
13932 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
13933 (bitset_set_all, bitset_copy): Now inline functions, not macros.
13934 (bitset_empty, bitset_copy):
13935 Prefer sizeof (bitset) to multiplying it out ourselves.
13936 (bitset_not_merge): Remove; unused.
13937 (bitset_contain): Return bool, not unsigned int with one bit on.
13938 All callers changed.
13939 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
13940 alignment than re_node_set; do this by defining a new internal
13941 type struct dests_alloc and using it to allocate memory.
13943 2005-09-05 Bruno Haible <bruno@clisp.org>
13945 * gnulib-tool (func_import): Fix comparison in handling of symbolic
13948 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
13950 * modules/size_max (Makefile.am): Add size_max.h
13952 2005-09-04 Derek Price <derek@ximbiot.com>
13954 * gnulib-tool (func_import): Fix reversed $symbolic logic.
13956 2005-09-03 Simon Josefsson <jas@extundo.com>
13958 * gnulib-tool: Fix typo.
13960 2005-09-03 Simon Josefsson <jas@extundo.com>
13962 * config/srclist.txt: Add glibc bug 1293.
13964 2005-09-03 Derek Price <derek@ximbiot.com>
13966 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
13967 From Larry Jones <lawrence.jones@ugs.com>.
13969 2005-09-02 Simon Josefsson <jas@extundo.com>
13971 * modules/socklen: New file.
13973 2005-09-02 Simon Josefsson <jas@extundo.com>
13975 * modules/havelib: New module.
13977 * modules/gettext, modules/iconv, modules/lock, modules/readline:
13980 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
13982 Check for arithmetic overflow when calculating sizes, to prevent
13983 some buffer-overflow issues. These patches are conservative, in the
13984 sense that when I couldn't determine whether an overflow was possible,
13985 I inserted a run-time check.
13986 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
13988 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
13989 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
13990 (re_xnrealloc, re_x2nrealloc): New inline functions.
13991 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
13992 parse_bracket_exp):
13993 (build_equiv_class, build_charclass): Check for arithmetic overflow
13994 in size expression calculations.
13995 * lib/regex_internal.c (re_string_realloc_buffers):
13996 (build_wcs_upper_buffer, re_node_set_add_intersect):
13997 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
13998 (re_dfa_add_node, register_state): Likewise.
13999 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
14000 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
14001 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
14002 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
14004 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
14006 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
14007 m4/ulonglong.m4. Problem reported by Martin Lambers.
14009 2005-09-02 Bruno Haible <bruno@clisp.org>
14011 Support for lib vs. lib64 distinction on biarch platforms.
14012 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
14013 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
14014 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
14016 2005-09-02 Bruno Haible <bruno@clisp.org>
14018 * gnulib-tool (import): In the other first-use case, provide defaults
14021 2005-09-02 Bruno Haible <bruno@clisp.org>
14023 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
14024 patches not yet found in the latest gettext release.
14026 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
14028 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
14029 to avoid a collision with bits/local_lim.h in glibc.
14030 All uses changed. Problem reported by Dmitry V. Levin in
14031 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
14033 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
14034 bugs in int versus size_t comparisons.
14035 (re_string_context_at): Fix bug where the code assumed that
14038 Use bool where appropriate.
14039 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
14040 All callers changed.
14041 (calc_eclosure_iter): Likewise, for ROOT arg.
14042 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
14043 (build_charclass_op): Likewise, for NON_MATCH arg.
14044 * lib/regex_internal.c (re_string_allocate, re_string_construct):
14045 (re_string_construct_common): Likewise, for ICASE arg.
14046 * lib/regexec.c (re_search_2_stub, re_search_stub):
14047 Likewise, for RET_LEN arg.
14048 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
14049 (set_regs): Likewise, for FL_BACKTRACK arg.
14050 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
14051 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
14052 (calc_eclosure_iter, parse_bracket_exp):
14053 Use bool for internal variables that are booleans.
14054 * lib/regexec.c (re_search_internal, check_matching,
14055 proceed_next_node):
14056 (set_regs, build_sifted_states, sift_states_bkref):
14057 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
14058 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
14059 (find_collation_sequence_value):
14061 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
14062 (re_node_set_compare):
14063 Return bool, not int. All callers changed.
14064 * lib/regexec.c (check_halt_node_context, check_dst_limits):
14065 (build_trtable, check_node_accept): Likewise.
14066 * lib/regex_internal.h: Include stdbool.h.
14068 Fix bugs uncovered when converting to bool.
14069 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
14070 failure instead of charging ahead blindly.
14071 * lib/regex_internal.c (register_state): Likewise.
14072 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
14073 for freeing internal storage.
14074 (group_nodes_into_DFA_states): Use unsigned int, not int, for
14075 bitset pieces used as boolean, to avoid undefined behavior
14076 on hosts that do int overflow checking.
14078 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
14080 * config/srclist.txt: Add glibc bugs 1285-1287.
14082 2005-09-01 Jim Meyering <jim@meyering.net>
14084 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
14085 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
14086 Require gl_STAT_MACROS, too.
14088 2005-09-01 Bruno Haible <bruno@clisp.org>
14090 * gnulib-tool (import): In the first-use case, provide defaults.
14092 2005-09-01 Bruno Haible <bruno@clisp.org>
14094 * gnulib-tool (func_import): Remove the .tmp files.
14096 2005-09-01 Bruno Haible <bruno@clisp.org>
14098 * gnulib-tool (func_import): Fix handling of symbolic links.
14100 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
14102 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
14103 old glibc regex code mishandles strings longer than 2**31 bytes.
14104 This patch fixes this when the regex code is used in gnulib
14105 (i.e., outside glibc).
14107 This patch should not affect the use of the regex code inside
14108 glibc. No doubt this problem also needs to be handled for glibc
14109 as well, but the result will be an incompatible change to the
14110 glibc ABI, and the old ABI will have to be supported too. That
14111 can be the the subject for another patch.
14113 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
14114 governing whether the rest of this patch is active. By default,
14115 the macro is disabled and the patch has no effect.
14116 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
14117 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
14118 (struct re_pattern_buffer, re_search, re_search_2, re_match):
14119 (re_match_2, re_set_registers): Use the new types.
14120 * lib/regex_internal.h (Idx, re_hashval_t): New types.
14121 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
14123 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
14124 (re_string_context_at, bin_tree_t, re_dfastate_t):
14125 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
14126 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
14127 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
14128 (re_string_char_size_at, re_string_wchar_at):
14129 (re_string_elem_size_at):
14130 Use the new types and macros to port to 64-bit hosts.
14131 Use unsigned types for internal values, so that the code
14132 mostly works even for arrays larger than SSIZE_MAX.
14133 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
14134 (search_duplicated_node, calc_eclosure_iter, fetch_number):
14135 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
14136 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
14137 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
14138 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
14139 (calc_inveclosure, parse_dup_op, build_range_exp):
14140 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
14141 (fetch_number, create_token_tree, mark_opt_subexp):
14143 * lib/regex_internal.c (re_string_construct_common,
14144 create_ci_newstate):
14145 (create_cd_newstate, re_string_allocate, re_string_construct):
14146 (re_string_realloc_buffers, build_wcs_upper_buffer):
14147 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
14148 (re_string_reconstruct, re_string_peek_byte_case):
14149 (re_string_fetch_byte_case, re_string_context_at):
14150 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
14151 (re_node_set_init_copy, re_node_set_add_intersect):
14152 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
14153 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
14154 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
14155 (re_acquire_state, re_acquire_state_context, register_state):
14157 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
14158 search_cur_bkref_entry):
14159 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
14160 (re_search_internal, re_search_2_stub, re_search_stub)
14161 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
14162 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
14163 (update_cur_sifted_state, check_dst_limits):
14164 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
14165 (check_subexp_limits, sift_states_bkref, merge_state_array):
14166 (check_subexp_matching_top, get_subexp, get_subexp_sub):
14167 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
14168 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
14169 (expand_bkref_cache, check_node_accept_bytes):
14170 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
14171 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
14172 (acquire_init_state_context, check_halt_node_context):
14173 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
14174 (sift_states_backward, clean_state_log_if_needed):
14175 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
14176 (find_recover_state, transit_state_sb, transit_state_mb):
14177 (transit_state_bkref, build_trtable, match_ctx_clean):
14179 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
14180 to work around an assumption that REG_MISSING is negative.
14182 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
14183 (seek_collating_symbol_entry) [defined _LIBC]:
14184 (lookup_collation_sequence_value) [defined _LIBC]:
14185 (build_range_exp, build_collating_symbol) [defined _LIBC]:
14186 Use prototypes rather than old-style function definitions.
14187 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
14188 (transit_state_sb) [0]:
14189 (find_collation_sequence_value) [defined _LIBC]: Likewise.
14191 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
14194 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
14195 (optimize_subexps, lower_subexp):
14196 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
14197 since the signed shift might overflow. Use 1u<<31 instead.
14198 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
14200 * lib/regexec.c (check_dst_limits_calc_pos_1,
14201 check_subexp_matching_top): Likewise.
14203 * lib/regcomp.c (optimize_subexps, lower_subexp):
14204 Use CHAR_BIT rather than 8, for clarity.
14205 * lib/regexec.c (check_dst_limits_calc_pos_1):
14206 (check_subexp_matching_top): Likewise.
14207 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
14208 have to worry about portability issues when shifting it left.
14209 Remove no-longer-needed test for table_size > 0.
14210 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
14211 in a word, as the resulting behavior is undefined.
14212 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
14213 in one case, a <= should have been an <, and in another case the
14214 whole test was missing.
14215 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
14216 the standard name CHAR_BIT.
14217 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
14218 this is not true on one's complement and signed-magnitude hosts.
14220 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
14222 (struct re_dfa_t): Remove unused member states_alloc.
14223 * lib/regcomp.c (init_dfa): Don't initialize unused members.
14225 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
14227 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
14228 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
14229 and large-file glibc and in 32-bit large-file Solaris.
14231 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
14233 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
14234 lengths fit in regoff_t; this isn't true if regoff_t is the same
14236 * lib/regex.c (re_search_internal): 5th arg is LAST_START
14237 (= START + RANGE) instead of RANGE. This avoids overflow
14238 problems when regoff_t is the same width as size_t.
14239 All callers changed.
14240 (re_search_2_stub): Check for overflow when adding the
14241 sizes of the two strings.
14242 (re_search_stub): Check for overflow when adding START
14243 to RANGE; if it occurs, substitute the extreme value.
14245 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
14247 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
14249 2005-08-31 Jim Meyering <jim@meyering.net>
14251 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
14252 a pointer-to-const.
14253 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
14254 (register_state): Likewise.
14255 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
14256 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
14257 (group_nodes_into_DFAstates): Likewise.
14259 2005-08-31 Jim Meyering <jim@meyering.net>
14261 * check-module: Add a FIXME comment.
14263 2005-08-31 Eric Blake <ebb9@byu.net>
14265 * modules/unistd-safer (Files): Add unistd--.h.
14266 * modules/stdio-safer (Files): Add stdio--.h.
14268 2005-08-31 Derek Price <derek@ximbiot.com>
14270 * lib/getdelim.c (getdelim): Return EOF on EOF.
14271 Reported by Larry Jones <lawrence.jones@ugs.com>.
14273 2005-08-31 Bruno Haible <bruno@clisp.org>
14275 Avoid unnecessary diffs in the generated lib/Makefile.am.
14276 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
14277 the generated files.
14278 (func_import): Don't set cmd.
14280 2005-08-31 Bruno Haible <bruno@clisp.org>
14282 * lib/strstr.c: Include <stddef.h>, for NULL.
14283 * lib/strcasestr.c: Likewise.
14284 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
14286 2005-08-31 Bruno Haible <bruno@clisp.org>
14288 * gnulib-tool: New option --macro-prefix.
14289 (func_import): Use macro_prefix.
14290 (import): Handle option --macro-prefix.
14292 2005-08-31 Bruno Haible <bruno@clisp.org>
14294 * gnulib-tool (import): Rename most ac_* variables to cached_*.
14295 Also use new variables cached_lgpl, cached_libtool.
14297 2005-08-31 Bruno Haible <bruno@clisp.org>
14299 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
14300 always instantiating them.
14302 2005-08-31 Bruno Haible <bruno@clisp.org>
14304 * gnulib-tool (func_import): Read the previous cached settings
14305 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
14306 earlier added by gnulib but are now dropped. Warn when a gnulib file
14307 overwrites a non-gnulib file.
14309 2005-08-31 Bruno Haible <bruno@clisp.org>
14311 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
14312 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
14313 projects that don't keep autogenerated files in CVS. Put into
14314 actioncmd only the specified modules, not the transitive closure.
14316 2005-08-31 Bruno Haible <bruno@clisp.org>
14318 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
14319 Create directories that shall be filled.
14320 (import): Don't look for gl_* macros in configure.ac. Recurse across
14321 all directories containing a gnulib-cache.m4 files, if meaningful.
14323 2005-08-31 Bruno Haible <bruno@clisp.org>
14325 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
14326 (import): Set seen_libtool when we see gl_LIBTOOL.
14328 2005-08-31 Bruno Haible <bruno@clisp.org>
14330 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
14331 declaration macro definitions from generated gnulib.m4.
14333 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
14335 * lib/iconvme.h: Add prototype for iconv_alloc.
14337 2005-08-29 Simon Josefsson <jas@extundo.com>
14339 * lib/iconvme.c: Fix errno.
14341 2005-08-29 Bruno Haible <bruno@clisp.org>
14343 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
14344 that it works when the directory contains spaces.
14346 2005-08-29 Bruno Haible <bruno@clisp.org>
14348 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
14350 2005-08-29 Bruno Haible <bruno@clisp.org>
14352 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
14355 2005-08-29 Bruno Haible <bruno@clisp.org>
14356 and Stepan Kasal <kasal@ucw.cz>
14358 * check-module: If more parameters are given, check each of them
14359 separately; add more exceptions, as noted by Jim Meyering.
14360 (check_module): New procedure.
14361 (%exempt_header): Now contains all exceptions.
14363 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
14365 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
14367 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
14369 * lib/iconvme.c: Split iconv_string into iconv_alloc.
14371 2005-08-28 Bruno Haible <bruno@clisp.org>
14373 * m4/gnulib-tool.m4: New file.
14375 2005-08-27 Jim Meyering <jim@meyering.net>
14377 * modules/unistd-safer (Files): Add pipe-safer.c.
14378 * modules/fcntl-safer (Files): Add creat-safer.c.
14380 2005-08-27 Jim Meyering <jim@meyering.net>
14382 * m4/stdlib-safer.m4: New file. From coreutils.
14383 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
14384 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
14385 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
14386 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
14387 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
14389 2005-08-27 Jim Meyering <jim@meyering.net>
14391 * lib/fopen-safer.c: Merge minor changes from coreutils.
14392 * lib/dup-safer.c: Likewise.
14393 * lib/fd-safer.c: Likewise.
14395 Merge from coreutils.
14396 * lib/stdio--.h: New file.
14397 * lib/stdlib--.h: New file.
14398 * lib/mkstemp-safer.c: New file.
14400 GNU tar needs these.
14401 * lib/pipe-safer.c: New file.
14402 * lib/creat-safer.c: New file.
14403 * lib/fcntl--.h (creat): Define to creat_safer.
14404 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
14405 * lib/unistd--.h (pipe): Define to pipe_safer.
14406 * lib/unistd-safer.h: Declare pipe_safer.
14408 2005-08-26 Simon Josefsson <jas@extundo.com>
14410 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
14411 Haible <bruno@clisp.org>.
14413 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
14415 * lib/regex_internal.h: Remove all references to
14416 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
14418 (bitset_not, bitset_merge, bitset_not_merge):
14419 (bitset_mask, re_string_allocate, re_string_construct):
14420 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
14421 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
14422 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
14423 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
14424 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
14425 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
14426 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
14427 (re_acquire_state_context):
14428 Remove unnecessary forward decls.
14429 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
14430 Put __attribute at function definition,
14431 now that the function decl has been removed.
14432 * lib/regex_internal.c (re_string_peek_byte_case):
14433 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
14436 2005-08-25 Stepan Kasal <kasal@ucw.cz>
14438 * m4/regex.m4: Add AC_PREREQ(2.50).
14439 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
14441 2005-08-25 Simon Josefsson <jas@extundo.com>
14443 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
14446 2005-08-25 Simon Josefsson <jas@extundo.com>
14448 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
14449 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
14450 GLIBC specific code.
14452 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
14454 Make regex safe for g++. This fixes one real bug (an "err"
14455 that should have been "*err"). g++ problem reported by
14457 * lib/regex_internal.h (re_calloc): New macro, consistent with
14458 re_malloc etc. All callers of calloc changed to use re_calloc.
14459 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
14460 not int. All callers changed.
14461 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
14462 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
14463 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
14464 (find_recover_state): Change "err" to "*err"; this fixes what
14465 appears to be a real bug.
14466 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
14469 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
14471 * modules/regex (Depends-on): Add malloc, since the code
14472 assumes that !malloc(0) means failure.
14474 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
14476 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
14478 alloca modernization/simplification for regex.
14479 * lib/regex.c: Remove portability cruft for alloca. This no longer
14480 needs to be at the start of the file, and can be moved into
14481 regex_internal.h and simplified.
14482 * lib/regex_internal.h: Include <alloca.h>.
14483 (__libc_use_alloca) [!defined _LIBC]: New macro.
14484 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
14485 now works outside glibc.
14487 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
14489 * config/srclist.txt: Add glibc bugs 1241, 1245.
14491 2005-08-25 Jim Meyering <jim@meyering.net>
14493 * lib/open-safer.c: Include <config.h>.
14494 Otherwise, we'd lose LARGEFILE support in any file using
14497 2005-08-25 Bruno Haible <bruno@clisp.org>
14499 * m4/minmax.m4: Require autoconf 2.52.
14500 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
14501 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
14502 alternatives of translit over the alphabet.
14503 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
14505 2005-08-24 Simon Josefsson <jas@extundo.com>
14507 * tests/test-getpass.c: New file.
14509 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
14511 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
14512 for GNU regex features.
14514 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
14516 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
14517 * lib/regex.h (regerror): Likewise.
14519 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
14520 requires this. (The code never needed it.)
14522 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
14523 All uses of recently-renamed identifiers changed to use the new,
14524 POSIX-compliant names. The code will build and run just fine
14525 without these changes, but it's better to eat our own dog food
14526 and use the standard-conforming names.
14528 * lib/regex.h: Fix a multitude of POSIX name space violations.
14529 These changes have an effect only for programs that define
14530 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
14531 do not change anything for programs compiled in the normal way.
14532 Also, there is no effect on the ABI.
14534 (_REGEX_SOURCE): New macro.
14535 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
14536 defined and _GNU_SOURCE is not; this fixes a name space violation.
14538 Rename the following macros to obey POSIX requirements.
14539 The old names are still visible as macros if _REGEX_SOURCE is defined.
14540 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
14541 RE_BACKSLASH_ESCAPE_IN_LISTS.
14542 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
14543 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
14544 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
14545 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
14546 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
14547 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
14548 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
14549 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
14550 (REG_INTERVALS): renamed from RE_INTERVALS.
14551 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
14552 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
14553 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
14554 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
14555 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
14556 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
14557 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
14558 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
14559 RE_UNMATCHED_RIGHT_PAREN_ORD.
14560 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
14561 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
14562 (REG_DEBUG): renamed from RE_DEBUG.
14563 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
14564 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
14565 unusual, since we can't clash with the POSIX REG_ICASE.
14566 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
14567 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
14568 (REG_NO_SUB): renamed from RE_NO_SUB.
14569 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
14570 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
14571 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
14572 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
14573 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
14574 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
14575 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
14576 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
14577 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
14578 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
14579 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
14580 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
14581 RE_SYNTAX_POSIX_MINIMAL_BASIC.
14582 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
14583 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
14584 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
14585 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
14586 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
14587 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
14588 (REG_FIXED): Renamed from REGS_FIXED.
14589 (REG_NREGS): Renamed from RE_NREGS.
14591 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
14592 of other REG_* macros, since POSIX says the user is allowed to
14593 #undef these macros selectively.
14595 (reg_errcode_t): Update comment stating what other tables need
14598 Rename the following enum values to obey POSIX requirements.
14599 The old names are still visible as macros.
14600 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
14601 is not defined, since GNU is supposed to be a superset of POSIX as
14602 much as possible, and since we want reg_errcode_t to be a signed
14603 type for implementation consistency.
14604 (_REG_NOERROR): Renamed from REG_NOERROR.
14605 (_REG_NOMATCH): Renamed from REG_NOMATCH.
14606 (_REG_BADPAT): Renamed from REG_BADPAT.
14607 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
14608 (_REG_ECTYPE): Renamed from REG_ECTYPE.
14609 (_REG_EESCAPE): Renamed from REG_EESCAPE.
14610 (_REG_ESUBREG): Renamed from REG_ESUBREG.
14611 (_REG_EBRACK): Renamed from REG_EBRACK.
14612 (_REG_EPAREN): Renamed from REG_EPAREN.
14613 (_REG_EBRACE): Renamed from REG_EBRACE.
14614 (_REG_BADBR): Renamed from REG_BADBR.
14615 (_REG_ERANGE): Renamed from REG_ERANGE.
14616 (_REG_ESPACE): Renamed from REG_ESPACE.
14617 (_REG_BADRPT): Renamed from REG_BADRPT.
14618 (_REG_EEND): Renamed from REG_EEND.
14619 (_REG_ESIZE): Renamed from REG_ESIZE.
14620 (_REG_ERPAREN): Renamed from REG_ERPAREN.
14621 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
14622 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
14623 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
14624 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
14626 (_REG_RE_NAME, _REG_RM_NAME): New macros.
14627 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
14628 changed. But support the old name if the new one is not defined
14629 and if _REGEX_SOURCE.
14631 Change the following member names in struct re_pattern_buffer.
14632 The old names are still supported if !_REGEX_SOURCE.
14633 The new names are always supported, regardless of _REGEX_SOURCE.
14634 (re_buffer): Renamed from buffer.
14635 (re_allocated): Renamed from allocated.
14636 (re_used): Renamed from used.
14637 (re_syntax): Renamed from syntax.
14638 (re_fastmap): Renamed from fastmap.
14639 (re_translate): Renamed from translate.
14640 (re_can_be_null): Renamed from can_be_null.
14641 (re_regs_allocated): Renamed from regs_allocated.
14642 (re_fastmap_accurate): Renamed from fastmap_accurate.
14643 (re_no_sub): Renamed from no_sub.
14644 (re_not_bol): Renamed from not_bol.
14645 (re_not_eol): Renamed from not_eol.
14646 (re_newline_anchor): Renamed from newline_anchor.
14648 Change the following member names in struct re_registers.
14649 The old names are still supported if !_REGEX_SOURCE.
14650 The new names are always supported, regardless of _REGEX_SOURCE.
14651 (rm_num_regs): Renamed from num_regs.
14652 (rm_start): Renamed from start.
14653 (rm_end): Renamed from end.
14655 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
14656 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
14657 Prepend __ to parameter names.
14659 Undo yesterday's changes.
14661 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
14663 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
14664 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
14667 2005-08-24 Jim Meyering <jim@meyering.net>
14669 Sync from coreutils.
14670 * m4/fcntl-safer.m4: New file.
14672 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
14673 and object files for this module.
14675 2005-08-24 Jim Meyering <jim@meyering.net>
14677 Sync from coreutils.
14678 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
14680 2005-08-24 Jim Meyering <jim@meyering.net>
14682 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
14683 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
14685 2005-08-24 Jim Meyering <jim@meyering.net>
14687 * modules/fcntl-safer: New module.
14688 * modules/fts (Depends-on): Add fcntl-safer.
14689 * MODULES.html.sh (File descriptor based Input/Output):
14692 2005-08-24 Bruno Haible <bruno@clisp.org>
14694 Support for unit test modules.
14695 * modules/README: Mention tests modules.
14696 * modules/TEMPLATE-TESTS: New file.
14697 * gnulib-tool: New options --extract-tests-module, --with-tests and
14698 --tests-base (unused for the moment).
14699 (testsbase, inctests): New variables.
14700 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
14701 (func_verify_module): Exclude TEMPLATE-TESTS.
14702 (func_verify_nontests_module, func_verify_tests_module): New functions.
14703 (func_get_dependencies): Add implicit dependency for tests modules.
14704 (func_get_tests_module): New function.
14705 (func_modules_transitive_closure): When --with-tests was specified,
14706 include the unit tests as well, unless explicitly avoided.
14707 (func_emit_lib_Makefile_am): Ignore the tests modules here.
14708 (func_emit_tests_Makefile_am): New function.
14709 (func_create_testdir): When --with-tests was specified, emit a
14711 * MODULES.html.sh (Future developments): Update.
14713 2005-08-24 Bruno Haible <bruno@clisp.org>
14715 * modules/tls-tests: New file.
14716 * tests/test-tls.c: New file, from GNU gettext.
14718 2005-08-24 Bruno Haible <bruno@clisp.org>
14720 * modules/lock-tests: New file.
14721 * tests/test-lock.c: New file, from GNU gettext.
14723 2005-08-24 Bruno Haible <bruno@clisp.org>
14725 * lib/lock.h: Add multiple inclusion guard.
14726 * lib/tls.h: Add multiple inclusion guard.
14728 2005-08-24 Bruno Haible <bruno@clisp.org>
14730 * gnulib-tool: Add support for the --aux-dir option to
14731 --create-testdir, --create-megatestdir, --test, --megatest.
14732 (func_create_testdir, func_create_megatestdir): Optionally emit a
14733 AC_CONFIG_AUX_DIR directive.
14734 (create-testdir, create-megatestdir, test, megatest): Provide a
14735 default value for $auxdir.
14737 2005-08-24 Bruno Haible <bruno@clisp.org>
14739 * gnulib-tool (import): Use compound statement instead of subshell
14742 2005-08-24 Bruno Haible <bruno@clisp.org>
14744 * gnulib-tool (import): Change --aux-dir default to "build-aux".
14746 2005-08-24 Bruno Haible <bruno@clisp.org>
14748 * gnulib-tool (func_version): Update.
14750 2005-08-24 Bruno Haible <bruno@clisp.org>
14752 * gnulib-tool (func_import, func_create_testdir,
14753 func_create_megatestdir): Quote all autoconf macro arguments.
14755 2005-08-24 Bruno Haible <bruno@clisp.org>
14757 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
14758 option --force, because --force causes the aclocal.m4 of each
14759 subdirectory to be newer than the corresponding config.h.in.
14761 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
14763 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
14764 All contents moved to gl_REGEX.
14765 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
14766 assume that it does.
14768 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
14770 * lib/regex.h (REG_NOSYS)
14771 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
14772 Define, since POSIX requires it as of 2001.
14774 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
14775 New private symbol, used to keep the enum signed in all cases.
14776 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
14778 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
14780 * lib/regex_internal.c (re_string_skip_chars, register_state):
14782 Remove forward decls; no longer needed now that we use prototypes.
14783 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
14784 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
14785 (clean_state_log_if_needed): Likewise.
14787 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
14789 * config/srclist.txt: Add glibc bugs 1231-1233.
14791 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
14793 Fix problems reported by Sam Steingold in
14794 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
14795 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
14796 assumed that reg_errcode_t is a signed type, which is not
14797 necessarily true if _XOPEN_SOURCE is not defined.
14798 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
14799 since some compilers warn about it otherwise.
14801 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
14803 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
14804 (init_word_char, create_initial_state, duplicate_node_closure):
14805 (fetch_token, peek_token_bracket, build_range_exp):
14806 (build_collating_symbol): Remove forward decls; no longer needed
14807 now that we use prototypes.
14810 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
14811 (re_compile_fastmap_iter, regcomp, regerror, regfree):
14812 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
14813 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
14814 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
14815 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
14816 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
14817 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
14818 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
14819 (build_range_exp, build_collating_symbol, parse_bracket_exp):
14820 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
14821 (build_charclass, build_charclass_op, fetch_number, create_tree):
14822 (create_token_tree, mark_opt_subexp, duplicate_tree):
14823 Use prototypes rather than old-style definitions.
14825 * lib/regex_internal.c:
14826 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
14827 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
14828 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
14829 (re_string_reconstruct, re_string_peek_byte_case):
14830 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
14831 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
14832 (re_node_set_init_copy, re_node_set_add_intersect):
14833 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
14834 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
14835 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
14836 (re_acquire_state, re_acquire_state_context, register_state):
14837 (create_ci_newstate, create_cd_newstate, free_state):
14839 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
14841 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
14842 (re_search_internal, prune_impossible_nodes):
14843 (acquire_init_state_context, check_matching, static):
14844 (check_halt_node_context, check_halt_state_context, proceed_next_node):
14845 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
14846 (update_regs, sift_states_backward, build_sifted_states):
14847 (clean_state_log_if_needed, merge_state_array):
14848 (update_cur_sifted_state, add_epsilon_src_nodes):
14849 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
14850 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
14851 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
14852 (find_recover_state, check_subexp_matching_top, transit_state_mb):
14853 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
14854 (check_arrival, check_arrival_add_next_nodes):
14855 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
14856 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
14857 (check_node_accept_bytes, check_node_accept, extend_buffers):
14858 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
14859 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
14863 * lib/regex_internal.h:
14864 (re_string_allocate, re_string_construct, re_string_reconstruct):
14865 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
14866 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
14867 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
14868 (re_string_context_at, re_string_peek_byte_case):
14869 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
14870 is defined, since we now use prototypes always.
14872 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
14873 C89 or better. All uses removed.
14875 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
14877 * config/srclist.txt: Add glibc bugs 1220-1227.
14879 2005-08-20 Jim Meyering <jim@meyering.net>
14881 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
14882 of unused local, dfa.
14884 2005-08-20 Bruno Haible <bruno@clisp.org>
14886 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
14888 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
14890 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
14891 (re_node_set_insert_last, re_dfa_add_node):
14892 Rename local variables to avoid GCC shadowing warnings.
14894 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
14896 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
14897 [defined lint]: Suppress bogus uninitialized-variable warnings.
14899 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
14900 and let the caller return REG_ESPACE if out of space. This
14901 removes an uninitialied-variable warning with GCC 4.0.1, and also
14902 avoids taking the address of a local variable. All callers
14905 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
14907 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
14908 $LIBCSRC/posix/regexec.c.
14909 Add glibc bug 1217 for regcomp.c.
14911 2005-08-19 Jim Meyering <jim@meyering.net>
14913 * lib/regexec.c (proceed_next_node): Redo local variables to
14914 avoid GCC shadowing warnings.
14916 2005-08-18 Bruno Haible <bruno@clisp.org>
14918 * lib/strstr.c (strstr): Fix return value in multibyte case.
14919 * lib/strcasestr.c (strcasestr): Likewise.
14921 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
14923 * lib/regex.h: Remove useless space-before-tab. From coreutils.
14925 2005-08-17 Jim Meyering <jim@meyering.net>
14927 Make the %s format (seconds since the epoch) work for a negative
14928 number and when used with a zero-padded field width, e.g. %015s.
14930 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
14931 label so that it precedes the code to set `digits'. Otherwise,
14932 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
14933 print `00-22'. Now, it prints `-0022', as it should.
14935 2005-08-17 Bruno Haible <bruno@clisp.org>
14937 * modules/strstr (Files): Add m4/mbrtowc.m4.
14938 (Depends-on): Add mbuiter.
14940 2005-08-17 Bruno Haible <bruno@clisp.org>
14942 * modules/strcasestr: New file.
14943 * MODULES.html.sh (String handling, based on ANSI C 89): Add
14946 2005-08-17 Bruno Haible <bruno@clisp.org>
14948 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
14950 2005-08-17 Bruno Haible <bruno@clisp.org>
14952 * modules/mbuiter: New file.
14953 * MODULES.html.sh (Extended multibyte and wide character utilities):
14956 2005-08-17 Bruno Haible <bruno@clisp.org>
14958 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
14959 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
14961 2005-08-17 Bruno Haible <bruno@clisp.org>
14963 * m4/strcasestr.m4: New file.
14965 2005-08-17 Bruno Haible <bruno@clisp.org>
14967 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
14968 * lib/strstr.c: Completely rewritten, with multibyte locale support.
14970 2005-08-17 Bruno Haible <bruno@clisp.org>
14972 * lib/strcasestr.h: New file.
14973 * lib/strcasestr.c: New file.
14975 2005-08-17 Bruno Haible <bruno@clisp.org>
14977 * lib/strcasecmp.c: Use mbuiter.h.
14979 2005-08-17 Bruno Haible <bruno@clisp.org>
14981 * lib/mbuiter.h: New file.
14983 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
14985 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
14986 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
14987 and gl_GETOPT are both invoked via different paths (as happens
14988 with GNU tar CVS because it uses both argp and getopt), the former
14991 2005-08-16 Bruno Haible <bruno@clisp.org>
14993 * modules/tls: New file.
14994 * MODULES.html.sh (Multithreading): Add tls.
14996 2005-08-16 Bruno Haible <bruno@clisp.org>
14998 * modules/strnlen1: New file.
14999 * MODULES.html.sh (String handling): Add strnlen1.
15001 2005-08-16 Bruno Haible <bruno@clisp.org>
15003 * modules/strcase (Files): Add m4/mbrtowc.m4.
15004 (Depends-on): Add strnlen1, mbchar.
15006 2005-08-16 Bruno Haible <bruno@clisp.org>
15008 * modules/mbiter: New file.
15009 * MODULES.html.sh (Extended multibyte and wide character utilities):
15012 2005-08-16 Bruno Haible <bruno@clisp.org>
15014 * modules/mbfile: New file.
15015 * MODULES.html.sh (Extended multibyte and wide character utilities):
15018 2005-08-16 Bruno Haible <bruno@clisp.org>
15020 * modules/mbchar: New file.
15021 * MODULES.html.sh (Extended multibyte and wide character utilities):
15024 2005-08-16 Bruno Haible <bruno@clisp.org>
15026 * m4/tls.m4: New file, from GNU gettext.
15028 2005-08-16 Bruno Haible <bruno@clisp.org>
15030 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
15032 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
15034 2005-08-16 Bruno Haible <bruno@clisp.org>
15036 * m4/mbiter.m4: New file.
15038 2005-08-16 Bruno Haible <bruno@clisp.org>
15040 * m4/mbfile.m4: New file.
15042 2005-08-16 Bruno Haible <bruno@clisp.org>
15044 * m4/mbchar.m4: New file.
15046 2005-08-16 Bruno Haible <bruno@clisp.org>
15048 * lib/tls.h: New file, from GNU gettext.
15049 * lib/tls.c: New file, from GNU gettext.
15051 2005-08-16 Bruno Haible <bruno@clisp.org>
15053 * lib/strnlen1.h: New file.
15054 * lib/strnlen1.c: New file.
15056 2005-08-16 Bruno Haible <bruno@clisp.org>
15058 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
15059 (mbi_init): Update.
15060 (mbi_avail, mbi_advance): Let the iteration end before the terminating
15061 NUL byte, not after it.
15063 2005-08-16 Bruno Haible <bruno@clisp.org>
15065 * lib/strcase.h (strcasecmp): Add note in comments.
15066 * lib/strncasecmp.c: Use code from strcasecmp.c.
15067 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
15068 (strcasecmp): Work correctly in multibyte locales.
15070 2005-08-16 Bruno Haible <bruno@clisp.org>
15072 * lib/mbiter.h: New file.
15074 2005-08-16 Bruno Haible <bruno@clisp.org>
15076 * lib/mbfile.h: New file.
15078 2005-08-16 Bruno Haible <bruno@clisp.org>
15080 * lib/mbchar.h: New file.
15081 * lib/mbchar.c: New file.
15083 2005-08-16 Bruno Haible <bruno@clisp.org>
15085 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
15086 the valid ones. Makes the comparison operations transitive:
15087 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
15088 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
15090 2005-08-15 Simon Josefsson <jas@extundo.com>
15092 * modules/ssize_t (License): Change to 'unlimited'.
15094 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
15096 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
15098 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
15099 Add comments for each pending glibc patch.
15101 2005-08-15 Bruno Haible <bruno@clisp.org>
15103 * lib/regex.h (__restrict_arr): Don't define to __restrict if
15104 __cplusplus is defined.
15106 2005-08-14 Jim Meyering <jim@meyering.net>
15108 Sync from coreutils.
15110 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
15111 Use the hash-table-based cycle-detection code not just when
15112 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
15113 Reported by James Youngman in
15114 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
15115 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
15116 FTS_TIGHT_CYCLE_CHECK.
15117 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
15118 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
15120 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
15121 * lib/fts.c (fd_safer): Remove decl.
15122 Include fcntl--.h rather than unistd-safer.h
15123 (fts_safe_changedir): Don't call fd_safer; no longer needed
15124 now that we include fcntl--.h.
15126 2005-08-12 Simon Josefsson <jas@extundo.com>
15128 * modules/getndelim2: Use ssize_t module.
15129 * modules/getnline: Likewise.
15130 * modules/safe-read: Likewise.
15131 * modules/xreadlink: Likewise.
15133 * modules/ssize_t: New file.
15135 2005-08-12 Simon Josefsson <jas@extundo.com>
15137 * m4/readline.m4: Look for termcap, curses or ncurses if required.
15139 2005-08-12 Simon Josefsson <jas@extundo.com>
15141 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15144 2005-08-12 Simon Josefsson <jas@extundo.com>
15146 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
15147 readline, getdelim and check_version.
15148 (Support for systems lacking ISO C 99: Sizes of integer types):
15151 2005-08-12 Bruno Haible <bruno@clisp.org>
15153 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
15155 2005-08-11 Simon Josefsson <jas@extundo.com>
15157 * modules/readline: New file.
15159 * modules/strnlen (Files): Add strnlen.h.
15161 2005-08-11 Simon Josefsson <jas@extundo.com>
15163 * m4/readline.m4: New file.
15165 2005-08-11 Simon Josefsson <jas@extundo.com>
15167 * lib/readline.h, readline.c: New file.
15169 2005-08-11 Simon Josefsson <jas@extundo.com>
15171 * doc/gnulib.texi (Initial import, Finishing touches): Mention
15174 2005-08-11 Bruno Haible <bruno@clisp.org>
15176 * lib/strnlen.h (strnlen): Change parameter name to match comment.
15178 2005-08-10 Stepan Kasal <kasal@ucw.cz>
15180 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
15182 2005-08-10 Simon Josefsson <jas@extundo.com>
15184 * tests/test-iconvme.c: New file.
15186 2005-08-10 Simon Josefsson <jas@extundo.com>
15188 * m4/strnlen.m4: New file.
15190 * m4/strndup.m4: Don't check for strnlen declaration, done in
15193 2005-08-10 Simon Josefsson <jas@extundo.com>
15195 * lib/strndup.c: Use strnlen.h.
15197 * lib/strnlen.h: New file.
15199 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
15203 2005-08-02 Simon Josefsson <jas@extundo.com>
15205 * modules/readline: New file.
15207 2005-08-02 Simon Josefsson <jas@extundo.com>
15209 * modules/getdelim: New file.
15211 * modules/getline: Rewrite, don't use getndelim2.
15213 2005-08-02 Simon Josefsson <jas@extundo.com>
15215 * m4/getline.m4: Separate out getdelim stuff into separate module.
15217 * m4/getdelim.m4: New file.
15219 2005-08-02 Simon Josefsson <jas@extundo.com>
15221 * lib/getline.h, getline.c: Rewrite.
15223 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
15225 2005-07-31 Bruno Haible <bruno@clisp.org>
15227 * lib/lock.h (gl_lock_initializer): New macro.
15228 (gl_lock_define_initialized): Use it.
15229 (gl_rwlock_initializer): New macro.
15230 (gl_rwlock_define_initialized): Use it.
15231 (gl_recursive_lock_initializer): New macro.
15232 (gl_recursive_lock_define_initialized): Use it.
15234 2005-07-30 Karl Berry <karl@gnu.org>
15236 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
15237 Report from Ben Pfaff, regarding getopt.
15239 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
15241 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
15243 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
15244 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
15245 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
15246 (gl_GETOPT): Use the new macros. Most of the implementation
15247 is moved to the new macros. This is for programs like Emacs
15248 that don't want all the functionality of gl_GETOPT.
15250 2005-07-26 Bruno Haible <bruno@clisp.org>
15252 * m4/lock.m4: Update from GNU gettext.
15254 2005-07-26 Bruno Haible <bruno@clisp.org>
15256 * lib/lock.h: Update from GNU gettext.
15257 * lib/lock.c: Update from GNU gettext.
15259 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
15261 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
15262 obsolescent AC_TRY_RUN. Include the default includes files, for
15265 2005-07-24 Bruno Haible <bruno@clisp.org>
15267 * modules/visibility: New file.
15268 * MODULES.html.sh (Misc): Add visibility.
15270 2005-07-24 Bruno Haible <bruno@clisp.org>
15272 * m4/visibility.m4: New file.
15274 2005-07-24 Bruno Haible <bruno@clisp.org>
15276 * doc/visibility.texi: New file.
15278 2005-07-22 Bruno Haible <bruno@clisp.org>
15280 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
15281 $(ALLOCA_H), redundant through BUILT_SOURCES.
15282 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
15283 redundant through BUILT_SOURCES.
15284 * modules/byteswap (Makefile.am): Remove explicit dependency on
15285 $(BYTESWAP_H), redundant through BUILT_SOURCES.
15286 * modules/fnmatch (Makefile.am): Remove explicit dependency on
15287 $(FNMATCH_H), redundant through BUILT_SOURCES.
15288 * modules/getopt (Makefile.am): Remove explicit dependency on
15289 $(GETOPT_H), redundant through BUILT_SOURCES.
15290 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
15291 redundant through BUILT_SOURCES.
15292 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
15293 redundant through BUILT_SOURCES.
15294 * modules/stdbool (Makefile.am): Remove explicit dependency on
15295 $(STDBOOL_H), redundant through BUILT_SOURCES.
15296 * modules/stdint (Makefile.am): Remove explicit dependency on
15297 $(STDINT_H), redundant through BUILT_SOURCES.
15298 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
15299 Remove explicit dependency on $(SYSEXITS_H).
15300 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
15302 2005-07-18 Simon Josefsson <jas@extundo.com>
15304 * lib/check-version.c (check_version): Accept identical versions too.
15306 2005-07-18 Bruno Haible <bruno@clisp.org>
15308 * modules/lock: New file.
15309 * MODULES.html.sh (Multithreading): New section.
15311 2005-07-18 Bruno Haible <bruno@clisp.org>
15313 * m4/lock.m4: New file, from GNU gettext.
15315 2005-07-18 Bruno Haible <bruno@clisp.org>
15317 * lib/lock.h: New file, from GNU gettext.
15318 * lib/lock.c: New file, from GNU gettext.
15320 2005-07-18 Bruno Haible <bruno@clisp.org>
15322 * lib/lock.h (gl_once_t): New type.
15323 (gl_once_define, gl_once): New macros.
15324 * lib/lock.c (fresh_once): New variable.
15325 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
15328 2005-07-16 Simon Josefsson <jas@extundo.com>
15330 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
15331 workaround, suggested by Bruno.
15333 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
15335 * modules/xalloc (Depends-on): Add xalloc-die.
15336 * modules/xvasprintf (Depends-on): Add xalloc-die.
15338 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
15340 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
15341 with a minor change.
15343 2005-07-15 Bruno Haible <bruno@clisp.org>
15345 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
15346 When using lib/poll.c, define poll as rpl_poll.
15348 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
15350 * modules/argp (Depends-on): Remove unlocked-io.
15352 2005-07-14 Derek Price <derek@ximbiot.com>
15354 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
15355 for glob symlink bug.
15357 2005-07-14 Bruno Haible <bruno@clisp.org>
15359 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
15360 Instead, test for *_unlocked function declarations directly.
15362 2005-07-11 Simon Josefsson <jas@extundo.com>
15364 * modules/size_max: New file.
15366 * modules/xsize: Depend on size_max module for size_max.m4.
15368 2005-07-11 Simon Josefsson <jas@extundo.com>
15370 * lib/size_max.h: New file.
15372 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
15374 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
15375 copyright symbol and the year.
15376 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
15377 (version_etc_va): Use parameterized copyright notice.
15378 Reword to conform to the current GNU coding standards.
15380 2005-07-11 Karl Berry <karl@gnu.org>
15382 * doc/gnulib.texi (Quoting): new node.
15383 (Initial import): more info, from Patrice.
15385 2005-07-11 Bruno Haible <bruno@clisp.org>
15387 * gnulib-tool (func_usage): Document option --avoid.
15388 (Command line options): Handle --avoid.
15389 (func_acceptable): New function.
15390 (func_modules_transitive_closure): Use it.
15392 2005-07-11 Bruno Haible <bruno@clisp.org>
15394 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
15395 Reported by Jim Meyering.
15397 2005-07-10 Bruno Haible <bruno@clisp.org>
15399 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
15400 Needed when size_t is smaller than 'unsigned int'.
15401 Reported by Paul Eggert.
15403 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
15405 * modules/argp (Depends-on): Add unlocked-io
15407 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
15409 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
15412 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
15414 * config/srclist.txt: Comment out regcomp.c, since we have a porting
15417 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
15418 and Paul Eggert <eggert@cs.ucla.edu>
15420 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
15421 in wint_t, not wchar_t. Remove now-unnecessary cast.
15423 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
15425 * modules/regex (Files): Add lib/regex_internal.c,
15426 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
15427 (Depends-on): Add extensions.
15428 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
15430 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
15432 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
15434 * m4/same.m4 (gl_SAME): Likewise.
15435 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
15437 * m4/regex.m4: Adjust to new libc regex implementation.
15438 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
15439 all the .c and .h parts of (the new) regex.
15440 Quote the m4 stuff better.
15441 Check for RE_ICASE bug of old gnulib.
15442 Check for REG_STARTEND of recent libc.
15443 Rename local variables from jm_* to gl_*.
15444 Quote operand of "test -f".
15445 Say "recent enough" version of libc, not "version 2".
15446 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
15447 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
15448 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
15449 Remove check for btowc, isascii.
15450 Require AM_LANGINFO_CODESET.
15452 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
15454 * lib/regex.c, regex.h: Sync from libc.
15455 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
15457 New files, synced from libc, except that regex_internal.h
15458 currently has a small porting fix.
15460 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
15462 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
15463 regex_internal.c, regexec.c.
15464 Add regex_internal.h too, but as a comment, since the libc version
15465 is currently broken in gnulib mode.
15467 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
15469 Support programs like Emacs that use gnulib but not gettext.
15470 * MODULES.html.sh (Internationalization functions): Add gettext-h.
15471 * modules/gettext-h: New file.
15472 * modules/gettext (Files): Remove lib/gettext.h.
15473 (Depends-on): Add gettext-h.
15474 (Makefile.am): Remove lib_SOURCES.
15475 * modules/argmatch, modules/c-stack, modules/closeout:
15476 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
15477 * modules/execute, modules/file-type, modules/getaddrinfo:
15478 * modules/getopt, modules/human, modules/javacomp:
15479 * modules/javaexec, modules/mkdir-p, modules/obstack:
15480 * modules/openat, modules/pagealign_alloc, modules/pipe:
15481 * modules/quotearg, modules/regex, modules/rpmatch:
15482 * modules/unicodeio, modules/userspec, modules/version-etc:
15483 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
15485 Depend on gettext-h, not gettext.
15487 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
15489 * gnulib-tool (func_import): Add support for 'public domain' license.
15490 * modules/alloca, modules/atexit, modules/memmove:
15491 Now public domain, not GPL.
15492 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
15493 * modules/realloc, modules/strerror, modules/strtod:
15496 2005-07-05 Bruno Haible <bruno@clisp.org>
15498 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
15499 autoconf CVS. Needed for mingw.
15501 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
15503 Remove the dependency of the strftime module on the tzset module.
15504 * modules/strftime (Depends-on): Remove dependency on tzset.
15506 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
15508 Remove the dependency of the strftime module on the tzset module.
15509 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
15510 gl_FUNC_TZSET_CLOBBER.
15512 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
15514 Remove the dependency of the strftime module on the tzset module.
15515 * lib/strftime.c (my_strftime)
15516 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
15517 Copy the input structure, to work around some of the bug with
15518 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
15519 Solaris releases, you should also use the tzset module, but we won't
15520 require it as a dependency any more since we don't want LGPLed code
15521 to depend on GPLed code.
15523 2005-07-02 Jim Meyering <jim@meyering.net>
15525 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
15526 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
15527 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
15528 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
15530 2005-07-02 Jim Meyering <jim@meyering.net>
15532 * lib/backupfile.c (backup_args): Change a `0' to NULL.
15534 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
15536 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
15537 declares only 'struct timespec;' (!).
15539 2005-07-01 Jim Meyering <jim@meyering.net>
15541 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
15542 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
15543 * lib/save-cwd.c, tempname.c:
15544 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
15545 and don't include <sys/file.h>).
15547 2005-06-29 Jim Meyering <jim@meyering.net>
15549 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
15550 type name. Use the variable name instead.
15551 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
15554 2005-06-28 Simon Josefsson <jas@extundo.com>
15556 * modules/check-version (Files): Add check-version.m4.
15558 2005-06-28 Simon Josefsson <jas@extundo.com>
15560 * m4/check-version.m4: New file, suggested by Jim Meyering
15561 <jim@meyering.net>.
15563 2005-06-28 Simon Josefsson <jas@extundo.com>
15565 * lib/check-version.h, lib/check-version.c: New files.
15567 2005-06-28 Simon Josefsson <jas@extundo.com>
15569 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
15570 collision with global variable. Better indentation. Don't
15571 increment buffer pointer beyond buffer end. Based on comments
15572 from Paul Eggert <eggert@cs.ucla.edu>.
15574 * lib/base64.h: Indent.
15576 2005-06-28 Simon Josefsson <jas@extundo.com>
15578 * doc/gnulib.texi (Library version handling): New section.
15580 2005-06-28 Jim Meyering <jim@meyering.net>
15582 * check-module (find_included_lib_files): Hard-code another
15583 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
15584 but modules/fts-lgpl (correctly) does not list those files.
15586 * modules/canonicalize (Files): Add lib/pathmax.h.
15588 2005-06-25 Simon Josefsson <jas@extundo.com>
15590 * modules/check-version: New file.
15592 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
15594 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
15595 initializer of struct addrinfo, as an indication that we don't
15596 care how many members the structure has.
15598 2005-06-24 Derek Price <derek@ximbiot.com>
15599 and Bruno Haible <bruno@clisp.org>
15601 Remove stat module & update lstat.
15602 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
15603 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15604 * m4/stat.m4: Remove this file.
15606 2005-06-24 Derek Price <derek@ximbiot.com>
15607 and Bruno Haible <bruno@clisp.org>
15609 Remove stat module & update lstat.
15610 * lib/stat.c: Remove this file...
15611 (slash_aware_lstat): ...moving this content and its support...
15612 * lib/lstat.c (rpl_lstat): ...into here.
15613 * lib/lstat.h: New file.
15615 2005-06-24 Derek Price <derek@ximbiot.com>
15616 and Bruno Haible <bruno@clisp.org>
15618 Remove stat module & update lstat.
15619 * config/srclist.txt (libc sources): Remove stat.
15621 2005-06-24 Derek Price <derek@ximbiot.com>
15622 and Bruno Haible <bruno@clisp.org>
15624 Remove stat module & update lstat.
15625 * MODULES.html.sh (stat): Remove.
15626 * MODULES.html: Regenerated.
15627 * modules/lstat (Description): Correct function name.
15628 (Files): Add "lstat.h".
15629 (Depends-on): Remove stat, add xalloc, stat-macros.
15630 * modules/stat: Remove this file.
15631 (Include): Add "lstat.h", remove <sys/stat.h>.
15633 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
15635 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
15636 (ranged_convert): Don't save conversion in a temporary struct.
15637 This causes a warning with GCC 4.0.0, and anyway in the typical
15638 case it's not worth the extra 100 bytes or so of code.
15639 (ranged_convert, __mktime_internal): When calling a function via a
15640 pointer P, use P () rather than (*P) (), as we now assume C89 or
15643 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
15645 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
15646 "who -r" failed to give output. Problem reported by Tim Waugh.
15648 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
15649 (xcalloc): Use it to avoid needless tests.
15650 Problem reported by Jim Meyering.
15652 2005-06-20 Derek Price <derek@ximbiot.com>
15654 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
15655 unnecessary for Autoconfs > 2.59c.
15657 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
15659 * lib/argp.h (__option_is_short): Check upper limit of
15660 __key. Isprint() requires its argument to have the value
15661 of an unsigned char or EOF.
15663 2005-06-16 Jim Meyering <jim@meyering.net>
15665 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
15666 when either N or S is zero.
15668 2005-06-16 Derek Price <derek@ximbiot.com>
15670 * m4/bison.m4: Declare YACC & YFLAGS precious.
15672 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
15674 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
15675 multibyte string or pattern, fall back on unibyte matching.
15676 Problem reported by James Youngman.
15678 2005-06-08 Bruno Haible <bruno@clisp.org>
15680 * modules/csharpcomp: New file.
15681 * MODULES.html.sh (C#): Add csharpcomp.
15683 2005-06-08 Bruno Haible <bruno@clisp.org>
15685 * m4/csharpcomp.m4: New file, from GNU gettext.
15687 2005-06-08 Bruno Haible <bruno@clisp.org>
15689 * lib/csharpcomp.h: New file, from GNU gettext.
15690 * lib/csharpcomp.c: New file, from GNU gettext.
15691 * lib/csharpcomp.sh.in: New file, from GNU gettext.
15693 2005-06-08 Bruno Haible <bruno@clisp.org>
15695 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
15698 2005-06-07 Derek Price <derek@ximbiot.com>
15701 * lib/glob_.h: Indent nested #ifdef.
15703 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
15705 Sync from coreutils.
15706 Use "file name" when talking about file names, instead of "filename"
15707 or "path", as per the GNU coding standards.
15708 * lib/mkdir-p.c: Renamed from makepath.c.
15709 (make_dir_parents): Renamed from make_path. All callers changed.
15710 * lib/mkdir-p.h: Likewise. All includers changed.
15711 * lib/filenamecat.c: Renamed from path-concat.c.
15712 (file_name_concat): Renamed from path_concat. All callers changed.
15713 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
15714 * lib/filenamecat.h: Likewise. All includers changed.
15715 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
15716 in comments or local variable names.
15717 * lib/basename.c: Likewise.
15718 * lib/canonicalize.c, canonicalize.h: Likewise.
15719 * lib/dirname.c, dirname.h: Likewise.
15720 * lib/euidaccess.c: Likewise.
15721 * lib/exclude.c: Likewise
15722 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
15723 * lib/fsusage.c, fsuage.h: Likewise.
15724 * lib/fts.c, fts_.h: Likewise.
15725 * lib/getcwd.c: Likewise.
15726 * lib/getloadavg.c: Likewise.
15727 * lib/mkstemp.c: Likewise.
15728 * lib/mountlist.c, mountlist.h: Likewise.
15729 * lib/openat.c, openat.h: Likewise.
15730 * lib/readlink-stub.c: Likewise.
15731 * lib/readutmp.c, readutmp.h: Likewise.
15732 * lib/rename.c: Likewise.
15733 * lib/rmdir.c: Likewise.
15734 * lib/same.c: Likewise.
15735 * lib/savedir.c: Likewise.
15736 * lib/stripslash.c: Likewise.
15737 * lib/tempname.c: Likewise.
15738 * lib/xreadlink.c: Likewise.
15739 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
15741 * lib/exclude.h: Likewise.
15743 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
15744 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
15745 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
15746 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
15747 * lib/pathmax.h: Include <limits.h> unconditionally, since other
15748 files have been getting away with it for years (MORE/BSD 4.3
15750 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
15751 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
15753 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
15754 Define to 256, not 255, as per modern POSIX.
15756 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
15758 Sync from coreutils.
15759 Use "file name" when talking about file names, instead of "filename"
15760 or "path", as per the GNU coding standards.
15761 * MODULES.html.sh: mkdir-p renamed from makepath.
15762 filenamecat renamed from path-concat.
15763 * modules/filenamecat: Renamed from modules/path-concat.
15764 (Files): filenamecat.h and filenamecat.c renamed from
15765 path-concat.h and path-concat.c.
15766 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
15767 (Include): filenamecat.h, not path-concat.h.
15768 * modules/mkdir-p: Renamed from modules/makepath.
15769 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
15771 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
15772 (Include): mkdir-p.h, not makepath.h.
15774 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
15776 Sync from coreutils.
15777 * m4/mkdir-p.m4: Renamed from makepath.m4.
15778 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
15779 Rename files from makepath.c to mkdir-p.c, and from
15780 makepath.h to mkdir-p.h.
15781 * m4/filenamecat.m4: Renamed from path-concat.m4.
15782 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
15783 Rename files from path-concat.c to filenamecat.c,
15784 and from path-concat.h to filenamecat.h.
15785 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
15786 "file name" in local variables or comments.
15787 * m4/rename.m4: Likewise.
15789 2005-06-01 Bruno Haible <bruno@clisp.org>
15791 * modules/csharpexec: New file.
15792 * MODULES.html.sh (C#): New section.
15794 2005-06-01 Bruno Haible <bruno@clisp.org>
15796 * m4/csharp.m4: New file, from GNU gettext.
15797 * m4/csharpexec.m4: New file, from GNU gettext.
15799 2005-06-01 Bruno Haible <bruno@clisp.org>
15801 * lib/csharpexec.h: New file, from GNU gettext.
15802 * lib/csharpexec.c: New file, from GNU gettext.
15803 * lib/csharpexec.sh.in: New file, from GNU gettext.
15805 2005-05-31 Derek Price <derek@ximbiot.com>
15806 Paul Eggert <eggert@cs.ucla.edu>
15809 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
15811 2005-05-31 Derek Price <derek@ximbiot.com>
15812 Paul Eggert <eggert@cs.ucla.edu>
15815 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
15817 2005-05-29 Derek Price <derek@ximbiot.com>
15819 * config/srclist.txt (glob_.h, glob.c): Add these files.
15821 2005-05-29 Derek Price <derek@ximbiot.com>
15823 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
15824 * modules/glob: New file.
15825 * modules/getlogin_r: Add link to POSIX spec in description.
15827 2005-05-29 Derek Price <derek@ximbiot.com>
15828 Paul Eggert <eggert@cs.ucla.edu>
15830 * m4/glob.m4: New file.
15832 2005-05-29 Derek Price <derek@ximbiot.com>
15833 Paul Eggert <eggert@cs.ucla.edu>
15835 * lib/glob_.h, lib/glob.c: New files.
15837 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
15839 * modules/fts (Files): Remove m4/inttypes-pri.m4.
15840 * modules/fts-lgpl (Depends-on): Remove gettext.
15842 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
15844 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
15845 and don't require gt_INTTYPES_PRI.
15847 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
15849 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
15851 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
15852 the configuration hassle isn't worth it.
15853 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
15854 (LONGEST_MODIFIER, PRIuMAX): Remove.
15856 2005-05-27 Bruno Haible <bruno@clisp.org>
15858 * lib/getlogin_r.h: Remove second include of <stddef.h>.
15860 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
15862 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
15863 _POSIX_PTHREAD_SEMANTICS for Solaris.
15865 2005-05-25 Derek Price <derek@ximbiot.com>
15867 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
15869 2005-05-25 Derek Price <derek@ximbiot.com>
15870 Paul Eggert <eggert@cs.ucla.edu>
15872 * modules/getlogin_r, m4/getlogin_r.m4: New files.
15873 * lib/getlogin_r.c, getlogin_r.h: New files.
15875 2005-05-25 Bruno Haible <bruno@clisp.org>
15876 Derek Price <derek@ximbiot.com>
15878 * lib/getlogin_r.h: Simplify API documentation.
15880 2005-05-23 Derek Price <derek@ximbiot.com>
15882 * modules/minmax (Files): Add m4/minmax.m4.
15883 (configure.ac): Add gl_MINMAX.
15885 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
15887 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
15888 so that unistd-safer.h (GPL'ed code) need not be included.
15890 2005-05-22 Bruno Haible <bruno@clisp.org>
15892 * m4/minmax.m4: New file.
15893 Based on a patch by Derek Price <derek@ximbiot.com>.
15895 2005-05-22 Bruno Haible <bruno@clisp.org>
15897 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
15898 (INT64_MIN): Fix definition.
15899 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
15901 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
15902 NEED_SIGNED_INT_TYPES.
15904 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
15905 HAVE_SYSTEM_INTTYPES.
15907 2005-05-22 Bruno Haible <bruno@clisp.org>
15909 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
15910 Also include <sys/param.h> if it defines MIN, MAX.
15911 Based on a patch by Derek Price <derek@ximbiot.com>.
15913 2005-05-21 Jim Meyering <jim@meyering.net>
15915 * modules/fts (Files): Add m4/inttypes-pri.m4.
15916 (Depends-on): Add lstat and remove gettext. Alphabetize.
15918 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
15921 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
15922 (setup_dir, free_dir): New functions.
15923 (enter_dir, leave_dir): Define trivial
15924 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
15925 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
15926 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
15927 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
15928 Move to fts-cycle.c.
15929 (fts_open): Use setup_dir.
15930 (fts_close): Use free_dir.
15931 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
15932 This adds a label and some gotos, but the alternatives were messier.
15933 Check for memory allocation failure when entering a dir.
15934 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
15935 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
15936 (FTS): New member fts_cycle, that is a union that contains the
15937 old active_dir_ht and cycle_state. All uses changed to mention
15938 fts_cycle.ht and fts_cycle.state.
15939 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
15940 fts.c, with the following changes:
15941 (setup_dir, free_dir): New functions.
15942 (enter_dir): Now returns bool. Return true if successful, false
15943 if memory exhausted. All callers changed.
15944 Do not bother partly cleaning up on
15945 memory allocation failure; that is free_dir's job.
15946 However, free ad if hash_insert fails, to avoid memory leak.
15947 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
15948 fts->fts_options to see which union member to use.
15950 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
15952 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
15953 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
15955 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
15957 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
15959 2005-05-20 Jim Meyering <jim@meyering.net>
15961 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
15962 Now a macro, to pacify GCC.
15964 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
15966 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
15969 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
15971 * lib/chown.c (rpl_chown): Return -1 on failure.
15973 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
15975 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
15976 Don't check for stddef.h.
15977 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
15978 don't use its results.
15979 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
15980 since we include them unconditionally. Don't require
15981 AM_STDBOOL_H, since stdbool is a prerequisite.
15982 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
15983 since we assume C89 or better.
15984 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
15985 as we don't use their results.
15986 Don't check for fchdir, memmove, memset, strrchr, as we use
15987 them unconditionally.
15988 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
15989 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
15991 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
15993 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
15994 Include <stddef.h> unconditionally, since we assume C89 now.
15995 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
15996 * lib/fts.c: Include fts_.h first, to check interface.
15997 Do not include intprops.h; no longer needed.
15998 Include cycle-check.h and hash.h, since fts_.h no longer does.
15999 Remove unnecessary casts of closedir to void.
16000 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
16001 decide whether to decrement nlinks.
16002 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
16003 (FTS): Use struct hash_table * instead of Hash_table, so that
16004 we no longer need to include hash.h here.
16006 2005-05-18 Jim Meyering <jim@meyering.net>
16008 * modules/dirfd (License): Change to LGPL. Most of the code
16009 is already in the public domain.
16011 2005-05-18 Jim Meyering <jim@meyering.net>
16013 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
16014 Reported by Yoann Vandoorselaere.
16016 2005-05-17 Jim Meyering <jim@meyering.net>
16018 * m4/fts.m4: New file, from coreutils.
16020 2005-05-17 Jim Meyering <jim@meyering.net>
16022 * lib/fts.c, lib/fts_.h: New files, from coreutils.
16024 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
16026 Sync from coreutils.
16027 * m4/unlinkdir.m4: New file.
16029 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
16031 Sync from coreutils.
16032 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
16033 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
16034 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
16035 White space changes only.
16036 * lib/makepath.c (make_path): Port to hosts where leading "//" is
16038 * lib/yesno.c: Include getline.h, not ctype.h.
16039 (yesno): Don't remove leading white space; POSIX doesn't allow it.
16040 Use getline to remove arbitrary restriction on response length.
16042 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
16044 * config/srclist-update: Spell out "Street" in FSF postal
16045 mail address; this is the style the FSF seems to prefer.
16047 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
16048 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
16049 this updates FSF postal mail address.
16051 Sync from coreutils.
16052 * modules/unlinkdir: New file.
16053 * modules/yesno (Depends-on): Add getline.
16054 * MODULES.html.sh (File system functions): Add unlinkdir.
16056 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
16058 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
16060 Change the initial comment to refer to GPL, not LGPL.
16061 gnulib-tool will change it to LGPL as needed.
16063 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
16064 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
16065 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
16066 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
16067 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
16068 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
16069 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
16070 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
16071 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
16072 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
16073 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
16074 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
16075 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
16076 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
16077 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
16078 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
16079 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
16080 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
16081 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
16082 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
16083 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
16084 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
16085 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
16086 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
16087 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
16088 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
16089 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
16090 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
16091 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
16092 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
16093 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
16094 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
16095 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
16096 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
16097 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
16098 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
16099 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
16100 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
16101 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
16102 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
16103 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
16104 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
16105 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
16106 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
16107 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
16108 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
16109 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
16110 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
16111 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
16112 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
16113 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
16114 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
16115 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
16116 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
16117 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
16118 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
16119 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
16120 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
16121 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
16122 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
16123 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
16124 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
16125 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
16126 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
16127 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
16128 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
16129 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
16130 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
16131 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
16132 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
16133 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
16134 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
16135 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
16136 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
16137 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
16138 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
16139 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
16140 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
16141 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
16142 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
16143 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
16144 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
16145 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
16146 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
16147 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
16148 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
16149 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
16150 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
16151 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
16152 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
16153 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
16154 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
16155 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
16156 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
16157 lib/yesno.c, lib/yesno.h:
16158 Update FSF postal mail address.
16160 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
16162 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
16163 tests/test-memmem.c, tests/test-stpncpy.c:
16164 Update FSF postal mail address.
16166 2005-05-13 Bruno Haible <bruno@clisp.org>
16168 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
16169 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
16170 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
16171 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
16172 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
16173 Add support for 64-bit integers in the MSVC compiler.
16175 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
16177 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
16179 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
16181 * gnulib-tool (func_import): Sort and uniquify recommended includes.
16183 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
16185 * doc/getdate.texi (General date syntax): Don't say that date
16186 date --iso-8601=ns generates acceptable dates; it doesn't yet.
16187 Problem reported by Nic Ferrier.
16189 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16191 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
16192 specified in ai_socktype. Fix invalid ai_protocol
16193 check. ai_protocol is usually set to 0 or depending on
16194 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
16195 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
16196 ai_socktype / ai_protocol in the returned addrinfo structure.
16198 2005-05-10 Simon Josefsson <jas@extundo.com>
16200 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
16201 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
16203 2005-05-10 Karl Berry <karl@gnu.org>
16205 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
16206 (from http://www.gnu.org/licenses).
16207 * doc/COPYING.LIB: also rename to COPYING.LESSER.
16208 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
16211 2005-05-10 Karl Berry <karl@gnu.org>
16213 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
16214 (COPYING.DOC): remove.
16216 * config/srclist-update: new FSF address.
16218 2005-05-10 Derek Price <derek@ximbiot.com>
16220 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
16223 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16224 Bruno Haible <bruno@clisp.org>
16226 * modules/inet_ntop: New file.
16227 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16230 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16231 Bruno Haible <bruno@clisp.org>
16233 * m4/inet_ntop.m4: New file.
16235 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16236 Bruno Haible <bruno@clisp.org>
16238 * lib/inet_ntop.h: New file.
16239 * lib/inet_ntop.c: New file, from glibc with modifications.
16241 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
16243 * modules/time_r (License): Change to LGPL.
16244 * modules/extensions (License): Change to LGPL. Actually,
16245 the license is more permissive than that, but currently gnulib-tool
16246 doesn't know how to handle more-permissive licenses.
16248 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
16249 Problem reported by Dave Love.
16251 2005-05-08 Jim Meyering <jim@meyering.net>
16253 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
16256 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
16258 * modules/argmatch (Depends-on): Add stdbool.
16259 * modules/backupfile (Depends-on): Likewise.
16260 * modules/chdir-long (Depends-on): Likewise.
16261 * modules/closeout (Depends-on): Likewise.
16262 * modules/cycle-check (Depends-on): Likewise.
16263 * modules/dirname (Depends-on): Likewise.
16264 * modules/fnmatch (Depends-on): Likewise.
16265 * modules/fsusage (Depends-on): Likewise.
16266 * modules/fwriteerror (Depends-on): Likewise.
16267 * modules/getcwd (Depends-on): Likewise.
16268 * modules/getloadavg (Depends-on): Likewise.
16269 * modules/hard-locale (Depends-on): Likewise.
16270 * modules/makepath (Depends-on): Likewise.
16271 * modules/mountlist (Depends-on): Likewise.
16272 * modules/nanosleep (Depends-on): Likewise.
16273 * modules/posixtm (Depends-on): Likewise.
16274 * modules/quotearg (Depends-on): Likewise.
16275 * modules/readtokens (Depends-on): Likewise.
16276 * modules/readtokens0 (Depends-on): Likewise.
16277 * modules/readutmp (Depends-on): Likewise.
16278 * modules/save-cwd (Depends-on): Likewise.
16279 * modules/strftime (Depends-on): Likewise.
16280 * modules/userspec (Depends-on): Likewise.
16281 * modules/utimecmp (Depends-on): Likewise.
16282 * modules/xgetcwd (Depends-on): Likewise.
16283 * modules/xnanosleep (Depends-on): Likewise.
16284 * modules/xstrtod (Depends-on): Likewise.
16285 * modules/yesno (Depends-on): Likewise.
16287 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
16289 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
16292 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
16294 Merge from coreutils. Among other things,
16295 add bulletproofing for cases where stdin, stdout, or stderr are closed.
16296 * lib/fd-safer.c: New file.
16297 * lib/fcntl-safer.h, open-safer.c: Remove.
16298 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
16299 * lib/dup-safer.c: Include unistd-safer.h first.
16300 Don't include errno.h.
16301 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
16302 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
16303 * lib/file-type.c: Rely on file-type.h change.
16304 * lib/getloadavg.c: Include unistd-safer.h.
16305 (getloadavg): Use safer open.
16306 * lib/getusershell.c: Include "stdio-safer.h".
16307 (getusershell): Use safer fopen.
16308 * lib/long-options.c (long_options): Use NULL rather than 0.
16309 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
16311 * lib/modechange.c: Likewise.
16312 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
16313 (MODE_DONE): New constant.
16314 (struct mode_change): Remove 'next' member.
16315 (make_node_op_equals): New function; like the old one of the
16316 same name, except it allocates an array.
16317 (mode_compile, mode_create_from_ref): Use it.
16318 (mode_compile): Allocate result as an array, not a linked list.
16319 Parse octal string ourself, so that we catch mistakes like "+0".
16320 (mode_adjust): Arg is an array, not a linked list.
16321 * lib/modechange.c: Include stat-macros.h, xalloc.h.
16322 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
16323 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
16324 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
16325 Remove. This is now stat-macros.h's job.
16326 (talloc): Remove. All callers replaced by xalloc, so that
16327 our invokers don't have to worry about reporting memory failures.
16328 (make_node_op_equals): Remove.
16329 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
16331 (struct mode_change): Moved here from modechange.h.
16332 (mode_append_entry): Remove.
16333 (mode_compile): Remove MASKED_OPS arg, since it encouraged
16334 apps to have incorrect behavior. Use simpler algorithm for head
16335 and tail. Don't futz with umask; that's now the job of mode_adjust.
16336 Detect more invalid usages rather than having somewhat-random behavior.
16337 Don't insert an "a=" action, as that leads to incorrect behavior.
16338 (mode_compile, mode_create_from_ref): Return NULL on error instead
16339 of an enum, since now there's only one way to have an error. All
16341 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
16342 at the correct time. Simplify calculation of "+u" and its ilk.
16343 Don't mishandle "+X".
16344 (mode_free): Remove "register" and localize decls.
16345 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
16346 (struct mode_change): Move to modechange.c; callers don't
16347 need to see this stuff.
16348 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
16349 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
16350 (mode_change, mode_adjust): Reflect the new signatures noted above.
16351 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
16352 that might redefine system include files.
16353 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
16354 (my_usleep): Use NULL rather than (void *) 0.
16355 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
16356 Use siginterrupt to specify that system calls should be interrupted.
16357 (rpl_nanosleep): Move initialization of suspended closer to call of
16359 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
16360 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
16361 (desirable_utmp_entry): New function.
16362 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
16363 using x2nrealloc, to simplify logic.
16364 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
16365 size calculation. Do not assume utmp file is a regular file.
16366 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
16367 (READ_UTMP_CHECK_PIDS): New constant.
16368 * lib/save-cwd.c: Include unistd-safer.h.
16369 (save_cwd): Use fd_safer.
16370 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
16371 [!_LIBC] Include "stat-macros.h" instead.
16372 * lib/unistd-safer.h (fd_safer): New decl.
16374 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
16376 * modules/getloadavg (Depends-on): Add unistd-safer.
16377 * modules/getusershell (Depends-on): Add stdio-safer.
16378 * modules/lstat (Depends-on): Remove xalloc.
16379 * modules/mkstemp (Depends-on): Add stat-macros.
16380 * modules/modechange (Depends-on): Remove xstrtol.
16381 Add stat-macros, xalloc.
16382 * modules/save-cwd (Depends-on): Add unistd-safer.
16383 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
16384 * modules/unistd-safer (Files): Add lib/fd-safer.c
16385 (Makefile.am): Remove lib_SOURCES.
16387 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
16388 Remove fcntl-safer; unistd-safer supersedes it.
16390 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
16392 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
16394 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
16395 (gl_PREREQ_CHOWN): Remove.
16396 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
16397 it. Don't require AC_HEADER_STAT.
16398 (gl_PREREQ_LSTAT): Remove.
16399 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
16400 Don't require AC_HEADER_STAT.
16401 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
16402 (gl_PREREQ_RMDIR): Remove.
16403 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
16404 mention stat-macros.h or AC_HEADER_STAT, since we'll make
16405 the stat-macros module a prerequisite.
16406 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
16407 * m4/filemode.m4 (gl_FILEMODE): Likewise.
16408 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
16409 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
16410 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
16412 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
16413 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
16415 * m4/fcntl-safer.m4: Remove.
16416 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
16417 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
16418 Invoke gl_PREREQ_FD_SAFER.
16419 (gl_PREREQ_FD_SAFER): New macro.
16420 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
16421 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
16422 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
16423 Remove duplicate call to AC_LIBOBJ(readutmp).
16424 (gl_PREREQ_READUTMP): Remove. All uses inlined.
16426 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
16427 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
16429 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
16431 * MODULES.html.sh (Misc): Add byteswap.
16433 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
16435 * modules/getcwd (Depends-on): Add extensions.
16436 * modules/openat (Depends-on): Likewise.
16438 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
16440 * modules/byteswap: New file.
16442 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
16444 * m4/byteswap.m4: New file.
16446 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
16448 * lib/byteswap_.h: New file.
16450 2005-04-25 Karl Berry <karl@gnu.org>
16452 * m4/gettext.m4: Update from GNU gettext 0.14.4.
16454 2005-04-25 Albert Chin <china@thewrittenword.com>
16456 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
16459 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
16461 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
16462 (func_ln_if_changed) Remove forcibly for no error message
16463 in case file does not exist.
16465 2005-04-19 Simon Josefsson <jas@extundo.com>
16467 * gnulib-tool (Options): Make --symlink mean --symbolic.
16469 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
16471 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
16473 2005-04-16 Simon Josefsson <jas@extundo.com>
16475 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
16477 2005-04-15 Simon Josefsson <jas@extundo.com>
16479 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
16481 2005-04-15 Simon Josefsson <jas@extundo.com>
16483 * gnulib-tool: Rename --symlink to --symbolic.
16485 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
16487 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
16488 symbolic links to files instead of copying/moving. Add --aux-dir,
16489 specifying directory relative --dir where auxiliary build tools
16492 2005-04-14 Bruno Haible <bruno@clisp.org>
16494 * modules/allocsa (License): Change to LGPL.
16495 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
16497 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
16499 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
16500 that "UTC +1 second" continues to work. Problem reported
16501 by Dmitry V. Levin.
16502 (relunit_snumber): New rule.
16505 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
16507 * lib/getdate.y (universal_time_zone_table): New constant.
16508 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
16509 universal_time_zone_table.
16510 (lookup_zone): Prefer universal_time_zone_table to
16511 local_time_zone_table, so that "GMT" time stamps are allowed in
16512 London during the summer. Problem reported by Ian Abbott.
16514 2005-04-12 Jim Meyering <jim@meyering.net>
16516 * lib/human.c (humblock): Set *options even when returning due to
16517 xstrtoumax conversion failure. Thanks to a used-uninitialized
16518 warning from gcc-4.
16520 2005-04-09 Jim Meyering <jim@meyering.net>
16522 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
16523 -Wuninitialized: initialize tm0.tm_year.
16525 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
16527 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
16528 count, since there's no maximum. All uses changed.
16529 Add member dsts_seen.
16530 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
16532 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
16533 Use pc_rels_seen to decide whther a date is absolute.
16535 * lib/getdate.y (number): Don't overwrite year.
16536 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
16539 2005-04-02 Simon Josefsson <jas@extundo.com>
16541 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
16542 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
16544 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
16546 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
16547 where no absolute path name can be longer than PATH_MAX.
16549 2005-03-27 Jim Meyering <jim@meyering.net>
16551 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
16553 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
16555 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
16556 "one's complement" -> "ones' complement" in comment, as per Knuth.
16557 "value of type" -> "type or expression" in comment.
16558 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
16560 2005-03-26 Jim Meyering <jim@meyering.net>
16563 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
16564 Correct typos: s/or/of/.
16566 2005-03-26 Jim Meyering <jim@meyering.net>
16568 * modules/check-include-files: Move to ../ and rename to...
16569 * check-module: ...this.
16571 2005-03-25 Jim Meyering <jim@meyering.net>
16573 * modules/xvasprintf (Files): Add xalloc.h.
16575 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
16577 * modules/gettext (Files): config/config.rpath ->
16578 build-aux/config.rpath
16579 * modules/iconv (Files): Likewise.
16580 Problem reported by Oskar Liljeblad.
16582 2005-03-23 Jim Meyering <jim@meyering.net>
16584 * modules/check-include-files: New script to check for
16585 missing dependencies, multiple includes, etc.
16587 * modules/c-strtold (Depends-on): Add xalloc.
16588 * modules/c-strtod (Depends-on): Add xalloc.
16589 * modules/hash (Depends-on): Add xalloc.
16590 (Files): Remove lib/xalloc.h.
16592 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
16593 * modules/userspec (Files): Add lib/inttostr.h.
16595 2005-03-23 Jim Meyering <jim@meyering.net>
16597 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
16599 2005-03-22 Jim Meyering <jim@meyering.net>
16601 * modules/stat-macros: New module.
16602 * modules/canonicalize, modules/euidaccess, modules/file-type,
16603 * modules/filemode, modules/lchown, modules/makepath,
16604 * modules/rmdir, modules/stat: Depend on new stat-macros module
16605 rather than listing lib/stat-macros.h manually.
16606 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
16608 2005-03-22 Jim Meyering <jim@meyering.net>
16610 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
16612 2005-03-22 Bruno Haible <bruno@clisp.org>
16614 * config/srclist.txt: Replace target directory 'config' with
16616 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
16617 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
16620 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
16622 * modules/chdir-long (Depends-on): Add mempcpy.
16624 * modules/acl, modules/backupfile, modules/c-strtod,
16625 modules/c-strtold, modules/canon-host, modules/canonicalize,
16626 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
16627 modules/exclude, modules/exitfail, modules/file-type,
16628 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
16629 modules/getdate, modules/getline, modules/getpagesize,
16630 modules/getpass, modules/getugroups, modules/group-member,
16631 modules/hard-locale, modules/hash, modules/human, modules/idcache,
16632 modules/inttostr, modules/long-options, modules/makepath,
16633 modules/md5, modules/memcasecmp, modules/memcoll,
16634 modules/modechange, modules/mountlist, modules/path-concat,
16635 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
16636 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
16637 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
16638 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
16639 modules/strftime, modules/strndup, modules/strverscmp,
16640 modules/timespec, modules/unlocked-io, modules/userspec,
16641 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
16643 Remove lib_SOURCES line from Makefile.am section, as this is now
16644 done automatically by the corresponding Autoconf macro.
16646 2005-03-21 Jim Meyering <jim@meyering.net>
16648 Changes imported from coreutils.
16650 * lib/cycle-check.c: Don't include xalloc.h.
16652 * lib/path-concat.c: Don't include assert.h.
16653 (path_concat): Remove assertion that would have triggered
16654 for ABASE starting with more than one slash.
16655 Reported by Andreas Schwab.
16657 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
16658 properly when ABASE is an absolute file name.
16659 Correct the description of this function.
16660 Include <assert.h>.
16661 Add an assertion and a test driver.
16662 This fixes a bug introduced on 2004-07-02.
16663 Andreas Schwab reported the resulting failure of cp --parents:
16664 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
16666 2005-03-21 Jim Meyering <jim@meyering.net>
16668 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
16669 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
16671 2005-03-21 Jim Meyering <jim@meyering.net>
16672 and Paul Eggert <eggert@cs.ucla.edu>
16674 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
16675 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
16676 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
16677 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
16678 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
16679 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
16680 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
16681 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
16682 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
16683 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
16684 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
16685 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
16686 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
16687 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
16688 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
16689 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
16690 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
16693 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
16695 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
16696 (which shouldn't happen), generate nothing instead of returning 0
16697 immediately, so that nstrftime (NULL, ...) doesn't return 0.
16699 2005-03-16 Bruno Haible <bruno@clisp.org>
16701 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
16702 HAVE_LONGLONG_64BIT.
16704 2005-03-16 Bruno Haible <bruno@clisp.org>
16706 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
16707 HAVE_LONGLONG_64BIT.
16709 2005-03-16 Bruno Haible <bruno@clisp.org>
16711 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
16712 HAVE_LONGLONG_64BIT.
16714 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
16716 * lib/strftime.c (my_strftime): Prepend space to format so that we can
16717 reliably distinguish strftime failure from empty output on POSIX
16720 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
16722 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
16723 (iconv_string): Don't guess a size-zero buffer, as that might cause
16724 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
16725 result would be 'too large', where 'too large' is (heuristically)
16726 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
16727 overflow concerns. This will prevent some unwanted malloc failures
16728 when the inputs are very large.
16730 2005-03-15 Karl Berry <karl@gnu.org>
16732 * config/srclist.txt (config.rpath): from gettext.
16733 * config/config.rpath: update.
16735 2005-03-15 Bruno Haible <bruno@clisp.org>
16737 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
16740 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
16743 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
16746 2005-03-14 Simon Josefsson <jas@extundo.com>
16748 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
16751 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
16753 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
16754 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
16756 * lib/strtol.c: Likewise.
16758 2005-03-14 Jim Meyering <jim@meyering.net>
16760 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
16761 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
16762 to be nonzero so that we (and caller) can detect the difference
16763 between a valid zero-length expansion and an error return, even
16764 when the underlying strftime fails before writing anything into
16767 2005-03-14 Bruno Haible <bruno@clisp.org>
16769 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
16770 Update from GNU gettext 0.14.3.
16772 2005-03-10 Jim Meyering <jim@meyering.net>
16774 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
16776 2005-03-10 Jim Meyering <jim@meyering.net>
16778 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
16779 so that this module works on systems without fchdir.
16781 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
16783 Factor int-properties macros into a single file, except for
16784 glibc-related files.
16785 * lib/intprops.h: New file.
16786 * lib/getloadavg.c: Include it instead of limits.h.
16787 (INT_STRLEN_BOUND): Remove.
16788 * lib/human.c: Include intprops.h.
16789 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
16790 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
16792 * lib/inttostr.h: Include intprops.h instead of limits.h.
16793 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
16794 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
16795 for consistency with intprops.h.
16796 (time_t_is_integer, twos_complement_arithmetic): Use them.
16797 * lib/sig2str.h: Include <signal.h>, intprops.h.
16798 (INT_STRLEN_BOUND): Remove.
16799 * lib/strftime.c (TYPE_SIGNED): Remove.
16800 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
16801 * lib/strtol.c: Adjust comments to match intprops.h.
16802 * lib/userspec.c: Include intprops.h.
16803 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
16804 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
16805 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
16806 instead of rolling our own expressions.
16807 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
16809 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
16811 (my_strftime): Do not mishandle years close to INT_MAX, by doing
16812 the right thing even if adding 1900 would overflow. Similarly
16813 for tm_mon + 1 and tm_yday + 1.
16814 Make %Y always equivalent to %C%y, and similarly for %G and %g.
16815 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
16816 (DO_SIGNED_NUMBER): New macro.
16817 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
16819 2005-03-07 Bruno Haible <bruno@clisp.org>
16821 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
16823 2005-03-07 Bruno Haible <bruno@clisp.org>
16825 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
16827 2005-03-04 Derek R. Price <derek@ximbiot.com>
16829 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
16830 (func_import): Only replace files via --import when they have actually
16833 2005-03-03 Derek R. Price <derek@ximbiot.com>
16835 * m4/mmap-anon.m4: New file.
16836 * m4/pagealign_alloc.m4: New file.
16838 2005-03-03 Derek R. Price <derek@ximbiot.com>
16839 Bruno Haible <bruno@clisp.org>
16841 * modules/pagealign_alloc: New file.
16842 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
16844 2005-03-03 Derek R. Price <derek@ximbiot.com>
16845 Bruno Haible <bruno@clisp.org>
16847 * lib/pagealign_alloc.h: New file.
16848 * lib/pagealign_alloc.c: New file.
16850 2005-03-03 Bruno Haible <bruno@clisp.org>
16852 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
16853 Use an all-permissive copyright notice, recommended by RMS.
16855 2005-03-02 Bruno Haible <bruno@clisp.org>
16857 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
16858 of AIX, the replacement has to be done only after <string.h> is
16859 included, therefore not in config.h. stpncpy.h does the replacement,
16860 and stpncpy.c uses it.
16862 2005-03-02 Bruno Haible <bruno@clisp.org>
16864 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
16867 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
16869 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
16870 The workaround isn't strictly needed for POSIX conformance, and
16871 it's too much of a pain to configure and maintain. We'll ask
16872 people to fix their kernels instead.
16873 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
16874 (NANOSLEEP_BUG_WORKAROUND): Remove.
16875 (xnanosleep): Remove the workaround.
16877 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
16879 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
16880 Reported by Derek Price.
16881 (Include): Add "timespec.h".
16883 * modules/xnanosleep (Depends-on): Remove gethrxtime.
16885 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
16887 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
16888 to detect nanosleep bug.
16890 2005-03-01 Bruno Haible <bruno@clisp.org>
16892 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
16894 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
16896 * modules/gethrxtime: New file.
16897 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
16898 (Depends-on): Add gethrxtime.
16899 (configure.ac): Add gl_XNANOSLEEP.
16900 (Makefile.am): Remove lib_SOURCES line.
16902 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
16904 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
16905 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
16907 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
16909 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
16910 * lib/timespec.h (gettime): Return void, since it always
16911 succeeds now. All uses changed.
16912 * lib/gettime.c (gettime) Likewise.
16913 [HAVE_NANOTIME]: Prefer nanotime.
16914 Assume gettimeofday succeeds, as POSIX requires.
16915 Assime time () succeeds, since other code already does.
16916 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
16917 (timespec_subtract): Remove.
16918 (NANOSLEEP_BUG_WORKAROUND): New constant.
16919 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
16920 things considerably. Use it only on GNU/Linux hosts, since the
16921 workaround shouldn't be needed elsewhere.
16923 2005-02-24 Bruno Haible <bruno@clisp.org>
16925 * modules/gettext (Files): Add m4/glibc2.m4.
16927 2005-02-24 Bruno Haible <bruno@clisp.org>
16929 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
16930 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
16932 Update from GNU gettext 0.14.2.
16933 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
16935 2005-02-24 Bruno Haible <bruno@clisp.org>
16937 * lib/localcharset.c: Update from GNU gettext 0.14.2.
16938 * lib/config.charset: Update from GNU gettext 0.14.2.
16940 2005-02-24 Bruno Haible <bruno@clisp.org>
16942 * lib/gettext.h: Update from GNU gettext 0.14.2.
16944 2005-02-23 Simon Josefsson <jas@extundo.com>
16946 * m4/iconvme.m4: New file.
16948 2005-02-23 Jim Meyering <jim@meyering.net>
16950 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
16952 Thanks to Bruno Haible for catching it.
16954 2005-02-22 Simon Josefsson <jas@extundo.com>
16956 * modules/iconvme: New file.
16958 * MODULES.html.sh: Add iconvme.
16960 2005-02-22 Simon Josefsson <jas@extundo.com>
16962 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
16964 2005-02-22 Simon Josefsson <jas@extundo.com>
16966 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
16968 2005-02-22 Jim Meyering <jim@meyering.net>
16970 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
16973 2005-02-20 Neil Conway <neilc@samurai.com>
16975 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
16976 returned by OSX/Darwin if the specified buffer is not large
16977 enough for the hostname.
16979 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
16981 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
16982 pass it to _help, otherwise the latter coredumps trying to
16983 dereference state.root_argp.
16985 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
16987 * modules/chdir-long (Depends-on): Add memrchr.
16988 * modules/memrchr (Files): Add lib/memrchr.h.
16989 (Include): "memrchr.h".
16991 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
16993 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
16995 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
16997 * lib/memrchr.h: New file.
16998 * lib/chdir-long.c: Include it.
16999 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
17000 Don't bother including stddef.h.
17002 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
17004 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
17006 Include <sys/types.h>, for dev_t.
17007 (ME_DUMMY, ME_REMOTE): Move from here....
17008 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
17009 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
17011 Include mountlist.h first, to test the interface.
17013 2005-01-29 Bruno Haible <bruno@clisp.org>
17015 * lib/progname.c (program_name): Initialize.
17016 Needed when linking statically on MacOS X.
17018 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
17020 Sync from coreutils.
17021 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
17022 (Depends-on): Add c-strtod.
17023 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
17025 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
17027 Sync from coreutils.
17028 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
17030 Remove files that are specific to coreutils.
17031 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
17033 2005-01-28 Bruno Haible <bruno@clisp.org>
17035 * modules/javacomp: New file.
17036 * MODULES.html.sh (Java): Add javacomp.
17038 2005-01-28 Bruno Haible <bruno@clisp.org>
17040 * m4/javacomp.m4: New file, from GNU gettext.
17042 2005-01-28 Bruno Haible <bruno@clisp.org>
17044 * lib/javacomp.sh.in: New file, from GNU gettext.
17045 * lib/javacomp.h: New file, from GNU gettext.
17046 * lib/javacomp.c: New file, from GNU gettext.
17048 2005-01-26 Simon Josefsson <jas@extundo.com>
17050 * lib/gai_strerror.c: Use GPL in header.
17052 2005-01-26 Bruno Haible <bruno@clisp.org>
17054 * modules/javaexec: New file.
17055 * MODULES.html.sh (Java): Add javaexec.
17057 2005-01-26 Bruno Haible <bruno@clisp.org>
17059 * m4/javaexec.m4: New file, from GNU gettext.
17061 2005-01-26 Bruno Haible <bruno@clisp.org>
17063 * lib/javaexec.sh.in: New file, from GNU gettext.
17064 * lib/javaexec.h: New file, from GNU gettext.
17065 * lib/javaexec.c: New file, from GNU gettext.
17067 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
17069 * modules/lchown (Depends-on): Remove lchown.h
17071 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
17073 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
17074 must be defined if the header file was not found, in order
17075 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
17077 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
17079 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
17080 initializers for struct pentry_state.
17081 (__argp_error): Check return value of __asprintf
17082 (__argp_failure): Translate error message
17084 * lib/argp-parse.c: Removed braces around the expansion of N_()
17086 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
17088 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
17089 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
17090 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
17091 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
17092 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
17093 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
17094 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
17095 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
17096 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
17097 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
17098 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
17099 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
17100 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
17101 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
17102 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
17103 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
17104 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
17105 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
17106 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
17107 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
17108 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
17109 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
17110 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
17111 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
17112 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
17113 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
17114 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
17115 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
17116 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
17117 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
17118 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
17119 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
17120 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
17121 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
17122 xstrtol.m4, xstrtoumax.m4, yesno.m4:
17123 Use an all-permissive copyright notice, recommended by RMS.
17125 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
17127 * modules/chdir-long (Depends-on): Remove mempcpy.
17129 2005-01-21 Jim Meyering <jim@meyering.net>
17131 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
17132 same value as for Solaris 9.
17134 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
17135 component length. This included changing the parameter to be
17136 of type `char *' rather than `char const *'.
17137 * lib/chdir-long.h (chdir_long): Update prototype.
17139 * lib/openat.c (fdopendir, fstatat): New functions.
17140 * lib/openat.h: Include headers required for use of DIR and struct
17142 [AT_SYMLINK_NOFOLLOW]: Define.
17143 (fdopendir, fstatat): Add prototypes.
17145 2005-01-21 Bruno Haible <bruno@clisp.org>
17147 * modules/classpath: New file.
17148 * MODULES.html.sh (Java): Add classpath.
17150 2005-01-21 Bruno Haible <bruno@clisp.org>
17152 * lib/classpath.h: New file, from GNU gettext.
17153 * lib/classpath.c: New file, from GNU gettext.
17155 2005-01-20 Simon Josefsson <jas@extundo.com>
17157 * modules/version-etc-fsf: New file.
17159 2005-01-20 Simon Josefsson <jas@extundo.com>
17161 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
17162 * lib/version-etc.c: Remove version_etc_copyright.
17163 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
17164 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
17166 2005-01-20 Simon Josefsson <jas@extundo.com>
17168 * lib/base64.h (isbase64): Add.
17170 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
17171 using a unsigned prototype, don't inline.
17172 (base64_decode): Use it.
17174 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
17176 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
17179 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
17181 * lib/save-cwd.c (save_cwd): Remove code to support the case
17182 where fchdir is missing or flaky.
17184 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
17186 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
17188 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
17190 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
17191 AC_LIBSOURCES now does this.
17192 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
17193 with new ullong_max module.
17195 2005-01-19 Bruno Haible <bruno@clisp.org>
17197 * modules/sh-quote: New file.
17198 * MODULES.html.sh (Executing programs): Add sh-quote.
17200 2005-01-19 Bruno Haible <bruno@clisp.org>
17202 * lib/sh-quote.h: New file, from GNU gettext.
17203 * lib/sh-quote.c: New file, from GNU gettext.
17205 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
17207 Merge from coreutils.
17208 * m4/ullong_max.m4: New file.
17209 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
17210 (gl_MACROS): Assume localeconv exists.
17212 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
17214 Merge changes from coreutils, as described below in several
17215 changelogs dated today.
17217 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
17218 (O_DIRECTORY): Remove; not needed here, since "." must be
17219 a directory. All uses removed.
17220 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
17221 universal on Suns, and we also need to test for IRIX.
17222 Revamp code to use 'if' rather than '#if'.
17223 Avoid unnecessary comparison of cwd->desc to 0.
17225 * lib/utimens.c (futimens): Robustify the previous patch, by checking
17226 for known valid error numbers rather than observed invalid ones.
17228 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
17230 * modules/ullong_max: New file.
17232 * modules/chdir-long, modules/openat: New files.
17233 * modules/save-cwd (Depends-on): Depend on chdir-long.
17234 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
17236 2005-01-18 Jim Meyering <jim@meyering.net>
17238 Merge from coreutils.
17239 * m4/chdir-long.m4, m4/openat.m4: New files.
17240 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
17241 save-cwd.h. Add AC_LIBOBJ for save-cwd.
17242 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
17243 is sane and DOES follow symlinks. Besides, testing 20 different
17244 systems found no broken chown implementations.
17245 Prompted by a change in rsync's copy of this macro.
17246 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
17248 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
17250 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
17251 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
17252 NULL-means-set-to-current-time semantics.
17253 Remove temporary file immediately, rather than waiting
17254 for configure's at-exit trap code to do it.
17256 2005-01-18 Jim Meyering <jim@meyering.net>
17258 * lib/version-etc.c (version_etc_copyright): Update copyright date.
17260 * lib/utimens.c (futimens): Account for the fact that futimes
17261 can also fail with errno == ENOSYS or errno == ENOENT.
17262 Patch from Dmitry V. Levin.
17264 Change the name of the robust chdir function from chdir to chdir_long.
17265 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
17266 (restore_cwd): Use chdir_long, not chdir.
17267 * lib/chdir-long.c: Renamed from chdir.c.
17268 * lib/chdir-long.h: Renamed from chdir.h.
17269 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
17272 2005-01-18 Bruno Haible <bruno@clisp.org>
17274 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
17275 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
17276 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
17277 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
17278 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
17279 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
17280 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
17281 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
17282 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
17283 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
17284 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
17285 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
17286 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
17287 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
17288 Use an all-permissive copyright notice, recommended by RMS.
17290 2005-01-18 Bob Proulx <bob@proulx.com>
17292 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
17293 simplify offsetof() macro construct to avoid compile failure with
17294 native HP-UX 11.0 ANSI C compiler.
17296 2005-01-17 Bruno Haible <bruno@clisp.org>
17298 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
17299 redundant because stpncpy.m4 takes care of it.
17301 2005-01-17 Bruno Haible <bruno@clisp.org>
17303 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
17305 2005-01-17 Bruno Haible <bruno@clisp.org>
17307 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
17310 2005-01-17 Bruno Haible <bruno@clisp.org>
17312 * lib/fwriteerror.h (fwriteerror): Change specification to include
17314 * lib/fwriteerror.c: Include <stdbool.h>.
17315 (fwriteerror): At the end, close the file stream. Record whether
17316 stdout was already closed.
17318 2005-01-17 Bruno Haible <bruno@clisp.org>
17320 * lib/execute.c (environ): Declare if needed.
17321 * lib/pipe.c (environ): Likewise.
17322 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
17324 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
17326 * modules/argp: Depend on vsnprintf
17328 2005-01-10 Jim Meyering <jim@meyering.net>
17330 * modules/closeout (Depends-on): Add atexit.
17332 2005-01-06 Bruno Haible <bruno@clisp.org>
17334 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
17336 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
17338 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
17339 definitions to be after all include files, to avoid collisions.
17340 Problem reported by Bob Proulx.
17342 2005-01-04 Jim Meyering <jim@meyering.net>
17344 Changes imported from coreutils.
17345 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
17346 as the mkstemp template, use a temporary directory and an
17347 8.3-friendly template to avoid trouble on systems like DJGPP.
17348 Reported by Juan M. Guerrero via Stepan Kasal.
17349 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
17350 close. Remove the temporary directory right away, rather than waiting
17351 for configure's at-exit trap code to do it.
17352 Suggestion from Stepan Kasal.
17354 2005-01-01 Simon Josefsson <jas@extundo.com>
17356 * gnulib-tool: Print #include directives when --import'ing.
17358 2004-12-28 Simon Josefsson <jas@extundo.com>
17360 * tests/test-base64.c: Include required header files. Remove
17363 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
17365 * modules/error (Depends-on): Remove gettext.
17367 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
17369 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
17370 not needed. This removes a dependency on the gettext module.
17371 [defined _LIBC]: Do not include <libintl.h>; not needed.
17373 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
17375 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
17376 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
17378 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
17380 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
17383 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
17385 * modules/getdate (Depends-on): Remove alloca-opt.
17387 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
17389 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
17391 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
17393 * lib/argp-parse.c: Include <stddef.h>.
17394 (alignof, alignto): New macros.
17395 (parser_init): Don't assume that void * is aligned sufficiently
17398 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
17399 need to extend the stack.
17400 (YYINITDEPTH): New macro, so that the initial stack isn't overly
17403 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
17405 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
17407 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
17409 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
17410 (2004-10-24) change. Apparently this was a false alarm.
17412 * modules/getdate: Depend on alloca-opt, not alloca.
17414 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
17416 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
17417 Remove now-obsolete comment about AIX.
17418 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
17419 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
17420 (YYMAXDEPTH): New macro.
17422 2004-12-18 Simon Josefsson <jas@extundo.com>
17424 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
17426 2004-12-18 Bruno Haible <bruno@clisp.org>
17428 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
17430 2004-12-18 Bruno Haible <bruno@clisp.org>
17432 * lib/fatal-signal.c (fatal_signals): Make non-const.
17433 (init_fatal_signals): New function.
17434 (uninstall_handlers, install_handlers): Ignore signals that were set to
17436 (at_fatal_signal): Call init_fatal_signals.
17437 (init_fatal_signal_set): Likewise. Ignore signals that were set to
17439 Reported by Paul Eggert.
17441 2004-12-18 Bruno Haible <bruno@clisp.org>
17443 * doc/alloca.texi: New file.
17444 * doc/alloca-opt.texi: New file.
17446 2004-12-17 Jim Meyering <jim@meyering.net>
17448 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
17449 Otherwise, install-sh could exit with improper exit status when
17450 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
17452 2004-12-16 Simon Josefsson <jas@extundo.com>
17454 * tests/test-base64.c: Add license.
17456 2004-12-15 Stepan Kasal <address@hidden>
17458 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
17460 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
17462 * modules/getcwd (Files): Add m4/d-ino.m4.
17463 Suggested by Mark D. Baushke.
17465 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
17467 * lib/getdate.y (textint): New member "negative".
17468 (time_zone_hhmm): New function.
17469 Expect 14 shift-reduce conflicts, not 13.
17470 (o_colon_minutes): New rule.
17471 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
17472 (yylex): Set the "negative" member of signed numbers.
17474 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
17476 * doc/getdate.texi (Time of day items, Time zone items):
17477 Describe new formats +00:00, UTC+00:00.
17479 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
17481 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
17482 spurious "-l"s. Problem reported by Stepan Kasal.
17484 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
17486 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
17487 in Autoconf 2.59. Problem reported by Mark D. Baushke.
17489 2004-12-04 Simon Josefsson <jas@extundo.com>
17491 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
17492 Vandoorselaere <yoann@prelude-ids.org>.
17494 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
17496 Changes imported from coreutils.
17497 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
17499 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
17501 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
17503 Changes imported from coreutils.
17504 * lib/hard-locale.c: Assume <locale.h> exists.
17505 Include "strdup.h".
17506 (GLIBC_VERSION): New macro.
17507 (hard_locale): Assume setlocale exists.
17508 Rewrite to avoid #ifdef.
17509 Use strdup rather than malloc + strcpy.
17510 * lib/human.c: Assume <locale.h> exists.
17511 (human_readable): Assume localeconv exists.
17513 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
17515 * modules/hard-locale (Depends-on): Add strdup.
17517 2004-12-01 Jakub Jelinek <jakub@redhat.com>
17519 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
17520 convert T2, not T. (Imported from libc.)
17522 2004-11-30 Simon Josefsson <jas@extundo.com>
17524 * modules/restrict (License): Change to LGPL.
17526 2004-11-30 Simon Josefsson <jas@extundo.com>
17528 * m4/restrict.m4: Add copyright and copying conditions.
17530 2004-11-30 Simon Josefsson <jas@extundo.com>
17532 * m4/base64.m4: New file.
17534 2004-11-30 Simon Josefsson <jas@extundo.com>
17536 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
17539 * tests/test-base64.c: New file.
17541 * modules/base64: New file.
17543 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
17545 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
17546 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
17548 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
17550 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
17552 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
17553 (__getcwd.c): Don't restore errno; glibc doesn't.
17554 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
17555 first, falling back to our code only if its results look suspicious.
17556 Ensure that the resulting buffer is only as large as necessary.
17558 * lib/readutmp.c: Include readutmp.h first.
17559 Include <errno.h>, since readutmp.h no longer does that.
17560 * lib/readutmp.h: Don't include <errno.h>,
17561 <sys/param.h>, <time.h>; not needed to establish interface.
17562 (errno): Remove decl.
17563 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
17564 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
17565 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
17567 2004-11-28 Simon Josefsson <jas@extundo.com>
17569 * lib/base64.h, base64.c: New file.
17571 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
17573 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
17575 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
17577 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
17578 (Depends-on): Remove pathmax, same. Add mempcpy.
17579 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
17580 (Makefile.am): Append getcwd.h to lib_SOURCES.
17581 (Include): Add getcwd.h.
17582 (Maintainer): Change from Jim Meyering to "all, glibc",
17583 since getdate now uses intended-for-glibc code.
17584 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
17585 (Depends-on): Depend on getcwd. Do not depend on pathmax.
17587 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
17589 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
17590 HP's ANSI C compiler.
17591 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
17592 Declaring int functions causes warnings on some modern systems and
17593 shouldn't be needed to compile on ancient ones.
17594 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
17597 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
17598 with the following changes.
17599 (__set_errno): Parenthesize properly.
17600 Include <stdbool.h>.
17601 (MIN, MAX, MATCHING_INO): New macros.
17602 (__getcwd): Define with prototype, not K&R form.
17603 Use heuristics to allocate default buffer on stack if possible.
17604 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
17605 behavior, and to avoid the PATH_MAX limit when computing
17607 Use MATCHING_INO to compare inode number to file.
17608 Check for arithmetic overflow in size calculations.
17609 Fix bug in reallocation of dot array that caused getcwd to fail
17610 on directories nested deeper than 75.
17611 Be more careful about saving errno on error.
17612 Do not use realloc; use only free+malloc, as this is a bit
17613 more flexible and avoids a needless copy operation.
17614 Do not inspect st_dev and st_ino for symbolic links; POSIX
17615 doesn't specify the latter.
17616 Check for closedir errors.
17617 Avoid needless casts.
17618 Use "#ifdef weak_alias" around weak_alias, to be like other
17620 The following changes to getcwd.c have effect only when used in
17621 gnulib; they have no effect inside glibc proper.
17622 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
17623 as alloca isn't used.
17624 (alloca, __alloca): Likewise.
17625 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
17626 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
17627 unconditionally, as gnulib assumes C89 or better.
17628 Do not include <sys/param.h>.
17629 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
17630 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
17632 (NULL) [!defined NULL]: Remove; we assume C89 or better.
17633 Include <dirent.h> in a way that is compatible with modern Autoconf.
17634 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
17635 New macros, if not already defined.
17636 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
17637 Use "_LIBC", not "defined _LIBC", for consistency.
17638 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
17640 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
17641 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
17642 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
17643 credit only to Jim Meyering and adjust the copyright dates.
17644 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
17645 <stdlib.h>, <unistd.h>, "pathmax.h".
17646 Instead, include "xgetcwd.h" (first) and "getcwd.h".
17647 (INITIAL_BUFFER_SIZE): Remove.
17648 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
17650 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
17652 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
17653 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
17654 Use the _ONCE methods, for efficiency.
17655 Check for fcntl.h. In test program, include <errno.h>
17656 and <fcntl.h> if available. Remove old K&R cruft from
17657 test program. Check for common errors in GNU/Linux,
17658 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
17659 don't do AC_LIBOBJ, as that's getcwd.m4's job.
17660 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
17661 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
17663 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
17664 accommodate new getcwd.c.
17665 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
17666 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
17667 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
17668 that's all we need now.
17670 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
17672 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
17673 argp-parse.c depends on getopt internals, that means we should
17674 always use our getopt, to be on the safe side.
17675 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
17676 order not to spoil the result of an eventual previous invocation
17677 of gl_GETOPT_SUBSTITUTE.
17679 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
17681 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
17682 redefinition warnings. To avoid them, include the defines
17683 in `#if !defined __need_getopt ... #endif'. The only place
17684 where __getopt_argv_const is used is in definitions
17685 of getopt_long and getopt_long_only below, which are as well
17686 protected by `#ifndef __need_getopt'.
17687 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
17688 __need_getopt after including <stdio.h> and <unistd.h> These
17689 headers might have defined it.
17691 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
17693 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
17695 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
17697 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
17698 (futimens): New function, which uses futimes if available.
17699 (futimens, utimens): Support timespec==NULL, with same semantics
17700 as utime and utimens.
17701 * lib/utimens.h (futimens): New decl.
17703 2004-11-23 Jim Meyering <jim@meyering.net>
17705 * lib/getopt_.h: Remove trailing blanks.
17707 2004-11-23 Jim Meyering <jim@meyering.net>
17709 * lib/__fpending.c: Add comment.
17711 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
17713 * modules/canonicalize (Depends-on): Add xreadlink.
17714 Problem reported by James Youngman.
17716 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
17718 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
17720 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
17721 optopt): Use them instead of invoking ## directly; otherwise, the
17722 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
17724 2004-11-19 Bruno Haible <bruno@clisp.org>
17726 * lib/strtok_r.c: Move comments from here...
17727 * lib/strtok_r.h: ... to here.
17729 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
17731 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
17732 implementations that mishandle size_t overflow.
17734 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
17736 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
17737 might fail. Problem reported by Yoann Vandoorselaere.
17738 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
17739 implementations that mishandle size_t overflow.
17741 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
17743 * modules/canon-host (Depends-on): Add strdup.
17745 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
17747 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
17749 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
17751 * lib/canon-host.c: Include "strdup.h".
17752 (canon_host): Use getaddrinfo if available, so that IPv6 works.
17753 Use strdup instead of malloc/strcpy to duplicate strings.
17755 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
17756 (human_space_before_unit): New constant.
17757 * lib/human.c (human_readable): Support it.
17759 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
17760 (xgetcwd): Set errno correctly when failing.
17761 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
17762 the failure is actually due to a PATH_MAX problem.
17764 Further getopt changes to make it more likely that glibc will
17765 buy the changes back.
17766 * lib/getopt.c (POSIXLY_CORRECT): New constant.
17767 (getopt): Use it, so to preserve glibc semantic
17768 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
17769 when compiling for libc.
17770 * lib/getopt_.h (__getopt_argv_const): Bring it back.
17771 (getopt_long, getopt_long_only): Use it.
17773 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
17774 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
17775 (getopt): Argv is now char * const *, as per standard.
17776 (_getopt_internal_r, _getopt_internal): Argv is now char **,
17777 not char *__getopt_argv_const *.
17778 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
17779 _getopt_long_only_r): Likewise.
17780 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
17781 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
17782 _getopt_long_r, _getopt_long_only_r): Likewise.
17783 * lib/getopt_.h (__getopt_argv_const): Remove.
17784 (getopt): Argv is now char * const *, as per standard.
17786 * lib/getdate.y (tORDINAL): New token.
17787 (day, relunit): Allow it for relative times.
17788 (relative_time_table): Use tORDINAL for ordinals.
17790 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
17792 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
17793 Document that "second" isn't allowed as an ordinal number.
17795 2004-11-16 Jim Meyering <jim@meyering.net>
17797 * modules/closeout (Depends-on): Add fpending.
17799 2004-11-15 Jim Meyering <jim@meyering.net>
17801 * lib/closeout.c: Include "__fpending.h" once again.
17802 Include <stdbool.h>.
17803 (close_stdout): Don't fail just because stdout was closed initially,
17804 since some programs don't write to stdout in the normal course of
17805 operation (other than --version and --help), and we don't want this
17806 function to make e.g. `touch file >&-' fail.
17807 But do fail if it was closed and someone has tried to write to it.
17808 E.g., `printf foo >&-' must fail.
17810 2004-11-13 Jim Meyering <jim@meyering.net>
17812 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
17814 2004-11-12 Simon Josefsson <jas@extundo.com>
17816 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
17817 small doc fix is still pending.
17819 2004-11-11 Simon Josefsson <jas@extundo.com>
17821 * modules/strtok_r: New file.
17823 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17826 2004-11-11 Simon Josefsson <jas@extundo.com>
17828 * m4/strtok_r.m4: New file.
17830 * m4/getopt.m4: Replace opterr.
17832 2004-11-11 Simon Josefsson <jas@extundo.com>
17834 * lib/strtok_r.h, strtok_r.c: New file.
17836 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
17838 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
17839 of replacing opterr, getopt, etc. This should handle the
17840 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
17842 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
17844 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
17845 we can stop lying to compilers about the constness of argv when we
17846 are compiled outside glibc.
17847 (getopt, getopt_long, getopt_long_only): Use it.
17848 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
17849 _getopt_internal, getopt): Likewise.
17850 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
17851 _getopt_long_only_r): Likewise.
17852 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
17853 _getopt_long_r, _getopt_long_only_r): Likewise.
17855 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
17856 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
17857 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
17858 the other external symbols.
17859 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
17860 declaration, since the above renaming now works around collisions.
17862 2004-11-11 Jim Meyering <jim@meyering.net>
17864 * lib/linebreak.c: Remove trailing blanks.
17865 * lib/alloca_.h: Likewise.
17866 * lib/acosl.c: Likewise.
17867 * lib/euidaccess.c: Likewise.
17868 * lib/allocsa.h: Likewise.
17870 2004-11-10 Simon Josefsson <jas@extundo.com>
17872 * m4/getaddrinfo.m4: New file.
17874 2004-11-10 Simon Josefsson <jas@extundo.com>
17876 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
17878 2004-11-10 Simon Josefsson <jas@extundo.com>
17880 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17883 * modules/getaddrinfo: New file.
17885 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
17887 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
17889 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
17891 * lib/mktime.c (SHR): New macro, which is a portable
17892 substitute for >> that should work even on Crays.
17893 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
17894 Problem reported by Mark D. Baushke in
17895 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
17896 * lib/getdate.y (SHR): Likewise.
17898 * lib/strftime.c (SHR): Likewise.
17900 * lib/quotearg.c (struct quoting_options): Use unsigned int for
17901 quote_these_too, so that right shifts are well defined. All uses
17904 2004-11-10 Jim Meyering <jim@meyering.net>
17906 Ensure that no close failure goes unreported.
17907 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
17908 return early when it seems there's nothing to flush.
17909 Don't include __fpending.h.
17911 2004-11-10 Jim Meyering <jim@meyering.net>
17913 * modules/closeout (Depends-on): Remove fpending.
17915 2004-11-10 Jim Meyering <jim@meyering.net>
17917 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
17919 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
17921 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
17923 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
17924 and AC_REQUIRE when possible, to avoid duplicate checks.
17925 Check for <wchar.h>.
17927 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
17929 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
17931 2004-11-09 Bruno Haible <bruno@clisp.org>
17933 * m4/sockpfaf.m4: New file.
17935 2004-11-05 Bruno Haible <bruno@clisp.org>
17937 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
17938 Reported by Mark D. Baushke <mdb@cvshome.org>.
17940 2004-11-04 Bruno Haible <bruno@clisp.org>
17942 2004-09-11 Bruno Haible <bruno@clisp.org>
17943 * allocsa.valgrind: New file.
17944 2004-02-06 Bruno Haible <bruno@clisp.org>
17945 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
17946 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
17947 Reported by Christopher Seip <chris.seip@hp.com>.
17949 2004-11-04 Bruno Haible <bruno@clisp.org>
17951 * modules/allocsa (Files): Add lib/allocsa.valgrind.
17952 (Makefile.am): Distribute it.
17954 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
17956 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
17957 with errno == ERANGE if the buffer is too small.
17958 Problem reported by Mark D. Baushke.
17960 2004-11-03 Albert Chin <china@thewrittenword.com>
17961 Paul Eggert <eggert@cs.ucla.edu>
17963 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
17964 equivalent, substitute $ac_type for equivalent type rather than
17965 blindly using uint32_t *always* which won't work if uint32_t is not
17966 available. Define _UINT32_T to work around typedef of uint32_t if
17967 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
17970 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
17972 * m4/jm-macros.m4: Sync from coreutils.
17973 (gl_MACROS): Check for mbrlen, for pathchk.
17974 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
17976 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
17978 * lib/xreadlink.c (MAXSIZE): New macro.
17979 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
17980 size does not exceed MAXSIZE. Avoid cast.
17981 As suggested by Mark D. Baushke in
17982 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
17983 if readlink fails with buffer size just under MAXSIZE, try again
17986 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
17988 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
17990 2004-11-02 Derek R. Price <derek@ximbiot.com>
17991 and Paul Eggert <eggert@cs.ucla.edu>
17993 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
17994 (get_date): Overparenthesize to avoid GCC warning.
17996 2004-11-02 Bruno Haible <bruno@clisp.org>
17998 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
18001 2004-11-02 Bruno Haible <bruno@clisp.org>
18003 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
18004 function returns void.
18006 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
18008 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
18009 fflush_unlocked, flockfile, funlockfile, funlockfile,
18010 fputs_unlocked, putc_unlocked.
18012 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
18014 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
18015 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
18018 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
18020 * modules/getdate (Files): Add doc/getdate.texi.
18021 (Depends-on): Add setenv, xalloc.
18023 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
18025 * lib/getdate.y: Add support for TZ="foo" within a date string.
18026 Fix some bugs near time_t boundaries. Reject dates with
18027 out-of-range components, e.g., "Sept 31".
18028 Include <stdlib.h>, "setenv.h", "xalloc.h".
18029 (ISDIGIT_LOCALE): Remove; unused.
18030 Note that the TZ and time functions used here are not reentrant.
18031 (mktime_ok, get_tz): New functions.
18032 (TZBUFSIZE): New constant.
18033 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
18034 This requires that we sometimes generate our own TZ="XXX..." setting.
18036 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
18038 * doc/getdate.texi: New file, from coreutils with modifications for
18039 the new TZ parsing.
18041 2004-10-27 Derek R. Price <derek@ximbiot.com>
18043 * lib/mktime.c (not_equal_tm): Remove redundant check.
18045 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
18047 * modules/regex (lib_SOURCES): Add regex.c.
18048 Reported by James Youngman in
18049 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
18051 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
18053 * lib/getdate.y: Use Bison 1.875 features, and some minor
18054 code cleanups. This change does not affect semantics.
18055 Don't include <stdlib.h>; no longer needed.
18056 Don't include unlocked-io.h; only the "#if TEST" code uses
18057 stdio, and performance isn't crucial there.
18058 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
18059 Bison 1.875 features as described below.
18060 All uses of "PC." replaced by "pc->".
18061 (YYSTYPE): Add a forward declaration.
18062 (yylex, yyerror): Use full prototypes in forward decls.
18063 Use "%pure-parser" rather than obsolescent "%pure_parser".
18064 Use %parse-param and %lex-param instead of obsolescent
18065 YYPARSE_PARAM and YYLEX_PARAM.
18066 (meridian_table, month_and_day_table, time_units_table,
18067 relative_time_table, time_zone_table, military_table,
18068 lookup_zone, lookup_word, get_date):
18069 Use NULL instead of 0 where appropriate.
18070 (to_hour): Avoid abort (), to avoid a dependency on
18072 (yyerror, yylex): Now accepts parser_control * arg.
18073 (main) [TEST]: Use '\0' rather than 0 for char.
18075 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
18077 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
18079 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
18081 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
18082 It's now the caller's responsibility to handle the case where
18083 !HAVE_GETPAGESIZE && !defined getpagesize.
18085 * lib/mktime.c (leapyear): Arg is long int, not int.
18087 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
18089 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
18091 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
18093 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
18094 missing. Problem reported by James Youngman.
18096 2004-10-16 Simon Josefsson <jas@extundo.com>
18098 * gnulib-tool: Fix comments. Fix parse problem.
18099 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
18101 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
18103 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
18104 implementation of getopt_long. Problem reported by Alexander Taler in:
18105 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
18107 2004-10-15 Bruno Haible <bruno@clisp.org>
18109 * gnulib-tool: Untabify. Initialize supplied_libname.
18110 (func_usage): More homogenous output.
18111 (func_modules_transitive_closure, func_modules_to_filelist,
18112 func_emit_lib_Makefile_am): New functions.
18113 (func_import): New function, extracted from big case statement. Use
18114 func_get_license, func_modules_transitive_closure,
18115 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
18116 opt_lgpl. Don't use test -a, as it's not portable.
18117 (func_create_testdir): Use func_modules_transitive_closure,
18118 func_modules_to_filelist, func_emit_lib_Makefile_am.
18120 2004-10-15 Bruno Haible <bruno@clisp.org>
18122 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
18124 2004-10-15 Bruno Haible <bruno@clisp.org>
18126 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
18127 the portions belonging to each module.
18128 Suggested by Derek Robert Price <derek@ximbiot.com>.
18130 2004-10-12 Simon Josefsson <jas@extundo.com>
18132 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
18133 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
18136 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
18138 * modules/vsnprintf: New file.
18140 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
18142 * m4/vsnprintf.m4: New file.
18144 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
18146 * lib/vsnprintf.h: New file.
18147 * lib/vsnprintf.c: New file.
18149 2004-10-11 Bruno Haible <bruno@clisp.org>
18151 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
18154 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
18156 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
18158 2004-10-07 Bruno Haible <bruno@clisp.org>
18160 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
18161 fits into the provided buffer.
18163 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
18165 * lib/diacrit.c, diacrit.h: Add GPL notice.
18167 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
18169 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
18170 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
18171 This avoids a potential constant-folding bug.
18173 2004-10-05 Bruno Haible <bruno@clisp.org>
18175 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
18176 for the declaration of strsep.
18178 2004-10-05 Bruno Haible <bruno@clisp.org>
18180 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
18182 2004-10-04 Simon Josefsson <jas@extundo.com>
18184 * modules/memmem: New file.
18185 * tests/test-memmem.c: New file.
18186 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
18188 2004-10-04 Simon Josefsson <jas@extundo.com>
18190 * m4/memmem.m4: New file.
18192 2004-10-04 Simon Josefsson <jas@extundo.com>
18194 * lib/memmem.h: New file.
18195 * lib/memmem.c: New file, taken from glibc.
18197 2004-10-04 Simon Josefsson <jas@extundo.com>
18199 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
18200 '#ifdef USE_UNLOCKED_IO'.
18202 2004-10-04 Simon Josefsson <jas@extundo.com>
18204 * config/srclist.txt: Add memmem from glibc.
18206 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
18208 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
18210 * modules/argmatch, modules/argp, modules/closeout, modules/error,
18211 modules/exclude, modules/getdate, modules/getline,
18212 modules/getndelim2, modules/getpass, modules/getpass-gnu,
18213 modules/getusershell, modules/linebuffer, modules/md5,
18214 modules/mountlist, modules/posixtm, modules/readtokens,
18215 modules/readutmp, modules/regex, modules/sha1,
18216 modules/version-etc, modules/yesno:
18217 Remove dependency on unlocked-io.
18219 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
18221 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
18223 * m4/unlocked-io.m4: Add copyright notice.
18224 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
18226 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
18228 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
18229 * lib/xmalloc.c (xmemdup): Likewise.
18230 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
18231 XFREE): Remove these long-obsolescent macros.
18232 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
18233 * lib/xstrdup.c: Remove.
18235 * lib/regex.c (re_comp): Cast gettext return value to char *,
18236 Problem reported by Martin Neitzel via Mark D. Baushke.
18238 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
18240 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
18241 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
18242 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
18243 regex.c, sha1.c, version-etc.c, yesno.c:
18244 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
18245 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
18246 the includer's responsibility.
18248 Sync from coreutils.
18250 * lib/modechange.c (mode_compile): Don't decrement a pointer that
18251 points to the start of a string, as the C Standard says the
18252 resulting behavior is undefined.
18254 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
18255 simple -> simple_backups, numbered_existing ->
18256 numbered_existing_backups, numbered -> numbered_backups
18257 to avoid shadowing problems. All uses changed.
18258 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
18259 * lib/backupfile.c (check_extension, numbered_backup):
18260 Rename locals to avoid shadowing 'basename'.
18261 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
18264 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
18265 * lib/.cvsignore: Add getopt.h.
18267 2004-10-04 Bruno Haible <bruno@clisp.org>
18269 * modules/README: New file.
18270 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
18273 2004-10-02 Jim Meyering <jim@meyering.net>
18275 * lib/dirfd.h, getpagesize.h: Add copyright notice.
18277 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
18279 * modules/strsep: New file.
18281 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
18283 * m4/strsep.m4: New file.
18285 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
18287 * lib/strsep.h: New file.
18288 * lib/strsep.c: New file.
18290 2004-10-01 Simon Josefsson <jas@extundo.com>
18292 * lib/snprintf.c (snprintf): Handle size==0.
18294 2004-10-01 Simon Josefsson <jas@extundo.com>
18295 Bruno Haible <bruno@clisp.org>
18297 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
18298 (snprintf): Declare 'args'.
18300 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
18302 * lib/snprintf.c: Remove comments as to why each header is needed.
18304 2004-10-01 Bruno Haible <bruno@clisp.org>
18306 * MODULES.html.sh: Add strsep.
18308 2004-09-30 Simon Josefsson <jas@extundo.com>
18310 * modules/snprintf: New file.
18312 2004-09-30 Simon Josefsson <jas@extundo.com>
18314 * m4/snprintf.m4: New file.
18316 2004-09-30 Simon Josefsson <jas@extundo.com>
18318 * lib/snprintf.h, lib/snprintf.c: New files.
18320 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
18322 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
18323 (hol_entry_help): Never translate an empty string.
18324 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
18325 * lib/argp.h (OPTION_NO_TRANS): New option.
18327 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
18329 * modules/argp (Maintainer): Replace Simon Josefsson
18330 by Sergey Poznyakoff.
18332 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
18334 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
18335 changes merged back into glibc.
18337 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
18339 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
18341 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
18343 * lib/xvasprintf.c: Include xalloc.h.
18344 (xvasprintf): Use xalloc_die, not xmalloc_die.
18346 2004-09-29 Bruno Haible <bruno@clisp.org>
18348 * modules/alloca-opt: New file, derived from modules/alloca.
18349 * modules/allocsa: Depend on alloca-opt instead of alloca.
18350 * modules/setenv: Likewise.
18351 * modules/vasnprintf: Likewise.
18352 * MODULES.html.sh: Add alloca-opt.
18354 2004-09-28 Simon Josefsson <jas@extundo.com>
18356 * gnulib-tool: New parameter --lgpl, to asseert that modules are
18357 LGPL, and to replace license template from GPL to LGPL.
18359 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
18361 * modules/dummy: Change license to LGPL.
18363 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
18365 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
18367 2004-09-24 Simon Josefsson <jas@extundo.com>
18369 * modules/minmax (License): Change from GPL to LGPL.
18371 2004-09-23 Simon Josefsson <jas@extundo.com>
18373 * gnulib-tool (--import): Typo.
18375 2004-09-23 Simon Josefsson <jas@extundo.com>
18377 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
18379 2004-09-22 Bruno Haible <bruno@clisp.org>
18381 * modules/*: Add 'License' field.
18382 * gnulib-tool: Accept --extract-license option.
18383 (func_get_license): New function.
18385 2004-09-21 Bruno Haible <bruno@clisp.org>
18387 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
18388 Reported by Simon Josefsson.
18390 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
18392 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
18393 gl_AC_TYPE_LONG_LONG.
18395 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
18397 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
18399 2004-09-18 Simon Josefsson <jas@extundo.com>
18400 and Paul Eggert <eggert@cs.ucla.edu>
18402 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
18403 calls with autoreconf. Define GL_LIB.
18405 2004-09-14 Karl Berry <karl@gnu.org>
18407 * config/srclist.txt: unsync setenv.c, sigh.
18409 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
18411 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
18412 Problem reported by Bruno Haible in:
18413 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
18415 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
18417 * config/srclist.txt: Comment out argp-pvh.c.
18419 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
18421 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
18422 in case some system header has #define'd it. Problem reported by
18423 Soeren D. Schulze in
18424 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
18426 2004-09-09 Karl Berry <karl@gnu.org>
18428 * regex.[ch]: delete from the root. These were supposed to be
18429 synced with emacs cvs, but this has not happened for about
18430 a year, and anyway nothing else uses emacs regex.[ch].
18431 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
18432 lib/regex[.ch] is untouched.
18434 2004-09-09 Bruno Haible <bruno@clisp.org>
18436 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
18438 2004-09-09 Bruno Haible <bruno@clisp.org>
18440 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
18442 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
18444 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
18446 * modules/xvasprintf: New file.
18447 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
18449 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
18451 * lib/xvasprintf.h: New file.
18452 * lib/xvasprintf.c: New file.
18453 * lib/xasprintf.c: New file.
18455 2004-09-08 Bruno Haible <bruno@clisp.org>
18457 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
18459 2004-09-08 Bruno Haible <bruno@clisp.org>
18461 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
18462 length is > INT_MAX.
18463 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
18466 2004-09-08 Bruno Haible <bruno@clisp.org>
18468 * lib/stdint_.h: New file, taken from GNU clisp.
18470 2004-09-08 Bruno Haible <bruno@clisp.org>
18471 Oskar Liljeblad <oskar@osk.mine.nu>
18473 * modules/stdint: New file.
18474 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
18476 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
18478 Import from coreutils.
18479 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
18480 strings on unbounded length. alloca's performance benefits aren't
18481 that important here.
18482 (V_STRDUP): Remove.
18483 (parse_with_separator): New function, with most of the internals
18484 of the old parse_user_spec. Allow user to omit both user and group,
18485 for compatibility with FreeBSD.
18486 Clone only the user name, not the entire spec.
18487 Do not set *uid, *gid unless entirely successful.
18488 Avoid memory leak in some failing cases.
18489 Fix regression for USER.GROUP reported by Dmitry V. Levin in
18490 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
18491 (parse_user_spec): Rewrite to use parse_with_separator.
18493 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
18495 * modules/userspec: Don't depend on alloca.
18497 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
18499 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
18501 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
18503 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
18504 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
18505 utimecmp, utimens, xnanosleep. Rename sha to sha1.
18507 2004-08-16 Simon Josefsson <jas@extundo.com>
18509 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
18510 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
18511 Add --dry-run for --import.
18512 Let user provided command line parameters override configure.ac
18515 2004-08-12 Simon Josefsson <jas@extundo.com>
18517 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
18518 as discussed with Paul Eggert in threads rooted at
18519 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
18521 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
18522 Before, the test was empty, and relied on ELIDE_CODE in source
18524 (gl_PREREQ_GETOPT): New macro.
18525 (gl_GETOPT): Use them.
18527 2004-08-12 Simon Josefsson <jas@extundo.com>
18529 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
18530 * lib/getopt_.h: Renamed from getopt.h.
18532 2004-08-12 Simon Josefsson <jas@extundo.com>
18534 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
18535 Change default library name from libfoo to libgnu.
18536 Now, if you have a configure.ac that says:
18539 gl_MODULES(error getopt etcetera)
18541 you can import all you need by running:
18542 ../gnulib/gnulib-tool --import
18544 * modules/getopt (Files): Rename getopt.h to getopt_.h.
18545 (Makefile.am): Rewrite, use logic from argz.
18546 (Include): Use <getopt.h> instead of "getopt.h".
18548 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
18550 * modules/argp (Files): Add m4/unlocked-io.m4.
18551 (Depends-on): Add extensions.
18553 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
18555 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
18556 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
18557 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
18558 Check for program_invocation_name, program_invocation_short_name,
18559 flockfile, funlockfile, features.h, _getopt_long_only_r.
18561 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
18563 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
18564 its complicated substitute.
18565 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
18566 and program_invocation_name.
18567 (__argp_basename) [!_LIBC]: Remove; the only use was
18568 replaced by its body.
18569 (__argp_short_program_name): Change condition from
18570 !defined __argp_short_program_name to
18571 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
18572 to match argp-namefrob.h.
18573 (__argp_failure): Don't assume strerror_r returns char *.
18574 * lib/argp-parse.c (N_): Define unconditionally.
18575 (argp_default_options): Fill out initializers with 0 to avoid
18578 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
18580 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
18583 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
18585 Merge from coreutils.
18587 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
18589 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
18590 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
18592 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
18594 Merge from coreutils.
18596 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
18597 wmemchr or wmemcpy. Problem reported by Robert Dahlem
18598 for Reliant Unix 5.43.
18600 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
18601 (union fooround): Use uintmax_t, not long int.
18602 The rest is a merge from libc:
18603 [defined _LIBC]: Include <shlib-compat.h>.
18604 (_obstack) [defined _LIBC]: Remove after 2.3.4.
18606 * lib/settime.c (settime): Recode to avoid warning with
18609 * lib/strverscmp.c: Convert to UTF-8.
18611 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
18613 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
18616 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
18618 * modules/xalloc-die: New file.
18619 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
18621 * modules/md5 (Files): Add m4/uint32_t.m4.
18622 * modules/sha1: Renamed from modules/sha.
18624 Rename lib/sha.h to lib/sha1.h.
18625 Rename lib/sha.c to lib/sha1.c.
18626 Rename m4/sha.m4 to m4/sha1.m4.
18627 (lib_SOURCES): Likewise.
18628 (configure.ac): Rename gl_SHA to gl_SHA1.
18629 (Include): sha.h -> sha1.h.
18631 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
18633 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
18634 * m4/sha1.m4: Renamed from sha.m4.
18635 (gl_SHA1): Renamed from gl_SHA. All uses changed.
18637 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
18639 * lib/obstack.h (obstack_empty_p):
18640 Don't assume that chunk->contents is suitably aligned.
18641 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
18642 Likewise. Problem reported by Benno in
18643 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
18645 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
18646 readable. This could be improved further but it'd take some work.
18648 2004-08-08 Simon Josefsson <jas@extundo.com>
18650 * modules/xgethostname (Depends-on): Remove exit and error (not
18653 * modules/getpass-gnu: Add getpass.h.
18654 (Depends-on): Add stdbool.
18655 * modules/getpass: Add getpass.h.
18657 2004-08-08 Simon Josefsson <jas@extundo.com>
18659 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
18660 Check getpass declaration.
18662 2004-08-08 Simon Josefsson <jas@extundo.com>
18664 * lib/xgethostname.c: Don't include error.h (not used).
18666 * lib/getpass.h: Add.
18667 * lib/getpass.c: Include getpass.h first.
18669 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
18671 * lib/xalloc-die.c: New file.
18672 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
18674 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
18675 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
18677 (_, N_, xalloc_die): Move to xalloc-die.c.
18678 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
18679 so that we needn't mess with xalloc_msg_memory_exhausted.
18681 * lib/sha1.h: Renamed from sha.h.
18682 (SHA1_H): Renamed from _SHA_H.
18683 (sha1_ctx): Renamed from sha_ctx.
18684 (sha1_init_ctx): Renamed from sha_init_ctx.
18685 (sha1_process_block): Renamed from sha_process_block.
18686 (sha1_process_bytes): Renamed from sha_process_bytes.
18687 (sha1_finish_ctx): Renamed from sha_finish_ctx.
18688 (sha1_read_ctx): Renamed from sha_read_ctx.
18689 (sha1_stream): Renamed from sha_stream.
18690 (sha1_buffer): Renamed from sha_buffer.
18691 * lib/sha1.c: Likewise; renamed from sha.c.
18692 Do not include <sys/types.h>.
18693 Include <stddef.h> rather than <stdlib.h>.
18695 2004-08-08 Bruno Haible <bruno@clisp.org>
18697 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
18698 FILESYSTEM_PREFIX_LEN.
18699 * lib/progreloc.c: Likewise.
18700 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
18702 2004-08-06 Simon Josefsson <jas@extundo.com>
18704 * modules/progname (Depends-on): Don't depend on stdbool.
18706 2004-08-06 Simon Josefsson <jas@extundo.com>
18708 * modules/getsubopt: New file.
18709 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18712 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
18714 More merge from coreutils.
18716 * m4/utimens.m4, m4/utimecmp.m4: New files.
18717 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
18718 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
18719 prereq.m4, sha.m4: Import changes from coreutils.
18721 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
18723 More merge from coreutils.
18724 * modules/raise, modules/readtokens0, modules/utimens:
18725 * modules/utimecmp, module/xnanosleep: New files.
18726 * modules/strftime: Add lib/strftime.h.
18727 Change include from <time.h> to "strftime.h".
18728 * modules/yesno: Add lib/yesno.h.
18729 * modules/backupfile: Remove lib/addext.c.
18730 * modules/euidaccess: Add stat-macros.h.
18731 * modules/canonicalize, modules/euidaccess,
18732 modules/filemode, modules/lchown, modules/makepath,
18733 modules/rmdir, modules/stat: Likewise.
18735 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
18738 * lib/argp-help.c (make_hol, hol_append): Don't assume that
18739 SIZE_MAX is a valid preprocessor constant.
18740 (__argp_basename): Change from "#ifndef _LIBC"
18741 to "#ifndef __argp_short_program_name", so that
18742 we don't compile these functions for tar.
18744 More merges from coreutils.
18745 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
18746 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
18747 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
18748 * lib/addext.c: Remove; no longer needed.
18749 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
18750 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
18751 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
18752 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
18753 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
18754 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
18755 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
18756 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
18757 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
18758 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
18759 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
18760 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
18761 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
18762 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
18763 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
18764 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
18765 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
18766 Import changes from coreutils.
18768 2004-08-05 Simon Josefsson <jas@extundo.com>
18770 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
18772 2004-08-05 Simon Josefsson <jas@extundo.com>
18774 * m4/getsubopt.m4: New file.
18776 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
18778 Merge from coreutils.
18780 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
18781 * m4/getcwd-path-max.m4: New files.
18783 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
18784 FILESYSTEM_PREFIX_LEN ->
18785 FILE_SYSTEM_PREFIX_LEN.
18786 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
18787 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
18788 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
18789 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
18791 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
18792 prerequisite modules now handle the DOS stuff.
18793 Don't check for unistd.h.
18795 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
18797 Merge from coreutils.
18799 * lib/.gdb-history: Remove; this doesn't belong here.
18801 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
18802 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
18803 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
18804 * lib/getcwd.c: New files.
18806 * lib/dirname.h: Include <stdbool.h>.
18807 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
18808 for consistency with POSIX terminology. All uses changed.
18809 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
18810 (strip_trailing_slashes): Use bool for booleans.
18811 * lib/stripslash.c (strip_trailing_slashes): Likewise.
18813 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
18814 sometimes returns a positive errno value even when it succeeds.
18815 (print_errno_message) [!LIBC]: Fall back on strerror if
18816 __strerror_r fails.
18818 * lib/path-concat.c (mempcpy): Don't define if a system header defines
18819 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
18820 (longest_relative_suffix): New function.
18821 (path_concat): Use it. Assume first argument is not NULL.
18822 Port to DOS. Omit redundant separators.
18823 Report an error instead of returning NULL.
18824 Use mempcpy instead of memcpy.
18825 (xpath_concat): Remove: not declared or used.
18827 * lib/same.h: Include <stdbool.h>
18828 (same_name): Return bool, not int.
18829 * lib/same.c (same_name): Likewise.
18830 (errno): Don't declare; we assume C89 or better now.
18832 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
18833 if not already defined.
18835 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
18836 * lib/dup-safer.c (errno): Likewise.
18838 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
18840 Merge from coreutils.
18841 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
18842 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
18843 * modules/path-concat: Don't depend on strdup.
18845 2004-08-03 Simon Josefsson <jas@extundo.com>
18847 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
18848 * lib/progname.h: Don't include stdbool.h.
18850 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
18852 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
18853 * MODULES.html.sh (func_all_modules): Remove fatal.
18855 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
18857 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
18859 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
18861 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
18864 2004-08-02 Simon Josefsson <jas@extundo.com>
18866 * lib/getsubopt.h: New file, with comments from Bruno Haible.
18867 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
18868 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
18870 2004-08-01 Simon Josefsson <jas@extundo.com>
18872 * lib/xgetdomainname.c: Include stdlib.h, for free().
18874 2004-07-19 Bruno Haible <bruno@clisp.org>
18876 * MODULES.html.sh (func_all_modules): Add dummy.
18878 2004-07-16 Simon Josefsson <jas@extundo.com>
18880 * modules/dummy: New file.
18882 2004-07-16 Simon Josefsson <jas@extundo.com>
18884 * lib/dummy.c: New file.
18886 2004-07-16 Bruno Haible <bruno@clisp.org>
18888 * lib/backupfile.h: Add extern "C" for C++.
18889 * lib/closeout.h: Likewise.
18890 * lib/copy-file.h: Likewise.
18891 * lib/findprog.h: Likewise.
18892 * lib/full-write.h: Likewise.
18893 * lib/pathname.h: Likewise.
18894 * lib/progname.h: Likewise.
18895 * lib/stpcpy.h: Likewise.
18896 * lib/stpncpy.h: Likewise.
18897 * lib/strcase.h: Likewise.
18898 * lib/strstr.h: Likewise.
18899 * lib/xalloc.h: Likewise.
18901 * lib/mbswidth.h: Add extern "C" for C++.
18902 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
18904 2004-07-13 Robert Millan <robertmh@gnu.org>
18906 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
18908 2004-07-09 Simon Josefsson <jas@extundo.com>
18910 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
18911 failed without this.)
18913 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
18915 * modules/chown (Files): Add lib/fchown-stub.c, since
18916 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
18918 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
18920 * lib/fchown-stub.c: New file.
18922 2004-06-24 Jim Meyering <jim@meyering.net>
18924 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
18926 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
18928 * modules/argz: Omit "#include".
18930 * MODULES.html.sh (func_all_modules): Add calloc, to match
18931 2004-06-01 addition of calloc module.
18933 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
18935 * m4/argz.m4: New file, which is autoupdated from libtool.
18937 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
18939 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
18942 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
18944 * config/srclist-update: Don't insist on "USA." before the
18945 close-comment, as libtool omits the period and puts the */ on a
18947 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
18948 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
18950 2004-06-22 Gary V. Vaughan <gary@gnu.org>
18952 * modules/argz: New file.
18953 * MODULES.html.sh (func_all_modules): Add argz.
18955 2004-06-12 Jim Meyering <jim@meyering.net>
18956 and Paul Eggert <eggert@cs.ucla.edu>
18958 * modules/hash (Files): Add lib/xalloc.h.
18959 * modules/pipe (Depends-on): Add wait-process.
18960 * modules/stat (Depends-on): Add xalloc.
18961 * modules/userspec (Files): Add lib/userspec.h.
18964 Upgrade from gettext-0.13.
18965 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
18966 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
18967 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
18969 2004-06-10 Jim Meyering <jim@meyering.net>
18971 * lib/calloc.c: New file.
18973 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
18975 * lib/getdate.y (yylex): Allow space between sign and number.
18976 Problem reported by Dan Jacobson.
18978 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
18980 Merge from coreutils CVS.
18982 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
18983 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
18984 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
18985 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
18986 xstrtol.m4: Fix copyright date and/or serial number.
18988 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
18989 See if we need an fchown replacement.
18990 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
18991 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
18992 and use the replacement function if we detect either defect.
18994 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
18997 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
18998 and Jim Meyering <jim@meyering.net>
19000 Merge from coreutils CVS.
19002 * lib/stat-macros.h: New file, with contents from file-type.h
19003 and coreutils' system.h.
19004 * lib/file-type.c: Include "stat-macros.h".
19005 * lib/file-type.h (file_type): Move all macro definitions to new file,
19008 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
19009 Wrap old code with this conditional.
19010 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
19011 function that does not dereference symlinks.
19012 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
19014 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
19015 dependency problems.
19016 (xreadlink): Accept new arg SIZE, for efficiency.
19017 All decls and uses changed.
19018 * lib/xreadlink.h: Include <stddef.h>, for size_t.
19020 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
19021 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
19023 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
19026 2004-06-01 Jim Meyering <jim@meyering.net>
19028 * m4/calloc.m4: New file.
19030 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
19032 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
19033 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
19034 Also, fix a typo in a diagnostic.
19036 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
19038 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
19039 or AC_FUNC_REALLOC.
19041 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
19043 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
19044 macros to be defined.
19045 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
19046 the allocator returns NULL because the requested size is zero.
19048 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
19050 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
19051 var. Add comment explaining why libc still defines it. This
19052 merges the following patch from glibc:
19053 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
19055 2004-05-20 Andreas Schwab <schwab@suse.de>
19057 * m4/free.m4: Replace free if it not known to work, not the other
19060 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
19062 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
19063 present in glibc since revision 1.1 of this file.
19064 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
19065 obstack_alignment_mask, obstack_alloc, obstack_base,
19066 obstack_blank, obstack_blank_fast, obstack_chunk_size,
19067 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
19068 obstack_grow0, obstack_init, obstack_int_grow,
19069 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
19070 obstack_next_free, obstack_object_size, obstack_ptr_grow,
19071 obstack_ptr_grow_fast, obstack_room): Remove declarations of
19072 nonexistent functions.
19074 2004-05-18 Karl Berry <karl@gnu.org>
19076 * config/srclist.txt: break link for vasnprintf.c.
19078 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
19080 Port obstack to the AS/400, where pointers are 16 bytes wide and
19081 you cannot cast an integer to a valid pointer. This patch is
19082 currently waiting to be integrated into glibc; see
19083 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
19085 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
19086 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
19087 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
19088 (struct obstack): temp member is now a union of a pointer and
19089 an integer, instead of an integer. All integer uses changed.
19090 This does not affect the physical layout of struct obstack,
19091 except on hosts (like the AS/400) where the size or alignment of
19092 void * is greater than that of ptrdiff_t.
19093 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
19094 __STDC__)]: Store temporary in pointer member of union, not
19096 * lib/obstack.c: Include <stddef.h>, for offsetof.
19097 (struct fooalign): Remove; it doesn't need a name.
19098 (union fooround): Change double to long double, and add void *.
19099 (DEFAULT_ALIGNMENT): Use offsetof to compute.
19100 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
19101 not a macro. Hence the values are always int; so remove all
19102 casts-to-int in uses.
19104 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
19106 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
19107 we can get this patch merged into glibc.
19109 2004-05-17 Derek R. Price <derek@ximbiot.com>
19110 Paul Eggert <eggert@cs.ucla.edu>
19112 * m4/argp: Depend on alloca.
19114 2004-05-17 Derek R. Price <derek@ximbiot.com>
19115 Paul Eggert <eggert@cs.ucla.edu>
19117 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
19120 2004-05-17 Bruno Haible <bruno@clisp.org>
19122 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
19123 precision that consists of a '.' followed by an empty digit string.
19124 Patch by Tor Lillqvist <tml@iki.fi>.
19126 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
19128 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
19129 for backward compatibility with older code. We need our own
19130 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
19131 it under some other name, and our alloca.h will define it.
19133 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
19134 Derek Price <derek@ximbiot.com>
19136 * lib/alloca.c: Include <alloca.h>, to get our interface.
19137 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
19138 include <alloca.h> first. Use C89 prototype for alloca; this
19139 requires including <stddef.h> for size_t. Use extern "C" if C++.
19140 Use #elif for simplicity, since we can assume C89 now.
19141 Don't try to source the system alloca.h since it will not be found
19142 and to prevent recursively including its replacement.
19143 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
19144 * lib/regex.c: Likewise.
19146 2004-05-16 Derek Price <derek@ximbiot.com>
19147 Paul Eggert <eggert@cs.ucla.edu>
19149 getline cleanup. This changes the getndelim2 API: both order of
19150 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
19153 * lib/getline.c: Don't include stddef.h or stdio.h, since our
19154 interface does that.
19155 (getline): Always use getdelim, so that we don't have two
19156 copies of this code.
19157 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
19159 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
19160 (GETNDELIM2_MAXIMUM): New macro.
19161 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
19162 instead of the old practice of delim2==0. All callers changed.
19163 Return -1 on overflow, instead of returning junk.
19164 Do not set *linesize unless allocation succeeds.
19165 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
19166 that we include sys/types.h.
19167 * lib/getnline.h: Likewise.
19168 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
19169 (getndelim2): Reorder arguments.
19170 * lib/getnline.c (getnline, getndelim):
19171 Don't discard the NMAX argument.
19172 (getnline): Invoke getndelim, to avoid code duplication.
19173 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
19174 of (size_t) -1 by callers of the getnline family.
19176 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
19178 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
19179 Check for gettimeofday.
19180 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
19181 Check for settimeofday, stime.
19183 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
19185 * lib/nanosleep.c (suspended): Change its type from int to
19186 sig_atomic_t volatile.
19187 (first_call): Make it private to rpl_nanosleep, and have it
19188 be zero initially as that's a bit faster.
19189 (my_usleep): Round up fractional times instead of truncating them,
19190 as this is the usual meaning for 'sleep'.
19192 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
19194 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
19195 (ENOSYS): Define if not defined.
19196 (settime): Fall back on stime if it exists and settimeofday fails.
19197 But don't bother with fallbacks if a method fails with errno == EPERM.
19199 2004-05-11 Jim Meyering <jim@meyering.net>
19201 Prior to this change, the save_cwd caller required read access to the
19202 current directory on most systems (ones with the fchdir function).
19204 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
19205 fails, try write-only, and finally, resort to using xgetcwd.
19207 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
19209 * lib/obstack.c, obstack.h: Import changes from libc.
19211 2004-04-28 Bruno Haible <bruno@clisp.org>
19213 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
19214 also implicitly appends .exe to executables.
19215 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
19216 accepts Windows pathnames.
19217 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
19218 Treat Cygwin like Windows, since it now accepts Windows pathnames.
19219 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
19220 Treat Cygwin like Windows, since it now accepts Windows pathnames.
19221 Reported by Derek Robert Price <derek@ximbiot.com>.
19223 2004-04-21 Karl Berry <karl@gnu.org>
19225 * config/srclist.txt (localcharset.c): break sync.
19227 2004-04-20 Paul Eggert <eggert@twinsun.com>
19229 * m4/host-os.m4: Add a copyright notice.
19231 2004-04-20 Jim Meyering <jim@meyering.net>
19233 Change UTILS_ to gl_ in AC_DEFINE'd names.
19234 Change utils_- and jm_-prefixed variables, too.
19235 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
19236 UTILS_FUNC_MKDIR_TRAILING_SLASH.
19237 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
19239 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
19240 Don't emit trailing blanks.
19241 Also rename jm_-prefixed variables to have gl_ prefix.
19243 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
19244 Also rename jm_-prefixed variables to have gl_ prefix.
19246 * m4/jm-macros.m4: Reflect the renamings.
19247 * m4/prereq.m4: Likewise.
19249 2004-04-20 Jim Meyering <jim@meyering.net>
19251 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
19254 2004-04-20 Jim Meyering <jim@meyering.net>
19255 Bruno Haible <bruno@clisp.org>
19257 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
19258 memory when realloc fails.
19260 2004-04-19 Jim Meyering <jim@meyering.net>
19262 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
19263 now that readutmp.c may call `free (0)'.
19265 2004-04-19 Bruno Haible <bruno@clisp.org>
19267 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
19268 * m4/inttypes_h.m4: Likewise.
19269 * m4/stdint_h.m4: Likewise.
19270 * m4/intmax_t.m4: Likewise.
19271 * m4/uintmax_t.m4: Likewise.
19273 2004-04-18 Jim Meyering <jim@meyering.net>
19275 * m4/prereq.m4: Don't forbid jm_ prefix.
19277 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
19278 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
19279 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
19280 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
19281 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
19282 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
19283 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
19284 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
19285 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
19286 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
19287 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
19288 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
19289 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
19290 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
19291 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
19292 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
19293 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
19294 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
19295 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
19297 2004-04-18 Jim Meyering <jim@meyering.net>
19299 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
19300 failure, don't leak memory and do call END_UTMP_ENT.
19302 2004-04-16 Jim Meyering <jim@meyering.net>
19304 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
19305 coreutils' stat program.
19306 (gl_PREREQ): Don't require jm_PREREQ_STAT.
19308 2004-04-11 Paul Eggert <eggert@twinsun.com>
19310 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
19312 (CHAR_BIT): Remove, since we assume C89.
19313 Include <stdint.h> if available, as per current Autoconf CVS advice.
19315 2004-03-31 Jim Meyering <jim@meyering.net>
19317 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
19318 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
19319 * m4/xalloc.m4: Likewise.
19321 2004-03-30 Paul Eggert <eggert@twinsun.com>
19323 Merge from coreutils.
19325 * m4/inttostr.m4: New file.
19326 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
19327 Require AM_STDBOOL_H and gl_TIMESPEC instead.
19328 Require gl_CLOCK_TIME.
19329 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
19331 2004-03-30 Paul Eggert <eggert@twinsun.com>
19333 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
19334 not bool, to be more consistent with Unix conventions.
19335 Suggested by Bruno Haible.
19337 Merge from coreutils.
19339 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
19340 * lib/umaxtostr.c: New files.
19342 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
19343 the usual <time.h> dance.
19344 (get_date): Change signature to support fractional time stamps.
19345 All callers changed.
19346 * lib/getdate.y: Include "getdate.h" first, as we can now
19347 assume C89 and don't need to worry about 'const'.
19348 Similarly, include "unlocked-io.h" near start, not in middle.
19349 Include <limits.h>.
19350 (textint.value): Use long int rather than int.
19351 (textint.digits): Use size_t rather than int.
19352 (BILLION, LOG10_BILLION): New constants.
19353 (parser_control): New member rel_ns. Members day_ordinal,
19354 time_zone, month, day, hour, minutes, rel_year, rel_month,
19355 rel_day, rel_hour, rel_minutes, rel_seconds
19356 are now long int, not int. Member seconds is now struct timespec,
19357 not int. New member timespec_seen. Members dates_seen, days_seen,
19358 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
19360 (%union.intval): Now long int, not int.
19361 New member timespec.
19362 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
19363 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
19364 (spec): Now is a timespec or an item list.
19365 (timespec, items): New nonterminals.
19366 (time, rel, relunit, number, get_date):
19367 Add support for fractional seconds.
19368 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
19369 (gmtime, localtime, mktime): Remove decls; not needed with C89.
19370 (to_hour): First arg is now long int, not int.
19371 (to_year): Returns long int, not int.
19372 Don't treat year -70 like 70.
19373 (tm_diff): Returns long int, not int.
19374 (lookup_word): Use bool instead of int when appropriate.
19375 (yylex): Use size_t for count, not int.
19376 Detect overflow when parsing large integer constants.
19377 Add support for fractions.
19378 (get_date): Make pointers 'const' if possible.
19379 Use more-portable code to detect integer overflow.
19380 (main) [TEST]: Adjust to above changes. Test for localtime failure.
19381 Don't use ctime; it's not reliable if the year has >4 digits.
19383 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
19384 This is for compatibility with BSD.
19386 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
19387 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
19388 From coreutils' system.h.
19390 * lib/userspec.c: Don't include "posixver.h".
19391 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
19392 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
19393 compatible extension. Simplify code by removing a boolean int
19394 that was always nonzero if a string was nonnull.
19396 2004-03-30 Jim Meyering <jim@meyering.net>
19398 Merge from coreutils.
19400 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
19401 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
19402 on some systems one must include <grp.h> before it.
19403 Reported by Christian Krackowizer.
19405 2004-03-30 Jim Meyering <jim@meyering.net>
19407 Merge from coreutils.
19409 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
19411 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
19412 an empty input stream.
19414 * lib/readtokens.c: Include <stdbool.h>.
19415 (readtoken): Use `size_t' rather than int/long.
19416 All callers adjusted.
19417 Use `bool' rather than `int' where appropriate.
19418 Use memset rather than an explicit loop.
19419 Use x2nrealloc rather than xrealloc.
19420 Allow the use of `\0' as a delimiter.
19421 (readtokens): Likewise.
19422 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
19424 2004-03-30 Jim Meyering <jim@meyering.net>
19426 * m4/realloc.m4: Remove file, since now it does no more than
19427 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
19428 the `configure.ac' section of module/realloc.
19429 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
19431 2004-03-30 Bruno Haible <bruno@clisp.org>
19433 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
19436 2004-03-29 Paul Eggert <eggert@twinsun.com>
19438 Merge changes to getloadavg.c from coreutils and Emacs.
19440 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
19441 Define to an expression, not to the empty string.
19442 Include cloexec.h and xalloc.h.
19443 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
19444 Use set_cloexec_flag rather than rolling our own.
19445 * lib/cloexec.c, lib/cloexec.h: New files.
19447 2004-03-29 Paul Eggert <eggert@twinsun.com>
19449 * m4/cloexec.m4: New file.
19451 2004-03-18 Paul Eggert <eggert@twinsun.com>
19453 * lib/getopt.h: Sync with libc CVS.
19455 2004-03-18 Paul Eggert <eggert@twinsun.com>
19456 Bruno Haible <bruno@clisp.org>
19458 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
19461 2004-03-18 Paul Eggert <eggert@twinsun.com>
19462 Bruno Haible <bruno@clisp.org>
19464 * lib/mbswidth.h: Include <wchar.h> only if
19465 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
19467 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
19469 2004-03-09 Paul Eggert <eggert@twinsun.com>
19471 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
19472 Sync with libc CVS.
19473 * lib/getopt_int.h: New file, also synced from libc.
19475 2004-03-09 Paul Eggert <eggert@twinsun.com>
19477 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
19478 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
19479 Bring back getopt.c, getopt.h, getopt1.c.
19481 2004-03-07 Paul Eggert <eggert@twinsun.com>
19483 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
19484 All uses changed. Check for sa_sigaction member; this fixes
19485 a bug first reported by Jason Andrade in
19486 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
19488 2004-03-07 Paul Eggert <eggert@twinsun.com>
19490 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
19491 '#if' expressions. Unlike the code it replaces, it does not
19492 depend on (defined _SC_PAGESIZE). However, it does depend on
19493 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
19494 first reported by Jason Andrade in
19495 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
19497 2004-02-25 Simon Josefsson <jas@extundo.com>
19499 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
19501 2004-02-25 Simon Josefsson <jas@extundo.com>
19503 * lib/strdup.h: New file.
19504 * lib/strdup.c: Include it.
19505 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
19506 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
19508 2004-02-23 Karl Berry <karl@gnu.org>
19510 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
19511 (from fencepost.gnu.org:/gd/gnuorg).
19513 2004-02-23 Karl Berry <karl@gnu.org>
19515 * config/srclistvars.sh (GNUORG) [karl]: redefine.
19516 * config/srclist.txt: add maintain/standards documents.
19518 2004-02-18 Bruno Haible <bruno@clisp.org>
19520 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
19521 Reported by Derek Robert Price <derek@ximbiot.com>.
19523 2004-02-16 Karl Berry <karl@gnu.org>
19525 * config/mkinstalldirs, install-sh: update from automake.
19527 2004-02-06 Karl Berry <karl@gnu.org>
19529 * m4/po.m4: update from gettext 0.14.1.
19531 2004-02-06 Karl Berry <karl@gnu.org>
19533 * lib/config.charset: update from gettext 0.14.1.
19535 2004-02-05 Paul Eggert <eggert@twinsun.com>
19537 Add comments and code, prompted by suggestions from Bruno Haible
19539 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
19540 describing the enum quoting_style values.
19541 * lib/quotearg.c (quotearg_alloc): New function.
19542 (quotearg_buffer_restyled): Treat lone { and } as special.
19543 Treat = as special. Work around bug with older shells
19544 that "see" a '\' that is really the 2nd byte of a multibyte char.
19545 Quote empty string with shell_quoting_style.
19547 2004-02-03 Bruno Haible <bruno@clisp.org>
19549 * m4/pipe.m4: New file, from GNU gettext.
19551 2004-02-03 Bruno Haible <bruno@clisp.org>
19553 * lib/pipe.h: New file, from GNU gettext.
19554 * lib/pipe.c: New file, from GNU gettext.
19556 2004-01-27 Bruno Haible <bruno@clisp.org>
19558 * m4/execute.m4: New file, from GNU gettext.
19560 2004-01-27 Bruno Haible <bruno@clisp.org>
19562 * lib/execute.h: New file, from GNU gettext.
19563 * lib/execute.c: New file, from GNU gettext.
19564 * lib/w32spawn.h: New file, from GNU gettext.
19566 2004-01-24 Paul Eggert <eggert@twinsun.com>
19568 Merge from diffutils.
19570 * lib/file-type.c (file_type): Add typed memory objects.
19571 * lib/file-type.h (S_TYPEISTMO): New macro.
19573 * lib/c-stack.h (c_stack_action): Remove argv argument.
19574 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
19575 (die): Don't calculate message unless segv_action returns.
19576 (get_stack_location, min_address_from_argv, max_address_from_argv,
19577 volatile stack_base, volatile_stack_size): Remove.
19578 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
19579 that every segmentation violation is a stack overflow. (Ouch!)
19580 See Debian bug 136249 (still outstanding) for more info about why
19581 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
19583 2004-01-24 Paul Eggert <eggert@twinsun.com>
19585 Exit-status fix from coreutils.
19587 Use exit_failure consistently in place of EXIT_FAILURE,
19588 so that program exit statuses are consistent on failure.
19590 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
19591 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
19592 * lib/argmatch.h: Comment fix to match the above.
19593 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
19594 Now a macro referring to exit_failure, instead of a separate
19595 variable. Include "exitfail.h" to get it.
19596 * lib/xstrtol.h: Include "exitfail.h".
19597 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
19599 * lib/long-options.c (parse_long_options): Use prototype
19600 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
19603 2004-01-21 Jim Meyering <jim@meyering.net>
19605 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
19606 so as not to conflict with a different-sized __mktime_internal
19607 function in GNU libc.
19608 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
19609 Problem building statically-linked `ls' reported by Michael Brunnbauer.
19611 2004-01-20 Karl Berry <karl@gnu.org>
19613 * config/config.guess: update from config.
19615 * config/srclistvars.sh: GNUWWWLICENSES for karl.
19617 2004-01-20 Bruno Haible <bruno@clisp.org>
19619 Safer stack allocation.
19620 * lib/setenv.c: Include allocsa.h.
19621 (alloca): Remove fallback definition.
19622 (freea): Remove macro.
19623 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
19626 2004-01-20 Bruno Haible <bruno@clisp.org>
19628 * m4/eealloc.m4: New file, from GNU gettext.
19630 2004-01-20 Bruno Haible <bruno@clisp.org>
19632 * m4/allocsa.m4: New file, from GNU gettext.
19634 2004-01-20 Bruno Haible <bruno@clisp.org>
19636 * lib/xallocsa.h: New file, from GNU gettext.
19637 * lib/xallocsa.c: New file, from GNU gettext.
19639 2004-01-20 Bruno Haible <bruno@clisp.org>
19641 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
19643 2004-01-20 Bruno Haible <bruno@clisp.org>
19645 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
19646 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
19649 2004-01-20 Bruno Haible <bruno@clisp.org>
19651 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
19654 2004-01-20 Bruno Haible <bruno@clisp.org>
19656 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
19658 2004-01-20 Bruno Haible <bruno@clisp.org>
19660 * lib/eealloc.h: New file.
19662 2004-01-20 Bruno Haible <bruno@clisp.org>
19664 * lib/binary-io.h: Avoid warnings on Cygwin.
19666 2004-01-20 Bruno Haible <bruno@clisp.org>
19668 * lib/allocsa.h: New file, from GNU gettext.
19669 * lib/allocsa.c: New file, from GNU gettext.
19671 2004-01-18 Karl Berry <karl@gnu.org>
19673 * doc/gpl.texi, doc/lgpl.texi: new files.
19675 2004-01-18 Karl Berry <karl@gnu.org>
19677 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
19678 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
19680 2004-01-15 Paul Eggert <eggert@twinsun.com>
19682 Merge from coreutils.
19684 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
19685 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
19686 (gl_DEFAULT_POSIX2_VERSION): Move
19687 the documentation from 'configure' into 'config.hin',
19688 so that 'configure --help' isn't burdened by it and
19689 we don't have to worry about its formatting there.
19690 Reword the documentation so that it's more succinct
19691 and can be run together into a single paragraph.
19692 * m4/same.m4 (gl_SAME): Check for pathconf.
19694 2004-01-15 Paul Eggert <eggert@twinsun.com>
19696 Merge from coreutils.
19698 * lib/posixver.c: Include posixver.h.
19700 * lib/same.c: Include <stdbool.h>, <limits.h>.
19701 (_POSIX_NAME_MAX): Define if not defined.
19703 (same_name): If file names are silently truncated, report
19704 that the file names are the same if they are the same after
19705 the silent truncation.
19707 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
19708 conversion function.
19709 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
19710 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
19713 2004-01-15 Jim Meyering <jim@meyering.net>
19715 Merge from coreutils.
19717 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
19718 if no library is required.
19719 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
19720 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
19721 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
19722 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
19723 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
19724 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
19725 value, $ac_cv_search_crypt, if it's "none required".
19726 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
19727 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
19728 not gl_FUNC_GETLOADAVG.
19729 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
19730 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
19732 2004-01-15 Jim Meyering <jim@meyering.net>
19734 Merge from coreutils.
19736 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
19737 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
19738 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
19740 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
19741 optional configure-time default.
19743 * lib/version-etc.c (version_etc_copyright): Update copyright date.
19745 * lib/xreadlink.c (xreadlink): Correct outdated comment.
19747 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
19749 Merge from coreutils.
19751 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
19752 value, $ac_cv_search_nanosleep, if it's "none required".
19754 2004-01-14 Paul Eggert <eggert@twinsun.com>
19756 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
19757 with like-named macro in fnmatch.c.
19758 (EXT): Use an internal constant instead.
19760 Merge fnmatch patches from glibc.
19761 * lib/fnmatch.c (mbsinit): Remove define.
19762 Add libc_hidden_ver (__fnmatch, fnmatch).
19763 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
19764 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
19766 2004-01-14 Karl Berry <karl@gnu.org>
19768 * config/install-sh: update from automake.
19770 2004-01-13 Karl Berry <karl@gnu.org>
19772 * config/install-sh: update from automake.
19774 2004-01-09 Karl Berry <karl@gnu.org>
19776 * config/install-sh: update from automake.
19778 2004-01-05 Karl Berry <karl@gnu.org>
19780 * config/config.{sub,guess}: update from config.
19782 2003-12-31 Karl Berry <karl@gnu.org>
19784 * config/depcomp: update from automake.
19786 2003-12-14 Karl Berry <karl@gnu.org>
19788 * lib/config.charset: update from gettext-runtime.
19790 2003-12-03 Paul Eggert <eggert@twinsun.com>
19792 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
19793 Bug reported by Alfred M. Szmidt.
19795 2003-12-03 Bruno Haible <bruno@clisp.org>
19797 * m4/gettext.m4: Upgrade from gettext-0.13.
19798 * m4/po.m4: Upgrade from gettext-0.13.
19799 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
19800 * m4/intmax.m4: New file, from gettext-0.13.
19801 * m4/printf-posix.m4: New file, from gettext-0.13.
19803 2003-11-29 Karl Berry <karl@gnu.org>
19805 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
19807 2003-11-25 Paul Eggert <eggert@twinsun.com>
19808 Bruno Haible <bruno@clisp.org>
19810 * lib/printf-parse.h: Don't include sys/types.h.
19811 (ARG_NONE): New macro.
19812 (char_directive): Change type of *arg_index fields to size_t.
19813 * lib/printf-parse.c: Don't include sys/types.h.
19814 (SSIZE_MAX): Remove macro.
19815 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
19816 Remove unnecessary overflow check.
19817 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
19820 2003-11-25 Bruno Haible <bruno@clisp.org>
19822 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
19824 2003-11-25 Bruno Haible <bruno@clisp.org>
19826 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
19829 2003-11-24 Paul Eggert <eggert@twinsun.com>
19831 * modules/alloca: Remove dependency on xalloc.
19833 2003-11-24 Paul Eggert <eggert@twinsun.com>
19835 * lib/alloca.c: Remove dependency on xalloc module.
19836 (xalloc_die): Remove.
19837 (memory_full) [!defined emacs]: New macro.
19838 [!defined emacs]: Don't include xalloc.h.
19839 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
19840 address arithmetic overflows. Change datatypes a bit to avoid
19843 2003-11-22 Jim Meyering <jim@meyering.net>
19845 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
19848 2003-11-21 Karl Berry <karl@gnu.org>
19850 * config/config.{sub,guess}: update from config.
19852 2003-11-18 Karl Berry <karl@gnu.org>
19854 * config/config.{sub,guess}: update from config.
19856 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
19858 2003-11-17 Paul Eggert <eggert@twinsun.com>
19860 * README: Mention that S+T cannot overflow if S is the size of
19861 an existing object and T is sufficiently small.
19863 2003-11-17 Jim Meyering <jim@meyering.net>
19865 On systems without utime and without a utimes function capable of
19866 dealing with a NULL struct utimbuf* argument, this utime replacement
19867 could -- in unusual circumstances -- leak a file descriptor.
19868 * lib/utime.c: Include <unistd.h> and <errno.h>.
19869 (utime_null): Be sure to close `fd' and to preserve errno.
19870 Reported by Geoff Collyer via Arnold Robbins.
19872 2003-11-17 Bruno Haible <bruno@clisp.org>
19874 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
19875 (Depends-on): Add xsize.
19877 2003-11-17 Bruno Haible <bruno@clisp.org>
19879 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
19881 2003-11-17 Bruno Haible <bruno@clisp.org>
19883 * lib/vasnprintf.c (alloca): Remove fallback definition.
19884 (freea): Remove definition.
19885 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
19886 Reported by Paul Eggert.
19888 2003-11-16 Paul Eggert <eggert@twinsun.com>
19889 Bruno Haible <bruno@clisp.org>
19891 Protect against address arithmetic overflow.
19892 * lib/printf-args.h: Include stddef.h.
19893 (arguments): Change type of field 'count' to size_t.
19894 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
19895 'unsigned int' where appropriate.
19896 * lib/printf-parse.h: Include sys/types.h.
19897 (char_directive): Change type of *arg_index fields to ssize_t.
19898 (char_directives): Change type of fields 'count', max_*_length to
19900 * lib/printf-parse.c: Include sys/types.h and xsize.h.
19901 (SSIZE_MAX): Define fallback value.
19902 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
19903 instead of 'int' where appropriate. Check a_allocated, d_allocated
19904 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
19905 * lib/vasnprintf.c: Include xsize.h.
19906 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
19907 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
19908 overflow. Avoid wraparound when converting a width or precision from
19911 2003-11-16 Bruno Haible <bruno@clisp.org>
19913 Update from GNU gettext.
19914 * lib/printf-parse.c: Generalize to it can be compiled for wide
19916 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
19917 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
19918 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
19919 SNPRINTF): New macros.
19920 Don't include <alloca.h> if the file is used inside libintl.
19921 (local_wcslen): New function, for Solaris 2.5.1.
19922 (VASNPRINTF): Use it instead of wcslen.
19924 2003-11-16 Bruno Haible <bruno@clisp.org>
19926 * lib/xsize.h (xmax): New function.
19927 (xsum, xsum3, xsum4): Declare as "pure" functions.
19929 2003-11-12 Paul Eggert <eggert@twinsun.com>
19931 * modules/xalloc (Files): Undo latest change, since xalloc.h
19932 no longer needs SIZE_MAX or PTRDIFF_MAX.
19934 2003-11-12 Paul Eggert <eggert@twinsun.com>
19936 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
19939 2003-11-12 Paul Eggert <eggert@twinsun.com>
19941 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
19942 "return", to pacify some unknown compiler. Problem reported
19943 by Joerg Schilling.
19945 2003-11-12 Paul Eggert <eggert@twinsun.com>
19947 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
19948 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
19949 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
19950 heuristic is just as accurate as far as we know, and it removes a
19951 dependency on size_max.m4 and ptrdiff_max.m4.
19953 2003-11-11 Bruno Haible <bruno@clisp.org>
19955 * modules/xsize (Files): Add m4/size_max.m4.
19956 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
19958 2003-11-11 Bruno Haible <bruno@clisp.org>
19960 * m4/size_max.m4: New file.
19961 * m4/ptrdiff_max.m4: New file.
19962 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
19963 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
19964 (gl_XALLOC): Invoke it.
19966 2003-11-11 Bruno Haible <bruno@clisp.org>
19968 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
19969 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
19972 2003-11-10 Paul Eggert <eggert@twinsun.com>
19974 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
19975 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
19976 rejected some allocations of exactly SIZE_MAX - 2 bytes.
19978 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
19979 not (size_t) -1, since it's defined here.
19981 2003-11-09 Karl Berry <karl@gnu.org>
19983 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
19985 2003-11-06 Paul Eggert <eggert@twinsun.com>
19987 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
19988 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
19989 Reject sizes of exactly SIZE_MAX bytes.
19990 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
19991 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
19993 2003-11-05 Bruno Haible <bruno@clisp.org>
19995 * lib/xsize.h: Include limits.h, to avoid a possible collision with
19996 SIZE_MAX defined in <limits.h> on Solaris.
19998 2003-11-04 Jim Meyering <jim@meyering.net>
20000 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
20001 variable names, rather than @VAR@.
20002 * modules/poll: Likewise.
20004 2003-11-04 Bruno Haible <bruno@clisp.org>
20006 * modules/xsize: New file.
20007 * modules/linebreak: Depend on xsize.
20008 * MODULES.html.sh (func_all_modules): Add xsize.
20010 2003-11-04 Bruno Haible <bruno@clisp.org>
20012 * m4/xsize.m4: New file.
20014 2003-11-04 Bruno Haible <bruno@clisp.org>
20016 * lib/xsize.h: New file.
20017 * lib/linebreak.c: Include xsize.h.
20018 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
20019 argument for overflow.
20020 Suggested by Paul Eggert.
20022 2003-11-03 Karl Berry <karl@gnu.org>
20024 * config/config.{guess,sub}: update from config.
20026 2003-11-03 Jim Meyering <jim@meyering.net>
20028 * modules/userspec (lib_SOURCES): Add userspec.h.
20029 (Include): Add "userspec.h".
20030 Improve description.
20032 2003-11-03 Jim Meyering <jim@meyering.net>
20034 * lib/userspec.c: Include "userspec.h".
20035 * lib/userspec.h: New file.
20037 2003-11-03 Bruno Haible <bruno@clisp.org>
20039 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
20041 2003-11-03 Bruno Haible <bruno@clisp.org>
20043 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
20044 available, to avoid (extremely rare) race condition.
20045 Suggested by Paul Eggert.
20047 2003-11-02 Karl Berry <karl@gnu.org>
20049 * config/srclist.txt (vasprintf.c): sync broken, sigh.
20051 2003-10-31 Paul Eggert <eggert@twinsun.com>
20053 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
20054 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
20055 (read_filesystem_list): Set and use me_type_malloced.
20056 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
20057 whatever the type happens to be), for brevity and consistency.
20058 Check for size calculation overflow on Alphas running OSF/1.
20060 2003-10-31 Jim Meyering <jim@meyering.net>
20062 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
20064 * lib/linebuffer.c: Include <string.h> for declaration of memset.
20066 2003-10-30 Paul Eggert <eggert@twinsun.com>
20067 Bruno Haible <bruno@clisp.org>
20069 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
20070 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
20072 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
20074 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
20075 netbsd*-gnu*. Suggested by Robert Millan.
20077 2003-10-29 Paul Eggert <eggert@twinsun.com>
20079 * modules/group-member: Depend on stdbool.
20081 2003-10-29 Paul Eggert <eggert@twinsun.com>
20083 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
20085 2003-10-29 Paul Eggert <eggert@twinsun.com>
20087 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
20088 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
20089 after the 'gnu' in these cases. This fixes some bugs in the
20090 previous change, and is based on suggestions by Robert Millan.
20092 2003-10-29 Paul Eggert <eggert@twinsun.com>
20094 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
20095 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
20097 * lib/quotearg.c (quotearg_n_options): Use it.
20098 * lib/group-member.c: Include <stdbool.h>.
20099 (free_group_info): Arg is now const *; don't free arg.
20100 (get_group_info): Now returns bool and accepts struct group_info *,
20101 rather than returning a malloc'ed struct group_info *.
20102 All uses changed. Check for overflow in internal size calculation.
20104 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
20105 rather than xmalloc/xrealloc.
20106 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
20107 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
20108 conformance bug: the old code used a pointer after freeing the
20109 storage that it addressed.
20110 * lib/hash.c (hash_initialize): Simplify the code by using
20111 xalloc_oversized rather than doing it by hand.
20112 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
20113 the buffer preserved. Use free and xmalloc instead.
20114 * lib/quotearg.c (quotearg_n_options): Likewise.
20115 Use a simpler test for size overflow. Don't use xalloc_oversized
20116 because unsigned int might be wider than size_t (!); this suggests
20117 that we should switch from unsigned int to size_t for slot numbers.
20119 2003-10-28 Paul Eggert <eggert@twinsun.com>
20121 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
20122 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
20123 NetBSD kernels. Requested by Richard Stallman.
20125 2003-10-27 Paul Eggert <eggert@twinsun.com>
20127 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
20128 to allocate the returned structure. Do not allocate a subarray,
20129 as x2nrealloc will do that.
20130 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
20131 instead of xnrealloc.
20132 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
20134 2003-10-27 Bruno Haible <bruno@clisp.org>
20136 * lib/stdbool_.h: Better support for BeOS.
20138 2003-10-26 Paul Eggert <eggert@twinsun.com>
20140 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
20143 2003-10-26 Paul Eggert <eggert@twinsun.com>
20145 * lib/xalloc.h (xalloc_oversized): New static inline function, for
20146 callers that want to do their own size-overflow checking. Include
20147 <stdbool.h>, since xalloc_oversized returns bool.
20148 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
20149 to use xalloc_oversized.
20151 Add two functions x2realloc, x2nrealloc, for programs that grow
20152 arrays dynamically by doubling their sizes.
20153 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
20154 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
20157 Port to C99 semantics for 'inline' of external functions.
20158 Bug reported by Bruno Haible.
20159 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
20160 with the old contents of xnmalloc.
20161 (xnmalloc, xmalloc): Use it.
20162 (xnrealloc_inline): New static inline function,
20163 with the old contents of xnrealloc.
20164 (xnrealloc, xrealloc): Use it.
20166 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
20169 2003-10-26 Karl Berry <karl@gnu.org>
20171 * config/srclist.txt (COPYING.DOC): no longer available from
20172 /gd/gnuorg; don't know where the ultimate source is.
20174 2003-10-25 Paul Eggert <eggert@twinsun.com>
20176 Fix several address-calculation bugs in the hash modules,
20177 plus some minor code cleanup.
20179 * lib/hash.h: Include <stdbool.h>, for bool.
20180 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
20181 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
20182 hash_get_n_entries, hash_get_max_bucket_length,
20183 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
20184 hash_rehash): Use size_t rather than unsigned.
20185 * lib/hash.c (struct hash_table, hash_get_n_buckets,
20186 hash_get_n_buckets_used, hash_get_n_entries,
20187 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
20188 hash_get_entries, hash_do_for_each, hash_string, is_prime,
20189 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
20191 (SIZE_MAX): Define if not defined.
20192 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
20193 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
20195 Use const * when possible.
20196 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
20197 (check_tuning): Fix bug: if tuning parameters were very close to
20198 0 or 1, rounding errors could have caused subscript violations.
20199 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
20200 (hash_initialize): Add 'fail:' label
20201 to free table and return NULL, and use it to simplify code.
20202 Use calloc rather than clearing the storage ourself.
20203 (hash_initialize, hash_rehash): Check for arithmetic overflow in
20204 buffer size calculations.
20205 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
20206 Include <stddef.h>, for size_t.
20207 * lib/hash-pjw.c (hash_pjw): Likewise.
20208 Switch to method described by Bruno Haible.
20209 Include <limits.h>, for CHAR_BIT.
20210 (SIZE_BITS): New macro.
20212 2003-10-23 Paul Eggert <eggert@twinsun.com>
20214 * m4/getline.m4 (AM_FUNC_GETLINE):
20215 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
20216 hosts. Problem reported by Derek Robert Price in
20217 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
20218 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
20219 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
20221 2003-10-21 Paul Eggert <eggert@twinsun.com>
20223 * lib/getndelim2.c (getndelim2): When size calculation overflows,
20224 ceiling the allocation at NMAX bytes rather than silently
20225 discarding input bytes before NMAX is reached. This makes
20226 a difference only if NMAX exceeds SIZE_MAX / 2.
20228 * lib/obstack.c: Merge from glibc.
20229 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
20230 Add libc_hidden_def (_obstack_newchunk).
20231 (_obstack_free) [! defined _LIBC]: Remove.
20232 [defined _LIBC]: Make a strong alias from obstack_free, rather than
20233 a clone of the function body.
20234 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
20235 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
20237 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
20239 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
20242 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
20243 (obstack_ptr_grow_fast, obstack_int_grow_fast):
20244 Don't use lvalue casts, as GCC plans to remove support for them
20245 in GCC 3.5. Reported by Joseph S. Myers. This bug
20246 was also present in the non-GCC version, indicating that this
20247 code had always been buggy and had never been widely used.
20248 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
20249 Use the fast variant of each macro, rather than copying the
20250 definiens of the fast variant; that way, we'll be more likely to
20251 catch future bugs in the fast variants.
20253 2003-10-20 Bruno Haible <bruno@clisp.org>
20255 * modules/wait-process: New file.
20256 * MODULES.html.sh (func_all_modules): Add wait-process.
20258 2003-10-20 Bruno Haible <bruno@clisp.org>
20260 * m4/wait-process.m4: New file.
20262 2003-10-20 Bruno Haible <bruno@clisp.org>
20264 * lib/wait-process.h: New file, from GNU gettext.
20265 * lib/wait-process.c: New file, from GNU gettext.
20267 2003-10-19 Jim Meyering <jim@meyering.net>
20269 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
20272 2003-10-18 Karl Berry <karl@gnu.org>
20274 * config/config.guess: update from config.
20276 2003-10-16 Paul Eggert <eggert@twinsun.com>
20278 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
20279 (getgroups): First arg is int, not size_t.
20280 Don't let 'free' mangle errno.
20282 2003-10-16 Paul Eggert <eggert@twinsun.com>
20284 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
20286 2003-10-16 Karl Berry <karl@gnu.org>
20288 * config/config.{guess,sub}: update from config.
20290 2003-10-16 Jim Meyering <jim@meyering.net>
20292 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
20295 2003-10-15 Paul Eggert <eggert@twinsun.com>
20297 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
20298 (SIZE_MAX): Remove.
20299 (new_exclude, add_exclude_file): Initial size no longer needs to
20301 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
20302 our own address arithmetic overflow checking.
20304 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
20305 (fnmatch): Do not alloca more than 2000 wide characters;
20306 instead, use malloc for large buffers.
20307 Check for address arithmetic overflow, and return -1
20308 with errno set to ENOMEM in that case.
20309 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
20310 (NEW_PATTERN): Do not alloca more than 8000 bytes;
20311 instead, return -1. Check for address arithmetic overflow.
20313 2003-10-14 Paul Eggert <eggert@twinsun.com>
20315 Handle invalid suffixes and overflow independently, so that
20316 callers can treat them independently as needed. Fix some bugs in
20317 suffix handling, e.g., "100k@" was not diagnosed as an invalid
20318 suffix for a human-readable blocksize. The major caller-visible
20319 change is the addition of a new
20320 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
20321 that both overflow and suffix chars were found.
20323 * lib/human.c (humblock): Don't check separately for invalid suffix
20324 char; that is xstrtoumax's job (now that its bug is fixed).
20325 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
20326 INTMAX_MAX]: New macros.
20327 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
20328 TYPE_MAXIMUM): New macros.
20329 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
20330 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
20331 if overflow occurs, as it's what __strtol does and it's more useful
20333 (__xstrtol): If __strtol reports some error other than ERANGE,
20334 reflect it to the caller as LONGINT_INVALID. If it reports
20335 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
20336 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
20337 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
20339 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
20340 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
20341 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
20342 [defined UINTMAX_MAX]: New macros.
20344 2003-10-14 Bruno Haible <bruno@clisp.org>
20346 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
20348 2003-10-14 Bruno Haible <bruno@clisp.org>
20350 * m4/sig_atomic_t: New file, from GNU gettext.
20351 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
20353 2003-10-14 Bruno Haible <bruno@clisp.org>
20355 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
20356 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
20357 Also use volatile where needed.
20359 2003-10-12 Paul Eggert <eggert@twinsun.com>
20361 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
20362 Change maintainer from Bruno Haible to 'all'.
20364 2003-10-12 Paul Eggert <eggert@twinsun.com>
20366 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
20368 2003-10-12 Paul Eggert <eggert@twinsun.com>
20370 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
20371 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
20372 and define in terms of the other primitives.
20373 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
20374 (SIZE_MAX): Define if not already defined.
20375 (array_size_overflow): New function.
20376 (xalloc_die): Abort instead of exiting if 'error' returns.
20377 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
20378 (xmalloc, xrealloc): Use them.
20379 (xcalloc): Check for address arithmetic overflow.
20380 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
20381 a bit faster than strcpy.
20383 2003-10-10 Simon Josefsson <jas@extundo.com>
20385 * modules/argp (Depends-on): Add restrict and strcase.
20387 2003-10-10 Simon Josefsson <jas@extundo.com>
20389 * m4/argp.m4: Add AC_C_INLINE.
20391 2003-10-08 Paul Eggert <eggert@twinsun.com>
20393 Merge getpass from libc, plus a few fixes.
20395 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
20396 Include <stdbool.h>.
20397 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
20398 __fsetlocking to empty.
20399 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
20400 do include <bits/libc-lock.h>.
20401 Do not include <fcntl.h>; not needed.
20402 [_LIBC]: Include <wchar.h>.
20403 (NOTCANCEL_MODE): New macro.
20404 (flockfile, funlockfile) [_LIBC]: New macros.
20405 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
20406 [!_LIBC]: New macros.
20407 (call_fclose): New function.
20408 (getpass): Use it. Save tty stream separately; this simplifies the
20409 code and makes it more reliable if stdin happens to equal stdout.
20410 Invoke __fsetlocking on tty.
20411 Handle thread cancellation if needed.
20412 Namespace cleanup (use __tcgetattr, __getline).
20413 Use bool for Booleans.
20414 [USE_IN_LIBIO]: Handle wide streams.
20415 [!_LIBC]: Unconditionally do the fseek, since we don't know what
20416 stream might go where.
20418 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
20419 doesn't have to include <stdio.h> before us.
20420 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
20421 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
20422 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
20423 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
20424 if not declared, so that we can use getpass.c code from libc without
20426 (flockfile, ftrylockfile, funlockfile): New macros.
20428 2003-10-08 Paul Eggert <eggert@twinsun.com>
20430 * modules/getpass: Depend on stdbool.
20432 2003-10-08 Paul Eggert <eggert@twinsun.com>
20434 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
20436 2003-10-07 Karl Berry <karl@gnu.org>
20438 * config/config.{guess,sub}: update from config.
20440 2003-10-06 Jim Meyering <jim@meyering.net>
20441 Bruno Haible <bruno@clisp.org>
20443 This lets translators provide better translations for the
20444 "Written by ..." part of --version output.
20445 * lib/version-etc.h: Include stdarg.h.
20446 (version_etc_copyright): Declare as readonly.
20447 (version_etc): Make this function variadic with a NULL-terminated list
20448 of author name strings.
20449 (version_etc_va): New declaration.
20450 * lib/version-etc.c: Include stdarg.h, stdlib.h.
20451 (version_etc_copyright): Declare as readonly.
20452 (version_etc_va): New function. Provide a different translatable string
20453 for each possible number of authors < 10. Abbreviate when there are 10
20455 (version_etc): Make this function variadic. Call version_etc_va.
20456 Suggestion from Gary V. Vaughan.
20458 * lib/long-options.h (parse_long_options): Change prototype: the
20459 authors string is moved to the end and becomes variadic.
20460 * lib/long-options.c: Include stdarg.h.
20461 (parse_long_options): Make this function variadic, too.
20462 Call version_etc_va, not version_etc.
20464 2003-10-06 Bruno Haible <bruno@clisp.org>
20466 * modules/version-etc-2: Remove file.
20467 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
20469 2003-10-06 Bruno Haible <bruno@clisp.org>
20471 * modules/fatal-signal: New file.
20472 * MODULES.html.sh (func_all_modules): Add fatal-signal.
20474 2003-10-06 Bruno Haible <bruno@clisp.org>
20476 * m4/fatal-signal.m4: New file.
20477 * m4/signalblocking.m4: New file, from GNU gettext.
20479 2003-10-06 Bruno Haible <bruno@clisp.org>
20481 * lib/version-etc-2.h: Remove file.
20482 * lib/version-etc-2.c: Remove file.
20484 2003-10-06 Bruno Haible <bruno@clisp.org>
20486 * lib/fatal-signal.h: New file, from GNU gettext.
20487 * lib/fatal-signal.c: New file, from GNU gettext.
20489 2003-10-05 Paul Eggert <eggert@twinsun.com>
20491 * README: Rework advice for preventing empty .o files.
20492 Don't recommend ELIDE constructs. Recommend <stddef.h>,
20495 2003-10-04 Karl Berry <karl@gnu.org>
20497 * lib/argp*: update from libc.
20499 2003-10-04 Karl Berry <karl@gnu.org>
20501 * config/config.{guess,sub}: update from config.
20503 2003-10-02 Bruno Haible <bruno@clisp.org>
20505 * modules/lchown (Include): Add lchown.h.
20506 * modules/time_r (Include): Use "..." syntax.
20507 * modules/xgetdomainname (Include): Add xgetdomainname.h.
20509 2003-10-01 Simon Josefsson <jas@extundo.com>
20511 * MODULES.html.sh (func_all_modules): Move gethostname from section
20512 'based on' to section 'lacking' POSIX:2001.
20514 2003-10-01 Larry Jones <lawrence.jones@eds.com>
20516 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
20517 to output mode on the same stream.
20519 2003-09-29 Paul Eggert <eggert@twinsun.com>
20521 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
20522 Fix arg typo in previous patch.
20524 2003-09-28 Jim Meyering <jim@meyering.net>
20526 * lib/error.c: Correct cpp indentation.
20528 2003-09-27 Paul Eggert <eggert@twinsun.com>
20530 * modules/free: New file.
20532 2003-09-27 Paul Eggert <eggert@twinsun.com>
20534 * m4/free.m4: New file.
20536 2003-09-27 Paul Eggert <eggert@twinsun.com>
20538 * lib/minmax.h (MIN, MAX)
20539 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
20540 Omit the special code that used __typeof__, since we worry that
20541 it could be more trouble than it's worth. See:
20542 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
20543 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
20545 * lib/free.c: New file.
20547 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
20549 Trivial fixes to Makefile.am parts of module listings.
20550 * modules/strstr: Append strstr.h to lib_SOURCES.
20551 * modules/strcase: Likewise, for strcase.h.
20553 2003-09-27 Karl Berry <karl@gnu.org>
20555 * config/mkinstalldirs: update from automake.
20557 2003-09-26 Paul Eggert <eggert@twinsun.com>
20559 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
20560 (error_tail): Do not loop, reallocating temporary buffer, since
20561 the output cannot contain more wide characters than the input
20562 contains bytes, the size must be big enough already. This avoids
20563 one potential size overflow calculation. Check for size overflow
20564 when calculating temporary buffer size. Free temporary buffer
20565 when done, if it was allocated with malloc; this plugs a memory
20566 leak. Remove casts from void * to pointers, that are no longer
20567 needed now that we're assuming C89 or better.
20569 Merge error changes from glibc.
20571 * lib/error.c, error.h: Update copyright notice header to match glibc.
20572 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
20573 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
20574 Disable cancellation while printing error.
20575 * lib/error.h: Prepend __ to parameter names.
20577 2003-09-26 Jim Meyering <jim@meyering.net>
20579 * lib/error.c (error_tail): Move some declarations
20580 into inner scope where the local variables are used.
20582 2003-09-26 Bruno Haible <bruno@clisp.org>
20584 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
20586 Don't define stpncpy through config.h; it's now done through stpncpy.h.
20588 2003-09-26 Bruno Haible <bruno@clisp.org>
20590 * lib/stpncpy.h (gnu_stpncpy): New declaration.
20591 (stpncpy): Define as alias for gnu_stpncpy.
20592 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
20594 2003-09-25 Simon Josefsson <jas@extundo.com>
20596 * lib/xgetdomainname.h: New file.
20597 * lib/xgetdomainname.c: New file.
20599 2003-09-25 Simon Josefsson <jas@extundo.com>
20600 Bruno Haible <bruno@clisp.org>
20602 * modules/getdomainname: New file.
20603 * modules/xgetdomainname: New file.
20604 * MODULES.html.sh (func_all_modules): Add getdomainname,
20607 2003-09-25 Simon Josefsson <jas@extundo.com>
20608 Bruno Haible <bruno@clisp.org>
20610 * m4/getdomainname.m4: New file.
20612 2003-09-25 Simon Josefsson <jas@extundo.com>
20613 Bruno Haible <bruno@clisp.org>
20615 * lib/getdomainname.h: New file.
20616 * lib/getdomainname.c: New file.
20618 2003-09-25 Karl Berry <karl@gnu.org>
20620 * lib/argp-fmtstream.c, argp-help.c: update from libc.
20622 2003-09-25 Karl Berry <karl@gnu.org>
20624 * config/install-sh: update from automake.
20626 2003-09-25 Bruno Haible <bruno@clisp.org>
20628 * modules/version-etc-2: New file, from modules/version-etc with
20630 * MODULES.html.sh (func_all_modules): Add version-etc-2.
20632 2003-09-25 Bruno Haible <bruno@clisp.org>
20634 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
20635 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
20637 2003-09-24 Simon Josefsson <jas@extundo.com>
20639 * modules/xgethostname: Add xgethostname.h.
20641 2003-09-24 Paul Eggert <eggert@twinsun.com>
20643 * lib/linebuffer.c (freebuffer): Don't free the argument, just
20644 the buffer associated with the argument. Bug reported by
20647 2003-09-24 Paul Eggert <eggert@twinsun.com>
20649 * README: Document assumptions that 'int' is at least 32 bits
20650 wide, that integer arithmetic is 2's complement without overflow,
20651 that there are no holes in integer values, that adding sizes of
20652 two nonoverlapping objects can't overflow, and that all-bits-zero
20653 yields scalar zero. Fix spelling and capitalization typos.
20655 2003-09-19 Karl Berry <karl@gnu.org>
20657 * lib/argp.h: update from libc.
20659 2003-09-17 Paul Eggert <eggert@twinsun.com>
20661 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
20662 to avoid spurious warnings like "AC_RUN_IFELSE was called before
20663 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
20665 2003-09-17 Paul Eggert <eggert@twinsun.com>
20667 * gnulib-tool: Use "test -h", not "test -L", for portability
20668 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
20669 (tags_regexp): Remove, since \| doesn't conform to POSIX.
20670 (sed_extract_prog): Issue s commands one-by-one, rather than
20671 using \| in one s command.
20673 2003-09-16 Paul Eggert <eggert@twinsun.com>
20675 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
20676 input error, instead of returning NULL the next time we are called
20677 (and therefore losing track of errno).
20679 2003-09-16 Bruno Haible <bruno@clisp.org>
20681 * gnulib-tool (func_create_testdir): Warn about duplicated
20684 2003-09-15 Paul Eggert <eggert@twinsun.com>
20686 * modules/argmatch, modules/fatal, modules/obstack,
20687 modules/xalloc, modules/xgethostname: Sort dependencies by
20688 importance, not alphabetically.
20690 2003-09-15 Paul Eggert <eggert@twinsun.com>
20692 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
20693 fails, so that the caller gets the proper errno.
20695 * lib/readutmp.c (read_utmp): Likewise.
20696 Check for fstat error. Close stream and free storage
20699 2003-09-14 Karl Berry <karl@gnu.org>
20701 * config/srclist.txt (strdup.c): disable for c89 changes.
20703 2003-09-14 Jim Meyering <jim@meyering.net>
20705 * lib/getloadavg.c: Correct cpp indentation.
20706 * lib/strdup.c: Likewise.
20707 * lib/vasnprintf.c: Likewise.
20709 2003-09-14 Bruno Haible <bruno@clisp.org>
20711 * modules/fwriteerror: New file.
20712 * MODULES.html.sh (func_all_modules): Add fwriteerror.
20714 2003-09-14 Bruno Haible <bruno@clisp.org>
20716 * lib/fwriteerror.h: New file.
20717 * lib/fwriteerror.c: New file.
20719 2003-09-12 Paul Eggert <eggert@twinsun.com>
20721 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
20722 modules/xgethostname, modules/xalloc: Depend on exit.
20724 2003-09-12 Paul Eggert <eggert@twinsun.com>
20726 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
20728 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
20729 and AC_MINIX, too, so that their extensions are available.
20731 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
20732 This macro has been superseded by gl_BACKUPFILE.
20734 More patches to assume C89 or better.
20736 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
20738 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
20740 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
20741 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
20742 Include <string.h>, <stdlib.h> unconditionally.
20743 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
20744 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
20745 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
20746 headers or for string.h.
20747 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
20750 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
20752 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
20753 * m4/userspec.m4 (gl_USERSPEC): Likewise.
20754 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
20755 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
20756 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
20757 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
20759 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
20760 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
20761 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
20763 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
20764 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
20765 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
20768 2003-09-12 Paul Eggert <eggert@twinsun.com>
20770 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
20771 * lib/obstack.c [!defined _LIBC]: Likewise.
20772 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
20773 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
20774 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
20776 More changes to assume C89 or better.
20778 * lib/error.c (error_tail): Assume vprintf.
20780 * lib/argmatch.c (getenv): Remove decl.
20781 * lib/progreloc.c (get_full_program_name): Define via prototype.
20782 * lib/setenv.c (clearenv): Likewise.
20783 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
20785 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
20786 (malloc, memcpy): Remove decls.
20787 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
20788 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
20789 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
20790 (memcpy): Remove macro.
20791 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
20792 (__P): Remove. All uses removed.
20793 (PTR): Remove. All uses changed to void *.
20794 (CHAR_BIT, NULL): Remove.
20795 (spaces, zeros, memset_space, memset_zero)
20796 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
20798 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
20799 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
20800 Define with prototype.
20801 Remove now-unnecessary prototype decl.
20802 (extra_args_spec): Assume ANSI C. All uses changed.
20803 (extra_args_spec_iso): Remove.
20804 (my_strftime, emacs_strftimeu): Define via prototype.
20805 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
20807 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
20808 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
20809 (strtoul, strtol): Remove decls.
20810 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
20812 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
20813 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
20814 (LOCALE_PARAM_PROTO): New macro.
20815 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
20816 (INTERNAL (strtol), strtol): Define with a prototype.
20817 (PARAMS): Remove. All uses removed.
20818 * lib/tempname.c: Include <string.h> unconditionally.
20819 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
20820 * lib/xgethostname.c (main): Define with a prototype.
20821 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
20822 Include <stdlib.h> unconditionally.
20823 (calloc, malloc, realloc, free): Remove decls.
20824 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
20825 Include <stdlib.h> unconditionally. Sort include file names.
20827 (xstrtod): Define with a prototype.
20828 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
20829 (strtol, strtoul): Remove decls.
20831 2003-09-11 Paul Eggert <eggert@twinsun.com>
20833 More patches to assume C89 or better.
20834 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
20835 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
20836 string.h, memchr, STDC_HEADERS.
20838 2003-09-11 Paul Eggert <eggert@twinsun.com>
20840 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
20841 Include <stdlib.h>, <string.h> unconditionally.
20842 Remove now-unnecessary cast to char *.
20843 * lib/strnlen.c: Include <string.h> unconditionally.
20844 * lib/yesno.c (yesno): Define with a prototype.
20846 2003-09-11 Bruno Haible <bruno@clisp.org>
20848 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
20850 2003-09-10 Jim Meyering <jim@meyering.net>
20852 * lib/error.c: Correct indentation of cpp directives.
20854 2003-09-10 Bruno Haible <bruno@clisp.org>
20856 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
20857 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
20858 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
20859 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
20860 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
20861 <stdlib.h> and <string.h> checks.
20862 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
20863 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
20865 2003-09-10 Bruno Haible <bruno@clisp.org>
20867 * lib/strcspn.c: Include <string.h> unconditionally.
20868 * lib/strpbrk.c: Include <string.h> unconditionally.
20869 * lib/strstr.c: Include <string.h> unconditionally.
20870 * lib/unicodeio.c: Include <string.h> unconditionally.
20871 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
20872 * lib/unsetenv.c: Likewise.
20873 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
20874 * lib/yesno.c: Include <stdlib.h> unconditionally.
20875 (rpmatch): Add prototype.
20877 2003-09-09 Paul Eggert <eggert@twinsun.com>
20879 More patches to assume C89 or better.
20880 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
20881 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
20882 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
20884 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
20886 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
20888 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
20890 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
20891 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
20892 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
20894 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
20895 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
20897 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
20899 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
20900 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
20901 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
20902 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
20903 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
20904 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
20906 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
20907 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
20908 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
20909 C headers, or for string.h.
20910 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
20911 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
20912 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
20913 headers, memory.h, stdlib.h, string.h, strings.h.
20914 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
20915 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
20916 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
20918 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
20919 headers, memory.h, string.h.
20920 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
20921 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
20923 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
20925 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
20926 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
20927 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
20928 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
20929 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
20931 2003-09-09 Paul Eggert <eggert@twinsun.com>
20935 * lib/acosl.c (main): Use a prototype.
20936 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
20939 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
20941 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
20942 (getopt, etopt_long, getopt_long_only, _getopt_internal)
20943 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
20945 * lib/getopt.c (const): Remove macro.
20946 Include <string.h> unconditionally.
20947 (my_index): Remove; all uses changed to strchr.
20948 (strlen): Remove decl.
20949 (exchange): Remove forward decl; no longer needed.
20950 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
20951 Define with prototype.
20952 * lib/getopt1.c (const): Remove macro.
20953 (getopt_long, getopt_long_only, main): Define with prototype.
20955 * lib/getugroups.c: Include <string.h> unconditionally.
20957 * lib/getusershell.c: Include <stdlib.h> unconditionally.
20958 (getusershell, setusershell, endusershell, readname, main):
20959 Define with prototypes.
20961 * lib/group-member.c: Include group-member.h first.
20962 Include <stdlib.h> unconditionally.
20964 * lib/hard-locale.c: Include hard-locale.h first.
20965 Include <stdlib.h>, <string.h> unconditionally.
20967 * lib/hash.c (free, malloc): Remove decls.
20968 Include <stdlib.h> unconditionally.
20970 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
20971 (getenv): Do not declare.
20973 * lib/idcache.c: Include <string.h> unconditionally.
20975 * lib/long-options.c: Include long-options.h first, to test interface.
20976 Include <stdlib.h> unconditionally.
20978 * lib/makepath.c: Include makepath.h first, to test interface.
20979 Include <stdlib.h> and <string.h> unconditionally.
20981 * lib/linebuffer.c: Include <stdlib.h>.
20982 (free): Remove decl.
20984 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
20985 stddef.h. rpl_malloc returns void *, not char *.
20986 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
20989 * lib/md5.h: Include <limits.h> unconditionally.
20990 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
20991 (__P): Remove; all uses removed.
20992 * lib/md5.c: Include "md5.h" first.
20993 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
20994 md5_buffer, md5_process_bytes, md5_process_block):
20995 Define with prototypes.
20996 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
20997 * lib/sha.c: Include "sha.h" first.
20998 Include <stdlib.h>, <string.h> unconditionally.
21000 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
21001 * lib/memcmp.c (__ptr_t): Likewise.
21002 * lib/memrchr.c (__ptr_t): Likewise.
21003 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
21004 Include <string.h> unconditionally.
21005 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
21006 * lib/memchr.c: Include <stdlib.h> unconditionally.
21007 * lib/memchr.c (LONG_MAX): Remove.
21008 * lib/memrchr.c (LONG_MAX): Likewise.
21009 * lib/memchr.c (__memchr): Define via a prototype.
21010 * lib/memrchr.c (__memrchr): Likewise.
21011 * lib/memcmp.c (__P): Remove, and remove all uses.
21012 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
21013 Remove forward decls; no longer needed.
21014 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
21015 Use types required by C89 in prototype.
21017 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
21018 * lib/savedir.c: Likewise.
21019 * lib/mkdir.c (free): Remove decl.
21020 * lib/rmdir.c (rmdir): Define with a prototype.
21021 * lib/savedir.c: Include savedir.h first, to test interface.
21023 * lib/mktime.c (STDC_HEADERS): Remove.
21024 Include <stdlib.h>, <string.h> unconditionally.
21026 * lib/modechange.c: Include <stdlib.h> unconditionally.
21027 (malloc): Remove decl.
21029 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
21030 (free): Remove decl.
21032 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
21033 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
21034 (This type really should be intptr_t, but that's a C99ism.)
21035 (_obstack_memcpy): Remove: all uses changed to memcpy.
21036 Include <string.h> unconditionally.
21037 (struct obstack): Assume __STDC__ for types of members
21038 chunkfun, freefun, extra_arg.
21039 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
21040 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
21041 obstack_begin, obstack_specify_allocation,
21042 obstack_specify_allocation_with_arg, obstack_chunkfun,
21043 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
21044 Remove unprototyped decls and the macros that use them.
21045 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
21046 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
21047 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
21048 (defined __STDC__ && __STDC__)]:
21049 Remove nonprototyped code.
21050 Include <stdlib.h> unconditionally.
21051 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
21052 _obstack_allocated_p, _obstack_free, obstack_free,
21053 _obstack_memory_used, print_and_abort):
21054 Define using prototypes.
21055 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
21056 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
21057 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
21058 obstack_next_free, obstack_object_size, obstack_room) [0]:
21059 Remove unused, unprototyped code.
21061 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
21063 * lib/physmem.c (physmem_total, physmem_available, main): Define
21066 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
21067 (main): Define with a prototype.
21069 * lib/posixver.c (getenv): Remove decl.
21071 * lib/putenv.c (malloc): Returns void *, not char *.
21072 Include <string.h> unconditionally.
21073 (strchr, memcpy, NULL): Do not define.
21075 * lib/readtokens.c: Include readtokens.h first, to test interface.
21076 Include <stdlib.h>, <string.h> unconditionally.
21077 (init_tokenbuffer): Define with a prototype.
21079 * lib/regex.c (PARAMS): Remove. All uses removed.
21080 All uses of _RE_ARGS removed, too.
21081 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
21083 (bzero): Assume memset exists.
21084 (memcmp, memcpy, NULL): Remove.
21085 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
21086 char, or assignments to local vars of type signed char.
21087 (init_syntax_once, PREFIX(extract_number_and_incr),
21088 PREFIX(print_partial_compiled_pattern),
21089 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
21090 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
21091 PREFIX(regex_grow_registers), PREFIX(regex_compile),
21092 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
21093 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
21094 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
21095 wcs_compile_range, byte_compile_range, truncate_wchar,
21096 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
21097 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
21098 count_mbs_length, wcs_re_match_2_internal,
21099 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
21100 PREFIX(alt_match_null_string_p),
21101 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
21102 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
21103 regfree, PREFIX(extract_number)): Define with prototype. Remove
21104 now-unnecessary declaration, if any.
21105 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
21107 Remove now-unnecessary casts among pointer types.
21108 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
21110 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
21111 (free): Remove decl.
21113 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
21115 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
21116 (free): Remove decl.
21118 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
21119 * lib/xgetcwd.c: Likewise.
21121 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
21122 (free): Remove decl.
21124 * lib/strchrnul.c (strchrnul): Define with a prototype.
21125 Fix bug: c_in was not converted to char before searching.
21127 The following changes are not K&R related:
21129 * lib/group-member.h: Include <sys/types.h>, so that this file is
21131 * lib/makepath.h: Likewise.
21133 * lib/getusershell.c (readname, default_index, line_size, readname):
21134 Use size_t, not int, for sizes.
21135 (readname): If the size overflows, report an error instead of
21138 2003-09-09 Paul Eggert <eggert@twinsun.com>
21140 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
21143 2003-09-09 Paul Eggert <eggert@twinsun.com>
21145 * README: New section: portability guidelines.
21147 2003-09-09 Derek Robert Price <derek@ximbiot.com>
21149 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
21152 2003-09-09 Derek Robert Price <derek@ximbiot.com>
21154 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
21156 2003-09-08 Paul Eggert <eggert@twinsun.com>
21158 Assume C89 or better; remove K&R cruft.
21159 A few of these changes were first proposed by Derek Robert Price
21160 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
21162 * lib/addext.c: Include <string.h> unconditionally.
21163 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
21164 Don't declare getenv or malloc.
21166 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
21167 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
21169 (find_stack_direction, alloca): Use prototypes.
21171 * lib/atexit.c (atexit): Define using a prototype.
21173 * lib/basename.c, dirname.c, stripslash.c:
21174 Include <string.h> unconditionally.
21176 * lib/bcopy.c: Include <stddef.h>.
21177 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
21179 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
21181 * lib/error.h (error, error_at_line, error_print_progname)
21182 [! (defined (__STDC__) && __STDC__)]: Remove decls.
21183 * lib/error.c: Include error.h first, to check interface.
21184 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
21185 (VA_START): Remove; all uses changeed to va_start.
21186 (exit, strerror): Remove decls.
21187 (error_print_progname): Prototype uncondionally.
21188 Don't include <errno.h>; no longer needed.
21189 (private_strerror): Remove.
21190 (error_tail): Always define.
21191 (error, error_at_line): Assume C89 or better; always use prototypes.
21192 * lib/fatal.c: Include "fatal.h" first, to test interface.
21193 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
21194 (VA_START): Remove; all uses changed to va_start.
21195 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
21197 (exit): Remove decl.
21198 (fatal): Prototype unconditionally. Assume va_start works.
21199 Abort at end, to pacify gcc.
21201 * lib/euidaccess.c (main): Define with a prototype.
21203 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
21205 * lib/exitfail.c: Include <stdlib.h> unconditionally.
21207 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
21209 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
21210 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
21211 (getenv): Remove decl.
21212 (fnmatch): Define using a prototype.
21213 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
21214 (FCT): Define using a prototype.
21216 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
21218 * lib/gethostname.c: Include <stddef.h>.
21219 (gethostname): Define with prototype. Length is size_t, not int.
21221 2003-09-08 Paul Eggert <eggert@twinsun.com>
21223 Assume C89 or better; remove K&R cruft.
21224 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
21225 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
21226 string.h, getenv, malloc.
21227 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
21229 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
21230 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
21231 do not check for strerror.
21232 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
21233 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
21234 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
21235 do not check for doprnt or vprintf.
21236 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
21237 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
21239 2003-09-08 Paul Eggert <eggert@twinsun.com>
21241 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
21242 getversion.c should have been removed then, but was accidentally
21245 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
21246 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
21248 2003-09-08 Karl Berry <karl@gnu.org>
21250 * config/config.sub, config.guess, srclistvars.sh: update from savannah
21251 config, forget about prep.
21253 * config/depcomp, missing: update from automake.
21255 2003-09-07 Paul Eggert <eggert@twinsun.com>
21257 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
21258 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
21260 2003-09-07 Paul Eggert <eggert@twinsun.com>
21262 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
21263 copy_tm_result. Bug reported by Simon Josefsson in
21264 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
21266 2003-09-06 Paul Eggert <eggert@twinsun.com>
21268 * m4/time_r.m4: New file.
21269 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
21270 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
21271 is. Check for timegm declaration.
21272 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
21273 Do not check for gmtime_r.
21274 Replace mktime if __mktime_internal does not exist and if mktime
21275 hasn't been replaced already.
21277 2003-09-06 Paul Eggert <eggert@twinsun.com>
21279 * lib/time_r.c, lib/time_r.h: New files.
21281 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
21283 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
21284 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
21286 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
21288 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
21289 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
21290 Include <time_r.h>.
21292 * lib/timegm.c: Switch to glibc implementation, with the following
21294 [defined HAVE_CONFIG_H]: Include <config.h>.
21295 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
21296 (__mktime_internal) [!defined _LIBC]: New decl.
21297 (__gmtime_r) [!defined _LIBC]: New macro and function.
21298 (timegm): Use a prototype, since gnulib assumes C89.
21299 Do not bother declaring tmp to be const, as it's not really usefu.
21300 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
21301 (timegm): Declare only if HAVE_DECL_TIMEGM.
21303 2003-09-06 Paul Eggert <eggert@twinsun.com>
21305 * MODULES.html.sh (func_all_modules): Add time_r.
21306 * modules/time_r: New file.
21307 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
21308 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
21310 2003-09-03 Paul Eggert <eggert@twinsun.com>
21312 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
21313 Bug reported by Lute Kamstra in
21314 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
21316 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
21317 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
21318 course with correspondingly smaller numbers for tomorrow and
21319 yesterday. From Tadayoshi Funaba. Originally installed into
21320 sh-utils on 1999-08-07, but the patch got lost (I guess during the
21323 2003-08-31 Simon Josefsson <jas@extundo.com>
21325 * modules/timegm: New file.
21326 * MODULES.html.sh (func_all_modules): Add timegm.
21328 2003-08-31 Simon Josefsson <jas@extundo.com>
21330 * m4/timegm.m4: New file.
21332 2003-08-31 Simon Josefsson <jas@extundo.com>
21334 * lib/timegm.h: New file.
21335 * lib/timegm.c: New file. Based on
21336 wget-1.8.2/src/http.c:mktime_from_utc.
21338 2003-08-31 Karl Berry <karl@gnu.org>
21340 * lib/argp.h: update from libc.
21342 2003-08-28 Bruno Haible <bruno@clisp.org>
21344 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
21345 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
21346 followed by '#define fnmatch fnmatch_posix' gives an error.
21348 2003-08-28 Bruno Haible <bruno@clisp.org>
21350 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
21351 warning on QNX, which defines O_BINARY to 000000.
21353 2003-08-27 Jim Meyering <jim@meyering.net>
21355 * m4/mkstemp.m4: Require that the system mkstemp be able to create
21356 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
21357 would fail after 32. Reported by Danny Levinson. Details here:
21358 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
21360 2003-08-24 Bruno Haible <bruno@clisp.org>
21362 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
21363 MSVC7 <stdio.h> is included later.
21365 2003-08-22 Simon Josefsson <jas@extundo.com>
21367 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
21369 2003-08-20 Karl Berry <karl@gnu.org>
21371 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
21373 2003-08-20 Bruno Haible <bruno@clisp.org>
21375 * modules/progname: New file.
21376 * MODULES.html.sh (func_all_modules): Add progname.
21378 2003-08-20 Bruno Haible <bruno@clisp.org>
21380 * lib/progname.h: New file, from GNU gettext.
21381 * lib/progname.c: New file, from GNU gettext.
21382 * lib/progreloc.c: New file, from GNU gettext.
21384 2003-08-19 Jim Meyering <jim@meyering.net>
21386 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
21387 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
21389 2003-08-19 Bruno Haible <bruno@clisp.org>
21391 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
21394 2003-08-19 Bruno Haible <bruno@clisp.org>
21396 * lib/xstrdup.c: Assume <string.h> exists.
21398 2003-08-18 Paul Eggert <eggert@twinsun.com>
21400 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
21403 2003-08-18 Jim Meyering <jim@meyering.net>
21405 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
21406 * m4/lib-ld.m4: Likewise.
21408 2003-08-18 Jim Meyering <jim@meyering.net>
21410 * lib/setenv.h: Indent nested cpp directive.
21411 * lib/vasnprintf.c: Remove trailing blanks.
21413 2003-08-17 Simon Josefsson <jas@extundo.com>
21415 * modules/xstrndup: New file.
21416 * MODULES.html.sh (func_all_modules): Add xstrndup.
21418 2003-08-17 Simon Josefsson <jas@extundo.com>
21420 * modules/argp: Fix autoconf macro name. Add more dependencies.
21422 2003-08-17 Simon Josefsson <jas@extundo.com>
21424 * m4/xstrndup.m4: New file.
21426 2003-08-17 Simon Josefsson <jas@extundo.com>
21428 * m4/argp.m4: New file.
21430 2003-08-17 Simon Josefsson <jas@extundo.com>
21431 Bruno Haible <bruno@clisp.org>
21433 * lib/xstrndup.h: New file.
21434 * lib/xstrndup.c: New file.
21436 2003-08-17 Bruno Haible <bruno@clisp.org>
21438 * modules/strndup (Files, Include): Add lib/strndup.h.
21440 2003-08-17 Bruno Haible <bruno@clisp.org>
21442 * modules/euidaccess (Files): Add lib/euidaccess.h.
21444 2003-08-17 Bruno Haible <bruno@clisp.org>
21446 * lib/strndup.h: New file.
21448 2003-08-17 Bruno Haible <bruno@clisp.org>
21450 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
21451 like AC_GNU_SOURCE.
21452 * modules/extensions (configure.ac): Comment out the invocation of
21453 gl_USE_SYSTEM_EXTENSIONS.
21455 2003-08-16 Paul Eggert <eggert@twinsun.com>
21457 Merges from coreutils, etc.
21458 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
21459 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
21460 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
21462 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
21463 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
21465 2003-08-16 Paul Eggert <eggert@twinsun.com>
21467 Document merge from coreutils.
21468 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
21469 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
21470 * modules/utime: Add m4/utimes-null.m4.
21472 2003-08-16 Paul Eggert <eggert@twinsun.com>
21474 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
21475 space, undoing this 2003-08-12 change:
21476 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
21478 2003-08-16 Paul Eggert <eggert@twinsun.com>
21480 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
21481 strtoul.c from libc, undoing this 2003-08-12 change:
21482 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
21484 2003-08-16 Jim Meyering <jim@meyering.net>
21486 Merges from coreutils.
21487 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
21488 prefix. Adjust cache variables similarly. Create 500 rather than
21489 just 300 files, to exercise bug on Darwin6.5, too.
21490 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
21492 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
21493 AM_SYS_POSIX_TERMIOS.
21494 Reported by mkc@mathdogs.com.
21495 Also change use of $am_cv_sys_posix_termios
21496 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
21497 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
21498 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
21499 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
21500 in /proc/mounts until it finds one with matching device number. This
21501 is unnecessary when the FILE argument *is* a mount point. No stat call
21502 is necessary in that case. So, disable the statvfs-testing code on
21503 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
21504 as RedHat bug# 84846.
21505 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
21506 to 1MB, so as not to render systems with no stack size limit (e.g.,
21507 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
21508 Include <unistd.h>. On some systems,
21509 it is required for the definition of _SC_PAGESIZE.
21511 2003-08-16 Jim Meyering <jim@meyering.net>
21513 Merge from coreutils.
21514 * lib/xstrtoimax.c: #else #if -> #elif.
21515 * lib/xstrtoumax.c: Likewise.
21517 2003-08-16 Jim Meyering <jim@meyering.net>
21519 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
21520 * m4/utimes.m4: Removed.
21521 * m4/utimes-null.m4: Renamed from utimes.m4.
21523 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
21524 to 1MB, so as not to render systems with no stack size limit (e.g.,
21525 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
21526 Include <unistd.h>. On some systems,
21527 it is required for the definition of _SC_PAGESIZE.
21529 2003-08-16 Jim Meyering <jim@meyering.net>
21530 and Paul Eggert <eggert@cs.ucla.edu>
21532 Merges from coreutils, etc.
21534 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
21535 using the latest version from cvs. This avoids problems with #line
21536 directives using a vendor (Sun) compiler.
21537 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
21538 Don't set GETGROUPS_LIB here; now it's
21539 done via getgroups.m4's wrapper function.
21540 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
21541 rather than just in sh-util/configure.in, so that the
21542 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
21544 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
21545 AC_FUNC_GETLOADAVG where to find getloadavg.c.
21546 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
21547 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
21548 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
21549 Remove code that is now done by the newly-required macros.
21550 Append $(EXEEXT) to DF_PROG.
21551 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
21552 Do not invoke or require the following here,
21553 since prereq.m4 or some gnulib .m4 now does this for us:
21554 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
21555 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
21556 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
21557 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
21558 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
21559 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
21560 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
21562 Do not replace the following functions, as this is now the job
21563 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
21564 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
21565 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
21566 atexit getpass, strdup, getpagesize.
21568 Do not check for the following functions, as this is now the job
21569 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
21570 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
21572 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
21573 Check for sys/sysctl.h.
21574 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
21575 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
21576 of checking for ssize_t ourselves.
21578 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
21579 Require every macro that gnulib/modules/* suggests for us.
21580 (jm_PREREQ_ADDEXT): New macro.
21581 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
21582 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
21584 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
21585 (gl_PHYSMEM): Use it.
21586 Also check for `table' function.
21587 Check for new headers and functions.
21588 Add check for sys/sysmp.h.
21589 With suggestions from Kaveh Ghazi.
21590 Ignore headers that are present but cannot be compiled. This
21591 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
21594 2003-08-15 Paul Eggert <eggert@twinsun.com>
21596 Document merge from coreutils.
21597 * modules/userspec: Depend on posixver.
21598 * modules/strftime: Depend on tzset.
21600 2003-08-15 Paul Eggert <eggert@twinsun.com>
21602 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
21603 rather than tab, after '#' in shell-script copyright notices.
21604 Suggested by Bruno Haible.
21606 2003-08-15 Paul Eggert <eggert@twinsun.com>
21608 * config/srclist-update: Use three spaces, rather than tab, after '#'
21609 in shell-script copyright notices. Suggested by Bruno Haible.
21610 Remove unnecessary parenthesization in regular expression.
21612 2003-08-15 Jim Meyering <jim@meyering.net>
21614 Merge from coreutils.
21615 * lib/xgethostname.c: Include <stdlib.h>.
21616 (xghostname): Don't exit for anything other than memory-related
21617 failure; just return NULL.
21618 * lib/userspec.c: Include "posixver.h".
21619 (parse_user_spec): Accept `.' as a separator only
21620 in pre-POSIX-200112 mode.
21621 * lib/strtoimax.c: Use #elif rather than #else #if.
21622 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
21623 Remove function, now that we can rely on a working tzset function.
21624 [!_LIBC]: Ensure that the required autoconf test has been run.
21625 [!defined _NL_CURRENT && HAVE_STRFTIME]:
21626 Use underlying_strftime for %r.
21627 * lib/sha.c: Merge in some clean-up and optimization changes from
21629 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
21630 Ensure that it is a multiple of 64.
21631 Rearrange loop exit tests so as to avoid performing an
21632 additional fread after encountering an error or EOF.
21633 * lib/realloc.c: Update copyright date.
21635 2003-08-15 Jim Meyering <jim@meyering.net>
21636 and Paul Eggert <eggert@twinsun.com>
21638 Merge from coreutils.
21639 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
21640 member but strut utmpx does not. Needed for AIX 4.3.3.
21641 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
21643 2003-08-15 Jim Meyering <jim@meyering.net>
21644 and Paul Eggert <eggert@cs.ucla.edu>
21646 Merges from coreutils, etc.
21647 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
21648 Require gl_FUNC_TZSET_CLOBBER.
21649 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
21650 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
21653 2003-08-14 Paul Eggert <eggert@twinsun.com>
21655 Help the merge from coreutils.
21656 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
21657 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
21658 * m4/tzset.m4: Use it too.
21660 2003-08-14 Paul Eggert <eggert@twinsun.com>
21662 * modules/tzset: New file.
21664 2003-08-14 Jim Meyering <jim@meyering.net>
21666 Merges from coreutils.
21667 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
21668 variable names, rather than @FNMATCH_H@.
21669 * modules/alloca: Likewise for $(ALLOCA_H).
21671 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
21672 the three copies of the literal target, `fnmatch.h'.
21673 * modules/alloca (alloca.h): Likewise.
21675 2003-08-14 Jim Meyering <jim@meyering.net>
21677 Merge from coreutils.
21678 * m4/tzset.m4: New file.
21679 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
21680 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
21681 otherwise, AIX 5.1 systems would end up using the latter.
21682 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
21683 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
21684 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
21685 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
21687 2003-08-14 Jim Meyering <jim@meyering.net>
21689 Merge from coreutils.
21690 * lib/obstack.h: Whitespace changes.
21691 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
21692 and xcalloc return values.
21693 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
21694 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
21695 hang on OSF/1 5.1 for DIR on both local and remote file systems.
21696 Reported by (and fix confirmed by) Nelson H. F. Beebe.
21697 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
21699 Use mntctl's return value to drive the entry-processing loop, since
21700 we can't rely on the value of the vmt_length member in the last
21701 entry. On some systems doing so could result in exhausting
21702 virtual memory. Based in part on a patch from Mike Jetzer.
21704 2003-08-14 Jim Meyering <jim@meyering.net>
21705 and Paul Eggert <eggert@twinsun.com>
21707 Merges from coreutils, plus other fixes.
21708 * lib/physmem.c: Merge in portability changes from gcc/libiberty
21709 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
21710 for credits and details. Thanks to Kaveh Ghazi for helping
21711 to keep these files in sync.
21712 (ARRAY_SIZE): Define it.
21713 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
21714 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
21715 (memcasecmp): Don't assume size_t fits in unsigned int.
21716 Remove casts and duplicate code.
21717 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
21718 (memcpy): Remove definition.
21719 Merge in some clean-up and optimization changes from glibc.
21720 [BLOCKSIZE]: Move definition to top of file.
21721 Ensure that it is a multiple of 64.
21722 Rearrange loop exit tests so as to avoid performing an
21723 additional fread after encountering an error or EOF.
21724 * lib/md5.h (md5_uintptr): Define.
21725 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
21726 return to the initial working directory. Preserve errno
21728 * lib/idcache.c: Include "xalloc.h".
21729 (xmalloc, xrealloc): Remove decls.
21730 (getuser): Remove casts no longer required in C89.
21731 * lib/human.c: Include stdio.h, for sprintf.
21732 * lib/group-member.c: Include "xalloc.h".
21733 (xmalloc, xrealloc): Remove decls.
21734 (get_group_info): Remove casts no longer required in C89.
21735 * lib/getusershell.c (readname): Remove casts no longer required in
21737 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
21738 * lib/getline.c: Whitespace fix, from coreutils.
21740 2003-08-13 Paul Eggert <eggert@twinsun.com>
21742 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
21745 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
21746 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
21747 Undo previous (whitespace-only) change.
21749 2003-08-13 Paul Eggert <eggert@twinsun.com>
21751 * lib/exclude.c: Include <ctype.h>
21752 (IN_CTYPE_DOMAIN): New macro.
21753 (is_space): New fn.
21754 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
21757 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
21758 Undo previous (whitespace-only) change.
21760 2003-08-13 Paul Eggert <eggert@twinsun.com>
21762 * config/srclist-update: Change update back to the old behavior,
21763 leaving whitespace alone. Use one 'sed' command rather than a
21765 (fixlicense): Now a variable, not a function.
21766 (remove_trailing_blanks): Remove.
21767 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
21768 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
21769 Undo previous (whitespace-only) change.
21771 2003-08-12 Paul Eggert <eggert@twinsun.com>
21773 Merge from coreutils.
21774 * modules/euidaccess: Add lib_SOURCES, include for new
21777 2003-08-12 Paul Eggert <eggert@twinsun.com>
21779 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
21780 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
21781 Normalize leading white space and remove trailing white space.
21783 Merge from coreutils
21784 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
21786 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
21787 0.12.1. These files are now being upgraded automatically by
21788 ../config/srclist-update.
21790 2003-08-12 Paul Eggert <eggert@twinsun.com>
21792 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
21793 Normalize leading white space and remove trailing white space.
21794 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
21795 notice, as per ../config/srclist-update.
21797 Merge from coreutils.
21798 * lib/euidaccess.h: New file.
21799 * lib/euidaccess.c: Include it.
21800 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
21801 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
21802 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
21804 2003-08-12 Paul Eggert <eggert@twinsun.com>
21806 * config/srclist-update: Add copyright notice.
21807 (remove_id_lines, remove_trailing_blanks): New constants.
21808 (fixfile): Use them to normalize spacing a bit in copied files.
21809 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
21810 Normalize leading white space and remove trailing white space.
21812 * config/texinfo.tex: Sync with texinfo.
21814 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
21815 strtoul.c from libc, to merge coreutils whitespace changes.
21817 * config/srclist.txt: Get the following m4 files from gettext:
21818 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
21819 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
21820 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
21823 2003-08-12 Karl Berry <karl@gnu.org>
21825 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
21828 2003-08-11 Paul Eggert <eggert@twinsun.com>
21830 * modules/gnu-source, m4/gnu-source.m4:
21831 Remove; we're assuming Autoconf 2.54 or later now.
21832 Suggested by Bruno Haible.
21833 * MODULES.html.sh (func_all_modules): Remove gnu-source.
21835 2003-08-11 Bruno Haible <bruno@clisp.org>
21837 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
21839 2003-08-11 Bruno Haible <bruno@clisp.org>
21841 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
21842 (vasnprintf): Use it instead of wcslen.
21844 2003-08-11 Bruno Haible <bruno@clisp.org>
21846 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
21847 value to ensure that _Bool promotes to int. Use #define for _Bool when
21848 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
21850 2003-08-10 Karl Berry <karl@gnu.org>
21852 * lib/regex.h: update from libc (whitespace fix).
21854 2003-08-09 Paul Eggert <eggert@twinsun.com>
21856 Merge some files from coreutils. These changes were
21857 originally made by Jim Meyering.
21858 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
21859 many older Unixes require this.
21860 * lib/alloca.c (alloca): Remove cast to argument of free;
21861 no longer needed in C89.
21862 * lib/alloca_.h, regex.h: Fix white space to match
21863 what GNU indent does.
21865 2003-08-09 Paul Eggert <eggert@twinsun.com>
21867 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
21868 apparently Emacs's Unicode mode got confused before my 2003-08-05
21871 2003-08-08 Paul Eggert <eggert@twinsun.com>
21873 * m4/extensions.m4: New file.
21874 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
21875 Require gl_USE_SYSTEM_EXTENSIONS.
21876 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
21877 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
21879 2003-08-08 Paul Eggert <eggert@twinsun.com>
21881 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
21882 * modules/extensions, modules/gnu-source: New files.
21883 * modules/timespec, modules/unlocked-io: Depend on extensions.
21885 2003-08-07 Paul Eggert <eggert@twinsun.com>
21887 * modules/restrict: New file.
21888 * MODULES.html.sh (func_all_modules): Add restrict.
21889 * modules/regex: Depend on restrict.
21891 2003-08-07 Paul Eggert <eggert@twinsun.com>
21893 * m4/restrict.m4: New file.
21894 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
21896 2003-08-07 Bruno Haible <bruno@clisp.org>
21898 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
21899 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
21901 2003-08-07 Bruno Haible <bruno@clisp.org>
21903 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
21904 makes the module 'getndelim2' compatible with the module 'getline'.
21906 2003-08-05 Paul Eggert <eggert@twinsun.com>
21908 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
21909 byte with "\201" to avoid glitches when editing that source file
21910 with multi-gnome-terminal.
21912 2003-08-05 Paul Eggert <eggert@twinsun.com>
21914 * lib/bumpalloc.h: Remove.
21916 2003-08-05 Paul Eggert <eggert@twinsun.com>
21918 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
21919 * modules/bumpalloc: Remove.
21921 2003-08-04 Paul Eggert <eggert@twinsun.com>
21923 * lib/getloadavg.c: Change copyright notice and spacing to conform to
21926 Merge from coreutils.
21927 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
21929 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
21930 from Karl Berry, implemented by Jim Meyering.
21931 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
21932 from Dmitry V. Levin.
21933 Remove anachronistic cast of xrealloc.
21934 * lib/fnmatch_.h (__const): Remove. Use 'const'.
21935 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
21936 type. Otherwise, it wouldn't compile with at least /bin/cc on
21937 ymp-cray-unicos9.0.2.X.
21938 Combine two mostly-identical uses of alloca into one.
21939 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
21941 2003-08-04 Dave Love <d.love@dl.ac.uk>
21945 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
21946 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
21947 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
21948 obsolete NLIST_NAME_UNION.
21949 [__GNU__]: Undef BSD and FSCALE.
21950 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
21952 2003-08-03 Paul Eggert <eggert@twinsun.com>
21954 * lib/stdbool_.h (_Bool): Make it signed char, instead of
21955 an enum type, so that it's guaranteed to promote to int. See:
21956 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
21958 2003-08-03 Karl Berry <karl@gnu.org>
21960 * config/depcomp: update from automake.
21962 2003-07-31 Paul Eggert <eggert@twinsun.com>
21964 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
21965 (strerror): Don't assume that a printable int fits in 14 bytes.
21967 2003-07-31 Bruno Haible <bruno@clisp.org>
21969 * modules/getpass-gnu: New file.
21970 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
21972 2003-07-31 Bruno Haible <bruno@clisp.org>
21974 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
21976 2003-07-24 Karl Berry <karl@gnu.org>
21978 * config/missing: update from automake.
21980 2003-07-24 Derek Robert Price <derek@ximbiot.com>
21981 Bruno Haible <bruno@clisp.org>
21983 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
21984 * lib/getline.c (getline, getdelim): Likewise.
21985 Remove _GNU_SOURCE define; now it's defined in config.h through
21988 2003-07-23 Karl Berry <karl@gnu.org>
21990 * config/config.sub: update from prep.
21992 2003-07-22 Paul Eggert <eggert@twinsun.com>
21994 * modules/xalloc (Depends-on): Add exitfail.
21995 * modules/xmemcoll: Likewise.
21997 2003-07-22 Paul Eggert <eggert@twinsun.com>
21999 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
22000 over-parenthesization in macros.
22002 Sync with coreutils.
22004 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
22007 Use `exit_failure' for xalloc and xmemcoll instead of their own
22008 private exit-failure variables.
22009 * lib/xalloc.h (xalloc_exit_failure): Remove.
22010 * lib/xmalloc.c: Likewise. Include exitfail.h.
22011 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
22012 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
22013 * lib/xmemcoll.c: Likewise. Include exitfail.h.
22014 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
22016 2003-07-20 Jim Meyering <jim@meyering.net>
22018 * modules/closeout (Depends-on): Add exitfail.
22019 Suggestion from Bruno Haible.
22021 2003-07-19 Karl Berry <karl@gnu.org>
22023 * config/config.sub: update from prep.
22025 2003-07-18 Paul Eggert <eggert@twinsun.com>
22027 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
22029 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
22030 to test that it can stand by itself. Include "exitfail.h".
22031 Clients should set exit_failure instead.
22032 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
22034 2003-07-18 Bruno Haible <bruno@clisp.org>
22036 * modules/getndelim2: New file.
22037 * modules/getline: Share files with module getndelim2.
22038 * modules/getnline: Depend on getndelim2 instead of sharing files with
22039 it. Add getnline.c to lib_SOURCES.
22040 * MODULES.html.sh (func_all_modules): Add getndelim2.
22042 2003-07-18 Bruno Haible <bruno@clisp.org>
22044 * m4/getndelim2.m4: New file.
22045 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
22046 invoke gl_PREREQ_GETNDELIM2.
22047 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
22048 gl_PREREQ_GETNDELIM2.
22049 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
22052 2003-07-18 Bruno Haible <bruno@clisp.org>
22054 * lib/getndelim2.h: New file.
22055 * lib/getndelim2.c: Make into a module of its own. Include config.h,
22057 (getndelim2): Make non-static. Change return type to ssize_t.
22058 * lib/getline.h: Change argument names.
22059 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
22060 * lib/getnline.c: Include getndelim2.h.
22062 2003-07-18 Andreas Schwab <schwab@suse.de>
22064 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
22066 2003-07-17 Karl Berry <karl@gnu.org>
22068 * config/config.sub: update from prep.
22070 2003-07-17 Bruno Haible <bruno@clisp.org>
22072 * modules/getnline: New file.
22073 * modules/getline: Add lib/getndelim2.c to source file list.
22074 * MODULES.html.sh (func_all_modules): Add getnline.
22076 2003-07-17 Bruno Haible <bruno@clisp.org>
22078 * m4/getnline.m4: New file.
22080 2003-07-17 Bruno Haible <bruno@clisp.org>
22082 * m4/Makefile.am.in: Remove file.
22083 * m4/Makefile.am: Remove file.
22084 * m4/Makefile.in: Remove file.
22086 2003-07-17 Bruno Haible <bruno@clisp.org>
22088 * lib/getnline.h: New file.
22089 * lib/getnline.c: New file.
22090 * lib/getndelim2.c: New file, extracted from getline.c.
22091 (getndelim2): Renamed from getdelim2, with added nmax argument.
22092 * lib/getline.c: Include getndelim2.c.
22093 (getdelim2): Moved out to getndelim2.c.
22094 (getline, getdelim): Update.
22096 2003-07-17 Bruno Haible <bruno@clisp.org>
22098 * lib/Makefile.am: Remove file.
22099 * lib/Makefile.in: Remove file.
22101 2003-07-17 Bruno Haible <bruno@clisp.org>
22103 * configure.in: Remove file.
22104 * Makefile.in: Remove file.
22106 2003-07-17 Bruno Haible <bruno@clisp.org>
22108 * MODULES.html.sh: Put the </BODY> right before </HTML>.
22110 2003-07-16 Karl Berry <karl@gnu.org>
22112 * config/srclist-update: was running fixlicense twice, which caused
22113 texinfo.tex to be nullified for some reason. Simplify,
22114 $gplsrc is no longer needed as far as I can see?
22116 2003-07-16 Jim Meyering <jim@meyering.net>
22118 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
22120 2003-07-15 Paul Eggert <eggert@twinsun.com>
22122 * config/srclist.txt: Get the following files from gettext-runtime/intl
22123 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
22124 ref-del.sin. From Bruno Haible.
22125 * config/srclist-update (fixfile): Change grep pattern again, since the
22126 previous fix didn't work (there was another trailing $). Use
22127 '[$]' to escape the $s.
22129 2003-07-15 Karl Berry <karl@gnu.org>
22131 * lib/vasnprintf.c: update from gettext.
22133 2003-07-15 Karl Berry <karl@gnu.org>
22135 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
22136 gets expanded when surrounded by '$'.
22138 2003-07-15 Jim Meyering <jim@meyering.net>
22140 * modules/save-cwd: Don't depend on error. From Derek Price.
22142 2003-07-15 Jim Meyering <jim@meyering.net>
22144 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
22146 2003-07-14 Simon Josefsson <jas@extundo.com>
22148 * modules/mempcpy: New file.
22149 * MODULES.html.sh (func_all_modules): Add mempcpy.
22151 2003-07-14 Simon Josefsson <jas@extundo.com>
22153 * m4/mempcpy.m4: New file.
22155 2003-07-14 Simon Josefsson <jas@extundo.com>
22157 * lib/mempcpy.h: New file.
22158 * lib/mempcpy.c: New file.
22160 2003-07-14 Paul Eggert <eggert@twinsun.com>
22162 * modules/getdate, modules/posixtm: Depend on mktime.
22164 2003-07-14 Paul Eggert <eggert@twinsun.com>
22166 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
22167 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
22168 unicodeio.c, unicodeio.h, unlocked-io.h:
22169 Switch from LGPL to GPL.
22171 2003-07-14 Paul Eggert <eggert@twinsun.com>
22173 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
22174 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
22175 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
22176 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
22177 vasprintf.c, vasprintf.h: Regenerate. These files are now being
22178 updated automatically by ../config/srclist-update. This changes
22179 their license from LPGL to GPL.
22181 2003-07-14 Paul Eggert <eggert@twinsun.com>
22183 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
22184 assumed to refer to the root of the most recent stable gettext version.
22185 * config/srclistvars.sh: Add defaults for eggert.
22186 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
22187 Match "This program" as well as "The program". This is needed
22190 2003-07-14 Jim Meyering <jim@meyering.net>
22192 Don't emit diagnostics. Let callers do that.
22193 * lib/save-cwd.c: Don't include "error.h".
22194 (save_cwd): Don't call error. Ensure that errno is valid
22195 when returning nonzero.
22197 * lib/save-cwd.h (restore_cwd): Update prototype.
22198 * lib/save-cwd.c (restore_cwd): Remove two parameters.
22199 Simplify. Don't call error upon failure. Let callers do that.
22200 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
22201 when auditing is enabled. But don't bother updating the #if.
22203 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
22205 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
22206 it breaks C++ compilation.
22207 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
22209 2003-07-10 Simon Josefsson <jas@extundo.com>
22211 * modules/strchrnul (Makefile.am): Add strchrnul.h.
22213 2003-07-10 Jim Meyering <jim@meyering.net>
22215 * m4/clock_time.m4: Remove trailing blank.
22216 * m4/intmax_t.m4: Likewise.
22218 2003-07-10 Jim Meyering <jim@meyering.net>
22220 * lib/vasnprintf.c: Remove trailing blanks.
22221 Make cpp indentation consistent.
22223 2003-07-09 Paul Eggert <eggert@twinsun.com>
22225 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
22226 posixver.c, strftime.c, strnlen.c, strverscmp.c:
22227 Switch from LGPL to GPL.
22229 2003-07-09 Paul Eggert <eggert@twinsun.com>
22231 * config/srclist.txt: Sort sublists. Add
22232 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
22233 that differ from gnulib for one reason or another; we'd like this list
22234 to be smaller but for now let's document what we have.
22236 2003-07-08 Paul Eggert <eggert@twinsun.com>
22238 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
22239 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
22240 and sweeter "eval x=$x".
22241 * config/srclist.txt: Get lib/argp* from glibc.
22243 2003-07-07 Paul Eggert <eggert@twinsun.com>
22245 * lib/mktime.c: Fix some boundary cases and remove need for floating
22248 Issue a compile-time diagnostic if time_t is floating point, or if
22249 two's complement arithmetic is not in effect, or if arithmetic
22250 right shift does not propagate the sign. These assumptions were
22251 all in the original code but they weren't checked.
22253 (TIME_T_MIDPOINT, verify): New macros.
22254 (__isleap): Remove; it has integer overflow problems.
22255 (leapyear): New function, without those problems.
22256 (ydhms_tm_diff): Remove; splitting into two parts.
22257 (ydhms_diff): New function, containing the arithmetic part of
22258 the old ydhms_tm_diff function. Issue a compile-time
22259 diagnostic if we are not using C99 integer division.
22260 Avoid casts when possible.
22261 (guess_time_tm): New function, containing the checking part of
22262 the old ydhms_tm_diff function. Return the new value, rather than
22263 the difference between it and the old. Accept a new argument T
22264 so that *T specifies the old value. Check for overflow in the result.
22266 (__mktime_internal): Use a time_t offset, not a long int offset.
22267 This undoes the 2003-06-04 change, which is no longer needed now
22268 that we have better overflow checking.
22269 (localtime_offset): Likewise.
22271 (__mktime_internal): Avoid harmful overflow on hosts where time_t
22272 and long are 64-bit but int is only 32-bit.
22273 (ydhms_diff): Use long int to store year1 and yday1.
22274 Issue a compile-time diagnostic if long int is not wide enough.
22276 (__mktime_internal): Use long int to store adjusted year and yday.
22277 Use plain C rather than preprocessor commands, if that doesn't
22279 Check for overflow (and try to repair) after each probe
22280 rather than checking only at the very end. This avoids some bugs
22281 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
22282 does not equal GMT offset at maximum time).
22283 Use integer to check for overflow rather than floating point; this
22284 is more portable to non-IEEE hosts, and is a tad faster.
22285 When we detect that we are oscillating between two values,
22286 don't check whether tm_isdst has the requested value, since
22287 we already know the answer. When tm_isdst has the wrong value,
22288 use a different heuristic to find the right one, based on the
22289 extreme values actually observed in practice in tz2003a,
22290 rather than the (overly optimistic) "previous 3 calendar quarters".
22292 (not_equal_tm, print_tm, check_result): Use "const T" rather than
22293 "T const" to accommodate glibc style.
22294 (check_result): Use less-confusing report format. "long" -> "long int.
22296 Don't loop if the iteration overflows time_t.
22297 Allow a negative step in the iteration.
22299 2003-07-06 Karl Berry <karl@gnu.org>
22301 * config/depcomp: update from automake.
22302 * config/config.sub: update from prep.
22304 2003-07-03 Karl Berry <karl@gnu.org>
22306 * config/config.guess: update from prep.
22308 2003-07-01 Paul Eggert <eggert@twinsun.com>
22310 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
22311 xreadlink.c now includes it unconditionally.
22313 2003-07-01 Paul Eggert <eggert@twinsun.com>
22315 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
22316 having it depend on HAVE_SYS_TYPES_H.
22318 2003-07-01 Bruno Haible <bruno@clisp.org>
22320 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
22321 <sys/types.h> should be sufficient.
22322 Reported by Paul Eggert.
22324 2003-06-26 Karl Berry <karl@gnu.org>
22326 * config/depcomp: update from automake.
22328 2003-06-26 Bruno Haible <bruno@clisp.org>
22330 * modules/human: Depend on module stdbool.
22332 2003-06-25 Bruno Haible <bruno@clisp.org>
22334 * modules/readlink: New file.
22335 * modules/xreadlink: Depend on it.
22336 * MODULES.html.sh (func_all_modules): Add readlink.
22338 2003-06-25 Bruno Haible <bruno@clisp.org>
22340 * m4/readlink.m4: New file.
22342 2003-06-25 Bruno Haible <bruno@clisp.org>
22344 * lib/readlink.c: New file.
22346 2003-06-22 Karl Berry <karl@gnu.org>
22348 * config/srclist.txt: update mkinstalldirs from automake.
22349 * config/mkinstalldirs: update.
22351 2003-06-22 Bruno Haible <bruno@clisp.org>
22353 Portability to mingw32.
22354 * m4/ssize_t.m4: New file, from GNU gettext.
22355 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
22356 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
22358 2003-06-22 Bruno Haible <bruno@clisp.org>
22360 * modules/safe-read: Add m4/ssize_t.m4.
22361 * modules/xreadlink: Add m4/ssize_t.m4.
22363 2003-06-20 Bruno Haible <bruno@clisp.org>
22365 Assume C89, so PARAMS isn't needed.
22366 * lib/unicodeio.h (PARAMS): Remove.
22367 * lib/unicodeio.c: Don't use PARAMS.
22369 2003-06-18 Karl Berry <karl@gnu.org>
22371 * config/config.{guess,sub}: update from prep.
22373 2003-06-18 Jim Meyering <jim@meyering.net>
22375 Merge changes from coreutils.
22376 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
22377 Remove explicit declarations of xmalloc and realloc.
22379 (read_utmp): Remove anachronistic cast of xmalloc.
22381 2003-06-17 Paul Eggert <eggert@twinsun.com>
22383 Assume C89, so PARAMS isn't needed.
22384 * lib/backupfile.h (PARAMS): Remove. All uses removed.
22385 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
22386 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
22387 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
22388 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
22389 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
22390 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
22391 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
22392 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
22393 lib/xstrtod.h, lib/xstrtol.h: Likewise.
22394 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
22395 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
22396 no longer needed. Anyway, config.h should always be included before any
22399 2003-06-11 Simon Josefsson <jas@extundo.com>
22401 * modules/sysexits: New file.
22402 * MODULES.html.sh (func_all_modules): Add sysexits.
22404 2003-06-11 Simon Josefsson <jas@extundo.com>
22406 * lib/sysexit_.h: New file.
22408 2003-06-11 Derek Price <derek@ximbiot.com>
22410 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
22413 2003-06-11 Bruno Haible <bruno@clisp.org>
22415 * m4/sysexits.m4: New file.
22417 2003-06-10 Simon Josefsson <jas@extundo.com>
22419 * lib/argp.h: New file, from glibc.
22420 * lib/argp-ba.c: New file, from glibc.
22421 * lib/argp-eexst.c: New file, from glibc.
22422 * lib/argp-fmtstream.c: New file, from glibc.
22423 * lib/argp-fmtstream.h: New file, from glibc.
22424 * lib/argp-fs-xinl.c: New file, from glibc.
22425 * lib/argp-help.c: New file, from glibc.
22426 * lib/argp-namefrob.h: New file, from glibc.
22427 * lib/argp-parse.c: New file, from glibc.
22428 * lib/argp-pv.c: New file, from glibc.
22429 * lib/argp-pvh.c: New file, from glibc.
22430 * lib/argp-xinl.c: New file, from glibc.
22432 2003-06-10 Simon Josefsson <jas@extundo.com>
22434 * modules/strchrnul: New file.
22436 2003-06-10 Simon Josefsson <jas@extundo.com>
22438 * modules/argp: New file.
22440 2003-06-10 Simon Josefsson <jas@extundo.com>
22442 * m4/strchrnul.m4: New file.
22444 2003-06-10 Simon Josefsson <jas@extundo.com>
22446 * lib/strchrnul.h: New file.
22447 * lib/strchrnul.c: New file.
22449 2003-06-10 Bruno Haible <bruno@clisp.org>
22451 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
22453 2003-06-07 Karl Berry <karl@gnu.org>
22455 * config/config.{guess,sub}: update from prep.
22457 2003-06-07 Jim Meyering <jim@meyering.net>
22459 * modules/strtod: Use $(...) notation, not @...@ for
22460 AC_REPLACE'd variables.
22461 * modules/localcharset: Likewise.
22463 2003-06-07 Jim Meyering <jim@meyering.net>
22465 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
22466 in place of my name in the copyright comment.
22467 Remove definition and uses of __P.
22470 * lib/stat.c: Don't declare xmalloc explicitly.
22471 Instead, include "xalloc.h".
22472 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
22473 xrealloc, and xcalloc return values.
22474 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
22476 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
22478 2003-06-07 Bruno Haible <bruno@clisp.org>
22480 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
22481 avoid AC_CONFIG_LINKS.
22482 * modules/fnmatch (Makefile.am): Use explicit creation rule for
22483 fnmatch.h, to avoid AC_CONFIG_LINKS.
22484 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
22486 2003-06-07 Bruno Haible <bruno@clisp.org>
22488 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
22489 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
22490 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
22492 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
22493 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
22496 2003-06-06 Jim Meyering <jim@meyering.net>
22498 Merge from coreutils.
22499 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
22500 Consolidate declarations and initializations of *_base* locals.
22502 Merge from coreutils.
22503 This avoids a core dump on systems without GNU putenv,
22504 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
22505 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
22506 (unsetenv): New static function, from GNU libc.
22507 (rpl_putenv): Use it.
22509 * lib/modechange.c: Remove trailing blanks.
22511 Merge from coreutils.
22512 * lib/fsusage.c: Remove declaration of statfs.
22513 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
22515 * lib/posixtm.c: Include <stdbool.h> unconditionally.
22517 2003-06-06 Jim Meyering <jim@meyering.net>
22519 * lib/stdbool_.h: Renamed from stdbool.h.in.
22521 2003-06-06 Jim Meyering <jim@meyering.net>
22522 Bruno Haible <bruno@clisp.org>
22524 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
22525 Adjust Makefile.am snippet not to redirect directly to target.
22526 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
22528 2003-06-05 Paul Eggert <eggert@twinsun.com>
22530 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
22531 mismatch, look in future quarters as well as past. This fixes a
22532 bug when processing fall-backwards gaps immediately after a long
22533 period of daylight-saving time.
22535 * lib/mktime.c: Assume freestanding C89 or better.
22536 (HAVE_LIMITS_H): Remove. Assume it's 1.
22537 (__P): Remove; not used.
22538 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
22539 (mktime, not_equal_tm, print_tm, check_result,
22540 main): Use prototypes. Use const * where appropriate.
22541 (main): Fix typo in testing code that uncovered by above changes.
22542 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
22544 2003-06-04 Paul Eggert <eggert@twinsun.com>
22546 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
22547 locale.h, localeconv. This merges changes from coreutils.
22549 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
22550 It can be removed after the next Autoconf is released.
22551 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
22554 2003-06-04 Paul Eggert <eggert@twinsun.com>
22556 * lib/mktime.c: Fix Debian bug 177940
22557 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
22558 (localtime_offset): Now long int, not time_t, because we want it
22559 to be guaranteed to be signed. All uses changed.
22560 (__mktime_internal): If overflow would occur when adding offset,
22563 Merge 'human' changes from coreutils. Rewrite to support
22564 locale-specific notations like thousands separators.
22565 * lib/human.c: Simplify authorship notice.
22566 Include human.h immediately after config.h.
22567 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
22568 <limits.h>: Do not include, since human.h does.
22569 (SIZE_MAX, UINTMAX_MAX): New macros.
22570 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
22571 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
22572 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
22573 (power_letter): Renamed from suffixes.
22574 (generate_suffix_backwards): Remove.
22575 (adjust_value): Now takes int style (because of human.h changes)
22576 and long double value (for greater precision on some platforms).
22577 (group_number): New function.
22578 (human_readable): Use it. Use integer options, not enum.
22579 Put the options before the sizes in the arg list.
22580 Support all the new options.
22581 The old human_readable function has been removed;
22582 use inttostr.h instead.
22583 (human_readable, default_block_size, humblock):
22584 Use uintmax_t, not int, for block sizes.
22585 (human_readable_inexact, block_size_types): Remove.
22586 (block_size_opts): New constant.
22587 (human_options): Renamed from human_block_size, with new signature
22588 that allows block sizes up to UINTMAX_MAX. All callers changed.
22589 * lib/human.h: Add copyright and authorship notice.
22590 Include <limits.h> and <stdbool.h> unconditionally.
22591 (PARAMS): Remove. All uses removed.
22592 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
22593 (enum human_inexact_style): Remove tag; now a nameless enum.
22594 (human_floor, human_ceiling, human_round_to_even): Now have
22595 values 2, 0, 1 rather than -1, 1, 0.
22596 (human_group_digits, human_suppress_point_zero, human_autoscale,
22597 human_base_1024, human_SI, human_B): New constants.
22598 (human_readable_inexact, human_block_size): Remove.
22599 (human_readable): Size args are now uintmax_t, not int.
22600 (human_options): New decl.
22602 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
22603 unnecessary now that we assume C89 or better. This change
22604 imported from coreutils.
22606 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
22607 arbitrarily. This is the same patch as 2003-05-28, but it got lost
22608 in the 2003-05-30 sync from glibc.
22610 .h files should stand alone, but we shouldn't include <sys/types.h>
22611 if we can get away with just <stddef.h>.
22613 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
22614 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
22615 rather than <sys/types.h>, as we merely need size_t.
22616 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
22618 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
22619 Include <stdio.h>, to get FILE.
22620 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
22621 memcasecmp.h has included <stddef.h> and all we need is size_t.
22622 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
22623 our interface, instead of including <sys/types.h>
22625 2003-06-04 Paul Eggert <eggert@twinsun.com>
22627 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
22628 now, as glibc mktime is buggy on non-glibc systems.
22630 2003-06-03 Karl Berry <karl@gnu.org>
22632 * config/config.sub: update from prep.
22634 2003-06-02 Paul Eggert <eggert@twinsun.com>
22637 Fix some minor time-related bugs with POSIX time arguments.
22638 Some valid time stamps were being rejected (notably -1, and
22639 time stamps before 1900 on 64-bit hosts). And some invalid
22640 time stamps were being accepted, e.g. September 31.
22642 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
22643 that we can return (time_t) -1 successfully.
22644 * lib/posixtm.c: Likewise.
22645 [HAVE_STDBOOL_H]: Include <stdbool.h>.
22646 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
22647 (t): Remove static var.
22648 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
22649 of static var. All uses changed.
22650 (year): Do not reject years before 1900; they can occur with
22652 (posix_time_parse): Do not check for out-of-range components;
22653 that is now the caller's responsibility, since our checks were
22654 only approximations.
22655 (posixtime): Use mktime to check for out-of-range components,
22656 since it knows them exactly.
22657 If mktime returns (time_t) -1, check whether an error actually occurred
22658 by invoking localtime on -1.
22659 (main) [TEST_POSIXTIME]: Check for input data errors, and report
22660 posixtime failures better.
22661 Improve the test data (in comments only).
22663 2003-06-02 Karl Berry <karl@gnu.org>
22665 * config/mkinstalldirs (version): new variable.
22666 (--version): new option.
22667 (usage): improve message.
22669 2003-05-30 Karl Berry <karl@gnu.org>
22671 * lib/mktime.c: update from libc.
22673 2003-05-30 Bruno Haible <bruno@clisp.org>
22675 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
22676 * config/config.rpath: Upgrade to gettext-0.12.1.
22678 2003-05-30 Bruno Haible <bruno@clisp.org>
22680 * m4/gettext.m4: Upgrade to gettext-0.12.1.
22681 * m4/nls.m4: New file, from gettext-0.12.1.
22682 * m4/po.m4: New file, from gettext-0.12.1.
22683 * m4/progtest.m4: Upgrade to gettext-0.12.1.
22685 2003-05-30 Bruno Haible <bruno@clisp.org>
22687 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
22688 * lib/localcharset.h: Likewise.
22689 * lib/localcharset.c: Likewise.
22691 2003-05-29 Karl Berry <karl@gnu.org>
22693 * config/config.rpath: update from gettext.
22695 2003-05-28 Paul Eggert <eggert@twinsun.com>
22697 Assume the headers required for C89 freestanding compilers.
22698 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
22699 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
22700 * m4/human.m4 (gl_HUMAN): Likewise.
22701 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
22702 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
22703 * m4/userspec.m4 (gl_USERSPEC): Likewise.
22704 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
22705 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
22706 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
22708 2003-05-28 Paul Eggert <eggert@twinsun.com>
22710 Assume the headers required for C89 freestanding compilers.
22711 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
22712 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
22713 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
22714 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
22715 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
22716 define, since <limits.h> is guaranteed to do that.
22717 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
22718 * lib/exclude.c: Include <stdbool.h> unconditionally.
22719 * lib/tempname.c: Include <stddef.h> unconditionally.
22720 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
22721 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
22722 <stddef.h> does that.
22723 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
22724 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
22725 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
22727 * lib/xstrtol.c: Likewise.
22728 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
22729 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
22731 * lib/addext.c (addext): Use assignment rather than cast, to avoid
22732 warnings on some platforms.
22734 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
22737 2003-05-26 Jim Meyering <jim@meyering.net>
22739 Merge in a change from coreutils:
22740 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
22741 that is guaranteed to be `no'. Use `no_such_member' to indicate
22742 that condition, rather than `-1' which is slightly misleading.
22743 Change the name of the cache variable to have the gl_ prefix.
22744 Prompted by a patch from Richard Dawe for DJGPP.
22746 2003-05-24 Karl Berry <karl@gnu.org>
22748 * config/config.guess: update from prep.
22750 2003-05-22 Karl Berry <karl@gnu.org>
22752 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
22754 2003-05-20 Karl Berry <karl@gnu.org>
22756 * config/config.guess: update from prep.
22758 2003-05-18 Karl Berry <karl@gnu.org>
22760 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
22761 might actually be set by the user.
22763 * config/depcomp, install-sh, mdate-sh: update from automake.
22765 2003-05-17 Bruno Haible <bruno@clisp.org>
22767 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
22768 invalid expansion for AC_EGREP_CPP.
22769 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
22770 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22771 Suggested by Akim Demaille <akim@epita.fr> in
22772 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
22774 2003-05-12 Jim Meyering <jim@meyering.net>
22776 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
22777 the space-padded-by-default conversion specifiers, %e, %k, %l.
22779 2003-05-12 Bruno Haible <bruno@clisp.org>
22781 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
22782 the string is longer than 4 KB.
22784 2003-05-11 Karl Berry <karl@gnu.org>
22786 * config/config.{guess,sub}: update from prep.
22788 2003-05-09 Bruno Haible <bruno@clisp.org>
22790 * modules/error: Add m4/strerror_r.m4 to file list.
22792 2003-05-03 Bruno Haible <bruno@clisp.org>
22794 Upgrade to Unicode-4.0.
22795 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
22796 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
22797 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
22798 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
22799 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
22800 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
22801 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
22802 Change width of U+E0100..U+E01EF from 1 to 0.
22804 2003-04-25 Jim Meyering <jim@meyering.net>
22806 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
22807 of type size_t, not int.
22809 2003-04-25 Bruno Haible <bruno@clisp.org>
22811 * lib/copy-file.c: Include <stddef.h>, for size_t.
22813 2003-04-21 Paul Eggert <eggert@twinsun.com>
22815 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
22816 code which expansion is under static control. Patch imported from
22817 Akim Demaille's patch to Bison; see
22818 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
22820 2003-04-14 Bruno Haible <bruno@clisp.org>
22822 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
22824 2003-04-11 Jim Meyering <jim@meyering.net>
22826 Merge changes from Coreutils.
22828 2003-03-22 Jim Meyering <jim@meyering.net>
22830 * lib/strftime.c (widen): Cast alloca return value to proper type.
22832 2003-01-19 Ulrich Drepper <drepper@redhat.com>
22835 * lib/strftime.c (my_strftime): Handle very large width
22836 specifications for numeric values correctly. Improve checks for
22839 2003-01-19 Jim Meyering <jim@meyering.net>
22841 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
22843 (nl_get_alt_digit) [! defined my_strftime]: Define.
22844 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
22845 _nl_get_alt_digit and _nl_get_walt_digit.
22847 * lib/strftime.c (my_strftime): Merge in locale-related changes from
22848 libc. These changes have no effect outside of _LIBC.
22850 2003-04-10 Bruno Haible <bruno@clisp.org>
22852 * modules/findprog: New file.
22853 * MODULES.html.sh (func_all_modules): Add it.
22855 2003-04-10 Bruno Haible <bruno@clisp.org>
22857 * m4/findprog.m4: New file.
22858 * m4/eaccess.m4: New file.
22860 2003-04-10 Bruno Haible <bruno@clisp.org>
22862 * lib/findprog.h: New file, from GNU gettext.
22863 * lib/findprog.c: New file, from GNU gettext.
22865 2003-04-05 Jim Meyering <jim@meyering.net>
22867 Merge changes from Coreutils.
22869 * lib/exclude.h (PARAMS): Remove definition and uses.
22870 * lib/exclude.c: Remove uses of `PARAMS'.
22872 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
22873 Add test-cases for DOS filenames. Declare program_name.
22874 (main): Set up program_name. Patch by Rich Dawe.
22876 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
22878 Use mntctl's return value to drive the entry-processing loop, since
22879 we can't rely on the value of the vmt_length member in the last
22880 entry. On some systems doing so could result in exhausting
22881 virtual memory. Based in part on a patch from Mike Jetzer.
22883 2003-04-04 Bruno Haible <bruno@clisp.org>
22885 * modules/linebreak: New file.
22886 * MODULES.html.sh (func_all_modules): Add it.
22888 2003-04-04 Bruno Haible <bruno@clisp.org>
22890 * m4/linebreak.m4: New file.
22892 2003-04-04 Bruno Haible <bruno@clisp.org>
22894 * lib/linebreak.h: New file, from GNU gettext.
22895 * lib/linebreak.c: New file, from GNU gettext with slight
22897 * lib/lbrkprop.h: New file, from GNU gettext.
22899 2003-04-03 Bruno Haible <bruno@clisp.org>
22901 * modules/utf8-ucs4: New file.
22902 * modules/utf16-ucs4: New file.
22903 * modules/ucs4-utf8: New file.
22904 * modules/ucs4-utf16: New file.
22905 * MODULES.html.sh (func_all_modules): Add them.
22907 2003-04-03 Bruno Haible <bruno@clisp.org>
22909 * m4/utf-ucs4.m4: New file.
22910 * m4/ucs4-utf.m4: New file.
22912 2003-04-03 Bruno Haible <bruno@clisp.org>
22914 * lib/utf8-ucs4.h: New file, from GNU gettext.
22915 * lib/utf16-ucs4.h: New file, from GNU gettext.
22916 * lib/ucs4-utf8.h: New file, from GNU gettext.
22917 * lib/ucs4-utf16.h: New file, from GNU gettext.
22919 2003-04-02 Bruno Haible <bruno@clisp.org>
22921 * modules/binary-io: New file.
22922 * MODULES.html.sh (func_all_modules): Add it.
22924 2003-04-02 Bruno Haible <bruno@clisp.org>
22926 * lib/binary-io.h: New file, from GNU gettext.
22928 2003-04-01 Bruno Haible <bruno@clisp.org>
22930 * modules/pathname: New file.
22931 * MODULES.html.sh (func_all_modules): Add it.
22933 2003-04-01 Bruno Haible <bruno@clisp.org>
22935 * lib/pathname.h: New file, from GNU gettext.
22936 * lib/concatpath.c: New file, from GNU gettext.
22938 2003-03-30 Bruno Haible <bruno@clisp.org>
22940 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
22942 2003-03-30 Bruno Haible <bruno@clisp.org>
22944 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
22945 function chown() doesn't exist.
22947 2003-03-28 Bruno Haible <bruno@clisp.org>
22949 * modules/copy-file: New file.
22950 * MODULES.html.sh (func_all_modules): Add it.
22952 2003-03-28 Bruno Haible <bruno@clisp.org>
22954 * m4/copy-file.m4: New file.
22956 2003-03-28 Bruno Haible <bruno@clisp.org>
22958 * lib/copy-file.h: New file, from GNU gettext.
22959 * lib/copy-file.c: New file, from GNU gettext.
22961 2003-03-18 Jim Meyering <jim@meyering.net>
22963 * lib/quote.c (quote_n): Fix typo in comment.
22965 2003-03-18 Bruno Haible <bruno@clisp.org>
22967 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
22969 * m4/onceonly_2_57.m4: Likewise.
22971 2003-03-17 Bruno Haible <bruno@clisp.org>
22973 * m4/onceonly.m4: Require autoconf 2.54 or newer.
22974 (m4_quote): Remove macro.
22975 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
22977 2003-03-14 Jim Meyering <jim@meyering.net>
22979 Merge changes from Coreutils.
22980 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
22981 to be const, in order to avoid warnings.
22982 (obstack_room): Likewise.
22983 (obstack_empty_p): Likewise.
22985 2003-03-14 Bruno Haible <bruno@clisp.org>
22987 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
22988 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
22990 2003-03-13 Paul Eggert <eggert@twinsun.com>
22992 Merge changes from Bison.
22993 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
22994 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
22995 when compiling Bison 1.875's `bitset bset = obstack_alloc
22996 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
22997 * lib/hash.c: Include <stdbool.h> unconditionally.
22999 2003-03-13 Paul Eggert <eggert@twinsun.com>
23001 * m4/onceonly.m4 (m4_quote): New macro.
23002 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
23003 Quote AC_FOREACH variable-expansions properly.
23005 2003-03-13 Paul Eggert <eggert@twinsun.com>
23007 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
23009 2003-03-09 Paul Eggert <eggert@twinsun.com>
23011 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
23012 Reported by Bruce Becker; see:
23013 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
23015 2003-03-03 Paul Eggert <eggert@twinsun.com>
23016 Bruno Haible <bruno@clisp.org>
23018 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
23019 Reported by John Hughes, see
23020 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
23022 2003-02-20 Bruno Haible <bruno@clisp.org>
23024 * MODULES.html.sh (func_all_modules): Add poll.
23026 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
23028 * modules/poll: New file.
23030 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
23032 * lib/poll_.h: New file.
23033 * lib/poll.c: New file.
23035 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
23037 * m4/poll.m4: New file.
23039 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
23041 * modules/mathl: New file.
23043 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
23045 * lib/mathl.h: New file.
23046 * lib/acosl.c: New file.
23047 * lib/asinl.c: New file.
23048 * lib/atanl.c: New file.
23049 * lib/ceill.c: New file.
23050 * lib/cosl.c: New file.
23051 * lib/expl.c: New file.
23052 * lib/floorl.c: New file.
23053 * lib/frexpl.c: New file.
23054 * lib/ldexpl.c: New file.
23055 * lib/logl.c: New file.
23056 * lib/sincosl.c: New file.
23057 * lib/sinl.c: New file.
23058 * lib/sqrtl.c: New file.
23059 * lib/tanl.c: New file.
23060 * lib/trigl.c: New file.
23061 * lib/trigl.h: New file.
23063 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
23065 * m4/mathl.m4: New file.
23067 2003-02-18 Bruno Haible <bruno@clisp.org>
23069 * MODULES.html.sh (func_all_modules): Add mathl.
23071 2003-02-17 Bruno Haible <bruno@clisp.org>
23073 * modules/mkdtemp: New module.
23074 * MODULES.html.sh (func_all_modules): Add it.
23076 2003-02-17 Bruno Haible <bruno@clisp.org>
23078 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
23080 2003-02-17 Bruno Haible <bruno@clisp.org>
23082 * lib/mkdtemp.h: New file, from GNU gettext.
23083 * lib/mkdtemp.c: New file, from GNU gettext.
23085 2003-02-02 Jim Meyering <jim@meyering.net>
23087 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
23090 2003-01-31 Bruno Haible <bruno@clisp.org>
23092 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
23094 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
23096 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
23098 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
23101 2003-01-31 Bruno Haible <bruno@clisp.org>
23103 * lib/rename.c: #undef rename before defining rpl_rename.
23104 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
23106 2003-01-30 Bruno Haible <bruno@clisp.org>
23108 * modules/vasnprintf, modules/vasprintf: New modules.
23109 * MODULES.html.sh (func_all_modules): Add them.
23111 2003-01-30 Bruno Haible <bruno@clisp.org>
23113 * m4/signed.m4: New file, from GNU gettext.
23114 * m4/longdouble.m4: New file, from GNU gettext.
23115 * m4/wchar_t.m4: New file, from GNU gettext.
23116 * m4/wint_t.m4: New file, from GNU gettext.
23117 * m4/vasnprintf.m4: New file.
23118 * m4/vasprintf.m4: New file.
23120 2003-01-30 Bruno Haible <bruno@clisp.org>
23122 * lib/printf-args.h: New file, from GNU gettext.
23123 * lib/printf-args.c: New file, from GNU gettext.
23124 * lib/printf-parse.h: New file, from GNU gettext.
23125 * lib/printf-parse.c: New file, from GNU gettext.
23126 * lib/vasnprintf.h: New file, from GNU gettext.
23127 * lib/vasnprintf.c: New file, from GNU gettext.
23128 * lib/asnprintf.c: New file, from GNU gettext.
23129 * lib/vasprintf.h: New file, from GNU gettext with modifications.
23130 * lib/vasprintf.c: New file, from GNU gettext.
23131 * lib/asprintf.c: New file, from GNU gettext.
23133 2003-01-29 Bruno Haible <bruno@clisp.org>
23135 * modules/stpncpy: New module.
23136 * MODULES.html.sh (func_all_modules): Add it.
23138 2003-01-29 Bruno Haible <bruno@clisp.org>
23140 * m4/stpncpy.m4: New file.
23142 2003-01-29 Bruno Haible <bruno@clisp.org>
23144 * lib/stpncpy.h: New file, from GNU gettext with modifications.
23145 * lib/stpncpy.c: New file, from GNU gettext with modifications.
23147 2003-01-28 Bruno Haible <bruno@clisp.org>
23149 * modules/c-ctype: New module.
23150 * MODULES.html.sh (func_all_modules): Add it.
23152 2003-01-28 Bruno Haible <bruno@clisp.org>
23154 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
23156 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
23159 2003-01-27 Bruno Haible <bruno@clisp.org>
23161 * modules/xsetenv: New module.
23162 * MODULES.html.sh (func_all_modules): Add it.
23164 2003-01-27 Bruno Haible <bruno@clisp.org>
23166 * lib/xsetenv.h: New file, from GNU gettext.
23167 * lib/xsetenv.c: New file, from GNU gettext.
23169 2003-01-23 Jim Meyering <jim@meyering.net>
23171 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
23172 from working on systems without dirfd (at least Irix and OSF1/Tru64).
23174 2003-01-23 Bruno Haible <bruno@clisp.org>
23176 * modules/minmax: New module.
23177 * MODULES.html.sh (func_all_modules): Add it.
23179 2003-01-23 Bruno Haible <bruno@clisp.org>
23181 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
23184 2003-01-22 Bruno Haible <bruno@clisp.org>
23186 * modules/exit: New module.
23187 * MODULES.html.sh (func_all_modules): Add it.
23189 2003-01-22 Bruno Haible <bruno@clisp.org>
23191 * lib/exit.h: New file, from GNU gettext.
23193 2003-01-19 Bruno Haible <bruno@clisp.org>
23195 * gnulib-tool: Recognize option --extract-maintainer.
23196 (func_get_maintainer): New function.
23197 * modules/*: Add Maintainer entry.
23199 2003-01-16 Jim Meyering <jim@meyering.net>
23201 * m4/regex.m4: The `regex' struct is both input and output.
23202 Initialize it before each use. Patch by Tim Waugh.
23204 2003-01-16 Bruno Haible <bruno@clisp.org>
23206 * MODULES.html.sh: Add a table of contents. Add the module name as
23207 leftmost column. Add hyperlinks.
23209 2003-01-15 Bruno Haible <bruno@clisp.org>
23211 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
23213 2003-01-15 Bruno Haible <bruno@clisp.org>
23215 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
23216 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
23219 2003-01-15 Bruno Haible <bruno@clisp.org>
23221 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
23223 2003-01-15 Bruno Haible <bruno@clisp.org>
23225 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
23226 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
23228 2003-01-14 Jim Meyering <jim@meyering.net>
23230 * lib/same.c (same_name): Tweak a comment.
23232 2003-01-14 Bruno Haible <bruno@clisp.org>
23234 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
23235 when a string comparison is sufficient.
23237 2003-01-14 Bruno Haible <bruno@clisp.org>
23239 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
23242 2003-01-14 Bruno Haible <bruno@clisp.org>
23244 * lib/hash-pjw.c: Add comment about low quality of this function.
23246 2003-01-13 Bruno Haible <bruno@clisp.org>
23248 * modules/stpcpy: Distribute lib/stpcpy.h.
23249 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
23251 2003-01-13 Bruno Haible <bruno@clisp.org>
23253 * modules/*: Add a description.
23254 * modules/strpbrk: Fix Makefile.am snippet.
23255 * modules/strtoimax: Fix dependencies.
23256 * modules/strtoumax: Likewise.
23258 2003-01-13 Bruno Haible <bruno@clisp.org>
23260 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
23261 * modules/alloca (Makefile.am): All object files depend on alloca.h.
23262 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
23264 2003-01-13 Bruno Haible <bruno@clisp.org>
23266 * gnulib-tool (func_create_testdir): Store config/* files in the main
23268 * config.rpath: Move to ...
23269 * config/config.rpath: ... here.
23270 * modules/gettext: Contains config/config.rpath, not config.rpath.
23271 * modules/iconv: Likewise.
23273 2003-01-12 Paul Eggert <eggert@twinsun.com>
23275 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
23276 to avoid collisions with libcurses and libreadline.
23278 * m4/getstr.m4: Remove.
23279 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
23281 2003-01-12 Paul Eggert <eggert@twinsun.com>
23283 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
23284 to avoid collisions with libcurses and libreadline.
23286 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
23287 * lib/getstr.h, getstr.c: Remove.
23288 * lib/getline.c: Include "getline.h", to check interface.
23289 Move body of old getstr.c here: this defines MIN_CHUNK and
23290 declares getdelim2, which is renamed from getstr.
23291 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
23293 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
23295 * lib/linebuffer.h: Likewise.
23296 (readline): Remove backward-compatibility macro.
23298 2003-01-12 Paul Eggert <eggert@twinsun.com>
23300 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
23301 to avoid collisions with libcurses and libreadline.
23303 * MODULES.html.sh: Remove getstr.
23304 * modules/getline: Depend on unlocked-io, not getstr.
23306 2003-01-12 Jim Meyering <jim@meyering.net>
23308 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
23310 2003-01-10 Bruno Haible <bruno@clisp.org>
23312 * modules/alloca: Change Makefile.am requirements. Simplify Include
23313 requirements. Add lib/alloca_.h to file list.
23315 2003-01-10 Bruno Haible <bruno@clisp.org>
23317 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
23319 2003-01-10 Bruno Haible <bruno@clisp.org>
23321 * lib/alloca_.h: New file.
23322 * lib/getdate.y: Unconditionally include alloca.h.
23323 * lib/makepath.c: Likewise.
23324 * lib/setenv.c: Likewise.
23325 * lib/userspec.c: Likewise.
23327 2003-01-09 Karl Berry <karl@gnu.org>
23329 * MODULES.html.sh: include `dirname $0` in PATH, to find
23332 2003-01-09 Bruno Haible <bruno@clisp.org>
23334 * modules/stdbool: Change configure.ac, Makefile.am requirements.
23335 Simplify Include requirements. Add lib/stdbool.h.in to file list.
23337 2003-01-09 Bruno Haible <bruno@clisp.org>
23339 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
23341 2003-01-09 Bruno Haible <bruno@clisp.org>
23343 * lib/stdbool.h.in: New file.
23345 2003-01-09 Bruno Haible <bruno@clisp.org>
23347 * gnulib-tool (func_all_modules): Ignore files ending in ~.
23348 * MODULES.html.sh: Likewise.
23350 2003-01-08 Jim Meyering <jim@meyering.net>
23352 * lib/full-write.c: Undefine and define-away `const' after inclusion
23353 of errno.h, not before. Suggestion from Bruno Haible.
23355 2003-01-08 Bruno Haible <bruno@clisp.org>
23357 * modules/full-read: Depend on full-write.
23359 2003-01-08 Bruno Haible <bruno@clisp.org>
23361 * lib/safe-read.c: Include specification header first, to ensure its
23363 * lib/full-write.c: Likewise.
23365 2003-01-07 Jim Meyering <jim@meyering.net>
23367 * lib/full-write.c: Rework so that it may serve to define full_read,
23369 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
23371 2003-01-07 Bruno Haible <bruno@clisp.org>
23373 * lib/strtoimax.c: Include <stdint.h> as an alternative to
23375 * lib/xstrtol.h: Likewise.
23376 * lib/xstrtoimax.c: Likewise.
23377 * lib/xstrtoumax.c: Likewise.
23378 * lib/human.h: Likewise.
23380 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
23381 on systems that have <inttypes.h> but not <stdint.h>.
23383 2003-01-07 Bruno Haible <bruno@clisp.org>
23385 * MODULES.html.sh: Add copyright notice.
23386 (missed_files): Omit CVS directory entries.
23387 (func_module): Make it work with sed-3.02.
23388 * MODULES.txt: Remove file.
23390 2003-01-06 Jim Meyering <jim@meyering.net>
23392 * lib/version-etc.c: Update year in translatable copyright string.
23394 2003-01-03 Karl Berry <karl@gnu.org>
23396 * config/config.{guess,sub}: update from prep.
23398 2003-01-02 Karl Berry <karl@gnu.org>
23400 * doc/COPYING.DOC: belatedly updated to 1.2.
23402 2003-01-01 Karl Berry <karl@gnu.org>
23404 * gnulib-tool (func_verify_module): report module name $module in
23405 error message, not $1.
23406 * gnulib-tool (create-testdir): don't complain if destdir couldn't
23407 be created, only if it doesn't exist.
23408 * gnulib-tool (last_checkin_date): don't expand the $Date here.
23410 2002-12-31 Paul Eggert <eggert@twinsun.com>
23412 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
23414 2002-12-31 Paul Eggert <eggert@twinsun.com>
23416 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
23417 memcmp if strcoll doesn't work.
23419 2002-12-31 Bruno Haible <bruno@clisp.org>
23421 * lib/utime.c (utime_null): No need to call ftruncate if the file was
23424 2002-12-31 Bruno Haible <bruno@clisp.org>
23426 * lib/memcoll.c (STRCOLL): New macro.
23429 2002-12-31 Bruno Haible <bruno@clisp.org>
23431 * lib/localcharset.h: New file.
23432 * lib/localcharset.c: Include it.
23433 * lib/unicodeio.c: Likewise.
23435 2002-12-31 Bruno Haible <bruno@clisp.org>
23437 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
23438 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
23440 2002-12-31 Bruno Haible <bruno@clisp.org>
23442 * lib/getline.h: Include <stddef.h>, for size_t.
23444 * lib/unicodeio.h: Include <stddef.h>, for size_t.
23445 * lib/unicodeio.c: Don't include <stddef.h>.
23447 2002-12-31 Bruno Haible <bruno@clisp.org>
23449 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
23452 2002-12-24 Karl Berry <karl@gnu.org>
23454 * config/config.guess: update from prep.
23456 2002-12-24 Bruno Haible <bruno@clisp.org>
23458 General infrasructure.
23459 * m4/README: Rewritten.
23460 * m4/onceonly.m4: New file.
23461 * m4/onceonly_2_57.m4: New file.
23464 * m4/atexit.m4: New file.
23467 * m4/strtod.m4: New file.
23470 * m4/strtol.m4: New file.
23473 * m4/strtoul.m4: New file.
23476 * m4/memchr.m4: New file.
23479 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
23480 (jm_FUNC_MEMCMP): Invoke it.
23483 * m4/memcpy.m4: New file.
23486 * m4/memmove.m4: New file.
23489 * m4/memset.m4: New file.
23492 * m4/strcspn.m4: New file.
23495 * m4/strpbrk.m4: New file.
23498 * m4/strstr.m4: New file.
23501 * m4/strerror.m4: New file.
23504 * m4/mktime.m4: Renamed from jm-mktime.m4.
23505 (gl_PREREQ_MKTIME): New macro.
23506 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
23509 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
23510 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
23511 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
23514 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
23515 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
23516 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
23519 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
23520 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
23521 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
23523 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
23526 * m4/xalloc.m4: New file.
23529 * m4/alloca.m4: New file.
23532 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
23533 (jm_FUNC_PUTENV): Invoke it.
23536 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
23537 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
23538 when invoked twice.
23539 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
23543 * m4/memrchr.m4: New file.
23546 * m4/stpcpy.m4: New file.
23549 * m4/strcase.m4: New file.
23552 * m4/strdup.m4: New file.
23555 * m4/strnlen.m4: New file.
23558 * m4/strndup.m4: New file.
23561 * m4/xstrtod.m4: New file.
23564 * m4/xstrtol.m4: New file.
23567 * m4/getdate.m4: New file.
23569 Module unlocked-io.
23570 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
23571 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
23572 * m4/jm-glibc-io.m4n: Remove file.
23574 Module long-options.
23575 * m4/long-options.m4: New file.
23578 * m4/md5.m4: New file.
23581 * m4/sha.m4: New file.
23584 * m4/getstr.m4: New file.
23587 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
23588 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
23589 <sys/types.h>, for size_t. Use the function name gnu_getline, not
23590 simply getline. Infoke gl_PREREQ_GETLINE.
23593 * m4/obstack.m4: New file.
23596 * m4/hash.m4: New file.
23599 * m4/readtokens.m4: New file.
23602 * m4/strverscmp.m4: New file.
23605 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
23609 * m4/strtoll.m4: New file.
23612 * m4/strtoull.m4: New file.
23615 * m4/strtoimax.m4: New file.
23618 * m4/strtoumax.m4: New file.
23621 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
23622 jm_AC_PREREQ_XSTRTOIMAX.
23623 Moved the strtol prerequisites to strtol.m4.
23624 Moved the strtoll prerequisites to strtoll.m4.
23625 Moved the strtoimax prerequisites to strtoimax.m4.
23628 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
23629 jm_AC_PREREQ_XSTRTOUMAX.
23630 Moved the strtoul prerequisites to strtoul.m4.
23631 Moved the strtoull prerequisites to strtoull.m4.
23632 Moved the strtoumax prerequisites to strtoumax.m4.
23635 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
23636 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
23639 * m4/dup2.m4: New file.
23642 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
23643 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
23646 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
23647 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
23649 Module gettimeofday.
23650 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
23651 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
23652 gl_PREREQ_GETTIMEOFDAY.
23655 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
23656 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
23659 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
23660 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
23661 jm_AC_TYPE_UINTMAX_T.
23662 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
23665 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
23666 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
23669 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
23670 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
23673 * m4/timespec.m4 (gl_TIMESPEC): New macro.
23674 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
23675 * m4/st_mtim.m4: Indentation.
23678 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
23679 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
23680 gl_PREREQ_NANOSLEEP.
23683 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
23684 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
23685 (gl_REGEX): New macro.
23688 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
23689 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
23692 * m4/rmdir.m4: New file.
23695 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
23696 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
23697 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
23700 * m4/dirname.m4: New file.
23703 * m4/getopt.m4: New file.
23705 Module unistd-safer.
23706 * m4/unistd-safer.m4: New file.
23709 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
23711 (gl_PREREQ_FNMATCH_EXTRA): New macro.
23712 (gl_FUNC_FNMATCH_POSIX): New macro.
23713 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
23714 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
23718 * m4/exclude.m4: New file.
23721 * m4/human.m4: New file.
23727 * m4/backupfile.m4: New file.
23728 * m4/d-ino.m4: Indentation.
23731 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
23732 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
23733 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
23736 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
23740 * m4/euidaccess.m4: New file.
23743 * m4/file-type.m4: New file.
23746 * m4/fileblocks.m4: New file.
23749 * m4/filemode.m4: New file.
23752 * m4/isdir.m4: New file.
23755 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
23756 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
23759 * m4/makepath.m4: New file.
23762 * m4/modechange.m4: New file.
23765 * m4/mountlist.m4: New file.
23766 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
23769 Module path-concat.
23770 * m4/path-concat.m4: New file.
23773 * m4/pathmax.m4: New file.
23776 * m4/same.m4: New file.
23779 * m4/save-cwd.m4: New file.
23782 * m4/savedir.m4: New file.
23785 * m4/xgetcwd.m4: New file.
23786 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
23789 * m4/xreadlink.m4: New file.
23792 * m4/safe-read.m4: New file.
23795 * m4/safe-write.m4: New file.
23798 * m4/closeout.m4: New file.
23800 Module stdio-safer.
23801 * m4/stdio-safer.m4: New file.
23804 * m4/getpass.m4: New file.
23807 * m4/getugroups.m4: New file.
23809 Module group-member.
23810 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
23811 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
23814 * m4/idcache.m4: New file.
23817 * m4/userspec.m4: New file.
23820 * m4/clock_time.m4: New file.
23821 * m4/gettime.m4: New file.
23824 * m4/settime.m4: New file.
23827 * m4/posixtm.m4: New file.
23829 Module gethostname.
23830 * m4/gethostname.m4: New file.
23833 * m4/canon-host.m4: New file.
23836 * m4/codeset.m4: New file, from gettext-0.11.5.
23837 * m4/gettext.m4: New file, from gettext-0.11.5.
23838 * m4/glibc21.m4: New file, from gettext-0.11.5.
23839 * m4/iconv.m4: New file, from gettext-0.11.5.
23840 * m4/intdiv0.m4: New file, from gettext-0.11.5.
23841 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
23842 * m4/inttypes.m4: New file, from gettext-0.11.5.
23843 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
23844 * m4/isc-posix.m4: New file, from gettext-0.11.5.
23845 * m4/lcmessage.m4: New file, from gettext-0.11.5.
23846 * m4/lib-ld.m4: New file, from gettext-0.11.5.
23847 * m4/lib-link.m4: New file, from gettext-0.11.5.
23848 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
23849 * m4/progtest.m4: New file, from gettext-0.11.5.
23850 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
23851 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
23852 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
23854 Module localcharset.
23855 * m4/localcharset.m4: New file.
23857 Module hard-locale.
23858 * m4/hard-locale.m4: New file.
23861 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
23863 * m4/mbrtowc.m4: Add comment.
23866 * m4/memcasecmp.m4: New file.
23869 * m4/memcoll.m4: New file.
23872 * m4/unicodeio.m4: New file.
23875 * m4/rpmatch.m4: New file.
23878 * m4/yesno.m4: New file.
23881 * m4/exitfail.m4: New file.
23884 * m4/c-stack.m4 (gl_C_STACK): New macro.
23885 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
23888 * m4/error.m4 (gl_ERROR): New macro.
23889 (jm_PREREQ_ERROR): Use onceonly macros.
23892 * m4/fatal.m4: New file.
23895 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
23896 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
23898 Module getpagesize.
23899 * m4/getpagesize.m4: New file.
23901 Module getusershell.
23902 * m4/getusershell.m4: New file.
23905 * m4/physmem.m4: New file.
23908 * m4/posixver.m4: New file.
23911 * m4/quotearg.m4: New file.
23914 * m4/quote.m4: New file.
23917 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
23920 * m4/sig2str.m4: New file.
23923 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
23925 * m4/intmax_t.m4: New file.
23926 * m4/d-type.m4: Indentation.
23927 * m4/jm-macros.m4: Update.
23928 * m4/prereq.m4 (jm_PREREQ): Update.
23929 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
23930 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
23931 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
23932 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
23933 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
23934 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
23935 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
23936 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
23937 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
23938 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
23939 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
23940 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
23941 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
23942 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
23943 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
23944 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
23945 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
23946 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
23947 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
23949 2002-12-24 Bruno Haible <bruno@clisp.org>
23951 * MODULES.txt: Update according to m4/ changes.
23954 * config.rpath: New file, from gettext-0.11.5.
23956 * modules/*: New module descriptions.
23957 * gnulib-tool: New file.
23958 * MODULES.html.sh: New file.
23960 2002-12-21 Karl Berry <karl@gnu.org>
23962 * doc/fdl.texi: update to version 1.2.
23964 2002-12-19 Karl Berry <karl@gnu.org>
23966 * config/config.guess: update from prep.
23968 2002-12-18 Bruno Haible <bruno@clisp.org>
23970 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
23971 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
23973 2002-12-17 Bruno Haible <bruno@clisp.org>
23975 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
23976 stdlib.h, string.h.
23978 2002-12-17 Bruno Haible <bruno@clisp.org>
23980 * lib/canon-host.c (strdup): Remove unused declaration.
23982 * lib/fsusage.c: Include full_read.h.
23983 (get_fs_usage): Use full_read instead of safe_read.
23985 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
23987 2002-12-12 Karl Berry <karl@gnu.org>
23989 * config/config.guess: update from prep.
23991 2002-12-11 Bruno Haible <bruno@clisp.org>
23993 * m4/setenv.m4: New file, from gettext-0.11.5.
23995 2002-12-11 Bruno Haible <bruno@clisp.org>
23997 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
23999 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
24002 2002-12-11 Bruno Haible <bruno@clisp.org>
24004 * setenv.c (alloca): Fall back to malloc.
24005 (freea): New macro.
24006 (setenv): Use freea() to free memory allocated with alloca().
24008 2002-11-13 Bruno Haible <bruno@clisp.org>
24010 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
24011 function declarations.
24012 * unsetenv.c (unsetenv): Likewise.
24014 2002-03-04 Bruno Haible <bruno@clisp.org>
24016 Portability to AIX 4.3.3.
24017 * unsetenv.c: New file, extracted from setenv.c.
24018 * setenv.c: Move the unsetenv() function to unsetenv.c.
24020 2001-12-20 Bruno Haible <bruno@clisp.org>
24022 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
24023 use malloc instead. For SunOS 4.
24025 2001-12-11 Bruno Haible <bruno@clisp.org>
24027 * setenv.c: Declare alloca.
24028 (compar_fn_t): New typedef.
24029 (KNOWN_VALUE, STORE_VALUE): Use it.
24031 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
24034 2002-12-10 Paul Eggert <eggert@twinsun.com>
24036 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
24037 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
24038 Choose values that are less likely to collide with system fnmatch
24040 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
24041 defined (e.g., a pure POSIX system).
24042 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
24043 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
24045 2002-12-06 Paul Eggert <eggert@twinsun.com>
24047 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
24048 a pain in practice to deal with generated m4 files. This change
24049 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
24051 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
24052 and jm-glibc-io.m4, as they are no longer a special case.
24053 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
24054 kludge and the auto-generation stuff. Check only whether the
24055 functions are declared, not whether they exist, since older hosts
24056 that don't declare the functions can't use the optimization anyway.
24058 2002-12-06 Jim Meyering <jim@meyering.net>
24060 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
24062 Merge in changes from libc's misc/error.c, in preparation
24063 for the merge of gnulib's changes back into libc.
24065 * lib/error.c (_): Define only if not already defined.
24066 Move definition to follow all #include directives.
24067 Include unlocked-io.h only if !_LIBC.
24068 [_LIBC]: Include <libio/libioP.h>.
24069 [USE_IN_LIBIO]: Include <libio/iolibio.h>
24070 (fflush): Tweak definition to use INTUSE.
24073 2002-12-05 Paul Eggert <eggert@twinsun.com>
24075 * lib/alloca.c [defined emacs]: Include "lisp.h".
24076 (xalloc_die) [defined emacs]: New macro.
24077 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
24078 [! defined emacs]: Include <xalloc.h>.
24079 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
24080 (pointer): Typedef to POINTER_TYPE *.
24081 (malloc): Remove decl; we now always use xmalloc.
24082 (alloca): Use old-style definition, since Emacs needs this.
24083 Check for arithmetic overflow when computing combined size.
24085 2002-12-04 Paul Eggert <eggert@twinsun.com>
24087 Do not generate unlocked-io.h automatically, since it's easier to
24088 maintain it by hand.
24090 * lib/unlocked-io.h: New file, from GNU diffutils,
24091 but with proper copyright notice and attribution.
24092 * lib/gen-uio: Remove.
24093 * lib/Makefile.am: Add copyright notice.
24094 (libfetish_a_SOURCES): Add unlocked-io.h.
24095 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
24096 (DISTCLEANFILES, io_functions): Remove macros.
24097 (EXTRA_DIST): Remove gen_uio.
24098 (unlocked-io.h): Remove rule.
24100 2002-12-04 Jim Meyering <jim@meyering.net>
24102 Reflect the fact that stat.c and lstat.c are no longer generated.
24103 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
24104 (DISTCLEANFILES): Likewise.
24105 (EXTRA_DIST): Likewise.
24106 (all_local): Don't depend on stat.c or lstat.c.
24107 (stat.c, lstat.c): Remove rules.
24108 (EXTRA_DIST): Remove xstat.in.
24110 * lib/xstat.in: Remove file. Contents moved into stat.c.
24111 * lib/stat.c: New file. Contents mostly from xstat.in.
24112 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
24113 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
24115 * lib/safe-read.c: Rework so that it may serve to define safe_write,
24117 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
24119 2002-12-03 Jim Meyering <jim@meyering.net>
24121 * lib/safe-read.c, safe-write.c: Change variable names and comments,
24122 but not semantics, to minimize the differences between these two files.
24123 (safe_read): Change comment to mention SAFE_READ_ERROR.
24125 * lib/safe-read.c (IS_EINTR): Define.
24126 (safe_read): Use IS_EINTR in place of in-function cpp directives.
24128 2002-12-02 Jim Meyering <jim@meyering.net>
24130 * lib/safe-read.c (EINTR): Define.
24131 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
24132 (INT_MAX): Provide fallback.
24133 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
24135 * lib/safe-read.h (SAFE_READ_ERROR): Define.
24137 2002-12-02 Bruno Haible <bruno@clisp.org>
24139 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
24140 Define, taken from safe-read.c.
24141 (INT_MAX): Provide fallback.
24142 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
24143 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
24145 * lib/safe-read.c (EINTR): Remove definition.
24146 (safe_read): Don't use EINTR if it is absent.
24148 2002-12-01 Jim Meyering <jim@meyering.net>
24150 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
24152 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
24154 2002-11-27 Paul Eggert <eggert@twinsun.com>
24156 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
24157 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
24158 with `if (! (value < limit)) abort ();', for readability.
24160 2002-11-26 Karl Berry <karl@gnu.org>
24162 * lib/strdup.c: copy from libc again, with jim's ok.
24163 * lib/.cppi-disable: re-add strdup.c
24165 2002-11-25 Karl Berry <karl@gnu.org>
24167 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
24168 instead of "strtol.c".
24170 2002-11-25 Karl Berry <karl@gnu.org>
24172 * config/install-sh: update from automake for variable quoting, $0 in
24175 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
24176 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
24179 2002-11-25 Jim Meyering <jim@meyering.net>
24181 * lib/mktime.c: Sync from libc, now that it has the latest fix.
24183 2002-11-24 Karl Berry <karl@gnu.org>
24185 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
24186 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
24188 2002-11-24 Jim Meyering <jim@meyering.net>
24190 Update from coreutils:
24192 * lib/mktime.c: Merge in changes from libc.
24194 Avoid a link-time failure on some Linux systems.
24195 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
24197 (__mon_yday): Declare with the STATIC attribute.
24198 (__mktime_internal): Likewise.
24199 Based on a report from Greg Schafer.
24201 2002-11-23 Jim Meyering <jim@meyering.net>
24203 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
24204 Use `unsigned', not `int', as type of index.
24206 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
24208 * lib/fsusage.c: Remove unneeded parentheses around operands of
24211 2002-11-22 Paul Eggert <eggert@twinsun.com>
24213 * lib/quotearg.h: Allow multiple inclusion by surrounding with
24214 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
24215 so that we can be included first.
24216 (PARAMS): Remove; we now assume C89 or later. All uses removed.
24217 * lib/quotearg.c: Include quotearg.h immediately after config.h.
24218 No need to include stddef.h or sys/types.h any more.
24219 Surround local include files with "", not "<>".
24220 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
24221 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
24222 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
24223 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
24224 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
24225 (ISPRINT): Remove; no longer needed now that we assume C89.
24227 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
24230 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
24231 quotearg_char): Use SIZE_MAX rather than
24232 (size_t) -1 when we are talking about "infinity".
24234 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
24236 2002-11-22 Paul Eggert <eggert@twinsun.com>
24238 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
24239 hint that one should use `if (! x) abort ();' rather than `assert
24240 (x);', and anyway it's one less thing to worry about configuring.
24241 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
24242 hash_rehash, hash_insert): Use abort rather than assert.
24244 2002-11-22 Bruno Haible <bruno@clisp.org>
24246 * lib/safe-read.h: Assume C89. Add comments.
24247 (safe_read): Change return type to size_t.
24248 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
24249 byte counts > SSIZE_MAX correctly.
24250 * lib/safe-write.h: New file.
24251 * lib/safe-write.c: New file.
24252 * lib/full-read.h: New file.
24253 * lib/full-read.c: New file.
24254 * lib/full-write.h: Assume C89. Add comments.
24255 * lib/full-write.c: Include safe-write.h.
24256 (full_write): Rewritten to use safe_write.
24257 Suggested by Jim Meyering and Paul Eggert.
24259 2002-11-21 Jim Meyering <jim@meyering.net>
24261 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
24263 Merge in changes from the coreutils.
24265 2002-09-25 Paul Eggert <eggert@twinsun.com>
24266 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
24268 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
24269 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
24270 int. Work more efficiently if X is the same width as uintmax_t.
24271 Do not compare X to -1, to avoid bogus compiler warning.
24272 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
24273 Don't assume that f_frsize and f_bsize are the same type.
24275 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
24276 warning on FreeBSD.
24278 * lib/makepath.c (make_path): Restore umask *before* creating the final
24280 (make_path): Minor reformatting.
24282 * lib/xmalloc.c: Adjust to work with new autoconf macros,
24283 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
24284 HAVE_MALLOC/HAVE_REALLOC.
24286 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
24287 dummy ones. At least on GNU/Linux systems, `auto' means something
24289 From Michael Stone.
24291 2002-11-21 Bruno Haible <bruno@clisp.org>
24293 Remove case insensitive option matching.
24294 * lib/argmatch.h (argcasematch): Remove declaration.
24295 (ARGCASEMATCH): Remove macro.
24296 (__xargmatch_internal): Remove case_sensitive argument.
24297 (XARGMATCH): Update.
24298 (XARGCASEMATCH): Remove macro.
24299 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
24300 case_sensitive argument.
24301 (argcasematch): Remove function.
24302 (__xargmatch_internal): Remove case_sensitive argument.
24303 (main): Use XARGMATCH instead of XARGCASEMATCH.
24305 * lib/xmalloc.c: Change compile-time error message. Add comment about
24306 required autoconf version.
24308 2002-11-20 Paul Eggert <eggert@twinsun.com>
24310 Merge argmatch cleanups from Bison. Assume C89.
24312 * lib/argmatch.c: Include config.h here, not in argmatch.h.
24313 Include stdlib.h, for EXIT_FAILURE.
24314 Always include <string.h>, since we assume C89.
24315 (EXIT_FAILURE): Remove pre-C89 bug workaround.
24316 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
24317 Include <stddef.h> instead, since it's all we need for size_t.
24318 (PARAMS): Remove. All uses removed.
24319 (ARRAY_CARDINALITY): Do not bother to #undef.
24320 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
24321 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
24322 Remove unnecessary parentheses.
24323 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
24324 Insert necessary parentheses.
24325 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
24326 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
24328 2002-11-19 Bruno Haible <bruno@clisp.org>
24330 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
24331 * lib/mbswidth.h: Include <stddef.h>, for size_t.
24333 * lib/mbswidth.h (PARAMS): Remove macro.
24334 (mbswidth, mbsnwidth): Use ANSI C function declarations.
24335 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
24337 * lib/gcd.h (PARAMS): Remove macro.
24338 (gcd): Use ANSI C function declarations.
24339 * lib/gcd.c (gcd): Likewise.
24341 2002-11-15 Bruno Haible <bruno@clisp.org>
24343 * lib/strcspn.c: Include <stddef.h>.
24344 (strcspn): Use ANSI C function declaration. Change return type to
24346 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
24347 (strpbrk): Use NULL.
24348 * lib/strpbrk.h (PARAMS): Remove macro.
24349 (strpbrk): Use ANSI C function declaration.
24350 * lib/strstr.c: Don't include <sys/types.h>.
24351 * lib/strstr.h (PARAMS): Remove macro.
24352 (strstr): Use ANSI C function declarations.
24354 2002-11-14 Karl Berry <karl@gnu.org>
24356 * config/mkinstalldirs: `do' on separate line, instead of
24359 2002-11-06 Bruno Haible <bruno@clisp.org>
24361 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
24362 * lib/gcd.c (gcd): Likewise.
24364 2002-11-05 Bruno Haible <bruno@clisp.org>
24366 * lib/gcd.h: New file, from gettext-0.11.5.
24367 * lib/gcd.c: New file, from gettext-0.11.5.
24369 2002-11-05 Bruno Haible <bruno@clisp.org>
24371 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
24372 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
24373 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
24374 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
24376 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
24378 * lib/makepath.c: Include gettext.h instead of <locale.h> and
24381 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
24382 * lib/human.c: Include gettext.h instead of <libintl.h>.
24383 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
24384 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
24385 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
24386 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
24387 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
24388 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
24389 (textdomain): Remove definition.
24390 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
24392 * lib/long-options.c: Remove include of <libintl.h> and definition of
24394 * lib/same.c: Remove include of <libintl.h> and definition of _.
24396 2002-11-04 Owen Taylor <otaylor@redhat.com>
24398 * lib/config.charset: A few additions for Solaris.
24400 2002-11-04 Bruno Haible <haible@clisp.cons.org>
24402 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
24403 * lib/localcharset.c (locale_charset): Declare as extern "C".
24405 2002-11-04 Bruno Haible <haible@clisp.cons.org>
24407 * lib/config.charset: msdos in uk_UA uses CP1125.
24409 2002-11-04 Bruno Haible <bruno@clisp.org>
24411 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
24412 * lib/strcase.h: New file, from GNU gettext-0.11.5.
24413 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
24414 * lib/strstr.h: New file, from GNU gettext-0.11.5.
24415 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
24417 2002-11-04 Bruno Haible <bruno@clisp.org>
24419 * lib/localcharset.c (locale_charset): Don't return an empty string.
24421 2002-11-04 Bruno Haible <bruno@clisp.org>
24423 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
24426 2002-11-04 Bruno Haible <bruno@clisp.org>
24428 * lib/config.charset: Update for newest glibc. Add canonical names
24429 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
24431 2002-11-04 Bruno Haible <bruno@clisp.org>
24433 * lib/config.charset: Add support for NetBSD.
24435 2002-11-04 Bruno Haible <bruno@clisp.org>
24437 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
24439 2002-11-01 Bruno Haible <bruno@clisp.org>
24441 * configure.in: Add AC_CONFIG_AUX_DIR call.
24442 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
24444 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
24446 2002-09-28 Karl Berry <karl@gnu.org>
24448 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
24449 installed automake until the next release, since changes have been
24452 2002-09-25 Karl Berry <karl@gnu.org>
24454 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
24455 * lib/getopt*: copy from libc/posix.
24456 * lib/gettext.h: copy from gettext.
24457 * lib/.cppi-disable: add strdup.c, gettext.h.
24459 2002-09-25 Karl Berry <karl@gnu.org>
24461 * config/srclist.txt: enable gettext.h check.
24462 * config/config.{guess,sub}: update from prep.
24463 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
24464 from automake 1.6.3.
24467 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
24469 * regex.c (PATFETCH): Remove the translating fetch.
24470 (PATFETCH_RAW): Rename to PATFETCH.
24471 (set_image_of_range): New fun.
24472 (SET_RANGE_TABLE_WORK_AREA): Use it.
24473 (regex_compile): Don't translate the pattern chars so eagerly.
24474 Only do it when inserting an `exactn' bytecode or when handling
24476 (mutually_exclusive_p): Avoid empty statement.
24478 2002-07-06 Jim Meyering <meyering@lucent.com>
24480 * m4/README: Don't mention Makefile.am.in.
24481 Outline how I've tested changes to .m4 files. Yep, it's a pain.
24483 2002-07-01 Jim Meyering <meyering@lucent.com>
24485 * lib/c-stack.c: Include sys/time.h.
24486 From Volker Borchert.
24488 2002-06-26 Paul Eggert <eggert@twinsun.com>
24490 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
24492 2002-06-26 Paul Eggert <eggert@twinsun.com>
24494 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
24495 New macro. Use it uniformly instead of
24496 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
24497 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
24498 reported by Vin Shelton.
24500 2002-06-22 Paul Eggert <eggert@twinsun.com>
24502 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
24503 Do not assume SA_SIGINFO behavior.
24504 Bug reported by Jim Meyering on NetBSD 1.5.2.
24506 2002-06-22 Jim Meyering <meyering@lucent.com>
24508 * m4/c-stack.m4: New file, from diffutils-2.8.2.
24509 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
24511 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
24512 now that configure.ac uses AC_GNU_SOURCE.
24513 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
24514 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
24516 Update to latest tools. Suggestions from Paul Eggert.
24517 * m4/stdbool.m4: New file, from diffutils-2.8.2.
24518 * m4/gnu-source.m4: Update from diffutils-2.8.2.
24519 * m4/fnmatch.m4: Likewise.
24520 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
24521 to AC_HEADER_STDBOOL
24523 2002-06-22 Jim Meyering <meyering@lucent.com>
24525 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
24526 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
24528 2002-06-22 Jim Meyering <meyering@lucent.com>
24530 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
24532 * lib/exitfail.c, exitfail.h: Likewise.
24533 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
24535 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
24537 (EXTRA_DIST): Add fnmatch_loop.c.
24538 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
24540 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
24541 * lib/fnmatch.c: Update from diffutils-2.8.2.
24542 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
24543 * lib/fnmatch.h: Remove file.
24545 2002-06-21 Jim Meyering <meyering@lucent.com>
24547 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
24548 * m4/mbrtowc.m4: Likewise.
24550 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
24551 * m4/mbswidth.m4: Reflect name change:
24552 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
24553 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
24555 * m4/lib-link.m4: Update from gettext-0.11.2.
24556 * m4/gettext.m4: Likewise.
24558 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
24559 From Alfred M. Szmidt.
24561 2002-06-18 Paul Eggert <eggert@twinsun.com>
24563 * lib/file-type.h: Report an error if neither S_ISREG nor
24564 S_IFREG is defined, instead of using a test specific to glibc
24565 2.2. This should be safe, since POSIX requires S_ISREG and
24566 Unix Version 7 had S_IFREG. We don't need to check for
24567 <sys/types.h> since we don't use any symbols that it defines.
24569 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
24571 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
24572 $@-t, so that each temporary file name is unique and valid in the first
24573 8 characters, for operation under DOS.
24575 2002-06-15 Paul Eggert <eggert@twinsun.com>
24577 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
24579 2002-06-15 Jim Meyering <meyering@lucent.com>
24581 Work even with DJGPP 2.03, which lacks support for symlinks.
24583 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
24585 * lib/lchown.c (S_ISLNK): Likewise.
24587 2002-06-15 Jim Meyering <meyering@lucent.com>
24589 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
24590 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
24591 have been included before this file.
24593 2002-06-14 Jim Meyering <meyering@lucent.com>
24595 * lib/file-type.h: Use the version from diffutils-2.8.2.
24596 * lib/file-type.c: Likewise.
24598 2002-06-07 Jim Meyering <meyering@lucent.com>
24600 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
24601 They're needed at least for NetBSD 1.5.2.
24602 ($statxfs_includes): Include those same headers.
24603 ($statxfs_includes): Include sys/vfs.h if available.
24604 ($statxfs_includes): Likewise for sys/statvfs.h.
24605 Check for the following members in both structs statfs and statvfs:
24606 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
24608 2002-06-01 Jim Meyering <meyering@lucent.com>
24610 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
24611 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
24613 2002-05-28 Jim Meyering <meyering@lucent.com>
24615 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
24616 Reported by Volker Borchert.
24618 2002-05-27 Jim Meyering <meyering@lucent.com>
24620 Fix a problem seen only on nonconforming systems whereby ls.c's
24621 use of localtime, and then of gettimeofday would cause trouble:
24622 the localtime call used to initialize rpl_gettimeofday's save
24623 mechanism would clobber ls's current local time information so
24624 that in any long listing the first file would always be listed
24625 with date 1970-01-01. Analysis by Volker Borchert.
24627 * lib/gettimeofday.c (localtime): Undefine.
24628 (rpl_localtime): New function.
24630 2002-05-27 Jim Meyering <meyering@lucent.com>
24632 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
24635 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
24636 use the replacement function; it wouldn't resolve at link time.
24637 Reported by Volker Borchert.
24639 2002-05-22 Jim Meyering <meyering@lucent.com>
24641 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
24643 * lib/file-type.h: New file.
24644 * lib/file-type.c (file_type): New file/function. Extracted from
24647 2002-04-30 Jim Meyering <meyering@lucent.com>
24649 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
24651 2002-04-29 Paul Eggert <eggert@twinsun.com>
24653 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
24655 2002-04-29 Paul Eggert <eggert@twinsun.com>
24657 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
24658 Do not check for alloca.h (no longer used) or stdbool.h (was never
24659 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
24661 2002-04-29 Paul Eggert <eggert@twinsun.com>
24663 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
24665 2002-04-29 Jim Meyering <meyering@lucent.com>
24667 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
24668 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
24669 Use AC_FUNC_STRNLEN here instead.
24671 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
24672 With autoconf-2.53a, it's part of AC_PROG_CC.
24674 2002-04-28 Paul Eggert <eggert@twinsun.com>
24676 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
24677 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
24679 2002-04-28 Paul Eggert <eggert@twinsun.com>
24681 * lib/sig2str.h, lib/sig2str.c: New files.
24682 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
24684 2002-04-28 Paul Eggert <eggert@twinsun.com>
24686 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
24687 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
24688 of 127, since 64 is the largest conceivable number for ancient
24690 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
24692 2002-04-28 Jim Meyering <meyering@lucent.com>
24694 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
24696 2002-04-24 Jim Meyering <meyering@lucent.com>
24698 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
24699 (jm_PREREQ): Use it.
24701 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
24702 mach/mach.h fcntl.h.
24703 Check for this function: setlocale.
24705 2002-04-24 Jim Meyering <meyering@lucent.com>
24707 * lib/gettext.h: New file, from Gettext.
24708 * lib/Makefile.am (INCLUDES): Remove -I../intl.
24709 (libfetish_a_SOURCES): Add gettext.h.
24711 2002-04-16 Jim Meyering <meyering@lucent.com>
24713 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
24714 ut_pid, ut_id, ut_exit.
24716 2002-04-16 Jim Meyering <meyering@lucent.com>
24718 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
24719 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
24720 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
24722 2002-04-12 Jim Meyering <meyering@lucent.com>
24724 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
24725 now-bogus check for f_type in sys/mount.h. Instead, just test for the
24726 existence of the getmntinfo function. Needed for Darwin 5.3.
24728 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
24729 This is necessary at least on Darwin 5.3.
24731 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
24732 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
24733 strnlen.o in the library, and that makes some versions of ranlib
24736 2002-04-12 Jim Meyering <meyering@lucent.com>
24738 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
24740 2002-04-09 Jim Meyering <meyering@lucent.com>
24742 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
24743 to be more precise. Rather than saying we're checking whether the
24744 function `works', say what we're testing.
24745 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
24746 Reported by Bruno Haible.
24748 2002-03-10 Jim Meyering <meyering@lucent.com>
24750 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
24751 Suggestion from Santiago Vila.
24753 2002-03-08 Jim Meyering <meyering@lucent.com>
24755 * lib/rename.c: Mention that this wrapper is needed also on
24756 mips-dec-ultrix4.4 systems.
24758 2002-03-02 Jim Meyering <meyering@lucent.com>
24760 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
24761 not HAVE_CLOCK_SETTIME.
24763 2002-02-27 Paul Eggert <eggert@twinsun.com>
24765 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
24766 Check for clock_settime.
24768 2002-02-27 Paul Eggert <eggert@twinsun.com>
24770 * lib/nanosleep.h: Rename to....
24771 * lib/timespec.h: New name for nanosleep.h. All uses changed.
24773 * lib/gettime.c: New file.
24774 * lib/settime.c: New file.
24775 * lib/stime.c: Remove.
24777 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
24778 timespec.h. Remove nanosleep.h.
24780 2002-02-25 Paul Eggert <eggert@twinsun.com>
24782 * m4/acl.m4: New file.
24783 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
24784 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
24786 2002-02-25 Paul Eggert <eggert@twinsun.com>
24788 * lib/acl.c, lib/acl.h: New files.
24789 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
24791 2002-02-24 Jim Meyering <meyering@lucent.com>
24793 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
24794 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
24795 cause trouble. Reported by Nelson Beebe.
24797 2002-02-23 Paul Eggert <eggert@twinsun.com>
24799 * lib/path-concat.c (xpath_concat): Reorder code to pacify
24800 compilers that don't know that xalloc_die never returns.
24802 2002-02-20 Jim Meyering <meyering@lucent.com>
24804 * lib/getdate.c: Regenerate using bison-1.33.
24806 2002-02-17 Jim Meyering <meyering@lucent.com>
24808 * config/config.guess (main): Don't use `head -1'; it's no longer
24809 portable. Use `sed 1q' instead.
24811 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
24813 * m4/codeset.m4: Upgrade to gettext-0.11.
24814 * m4/gettext.m4: Upgrade to gettext-0.11.
24815 * m4/glibc21.m4: Upgrade to gettext-0.11.
24816 * m4/iconv.m4: Upgrade to gettext-0.11.
24817 * m4/isc-posix.m4: Upgrade to gettext-0.11.
24818 * m4/lcmessage.m4: Upgrade to gettext-0.11.
24819 * m4/lib-ld.m4: New file, from gettext-0.11.
24820 * m4/lib-link.m4: New file, from gettext-0.11.
24821 * m4/lib-prefix.m4: New file, from gettext-0.11.
24822 * m4/progtest.m4: Upgrade to gettext-0.11.
24824 2002-02-15 Paul Eggert <eggert@twinsun.com>
24826 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
24827 (jm_PREREQ): Use it.
24829 2002-02-15 Paul Eggert <eggert@twinsun.com>
24831 * lib/posixver.c, lib/posixver.h: New files.
24832 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
24834 2002-02-02 Paul Eggert <eggert@twinsun.com>
24835 Bruno Haible <bruno@clisp.org>
24837 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
24838 (fwrite_success_callback): New declaration.
24839 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
24840 print_unicode_char. Call failure callback instead of error.
24841 (fwrite_success_callback): New function.
24842 (exit_failure_callback): New function.
24843 (fallback_failure_callback): New function.
24844 (print_unicode_char): Call unicode_to_mb.
24846 2002-01-26 Jim Meyering <meyering@lucent.com>
24848 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
24849 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
24851 2002-01-26 Jim Meyering <meyering@lucent.com>
24853 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
24855 2002-01-22 Paul Eggert <eggert@twinsun.com>
24857 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
24859 2002-01-22 Jim Meyering <meyering@lucent.com>
24861 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
24862 Otherwise, some versions of automake would omit the rule that makes
24863 Makefile from Makefile.in.
24865 2002-01-21 Paul Eggert <eggert@twinsun.com>
24867 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
24868 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
24869 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
24870 (memcoll): Set errno to zero if there is no error.
24872 * lib/quotearg.c (quotearg_buffer_restyled):
24873 Fix bug with quoting buffers containing NUL when backslashing escapes.
24874 This bug was exposed by the other changes in this patch.
24875 (quotearg_n_options): New arg ARGSIZE.
24876 All callers changed.
24877 (quoting_options_from_style): New function.
24878 (quotearg_n_style): Use it.
24879 (quotearg_n_style_mem): New function.
24881 * lib/quotearg.h (quotearg_n_style_mem): New function.
24883 2002-01-19 Jim Meyering <meyering@lucent.com>
24885 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
24886 Remove useless quotes: DF_PROG="df".
24887 * m4/strnlen.m4: New file.
24889 2002-01-16 Paul Eggert <eggert@twinsun.com>
24891 * lib/backupfile.c (ISDIGIT): Comment fix.
24892 * lib/getdate.y (ISDIGIT): Likewise.
24893 * lib/posixtm.c (ISDIGIT, year): Likewise.
24894 * lib/strverscmp.c (ISDIGIT): Likewise.
24895 * lib/userspec.c (ISDIGIT): Likewise.
24897 2002-01-16 Jim Meyering <meyering@lucent.com>
24899 * lib/getdate.y: Add three semicolons, each just before a closing
24900 brace. Bison (as of version 1.31) no longer papers over that mistake.
24902 2002-01-05 Jim Meyering <meyering@lucent.com>
24904 * lib/version-etc.c (version_etc_copyright): Update copyright year.
24906 2001-12-19 Paul Eggert <eggert@twinsun.com>
24908 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
24909 not silently exit merely because the output buffer happens to
24910 have nothing pending.
24912 2001-12-18 Paul Eggert <eggert@twinsun.com>
24914 See the big note in ../ChangeLog.
24915 * lib/human.c (suffixes): Prefer K to k for 1024.
24916 (generate_suffix_backwards): New function.
24917 (human_readable_inexact): Use it.
24918 * lib/xstrtol.c (__xstrtol): If there is no number but there
24919 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
24920 Accept 'K' as well as 'k'.
24922 2001-12-15 Jim Meyering <meyering@lucent.com>
24924 * lib/regex.h (__restrict_arr): Update from libc.
24926 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
24927 as `remote' if the name starts with `//'. Suggested by Michael Stone.
24930 2001-12-14 Jim Meyering <meyering@lucent.com>
24932 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
24933 Suggestion from Bruno Haible.
24935 2001-12-10 Jim Meyering <meyering@lucent.com>
24937 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
24938 xrealloc, Instead, include "xalloc.h".
24939 (initbuffer): Don't cast xmalloc return value to char*.
24940 (readline): Reword comment.
24941 Don't cast xrealloc return value to char*
24942 Return NULL, not 0.
24944 2001-12-09 Jim Meyering <meyering@lucent.com>
24946 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
24947 about `signed and unsigned type in conditional expression'.
24948 * lib/posixtm.c (posix_time_parse): Likewise.
24950 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
24952 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
24953 to avoid a pedantic warning.
24955 * lib/getstr.c: Don't include assert.h.
24956 (getstr): Remove warning-evoking assertions.
24957 Return -1 if offset parameter is out of bounds.
24958 Change the type of a local from int to size_t.
24960 * lib/strftime.c (my_strftime_localtime_r): Include this function
24961 definition in the `#if ! HAVE_TM_GMTOFF' block.
24963 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
24964 Include xalloc.h instead.
24966 2001-12-02 Jim Meyering <meyering@lucent.com>
24968 * lib/tempname.c: Don't declare getenv, thus reverting the change of
24969 2001-11-18. It's no longer necessary, now that stdlib.h is always
24972 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
24973 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
24975 2001-11-30 Akim Demaille <akim@epita.fr>
24977 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
24978 before being defined.
24980 2001-11-27 Paul Eggert <eggert@twinsun.com>
24982 * lib/quotearg.h (quotearg_n, quotearg_n_style):
24983 First arg is int, not unsigned.
24984 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
24985 (SIZE_MAX, UINT_MAX): New macros.
24986 (quotearg_n_options): Abort if N is negative.
24987 Avoid overflow check on hosts where size_t is 64 bits and int
24988 is 32 bits, as overflow is impossible there.
24989 Fix off-by-one typo that caused unnecessary reallocation.
24991 2001-11-27 Jim Meyering <meyering@lucent.com>
24993 * lib/tempname.c: Merge with version from libc.
24994 * lib/regex.c: Likewise.
24996 * lib/tempname.c: Include stdlib.h unconditionally. On some old
24997 systems for which STDC_HEADERS is 0, it was not included, resulting in
24998 a warning about an integer-to-pointer conversion problem with getenv.
24999 Reported by Volker Borchert.
25001 2001-11-26 Jim Meyering <meyering@lucent.com>
25003 * lib/gtod.h: Remove file.
25004 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
25005 * lib/gettimeofday.c: Don't include gtod.h.
25006 (GTOD_init): Remove function.
25007 (rpl_gettimeofday): Do its job here instead, rather than aborting.
25008 Suggestion from Volker Borchert.
25010 2001-11-23 Jim Meyering <meyering@lucent.com>
25012 * lib/hash.h (struct hash_table): Don't define here. Merely declare
25014 * lib/hash.c (struct hash_table): Define it here instead.
25016 2001-11-22 Jim Meyering <meyering@lucent.com>
25018 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
25020 2001-11-20 Jim Meyering <meyering@lucent.com>
25022 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
25023 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
25025 2001-11-19 Jim Meyering <meyering@lucent.com>
25027 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
25028 directory. Use "conftestXXXXXX" as the template.
25029 Suggestion from Paul Eggert.
25031 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
25032 immediately, so the test doesn't mistakenly hit the max-open-files
25035 2001-11-18 Paul Eggert <eggert@twinsun.com>
25037 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
25038 (TEMPORARIES): New macro.
25039 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
25040 removes an artificial limitation (e.g. HP-UX 10.20, where
25043 2001-11-18 Jim Meyering <meyering@lucent.com>
25045 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
25047 2001-11-18 Jim Meyering <meyering@lucent.com>
25049 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
25052 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
25053 files will be created before anything else.
25055 2001-11-17 Paul Eggert <eggert@twinsun.com>
25057 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
25058 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
25060 2001-11-17 Jim Meyering <meyering@lucent.com>
25062 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
25063 Prompted by a report from Bob Proulx.
25065 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
25066 Instead, require UTILS_FUNC_MKSTEMP.
25068 2001-11-17 Jim Meyering <meyering@lucent.com>
25070 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
25071 Now, that's done as part of AC_FUNC_STRTOD.
25073 2001-11-17 Jim Meyering <meyering@lucent.com>
25075 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
25076 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
25077 rather than group writable. Patch by Juan F. Codagnone.
25079 * lib/readtokens.c: Remove explicit declarations of xmalloc and
25080 xrealloc, Instead, include "xalloc.h".
25082 * lib/mountlist.c: Include unlocked-io.h after all system headers.
25083 Remove explicit declarations of xmalloc, xrealloc,
25084 and xstrdup. Instead, include "xalloc.h".
25086 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
25088 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
25090 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
25092 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
25093 Reported by Padraig Brady.
25095 * lib/mkstemp.c: #undef mkstemp.
25097 (rpl_mkstemp): Rename from mkstemp.
25100 2001-11-16 Jim Meyering <meyering@lucent.com>
25102 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
25103 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
25104 determine the amount of total physical memory, use pstat_getstatic.
25105 HPUX-11 doesn't define _SC_PHYS_PAGES.
25106 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
25107 If sysconf couldn't be used to determine the amount of available
25108 physical memory, use both pstat_getstatic and pstat_getdynamic.
25109 Based on a patch from Bob Proulx.
25111 2001-11-10 Jim Meyering <meyering@lucent.com>
25113 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
25114 (jm_PREREQ): Use it.
25116 2001-11-09 Jim Meyering <meyering@lucent.com>
25118 * m4/jm-macros.m4: Require autoconf-2.52f.
25119 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
25120 Use these AC_-prefixed names, not the AM_-prefixed ones.
25122 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
25124 2001-11-05 Jim Meyering <meyering@lucent.com>
25126 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
25128 2001-11-04 Jim Meyering <meyering@lucent.com>
25130 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
25133 2001-11-03 Jim Meyering <meyering@lucent.com>
25135 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
25138 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
25139 know the name of the variable in the macro definition.
25141 2001-11-03 Jim Meyering <meyering@lucent.com>
25143 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
25144 in argmatch_to_argument call.
25146 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
25149 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
25150 e.g., a fault due to an attempt to free a NULL pointer.
25152 2001-11-01 Jim Meyering <meyering@lucent.com>
25154 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
25155 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
25157 2001-11-01 Jim Meyering <meyering@lucent.com>
25159 * lib/dirfd.c, lib/dirfd.h: New files.
25160 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
25162 * lib/hash.c (hash_print) [TESTING]: Clean up.
25164 2001-10-22 Paul Eggert <eggert@twinsun.com>
25166 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
25167 to avoid a warning if -Wall.
25169 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
25172 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
25173 (per RMS's instructions, this is now the canonical source)
25174 * lgpl/, gpl/: New directories.
25176 2001-10-21 Paul Eggert <eggert@twinsun.com>
25178 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
25180 2001-10-21 Jim Meyering <meyering@lucent.com>
25182 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
25183 this code would end up calling gettext even in packages built
25184 with --disable-nls.
25185 * lib/getopt.c (_): Likewise.
25186 * lib/regex.c (_): Likewise.
25188 2001-10-20 Paul Eggert <eggert@twinsun.com>
25190 * m4/error.m4 (jm_PREREQ_ERROR):
25191 Do not invoke AC_CHECK_FUNCS with strerror_r, as
25192 AC_FUNC_STRERROR_R does that.
25193 Check for strerror declaration.
25195 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
25196 are supposed to have them these days.
25197 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
25198 Merge changes from latest Autoconf CVS.
25199 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
25200 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
25201 POSIX decided to standardize on the int flavor of strerror_r.
25203 2001-10-20 Paul Eggert <eggert@twinsun.com>
25205 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
25206 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
25207 Use strerror_r that is only a macro, even if it is not a function.
25208 (strerror): Check for HAVE_DECL_STRERROR before declaring.
25209 (private_strerror): Use prototypes, not old-style function definition.
25210 (print_errno_message): New function.
25211 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
25212 char*-flavored one.
25213 (error_tail, error, error_at_line): Use it.
25215 2001-10-11 Jim Meyering <meyering@lucent.com>
25217 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
25218 and quote_n (1, ... to avoid clobbering a buffer.
25220 2001-10-05 Jim Meyering <meyering@lucent.com>
25222 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
25224 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
25225 * lib/hash-pjw.h: New file.
25227 2001-09-30 Jim Meyering <meyering@lucent.com>
25229 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
25230 `struct fsstat' has the `f_fstypename' member.
25231 Use that to define FS_TYPE, which is now used to make
25232 the getfsstat link test tighter.
25234 2001-09-30 Jim Meyering <meyering@lucent.com>
25236 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
25237 Include <sys/ucred.h>, for Apple Darwin.
25238 Include sys/mount.h and sys/fs_types.h only if available.
25240 (read_filesystem_list): Use FS_TYPE.
25242 2001-09-29 Paul Eggert <eggert@twinsun.com>
25244 * lib/exclude.c (excluded_filename): 0 -> false, since it's
25247 2001-09-29 Jim Meyering <meyering@lucent.com>
25249 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
25250 [one-argument getmntent function]): Include stdio.h before mntent.h.
25251 SunOS 4.1.x needs it for the declaration of `FILE'.
25252 Patch by Volker Borchert.
25254 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
25255 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
25256 sys/fs_types.h, and make the link-test for getfsstat guard #include
25257 directives with appropriate #if HAVE_*_H tests so that we can
25258 detect getfsstat on Apple Darwin1.3.7 systems.
25259 Reported by Nelson Beebe.
25260 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
25262 2001-09-28 Paul Eggert <eggert@twinsun.com>
25264 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
25265 #defines strtoimax. Also treat the other strto* functions
25268 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
25269 Check for strtoul and strtoumax,
25270 as those declarations are made even in the signed case.
25271 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
25272 Likewise, for strtol and strtoimax.
25274 2001-09-28 Paul Eggert <eggert@twinsun.com>
25276 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
25277 #defines strtoimax. Also treat the other strto* functions
25280 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
25281 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
25282 (strtoimax, strtoumax): Do not declare if already defined as a macro.
25284 2001-09-26 Jim Meyering <meyering@lucent.com>
25286 Most macros in unlocked-io.h had the wrong number of arguments.
25287 * lib/gen-uio: New script.
25288 (USE_UNLOCKED_IO): Define to 1 if not already defined.
25289 * lib/unlocked-io.hin: Remove file.
25290 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
25291 rather than trying to embed it here.
25292 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
25293 Reported by Padraig Brady.
25295 2001-09-25 Volker Borchert <bt@teknon.de>
25297 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
25300 2001-09-24 Jim Meyering <meyering@lucent.com>
25302 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
25304 2001-09-23 Jim Meyering <meyering@lucent.com>
25306 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
25307 instead of the mere test for existence of mntent.h. The latter
25308 would get a false-positive on AIX 3.4 systems.
25309 In the outer getmntent if-block, don't die if neither of the getmntent
25310 tests succeeds. Instead, just fall through and continue with the
25313 2001-09-23 Jim Meyering <meyering@lucent.com>
25315 * lib/mountlist.c: Remove useless parentheses in #if directives.
25316 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
25317 the deprecated MOUNTED symbol is no longer defined in mntent.h.
25319 2001-09-22 Jim Meyering <meyering@lucent.com>
25321 * m4/gettext.m4: New file. From gettext.
25322 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
25323 * m4/progtest.m4: Likewise
25324 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
25325 * m4/glibc21.m4: Likewise.
25327 * m4/libintl.m4: Remove. No longer used.
25329 2001-09-22 Jim Meyering <meyering@lucent.com>
25331 * lib/localcharset.c: Update from latest gettext.
25332 * lib/config.charset: Likewise.
25334 2001-09-20 Jim Meyering <meyering@lucent.com>
25336 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
25338 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
25341 2001-09-20 Jim Meyering <meyering@lucent.com>
25343 * lib/xstrtol.c (strtoimax): Guard declaration with
25344 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
25345 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
25346 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
25347 (strtoumax): Likewise, for completeness (it wasn't necessary).
25349 2001-09-17 Paul Eggert <eggert@twinsun.com>
25351 * lib/strtoimax.c (HAVE_LONG_LONG):
25352 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
25353 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
25354 to work around bug in IBM C compiler.
25356 2001-09-17 Jim Meyering <meyering@lucent.com>
25358 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
25359 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
25360 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
25361 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
25362 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
25363 whenever the right hand side need not be expanded by the shell.
25365 2001-09-16 Paul Eggert <eggert@twinsun.com>
25367 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
25368 library. It's not correct, as some older glibcs are buggy.
25369 fnmatch wasn't fixed until glibc 2.2.
25371 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
25372 special shell magic here.
25374 2001-09-16 Jim Meyering <meyering@lucent.com>
25376 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
25377 * m4/jm-macros.m4: Require it.
25379 2001-09-16 Jim Meyering <meyering@lucent.com>
25381 * lib/mkdir.c: New file.
25383 2001-09-15 Jim Meyering <meyering@lucent.com>
25385 * m4/jm-macros.m4: Check for help2man.
25387 2001-09-11 Jim Meyering <meyering@lucent.com>
25389 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
25390 The body, by Paul Eggert, was moved here from configure.in.
25391 * m4/jm-macros.m4: Require UTILS_HOST_OS.
25393 2001-09-04 Paul Eggert <eggert@twinsun.com>
25395 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
25396 (jm_PREREQ): Use it.
25398 2001-09-04 Paul Eggert <eggert@twinsun.com>
25400 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
25401 Use ssize_t, not int, to store result of readlink.
25402 Check for ssize_t overflow as well as size_t overflow,
25403 as POSIX says the result of readlink is implementation-defined
25404 when ssize_t overflows.
25405 Remove unnecessary cast to char*.
25406 Use free+malloc instead of realloc, as the storage doesn't need
25407 to be preserved and it's clearer and can be more efficient that way.
25408 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
25409 * lib/xreadlink.h (xreadlink): Update prototype.
25411 2001-09-04 Paul Eggert <eggert@twinsun.com>
25413 * lib/xgetcwd.c: Revert some of the previous change; intead,
25414 fix the HAVE_GETCWD_NULL code to behave more like the
25415 !HAVE_GETCWD_NULL code used to.
25417 Include "xalloc.h".
25418 (xgetcwd): Do not return NULL when memory is exhausted; instead,
25421 2001-09-03 Paul Eggert <eggert@twinsun.com>
25423 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
25424 sys/param.h, as pathmax.h includes them.
25426 2001-09-03 Paul Eggert <eggert@twinsun.com>
25428 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
25429 (jm_PREREQ_XGETCWD): New macro.
25431 * m4/getcwd.m4: New file.
25433 2001-09-03 Paul Eggert <eggert@twinsun.com>
25435 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
25436 like the HAVE_GETCWD_NULL code.
25437 Include pathmax.h if not HAVE_GETCWD.
25438 Do not include xalloc.h.
25439 (INITIAL_BUFFER_SIZE): New symbol.
25440 Do not use xmalloc / xrealloc, since the caller is responsible for
25441 handling errors. Preserve errno around `free' during failure.
25442 Do not overrun buffer when using getwd.
25444 2001-09-03 Paul Eggert <eggert@twinsun.com>
25446 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
25447 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
25450 2001-09-03 Paul Eggert <eggert@twinsun.com>
25452 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
25453 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
25454 spotted by Jim Meyering.
25456 2001-09-03 Jim Meyering <meyering@lucent.com>
25458 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
25461 2001-09-02 Jim Meyering <meyering@lucent.com>
25463 * lib/error.c: Update from GNU libc.
25465 2001-09-01 Jim Meyering <meyering@lucent.com>
25467 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
25470 2001-09-01 Jim Meyering <meyering@lucent.com>
25472 * lib/xreadlink.c: New file.
25473 * lib/xreadlink.h: New file.
25474 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
25477 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
25478 doesn't conflict with sparc Solaris 7's definition in
25479 /usr/include/sys/int_types.h.
25481 * lib/exclude.c: Use `""', not `<>' to #include non-system header
25483 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
25484 and strncasecmp as r-values. Unixware didn't have declarations.
25486 2001-08-31 Paul Eggert <eggert@twinsun.com>
25488 * lib/xstrtol.h: Add copyright notice.
25489 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
25490 LONGINT_INVALID_SUFFIX_CHAR.
25492 2001-08-31 Paul Eggert <eggert@twinsun.com>
25494 * lib/xstrtol.c (strtoimax): New decl.
25496 2001-08-31 Paul Eggert <eggert@twinsun.com>
25498 * lib/xgetcwd.c: Don't include pathmax.h.
25499 Include stdlib.h and unistd.h if available.
25501 (xmalloc, xstrdup, free): Remove decls.
25502 (xgetcwd): Don't assume sizes fit in unsigned.
25503 Check for overflow when computing sizes.
25504 Simplify reallocation code.
25506 2001-08-31 Paul Eggert <eggert@twinsun.com>
25508 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
25509 a directory's st_size can have an arbitrary value, so the old
25510 usage could waste an arbitrary amount of memory. All uses
25512 * lib/savedir.h: Update prototype.
25514 2001-08-31 Paul Eggert <eggert@twinsun.com>
25516 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
25518 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
25521 Also, make the following further changes to make this file's
25522 configuration more similar to that of strtol.c:
25523 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
25524 (strtoumax, uintmax_t, strtoull, strtol): Remove.
25525 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
25526 (strtoimax): Renamed from strtoumax. All uses of unsigned values
25527 changed to signed values.
25529 And make the following changes as well:
25530 Fix copyright notice, as 1999 was missing.
25531 (verify): New macro.
25532 (strtoimax): Check sizes at compile-time, not run-time.
25533 Prefer strtol to strtoll if both work.
25534 (main): Remove; it was not that useful and was a pain to maintain.
25536 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
25538 2001-08-31 Jim Meyering <meyering@lucent.com>
25540 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
25541 Use an initial, malloc'd, buffer of length 128 rather than
25542 a statically allocated one of length 1024.
25544 2001-08-30 Paul Eggert <eggert@twinsun.com>
25546 Simplify code, partly by assuming autoconf 2.52 semantics.
25548 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
25550 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
25551 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
25553 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
25554 Move AC_REQUIRE to next-to-top level, to avoid confusion.
25555 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
25556 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
25557 jm_AC_HEADER_INTTYPES_H.
25558 * m4/jm-macros.m4 (jm_MACROS): Likewise.
25560 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
25562 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
25563 Quote first arg of AC_DEFUN.
25564 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
25565 since they are needed to parse the include file even if we need
25566 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
25567 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
25568 but with opposite signedness.
25570 2001-08-30 Paul Eggert <eggert@twinsun.com>
25572 Merge 'exclude' changes from tar 1.13.22.
25573 This fixes one or two unlikely storage allocation overflow bugs,
25574 but doesn't change user-visible behavior otherwise.
25576 2001-08-30 Paul Eggert <eggert@twinsun.com>
25578 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
25579 (jm_PREREQ_EXCLUDE): New macro.
25581 2001-08-30 Paul Eggert <eggert@twinsun.com>
25583 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
25586 2001-08-30 Paul Eggert <eggert@twinsun.com>
25588 * lib/hash.c: Remove '2001' from copyright notice.
25590 2001-08-30 Paul Eggert <eggert@twinsun.com>
25592 * lib/full-write.h: New file.
25593 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
25594 * lib/full-write.c: Correct credits, as cccp.c no longer
25595 exists and anyway it was so heavily changed from the old cccp
25596 code as to be unrecognizable. Include full-write.h.
25597 (full_write) Return size_t, with short writes meaning failure.
25598 All callers changed. This fixes a bug with large buffers
25600 * lib/utime.c: Include full-write.h.
25602 2001-08-30 Paul Eggert <eggert@twinsun.com>
25604 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
25605 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
25606 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
25607 Include if available.
25608 (<xalloc.h>): Include
25609 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
25610 (verify): New macro. Use it to verify that EXCLUDE macros do not
25611 collide with FNM macros.
25612 (struct patopts): New struct.
25613 (struct exclude): Use it, as exclude patterns now come with options.
25614 (new_exclude): Support above changes.
25615 (new_exclude, add_exclude_file):
25616 Initial size must now be a power of two to simplify overflow checking.
25617 (free_exclude, fnmatch_no_wildcards): New function.
25618 (excluded_filename): No longer requires options arg, as the options
25619 are determined by add_exclude. Now returns bool, not int.
25620 (excluded_filename, add_exclude):
25621 Add support for the fancy new exclusion options.
25622 (add_exclude, add_exclude_file): Now takes int options arg.
25623 Check for arithmetic overflow when computing sizes.
25624 (add_exclude_file): xrealloc might modify errno, so don't
25625 realloc until after errno might be used.
25627 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
25629 (free_exclude): New decl.
25630 (add_exclude, add_exclude_file): Now takes int options arg.
25631 (excluded_filename): No longer requires options arg, as the options
25632 are determined by add_exclude. Now returns bool, not int.
25634 2001-08-30 Paul Eggert <eggert@twinsun.com>
25636 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
25638 2001-08-27 Jim Meyering <meyering@lucent.com>
25640 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
25642 * lib/version-etc.c (N_): Remove definition.
25643 Revert most of last change.
25644 Instead, simply don't mark the `Copyright...' string for translation.
25645 Based on advice from Paul Eggert.
25647 * lib/strtoxmax.c: Tweak comment.
25649 2001-08-26 Jim Meyering <meyering@lucent.com>
25651 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
25653 * m4/xstrtoimax.m4: New file.
25654 * m4/xstrtoumax.m4: Add comments explaining why we
25655 AC_REPLACE_FUNCS(strtol).
25657 2001-08-26 Jim Meyering <meyering@lucent.com>
25659 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
25660 of copyright with `%s' so translators don't get an untranslated
25662 (COPYRIGHT_YEAR): Define.
25663 (version_etc): Use fprintf rather than fputs.
25664 Suggestion from Ulrich Drepper.
25666 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
25668 * lib/strtoll.c: New file, from GNU libc.
25669 * lib/xstrtoimax.c: New file.
25671 * lib/xstrtol.h: Add xstrtoimax.
25672 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
25673 * lib/strtoimax.c: New file. Likewise, but first define
25676 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
25678 * lib/strtoxmax.c: ... then renamed to this.
25680 2001-08-18 Paul Eggert <eggert@twinsun.com>
25682 * m4/inttypes.m4: Add AC_PREREQ(2.13).
25683 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
25684 (jm_AC_TYPE_INTMAX_T): New macro.
25685 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
25687 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
25689 * m4/longlong.m4: Renamed from ulonglong.m4.
25690 * m4/inttypes.m4: Renamed from inttypes_h.m4.
25691 * m4/uintmax_t.m4: Removed.
25693 2001-08-13 Paul Eggert <eggert@twinsun.com>
25695 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
25696 Port to Solaris 8, where 'sed' requires a space after the 'r'
25697 command, and where sh dislikes "$/". Clean up the spacing a bit.
25698 Redirect output to $tmp just once.
25700 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
25702 * lib/addext.c (<errno.h>): Include.
25703 (errno): Declare if not defined.
25704 (addext): Work correctly when pathconf returns -1 and leaves
25705 errno alone because there is no limit. Also, work even if
25706 pathconf returns a value greater than SIZE_MAX.
25708 2001-08-12 Jim Meyering <meyering@lucent.com>
25710 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
25711 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
25712 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
25713 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
25714 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
25715 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
25716 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
25717 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
25718 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
25719 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
25720 utime.m4, utimes.m4, xstrtoumax.m4:
25721 Quote the first argument in each use of AC_DEFUN.
25723 2001-08-12 Jim Meyering <meyering@lucent.com>
25725 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
25726 Simply `return getcwd (NULL, 0);'.
25727 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
25728 Use 1300 as initial value for length, not PATH_MAX.
25730 * lib/pathmax.h: Clean up cpp syntax.
25732 2001-08-12 Jim Meyering <meyering@lucent.com>
25734 * lib/gettimeofday.c: New file.
25735 * lib/gtod.h: New file.
25736 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
25738 2001-08-05 Jim Meyering <meyering@lucent.com>
25740 * m4/jm-macros.m4: Require autoconf-2.52.
25742 2001-08-04 Jim Meyering <meyering@lucent.com>
25744 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
25745 stmt, to get in sync with glibc.
25747 2001-08-03 Paul Eggert <eggert@twinsun.com>
25749 The following changes are from gettext 0.10.39 as maintained by
25752 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
25753 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
25754 with inverted sense. All uses changed.
25756 * lib/mbswidth.c: Don't include <limits.h>.
25757 Include <stdlib.h> and <string.h> unconditionally.
25758 (iswcntrl, mbsinit, ISCNTRL): New macros.
25759 (mbsnwidth): Use K&R style function declarations.
25760 Don't bother checking for MB_LEN_MAX == 1, since the compiler
25761 can optimize it when MB_CUR_MAX == 1.
25762 The width of control characters is zero, not 1.
25764 2001-08-03 Paul Eggert <eggert@twinsun.com>
25766 The following changes are from gettext 0.10.39 as maintained by
25767 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
25769 * m4/codeset.m4: Upgrade to serial AM1.
25770 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
25771 all uses changed. Quote first arg of AC_DEFUN.
25772 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
25774 * m4/iconv.m4: Upgrade to serial AM2.
25775 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
25776 Add --with-libconv-prefix.
25777 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
25778 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
25779 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
25780 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
25781 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
25783 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
25784 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
25785 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
25786 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
25787 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
25788 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
25789 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25790 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
25791 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
25793 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
25796 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
25797 not the default value.
25799 2001-06-25 Bruno Haible <haible@clisp.cons.org>
25800 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
25801 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
25802 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
25803 Also check for iswcntrl, used for wcwidth fallback.
25804 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
25807 2001-08-03 Jim Meyering <meyering@lucent.com>
25809 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
25810 as it was in the original. Reported by Paul Eggert.
25812 2001-07-16 Jim Meyering <meyering@lucent.com>
25814 * m4/gettimeofday.m4: New file.
25815 Prompted by a report from Bernhard Baehr.
25817 2001-07-15 Jim Meyering <meyering@lucent.com>
25819 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
25820 stuff. Now it's in ../Makefile.cfg.
25822 2001-07-15 Jim Meyering <meyering@lucent.com>
25824 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
25825 (BUILT_SOURCES): Add unlocked-io.h.
25826 (io_functions): Define.
25827 (unlocked-io.h): New rule.
25828 (DISTCLEANFILES): Add unlocked-io.h.
25829 (all-local): Depend on unlocked-io.h, to ensure it is created.
25831 * lib/unlocked-io.hin: New file
25833 * lib/regex.c: Update from glibc.
25835 2001-07-05 Jim Meyering <meyering@lucent.com>
25837 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
25839 (libfetish_a_SOURCES): Put all .h files here instead.
25840 Remove a thus-exposed (better checks in automake) duplicate and
25841 two unnecessary .h files.
25843 2001-07-04 Jim Meyering <meyering@lucent.com>
25845 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
25846 that generates jm-glibc-io.m4 so that it doesn't trigger any make
25849 2001-07-02 Jim Meyering <meyering@lucent.com>
25851 The following changes were prompted by suggestions from Bruno Haible.
25853 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
25855 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
25856 definition of EXTRA_DIST.
25857 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
25858 ensure that the generated file is created/updated whenever the list
25859 of $(unlocked_functions) is changed.
25860 (jm-glibc-io.m4): New rule.
25861 (unlocked-io.h): New rule -- currently unused.
25863 2001-06-24 Jim Meyering <meyering@lucent.com>
25865 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
25866 unmatched right bracket, rather than kludging it with an extra,
25867 falsely-matching quote in a comment. Patch by Akim Demaille.
25869 2001-06-11 Jim Meyering <meyering@lucent.com>
25871 * lib/regex.c: Update from GNU libc.
25873 2001-05-27 Jim Meyering <meyering@lucent.com>
25875 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
25876 Check for ut_type in struct utmp.
25878 2001-05-27 Jim Meyering <meyering@lucent.com>
25880 * lib/readutmp.h (UT_TYPE): Define.
25882 2001-05-24 Jim Meyering <meyering@lucent.com>
25884 * lib/argmatch.c: Include "quote.h".
25885 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
25886 quote function. Reported by Göran Uddeborg.
25888 2001-05-22 Jim Meyering <meyering@lucent.com>
25890 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
25891 now that we use the package-supplied version unconditionally.
25892 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
25894 2001-05-21 Jim Meyering <meyering@lucent.com>
25896 * m4/regex.m4: Change a couple backticks to single quotes to avoid
25897 shell syntax errors.
25899 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
25901 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
25903 2001-05-20 Paul Eggert <eggert@twinsun.com>
25905 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
25906 Don't bother to check library strftime, since
25907 we'll be using our own my_strftime function anyway.
25908 Define my_strftime instead of strftime.
25910 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
25912 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
25913 which is not yet declared.
25915 2001-05-15 Jim Meyering <meyering@lucent.com>
25917 * m4/regex.m4: Use proper quoting so brackets appear in the test
25919 Reported by, and with help from, Bruno Haible.
25921 2001-05-13 Jim Meyering <meyering@lucent.com>
25923 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
25926 2001-05-11 Paul Eggert <eggert@twinsun.com>
25928 dirname code cleanup. base_name now behaves more compatibly
25929 with POSIX basename when given file names that have trailing
25930 slashes, and similarly for dir_name. Add new primitives
25931 base_len and dir_len. Put the directory-name-related decls
25934 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
25935 * lib/backupfile.c (base_name): Likewise.
25936 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
25937 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
25938 * lib/makepath.c (strip_trailing_slashes): Likewise.
25939 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
25940 ISSLASH): Likewise.
25941 * lib/rename.c (strip_trailing_slashes): Likewise.
25942 * lib/same.c (base_name): Likewise.
25943 * lib/stripslash.c (ISSLASH): Likewise.
25945 * lib/addext.c: Include <dirname.h> after size_t is defined.
25946 * lib/backupfile.c: Likewise.
25948 * lib/addext.c (addext): Use base_len to trim redundant
25949 trailing slashes instead of doing it ourselves.
25950 But do not trim the last slash if it is not redundant.
25952 * lib/backupfile.c (find_backup_file_name,
25953 max_backup_version): Use base_len instead of rolling it ourselves.
25954 Handle the case of "" and (on DOS) "C:" correctly.
25956 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
25957 needed. Include <string.h>, <dirname.h>.
25958 (base_name): Allow file names ending in slashes, other than names
25959 that are all slashes. In this case, return the basename followed
25960 by the slashes. This is more general, and can be used in places
25961 where the original base_name purposely had an assertion failure.
25962 (base_len): New function.
25964 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
25965 Do not include <assert.h>; no longer needed.
25967 (memrchr): Remove decl.
25968 (dir_name_r): Remove.
25969 (dir_len): Renamed from dirlen. All callers changed.
25970 Rewrite in terms of base_name, for simplicity and consistency.
25971 (dir_name): Never return NULL. All callers changed.
25972 Do not include <stdlib.h> in test program; no longer needed.
25973 return 0; is fine for test program.
25975 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
25977 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
25979 * lib/path-concat.c (path_concat): Use base_len to compute
25980 base length, not strlen; this means we cannot rely on memcpy
25983 * lib/same.c (STREQ): Remove.
25984 (same_name): Handle the case where the basename ends in trailing '/'.
25986 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
25987 a slash was stripped. Do not strip the last slash after a
25988 file system prefix.
25990 2001-05-11 Paul Eggert <eggert@twinsun.com>
25992 * lib/Makefile.am (libfetish_a_SOURCES):
25993 Add strftime.c, since we now compile it on all hosts.
25995 * lib/strftime.c (my_strftime):
25996 Define to nstrftime if emacs, but only if my_strftime is not defined.
25997 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
25998 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
25999 Add one more extra argument: a nanoseconds value.
26002 (my_strftime function): Add %N format.
26003 (emacs_strftimeu): Renamed from emacs_strftime,
26004 with extra ut argument.
26006 2001-05-09 Paul Eggert <eggert@twinsun.com>
26008 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
26010 2001-04-21 Jim Meyering <meyering@lucent.com>
26012 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
26015 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
26017 * m4/ftruncate.m4: Check for chsize.
26018 Link with ftruncate.o unconditionally if ftruncate is missing.
26019 This was required when cross-compiling to i586-mingw32msvc.
26021 2001-04-08 Jim Meyering <meyering@lucent.com>
26023 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
26024 recomputed; that's necessary when the offset spans a DST transition.
26025 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
26027 2001-04-02 Jim Meyering <meyering@lucent.com>
26029 * lib/regex.h, regex.c: Update from GNU libc.
26031 2001-03-24 Jim Meyering <meyering@lucent.com>
26033 * m4/jm-macros.m4: Require autoconf-2.49d.
26035 2001-03-20 Bruno Haible <haible@clisp.cons.org>
26037 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
26039 2001-03-19 Paul Eggert <eggert@twinsun.com>
26041 * lib/version-etc.c (version_etc_copyright): Update to 2001.
26043 2001-03-17 Jim Meyering <meyering@lucent.com>
26045 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
26046 now that the version in autoconf is equivalent.
26047 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
26049 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
26050 Suggestion from Akim Demaille.
26052 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
26053 (jm_PREREQ_TEMPNAME): New function.
26055 2001-03-16 Paul Eggert <eggert@twinsun.com>
26057 * lib/tempname.c (uint64_t): Define to uintmax_t if
26058 not defined, and if UINT64_MAX is not defined.
26059 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
26060 Reported by John David Anglin.
26062 2001-03-15 Bruno Haible <haible@clisp.cons.org>
26064 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
26065 resolve alias if codeset is empty.
26066 * lib/config.charset (BeOS): Use wildcard syntax.
26068 2001-03-13 Jim Meyering <meyering@lucent.com>
26070 * lib/path-concat.c (path_concat)
26071 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
26072 concatenating e.g., `C:' and `foo'.
26075 2001-03-06 Bruno Haible <haible@clisp.cons.org>
26077 * lib/localcharset.c (locale_charset): Don't use
26078 setlocale(LC_CTYPE,NULL). Don't return NULL.
26079 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
26081 2001-03-06 Bruno Haible <haible@clisp.cons.org>
26083 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
26084 support for DOS/DJGPP.
26086 2001-03-01 Paul Eggert <eggert@twinsun.com>
26088 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
26089 lacks mkstemp. Compile our own tempname.c if we compile our own
26090 mkstemp.c, as mkstemp relies on tempname.
26092 2001-03-01 Jim Meyering <meyering@lucent.com>
26094 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
26095 AH_VERBATIM really does output its argument verbatim.
26097 2001-02-28 Paul Eggert <eggert@twinsun.com>
26099 * lib/Makefile.am (libfetish_a_SOURCES):
26100 Add dup-safer.c, fopen-safer.c.
26101 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
26103 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
26104 * lib/unistd-safer.h: New files.
26106 2001-02-25 Paul Eggert <eggert@twinsun.com>
26108 The mkstemp replacement is taken from glibc 2.2.2, with some
26109 portability fixes for use outside glibc, as follows:
26111 * lib/tempname.c (struct_stat64): New macro.
26112 (direxists, __gen_tempname): Use it.
26113 This avoids a portability problem with Solaris 8.
26115 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
26116 (<stddef.h>, <stdint.h>, <string.h>):
26117 Include only if STDC_HEADERS || _LIBC.
26118 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
26119 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
26120 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
26121 (__set_errno): Define this macro if <errno.h> doesn't.
26122 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
26123 Define these macros if <stdio.h> doesn't.
26124 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
26125 Define these macros if <sys/stat.h>
26126 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
26127 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
26128 __xstat64): Define if not _LIBC.
26129 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
26130 (__gen_tempname): Invoke gettimeofday only if
26131 HAVE_GETTIMEOFDAY || _LIBC;
26132 otherwise, fall back on plain "time".
26133 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
26135 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
26137 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
26139 2001-02-18 Paul Eggert <eggert@twinsun.com>
26141 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
26143 2001-02-17 Paul Eggert <eggert@twinsun.com>
26145 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
26146 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
26147 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
26148 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
26150 2001-02-17 Paul Eggert <eggert@twinsun.com>
26152 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
26153 Remove workaround macros for hosts that have mbrtowc but not
26154 mbstate_t, as we now insist on proper declarations for both
26155 before using mbrtowc.
26157 2001-02-17 Jim Meyering <meyering@lucent.com>
26159 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
26160 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
26161 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
26164 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
26165 rather than AC_CACHE_VAL.
26167 2001-02-17 Jim Meyering <meyering@lucent.com>
26169 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
26170 around included file name.
26172 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
26174 * lib/strftime.c: Update from GNU libc (the only changes were to
26177 2001-02-17 Jim Meyering <meyering@lucent.com>
26179 * lib/regex.c: Update from libc.
26181 2001-02-17 Bruno Haible <haible@clisp.cons.org>
26183 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
26186 2001-02-16 Paul Eggert <eggert@twinsun.com>
26188 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
26189 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
26190 Reported by Mark Hounschell via Paul Eggert.
26192 2001-02-07 Jim Meyering <meyering@lucent.com>
26194 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
26196 2001-02-05 Jim Meyering <meyering@lucent.com>
26198 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
26199 it includes the patch required for `large file' support with at least
26200 HP-UX's 10.20 /bin/cc.
26202 2001-02-03 Jim Meyering <meyering@lucent.com>
26204 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
26205 AS_IF, now that it works once again (mysteriously).
26206 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
26208 2001-01-30 Jim Meyering <meyering@lucent.com>
26210 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
26211 * m4/chown.m4: Rename conftestchown to conftest.chown.
26212 * m4/rename.m4: s/conftestdir/conftest.d1/ and
26213 s/conftestdir2/conftest.d2/.
26214 * m4/utimes.m4: s/conftestdata/conftest.data/
26215 Inspired by Pavel Roskin's change in autoconf.
26217 2001-01-30 Bruno Haible <haible@clisp.cons.org>
26219 * lib/config.charset: Update for FreeBSD 4.2.
26221 2001-01-27 Jim Meyering <meyering@lucent.com>
26223 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
26225 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
26227 2001-01-26 Jim Meyering <meyering@lucent.com>
26229 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
26230 quotearg.c includes it.
26232 2001-01-26 Jim Meyering <meyering@lucent.com>
26234 * lib/quotearg.c: Include stddef.h.
26235 * lib/quote.c: Include stddef.h.
26236 Reported by Axel Kittenberger.
26238 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
26239 line in double quotes so that it evokes a better diagnostic.
26240 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
26241 Reported by Axel Kittenberger.
26243 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
26245 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
26246 as if it was a `charset'.
26248 2001-01-21 Bruno Haible <haible@clisp.cons.org>
26250 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
26253 2001-01-21 Bruno Haible <haible@clisp.cons.org>
26255 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
26256 to avoid a warning. Add back 'const' to inptr.
26258 2001-01-20 Jim Meyering <meyering@lucent.com>
26260 Be sure that headers are checked before used in code compiled
26261 for the type checks.
26262 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
26263 In place of that, invoke jm_CHECK_ALL_TYPES.
26264 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
26265 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
26266 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
26267 The check for ssize_t was mistakenly run before the test for unistd.h.
26269 The configure-time check for stdbool.h was missing.
26270 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
26271 (jm_PREREQ_HASH): New function.
26273 2001-01-17 Jim Meyering <meyering@lucent.com>
26275 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
26276 for autoconf-2.49c.
26277 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
26279 2001-01-16 Jim Meyering <meyering@lucent.com>
26281 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
26284 2001-01-14 Jim Meyering <meyering@lucent.com>
26286 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
26287 foo and bar. Create conftestdir/ in the script, not in the C code.
26288 Remove directories in the script, not in the C code.
26289 Remove conftestdir{,2} before trying to create the directory.
26290 Make the entire configure script fail if the mkdir fails.
26292 2001-01-14 Jim Meyering <meyering@lucent.com>
26294 * lib/rename.c: New file. From Volker Borchert.
26295 Include stdlib.h, string.h or strings.h, and xalloc.h.
26296 Use strip_trailing_slashes rather than open-coding it.
26298 2001-01-03 Paul Eggert <eggert@twinsun.com>
26300 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
26302 2001-01-03 Jim Meyering <meyering@lucent.com>
26304 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
26305 of local `inptr' to avoid warning with some system declarations of
26308 2001-01-02 Volker Borchert <bt@teknon.de>
26310 * m4/rename.m4: New file.
26311 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
26313 2001-01-01 Jim Meyering <meyering@lucent.com>
26315 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
26316 even on systems with utmpx.h. It's necessary for the declaration of
26317 utmp's ut_user member. Reported by Andreas Jaeger.
26319 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
26320 available. They are required for the declarations of getgrgid and
26322 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
26323 Reported by Andreas Jaeger.
26325 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
26327 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
26328 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
26329 so `make install' also works in VPATH builds.
26331 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
26333 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
26334 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
26335 can be used in subdirectories.
26337 2000-12-29 Paul Eggert <eggert@twinsun.com>
26339 * lib/modechange.c: Do not assume that mode_t uses the
26340 traditional octal encoding. E.g. "chmod 1 FOO" should set
26341 the other-execute bit of FOO even if S_IXOTH != 1.
26343 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
26344 WOTH, XOTH, ALLM): New macros.
26345 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
26346 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
26348 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
26349 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
26351 No need to use uintmax_t; unsigned long is long enough.
26352 Don't bother to get suffix since we don't use it.
26354 2000-12-26 Jim Meyering <meyering@lucent.com>
26356 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
26357 better with autoheader.
26359 2000-12-24 Jim Meyering <meyering@lucent.com>
26361 * lib/hash.c (is_prime): Return explicit boolean values.
26362 (hash_get_first): Return NULL to appease Irix5.6's 89.
26363 Reported by Nelson Beebe.
26365 2000-12-19 Bruno Haible <haible@clisp.cons.org>
26367 * lib/localcharset.c (locale_charset): Add support for Win32.
26369 2000-12-18 Paul Eggert <eggert@twinsun.com>
26371 * lib/physmem.h, lib/physmem.c: New files.
26373 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
26374 (noinst_HEADERS): Add physmem.h.
26376 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
26377 't' for compatibility with Solaris 8 sort.
26379 2000-12-18 Bruno Haible <haible@clisp.cons.org>
26381 * lib/config.charset: Add support for BeOS.
26383 2000-12-17 Jim Meyering <meyering@lucent.com>
26385 * m4/dos.m4 (jm_AC_DOS): New file and macro.
26386 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
26388 2000-12-16 Jim Meyering <meyering@lucent.com>
26390 This bug had a serious impact on chown: `chown N:M FILE' (for integer
26391 N and M) would have treated it like `chown N:N FILE'.
26393 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
26395 2000-12-16 Jim Meyering <meyering@lucent.com>
26397 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
26398 SHELLS_FILE to a file name that's useful on djgpp systems.
26400 (ADDITIONAL_DEFAULT_SHELLS): Define.
26401 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
26402 Based mostly on a patch from Prashant TR.
26404 2000-12-16 Bruno Haible <haible@clisp.cons.org>
26406 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
26407 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
26408 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
26410 2000-12-08 Andreas Schwab <schwab@suse.de>
26412 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
26413 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
26415 2000-12-07 Jim Meyering <meyering@lucent.com>
26417 * lib/stripslash.c (ISSLASH): Define.
26418 (strip_trailing_slashes): Use ISSLASH rather than comparing against
26422 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
26423 (dir_name_r): Declare this function as static.
26424 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
26425 manifest itself on a name containing a mix of slashes and
26427 Make this function work with names starting with a DOS-style
26428 drive letter and colon prefix.
26429 (dir_name): Append `.' if necessary.
26430 Based mostly on patches from Prashant TR and Eli Zaretskii.
26432 * lib/dirname.h (dir_name_r): Remove prototype.
26434 2000-12-06 Paul Eggert <eggert@twinsun.com>
26436 * m4/off_t-format.m4: Remove this file.
26437 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
26439 2000-12-06 Jim Meyering <meyering@lucent.com>
26441 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
26442 replacement strtoull, we may well need the replacement strtoul, too.
26443 Check for declarations of strtoul and strtoull.
26444 Check for strtol. Mainly as a cue to cause automake to include
26445 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
26446 Check for limits.h -- strtol.c needs it.
26448 2000-12-05 Jim Meyering <meyering@lucent.com>
26450 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
26452 2000-12-04 Jim Meyering <meyering@lucent.com>
26454 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
26455 Also include memory.h, stdlib.h, unistd.h if appropriate.
26456 Reported by Andreas Jaeger (conflicting declaration of malloc).
26458 2000-12-02 Jim Meyering <meyering@lucent.com>
26460 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
26461 * m4/jm-macros.m4 (jm_MACROS): require it.
26463 2000-12-02 Jim Meyering <meyering@lucent.com>
26465 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
26467 2000-12-01 Paul Eggert <eggert@twinsun.com>
26469 * lib/memrchr.c: Include <config.h> before any system include file.
26471 2000-11-30 Jim Meyering <meyering@lucent.com>
26473 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
26475 2000-11-30 Jim Meyering <meyering@lucent.com>
26477 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
26479 2000-11-29 Paul Eggert <eggert@twinsun.com>
26481 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
26483 2000-11-26 Jim Meyering <meyering@lucent.com>
26485 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
26487 2000-11-22 Paul Eggert <eggert@twinsun.com>
26489 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
26490 size of (size_t) -1; it's not portable.
26492 2000-11-17 Jim Meyering <meyering@lucent.com>
26494 * lib/strstr.c: Update from GNU libc.
26496 2000-11-17 Akim Demaille <akim@epita.fr>
26498 * lib/obstack.h: Formatting changes.
26499 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
26500 prevent type checking.
26501 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
26502 cast the value to (void *): assigning a `foo *' to a `void *'
26504 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
26506 2000-11-16 Jim Meyering <meyering@lucent.com>
26508 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
26510 2000-11-11 Jim Meyering <meyering@lucent.com>
26512 * lib/error.c: Add a couple #includes, merging from GNU libc version.
26514 2000-11-10 Jim Meyering <meyering@lucent.com>
26516 * lib/obstack.h: Update from GNU libc.
26517 * lib/obstack.c: Likewise.
26519 2000-11-08 Bruno Haible <haible@clisp.cons.org>
26521 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
26523 2000-11-06 Paul Eggert <eggert@twinsun.com>
26525 * lib/getusershell.c (setusershell): Use rewind rather than
26526 fseek/fseeko, to avoid configuration hassles with fseeko.
26527 Don't bother opening SHELLS_FILE if shellstream is NULL;
26528 it's not necessary.
26530 2000-11-05 Jim Meyering <meyering@lucent.com>
26532 * lib/makepath.h (make_dir): Declare.
26533 * lib/makepath.c (make_dir): Remove `static' attribute.
26536 2000-11-04 Jim Meyering <meyering@lucent.com>
26538 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
26540 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
26542 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
26543 last one in a bucket, advance to the next bucket.
26545 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
26547 * lib/fnmatch.c: Do not comment out all the code if we are using
26548 the GNU C library, because in some cases we are replacing buggy
26549 code in the GNU C library itself.
26551 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
26553 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
26554 (regex_compile): Catch bogus \(\1\).
26556 2000-10-30 Paul Eggert <eggert@twinsun.com>
26558 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
26559 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
26560 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
26562 2000-10-30 Paul Eggert <eggert@twinsun.com>
26564 * lib/error.h, getline.h, modechange.h:
26565 Remove "2000" from Copyright line, as the file hasn't been
26566 changed this year other than in the copyright notice.
26568 * lib/xalloc.h: Add "2000" to Copyright line, as this file
26569 was changed this year.
26571 2000-10-29 Jim Meyering <meyering@lucent.com>
26573 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
26575 * m4/ls-mntd-fs.m4: Likewise
26577 2000-10-29 Jim Meyering <meyering@lucent.com>
26579 * lib/xstat.in: Fix grammar in comment.
26581 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
26583 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
26584 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
26585 doesn't define __restrict_arr.
26587 2000-10-28 Jim Meyering <meyering@lucent.com>
26589 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
26590 (jm_PREREQ_MEMCHR): New function.
26592 2000-10-28 Jim Meyering <meyering@lucent.com>
26594 * lib/memchr.c: Update from libc.
26595 Adjust for portability:
26596 [HAVE_STDLIB_H]: Include stdlib.h.
26597 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
26598 Undef __memchr, too.
26599 [!weak_alias]: Define __memchr to memchr.
26601 * lib/regex.c: Update from libc.
26602 * lib/regex.h: Likewise.
26603 * lib/getopt1.c: Likewise.
26604 * lib/memcmp.c: Likewise.
26606 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
26607 Avoid using fseek, when possible -- it's broken by design.
26608 Patch by Ulrich Drepper.
26610 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
26612 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
26613 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
26614 Giving in to popular pressure to shut up the compiler with casts.
26616 2000-10-26 Jim Meyering <meyering@lucent.com>
26618 * lib/strftime.c: Update from libc.
26620 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
26622 * regex.c: More `unsigned char' -> `re_char' changes.
26623 Also change several `int' into `re_wchar_t'.
26624 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
26625 (PUSH_FAILURE_POINTER): Don't cast any more.
26626 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
26627 We want GCC to complain, since this piece of code makes
26628 re_match non-reentrant, which *should* be fixed.
26629 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
26630 (EXTEND_BUFFER): Use RETALLOC.
26631 (SET_LIST_BIT): Don't cast.
26632 (re_wchar_t): New type.
26633 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
26634 that those two functions will always properly return.
26635 (IMMEDIATE_QUIT_CHECK): Cast to void.
26636 (analyse_first): Use recursion rather than an explicit stack.
26637 (re_compile_fastmap): Can't fail anymore.
26638 (re_search_2): Don't check re_compile_fastmap for failure.
26639 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
26640 Now also sets the new value (passed in a new argument).
26641 (re_match_2_internal): Use it.
26642 Also, use a new var `reg' of type size_t when looping through regs
26643 rather than reuse the inappropriate `mcnt'.
26645 2000-10-25 Jim Meyering <meyering@lucent.com>
26647 * lib/obstack.c: Update from libc.
26649 2000-10-24 Kenichi Handa <handa@etl.go.jp>
26651 * regex.c (regex_compile): Change the way of handling a range from
26652 a char less than 256 to a char not less than 256.
26654 2000-10-24 Andrew Innes <andrewi@gnu.org>
26656 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
26658 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
26659 so that re_search functions only quit when callers expect them to.
26661 2000-10-23 Jim Meyering <meyering@lucent.com>
26663 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
26664 wrong. That set_locale call must not have any side effects.
26667 2000-10-22 Jim Meyering <meyering@lucent.com>
26669 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
26670 [CYCLIC]: Remove now-unused definition.
26672 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
26673 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
26674 Suggestion from Ulrich Drepper.
26676 2000-10-21 Jim Meyering <meyering@lucent.com>
26678 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
26679 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
26680 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
26682 2000-10-21 Jim Meyering <meyering@lucent.com>
26684 * lib/dirname.c (memrchr): Declare if necessary.
26685 (dir_name): Remove the restriction that there be no
26686 trailing slashes. Now, this code skips past them, effectively
26688 [TEST_DIRNAME] (main): New unit tests.
26690 * lib/memrchr.c: New file from GNU libc.
26691 Undef __memrchr, too.
26692 [!weak_alias]: Define __memrchr to memrchr.
26693 Guard weak_alias use with `#ifdef weak_alias'.
26695 2000-10-21 Jim Meyering <meyering@lucent.com>
26697 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
26698 (dir_name): Use dir_name_r.
26699 * lib/dirname.h (dir_name_r): Declare it.
26701 2000-10-17 Jim Meyering <meyering@lucent.com>
26703 * lib/quote.h (PARAMS): Define and use.
26704 Reported by Akim Demaille.
26706 * lib/getopt.c: Update from libc.
26708 2000-10-16 Jim Meyering <meyering@lucent.com>
26710 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
26714 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
26716 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
26718 2000-09-25 Jim Meyering <meyering@lucent.com>
26720 * lib/md5.h (rol): Define (from GnuPG).
26722 * lib/sha.c: Give credit (GnuPG) where due.
26723 (M): Use rol rather than open-coding it.
26724 Add a FIXME comment.
26726 2000-09-21 Jim Meyering <meyering@lucent.com>
26728 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
26729 Reported by Michael Stone.
26731 2000-09-20 Jim Meyering <meyering@lucent.com>
26733 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
26734 (noinst_HEADERS): Add sha.h.
26735 Based on code from Scott G. Miller and from GnuPG.
26737 2000-09-18 Jim Meyering <meyering@lucent.com>
26739 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
26740 LIBS. Otherwise, everyone ends up linking with -lelf for some
26742 Reported by Mike Stone.
26744 2000-09-15 Jim Meyering <meyering@lucent.com>
26746 * lib/regex.c: Update from libc.
26748 2000-09-10 Jim Meyering <meyering@lucent.com>
26750 * lib/getopt.c (_getopt_internal): Update from glibc.
26752 2000-09-09 Jim Meyering <meyering@lucent.com>
26754 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
26755 think it should be used as a general replacement for isascii.
26756 * lib/fnmatch.c: Likewise.
26757 * lib/mbswidth.c: Likewise
26758 * lib/regex.c: Likewise.
26761 * lib/userspec.c: Include sys/param.h and limits.h.
26763 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
26764 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
26765 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
26766 UID, GID. Check range.
26768 2000-09-06 Jim Meyering <meyering@lucent.com>
26770 * lib/getopt.c (_getopt_internal): Update from glibc.
26772 2000-08-30 Jim Meyering <meyering@lucent.com>
26774 * lib/strftime.c: Merge in changes from GNU libc.
26776 2000-08-26 Jim Meyering <meyering@lucent.com>
26778 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
26779 * m4/fpending.m4: New file.
26781 2000-08-26 Jim Meyering <meyering@lucent.com>
26783 * lib/closeout.c: Include "__fpending.h".
26784 (close_stdout_status): Return right away if there's nothing to flush.
26786 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
26787 * lib/__fpending.c: New file.
26788 * lib/__fpending.h: New file.
26790 2000-08-20 Jim Meyering <meyering@lucent.com>
26792 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
26793 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
26794 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
26796 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
26798 Improve fileutils installation on systems where running
26799 programs (like install) can't be unlinked.
26800 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
26801 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
26803 2000-08-07 Paul Eggert <eggert@twinsun.com>
26805 Standardize on "memory exhausted" instead of "Memory exhausted"
26806 or "virtual memory exhausted".
26807 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
26808 "virtual memory exhausted".
26809 * lib/same.c (same_name): Invoke xalloc_die instead of printing
26811 * lib/userspec.c (parse_user_spec): Likewise.
26812 * lib/bumpalloc.h: comment fix
26813 * lib/same.c, userspec.c: Include xalloc.h.
26815 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
26816 not char *const and pointing to a constant array.
26817 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
26818 (xrealloc): Comment fix.
26820 * lib/userspec.c (parse_user_spec):
26821 Don't translate a message until just before returning,
26822 to avoid unnecessary translation.
26824 2000-08-07 Jim Meyering <meyering@lucent.com>
26826 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
26827 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
26828 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
26829 getgroups.c, gethostname.c, getopt.h, group-member.c,
26830 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
26831 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
26832 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
26833 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
26834 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
26835 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
26836 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
26837 yesno.c: Back out Copyright date changes for each file with no change
26838 this year. This eases coordination with other programs using the same
26839 source code modules. From Paul Eggert.
26841 2000-08-06 Paul Eggert <eggert@twinsun.com>
26843 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
26844 not char, for compatibility with glibc 2.1.3 strftime.c.
26846 2000-08-03 Greg McGary <greg@mcgary.org>
26848 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
26849 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
26850 (EXTEND_BUFFER): Use them.
26852 2000-08-01 Jim Meyering <meyering@lucent.com>
26854 * lib/dirname.c (ISSLASH): Define.
26855 (BACKSLASH_IS_PATH_SEPARATOR): Define.
26856 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
26857 both `\' and `/' may be use as path separators.
26858 Based on a patch from Prashant TR.
26860 2000-07-31 Paul Eggert <eggert@twinsun.com>
26862 * lib/quotearg.c (quotearg_n_options): Don't make the initial
26863 slot vector a constant, since it might get modified.
26865 2000-07-31 Jim Meyering <meyering@lucent.com>
26867 * lib/xmalloc.c: Use `virtual memory exhausted', not
26868 `Memory exhausted'.
26869 * lib/obstack.c (print_and_abort): Likewise.
26871 2000-07-30 Paul Eggert <eggert@twinsun.com>
26873 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
26874 buffer, so that the caller can always quote one small
26875 component of a "memory exhausted" message in slot 0.
26876 From a suggestion by Jim Meyering.
26878 2000-07-30 Jim Meyering <meyering@lucent.com>
26880 * lib/makepath.c (make_path): Quote the other instance, too.
26882 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
26883 (STATIC_BUF_SIZE): Define.
26884 (quotearg_n_options): Use only statically allocated storage when
26885 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
26886 than STATIC_BUF_SIZE.
26888 2000-07-29 Jim Meyering <meyering@lucent.com>
26890 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
26891 * lib/dirname.c (dir_name): Likewise.
26893 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
26896 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
26897 (dir_name): Assert that there are no trailing slashes.
26899 2000-07-29 Bruno Haible <haible@clisp.cons.org>
26901 * lib/mbswidth.h (mbswidth): Add a flags argument.
26902 (mbswidth): New declaration.
26903 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
26904 * lib/mbswidth.c (mbswidth): Add a flags argument.
26905 (mbsnwidth): New function.
26907 2000-07-24 Jim Meyering <meyering@lucent.com>
26909 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
26911 2000-07-23 Paul Eggert <eggert@twinsun.com>
26913 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
26915 2000-07-23 Paul Eggert <eggert@twinsun.com>
26917 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
26918 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
26919 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
26920 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
26921 invoke multibyte primitives.
26923 2000-07-23 Paul Eggert <eggert@twinsun.com>
26926 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
26927 so that mbstate_t is always defined.
26929 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
26930 be 1 in at least one GCC installation, and this configuration
26931 error is likely to be common. Ignoring MB_LEN_MAX hurts
26932 performance on hosts that have mbrtowc but have only unibyte
26933 locales, but I assume these hosts are rare.
26935 2000-07-23 Paul Eggert <eggert@twinsun.com>
26937 * lib/mbswidth.c (_XOPEN_SOURCE):
26938 Don't define; this causes problems on Solaris 7.
26939 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
26941 2000-07-23 Jim Meyering <meyering@lucent.com>
26943 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
26944 too: getgrgid, getpwuid, getuid.
26946 2000-07-23 Jim Meyering <meyering@lucent.com>
26948 * lib/basename.c (base_name): Add an assertion.
26950 2000-07-23 Bruno Haible <haible@clisp.cons.org>
26952 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
26953 shadow its mbsinit function.
26955 2000-07-17 Bruno Haible <haible@clisp.cons.org>
26957 * lib/mbswidth.h: New file.
26958 * lib/mbswidth.c: New file.
26959 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
26960 (noinst_HEADERS): Add mbswidth.h.
26962 2000-07-17 Bruno Haible <haible@clisp.cons.org>
26964 * lib/config.charset: Add support for FreeBSD. Improve support for
26967 2000-07-16 Bruno Haible <haible@clisp.cons.org>
26969 * m4/mbswidth.m4: New file.
26970 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
26972 2000-07-15 Jim Meyering <meyering@lucent.com>
26974 * lib/makepath.c: Include quote.h.
26975 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
26976 corresponding argument in a `quote (...)' call.
26977 Give better diagnostics.
26979 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
26980 (noinst_HEADERS): Add quote.h.
26982 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
26983 from tar's src/misc.c.
26984 * lib/quote.h: New file. Prototypes for same.
26986 2000-07-14 Paul Eggert <eggert@twinsun.com>
26988 From a suggestion by Bruno Haible.
26989 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
26990 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
26991 to decide whether to define the BeOS workaround macro;
26992 this adjusts to the change to AC_MBSTATE_T.
26994 2000-07-14 Jim Meyering <meyering@lucent.com>
26996 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
26997 jm_AC_TYPE_UINTMAX_T.
26999 2000-07-13 Paul Eggert <eggert@twinsun.com>
27001 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
27003 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
27004 quotearg_buffer_restyled): Add support for
27005 clocale_quoting_style. Undo previous change to
27006 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
27007 and "{RIGHT QUOTATION MARK}" msgids.
27009 2000-07-10 Paul Eggert <eggert@twinsun.com>
27011 From a suggestion by Bruno Haible.
27012 * m4/mbstate_t.m4 (AC_MBSTATE_T):
27013 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
27014 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
27015 and mbstate_t, to a single-part test that simply defines mbstate_t.
27016 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
27017 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
27019 2000-07-10 Jim Meyering <meyering@lucent.com>
27021 * m4/strerror_r.m4: Mirror the correction made in autoconf.
27023 * m4/gnu-source.m4: Output to confdefs.h directly.
27024 Suggestion from Akim Demaille.
27026 2000-07-09 Paul Eggert <eggert@twinsun.com>
27028 The old behavior of quoting `like this' doesn't look good with
27029 newer, ISO-style fonts. See:
27030 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
27032 Instead, quote "like this" by default. Let the translator
27033 tailor the locale-specific quoting behavior by providing
27034 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
27036 * lib/quotearg.c (N_): New macro.
27037 (gettext_default): New function.
27038 (quotearg_buffer_restyled): Use
27039 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
27040 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
27042 2000-07-09 Jim Meyering <meyering@lucent.com>
27044 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
27045 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
27047 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
27048 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
27050 2000-07-09 Jim Meyering <meyering@lucent.com>
27052 * lib/Most files: Update copyright dates to include 2000.
27054 2000-07-08 Jim Meyering <meyering@lucent.com>
27056 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
27058 (xgethostname): Remove now-unnecessary #ifdef.
27059 Move declaration of `err' into loop where it's used.
27061 2000-07-05 Paul Eggert <eggert@twinsun.com>
27062 and Bruno Haible <haible@clisp.cons.org>
27064 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
27065 only if the test for an object-type mbstate_t fails. This
27066 prevents us from mistakenly reporting that mbstate_t is a
27067 system object type after we "#define mbstate_t int" to work
27070 2000-07-05 Paul Eggert <eggert@twinsun.com>
27071 and Bruno Haible <haible@clisp.cons.org>
27073 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
27075 2000-07-05 Bruno Haible <haible@clisp.cons.org>
27077 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
27079 Include <ctype.h> for use of isalpha.
27081 2000-07-05 Bruno Haible <haible@clisp.cons.org>
27083 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
27084 by allocating a larger buffer. Test the gethostname return value for
27085 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
27086 returns an error and ENAMETOOLONG isn't defined.
27088 2000-07-05 Bruno Haible <haible@clisp.cons.org>
27090 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
27093 2000-07-04 Jim Meyering <meyering@lucent.com>
27095 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
27096 of the deprecated AC_CHECKING.
27098 2000-07-04 Jim Meyering <meyering@lucent.com>
27100 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
27101 Reported by Bruno Haible.
27103 2000-07-04 Jim Meyering <meyering@lucent.com>
27105 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
27106 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
27109 2000-07-03 Paul Eggert <eggert@twinsun.com>
27111 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
27112 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
27114 2000-07-03 Paul Eggert <eggert@twinsun.com>
27115 and Bruno Haible <haible@clisp.cons.org>
27117 * lib/quotearg.c (mbrtowc):
27118 Assign to *pwc, and return 1 only if result is nonzero.
27119 (iswprint): Use ISPRINT when substituting our own mbrtowc.
27121 2000-07-03 Jim Meyering <meyering@lucent.com>
27123 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
27125 2000-07-03 Jim Meyering <meyering@lucent.com>
27127 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
27128 This is necessary to get a definition of e.g., UTMP_FILE on
27132 2000-07-02 Jim Meyering <meyering@lucent.com>
27134 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
27136 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
27137 AC_LIBOBJ(function_name).
27138 * m4/chown.m4: Likewise.
27139 * m4/fnmatch.m4: Likewise.
27140 * m4/ftruncate.m4: Likewise.
27141 * m4/getgroups.m4: Likewise.
27142 * m4/getline.m4: Likewise.
27143 * m4/group-member.m4: Likewise.
27144 * m4/jm-macros.m4: Likewise.
27145 * m4/lstat.m4: Likewise.
27146 * m4/malloc.m4: Likewise.
27147 * m4/memcmp.m4: Likewise.
27148 * m4/nanosleep.m4: Likewise.
27149 * m4/putenv.m4: Likewise.
27150 * m4/realloc.m4: Likewise.
27151 * m4/regex.m4: Likewise.
27152 * m4/stat.m4: Likewise.
27153 * m4/strftime.m4: Likewise.
27155 2000-07-02 Jim Meyering <meyering@lucent.com>
27157 * lib/quotearg.c (mbstate_t): Don't define here.
27159 2000-07-02 Jim Meyering <meyering@lucent.com>
27161 * lib/nanosleep.c (SIGCONT): Define if not already defined.
27163 2000-07-01 Jim Meyering <meyering@lucent.com>
27165 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
27167 2000-07-01 Jim Meyering <meyering@lucent.com>
27169 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
27172 2000-07-01 Bruno Haible <haible@clisp.cons.org>
27174 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
27175 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
27177 2000-07-01 Bruno Haible <haible@clisp.cons.org>
27179 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
27180 per change in ../m4/ls-mntd-fs.m4.
27181 (read_filesystem_list): Ignore symbolic links.
27183 2000-06-29 Jim Meyering <meyering@lucent.com>
27185 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
27186 for declaration of strcmp.
27188 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
27190 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
27191 Avoid warning by casting result to `char *' to remove `const'.
27193 2000-06-28 Jim Meyering <meyering@lucent.com>
27195 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
27196 included by quotearg.c, for which we perform this test. From
27199 2000-06-27 Bruno Haible <haible@clisp.cons.org>
27201 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
27202 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
27203 <utmpx.h> exists, put readutmp.o into LIBOBJS.
27205 2000-06-27 Bruno Haible <haible@clisp.cons.org>
27207 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
27209 2000-06-26 Paul Eggert <eggert@twinsun.com>
27211 savedir now sets errno on failure and invokes xmalloc to get memory.
27212 Fix a couple of other minor bugs while we're at it.
27214 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
27215 (NAMLEN): Remove macro.
27216 (malloc, realloc): Remove decls.
27217 (stpcpy): Likewise.
27218 ("xalloc.h"): Include.
27219 (NAME_SIZE_DEFAULT): New macro.
27220 (savedir): Use xmalloc / xrealloc to allocate memory.
27221 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
27222 Skip "" directory entries.
27223 Use strlen to calculate directory entry length, since the old method
27224 is rarely used these days and isn't worth supporting.
27225 Don't use a pointer after freeing it.
27226 Check for integer overflow when calculating allocation size.
27227 Use memcpy to copy entries, instead of stpcpy.
27228 Set errno properly when returning NULL.
27229 Check for readdir error.
27231 2000-06-26 Jim Meyering <meyering@lucent.com>
27233 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
27235 2000-06-25 Jim Meyering <meyering@lucent.com>
27237 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
27238 Linux header bug when _XOPEN_SOURCE is defined to 500.
27240 2000-06-25 Bruno Haible <haible@clisp.cons.org>
27242 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
27245 2000-06-25 Bruno Haible <haible@clisp.cons.org>
27247 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
27249 Don't include <stdlib.h>. Don't declare malloc, realloc.
27251 2000-06-24 Jim Meyering <meyering@lucent.com>
27253 * m4/strerror_r.m4: Revive this file -- to try out an experimental
27254 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
27255 for which strerror does return char*, but which lacks a conveniently
27256 accessible declaration of the function. If the compile-test says
27257 strerror_r doesn't work, then resort to a `run'-test that works on
27258 BeOS and segfaults on DEC Unix.
27260 2000-06-24 Jim Meyering <meyering@lucent.com>
27262 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
27264 2000-06-23 Paul Eggert <eggert@twinsun.com>
27266 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
27267 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
27269 2000-06-23 Paul Eggert <eggert@twinsun.com>
27271 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
27272 (mbrtowc, mbstate_t): Define substitutes if
27273 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
27274 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
27275 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
27277 2000-06-23 Jim Meyering <meyering@lucent.com>
27279 * m4/afs.m4: Add missing AC_MSG_RESULT.
27280 Reported by Bruno Haible.
27282 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
27283 Suggestion from Bruno Haible.
27285 2000-06-23 Jim Meyering <meyering@lucent.com>
27287 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
27289 2000-06-21 Jim Meyering <meyering@lucent.com>
27291 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
27293 2000-06-21 Jim Meyering <meyering@lucent.com>
27295 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
27296 (noinst_HEADERS): Add getstr.h.
27298 * lib/getline.c (getstr): Move into a separate file.
27299 * lib/getstr.c (getstr): New file, extracted from getline.c, with
27300 the following changes: new parameter, delim2; both delim[12]
27301 parameters have type `int', not `char'. The latter would lose
27302 with 8-bit delimiters.
27303 * lib/getstr.h: New file.
27305 2000-06-21 Bruno Haible <haible@clisp.cons.org>
27307 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
27308 than 1024, return a memory chunk of least possible size, instead
27309 of size PATH_MAX + 2. In the loop, increment the size proportionally.
27310 Use free/xmalloc instead of xrealloc to avoid copying for very long
27313 2000-06-21 Bruno Haible <haible@clisp.cons.org>
27315 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
27318 2000-06-21 Bruno Haible <haible@clisp.cons.org>
27320 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
27321 address, not strdup. Include <stdlib.h> and don't declare free().
27323 2000-06-19 Jim Meyering <meyering@lucent.com>
27325 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
27327 2000-06-18 Jim Meyering <meyering@lucent.com>
27329 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
27331 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
27332 `checking whether...' message to be consistent with that of the
27335 2000-06-18 Jim Meyering <meyering@lucent.com>
27337 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
27338 Besides, these days every porting target provides a mkdir function.
27340 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
27341 needed. (this snippet comes from src/system.h).
27343 2000-06-16 Bruno Haible <haible@clisp.cons.org>
27345 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
27347 2000-06-15 Paul Eggert <eggert@twinsun.com>
27349 * lib/human.c (adjust_value): New function.
27350 (human_readable_inexact): Apply rounding style even when
27351 printing approximate values.
27353 2000-06-14 Paul Eggert <eggert@twinsun.com>
27355 * lib/human.c (human_readable_inexact): Allow an input block
27356 size that is not a multiple of the output block size, and vice versa.
27357 Reported by Piergiorgio Sartor.
27359 2000-06-14 Paul Eggert <eggert@twinsun.com>
27361 * lib/getdate.y (get_date): Apply relative times after time
27362 zone indicator, not before. Reported by Todd A. Jacobs.
27364 2000-06-13 Jim Meyering <meyering@lucent.com>
27366 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
27368 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
27370 2000-06-12 Paul Eggert <eggert@twinsun.com>
27372 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
27374 2000-06-12 Jim Meyering <meyering@lucent.com>
27376 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
27377 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
27379 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
27380 the optional argument, `lib'.
27382 2000-06-08 Jim Meyering <meyering@lucent.com>
27384 * m4/largefile.m4: Remove file (now that it's part of autoconf).
27386 2000-06-04 Paul Eggert <eggert@twinsun.com>
27388 Rewrite largefile configuration so that we don't need to run
27389 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
27390 AC_CANONICAL_HOST in configure.in -- jmm]
27392 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
27393 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
27394 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
27395 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
27396 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
27398 Instead of inspecting the output of getconf, try to compile the
27399 test program without and with the macro definition.
27400 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
27401 for getconf. Instead, check for the needed flags by compiling
27404 2000-06-04 Paul Eggert <eggert@twinsun.com>
27406 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
27408 2000-06-04 Jim Meyering <meyering@lucent.com>
27410 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
27411 SunOS 4.1.4 for which gid_t is an unsigned type.
27413 2000-06-03 Jim Meyering <meyering@lucent.com>
27415 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
27416 now that autoconf requires that.
27418 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
27419 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
27420 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
27422 2000-06-03 Jim Meyering <meyering@lucent.com>
27424 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
27426 2000-06-03 Bruno Haible <haible@clisp.cons.org>
27428 * m4/glibc21.m4: New file.
27429 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
27431 2000-06-03 Bruno Haible <haible@clisp.cons.org>
27433 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
27434 newer, don't install charset.alias.
27435 * lib/config.charset: Change the Linux/glibc rules so they become empty
27436 on glibc-2.1 or newer.
27438 2000-06-02 Jim Meyering <meyering@lucent.com>
27440 * lib/mountlist.c: Back out last change. Instead, do this...
27441 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
27442 me_dummy member using the same `ignore'-testing code.
27443 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
27447 2000-05-29 Jim Meyering <meyering@lucent.com>
27449 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
27450 mounts with the `ignore' attribute. Based on a patch from
27453 2000-05-28 Jim Meyering <meyering@lucent.com>
27455 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
27456 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
27457 * m4/stat.m4: Likewise.
27458 * m4/lstat.m4: Likewise.
27459 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
27461 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
27462 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
27464 2000-05-26 Jim Meyering <meyering@lucent.com>
27466 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
27468 2000-05-24 Jim Meyering <meyering@lucent.com>
27470 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
27471 autoconf requires that.
27472 * m4/lib-check.m4: Likewise.
27473 * m4/jm-macros.m4: Likewise.
27474 * m4/strftime.m4: Likewise.
27476 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
27477 AC_CHECK_DECLS, now that autoconf requires that.
27479 2000-05-22 Jim Meyering <meyering@lucent.com>
27481 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
27482 * m4/lstat.m4: Likewise.
27484 2000-05-22 Jim Meyering <meyering@lucent.com>
27486 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
27488 2000-05-20 Jim Meyering <meyering@lucent.com>
27490 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
27491 (jm_PREREQ): Use it.
27493 2000-05-18 Jim Meyering <meyering@lucent.com>
27495 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
27496 back, too, since it may have been modified by allocate_entry.
27497 (hash_delete): Rewrite to use neither the assignment operator
27498 nor the comma operator in an if-expression.
27500 2000-05-15 Paul Eggert <eggert@twinsun.com>
27503 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
27504 Remove; no longer needed.
27505 "quotearg.h": Add include.
27506 (file_name): Do not bother to explicitly initialize to NULL; it's less
27507 efficient on some hosts.
27508 (close_stdout_status): Remove test as to whether stdout was already
27509 closed; it breaks for the case "echo x | sort >&-".
27510 Quote file name colons.
27511 Do not assume that _("write error") lacks format strings.
27513 2000-05-15 Jim Meyering <meyering@lucent.com>
27515 * lib/version-etc.c (version_etc_copyright): Update the copyright
27516 string used in all --version output.
27518 2000-05-14 Jim Meyering <meyering@lucent.com>
27520 * lib/closeout.c (close_stdout_set_file_name): New function.
27521 (close_stdout_status): Use new file-scoped global.
27522 Return right away if fstat says the stdout file descriptor is invalid.
27523 * lib/closeout.h (close_stdout_set_file_name): Declare.
27525 2000-05-10 Jim Meyering <meyering@lucent.com>
27527 * lib/closeout.c [default_exit_status]: New file-scoped variable.
27528 (close_stdout_set_status): New function.
27529 * lib/closeout.h (close_stdout_set_status): Declare.
27531 2000-05-09 Jim Meyering <meyering@lucent.com>
27533 * m4/gettext.m4: Rename this...
27534 * m4/libintl.m4: ...to this.
27536 2000-05-08 Jim Meyering <meyering@lucent.com>
27538 * lib/long-options.c: Don't include closeout.h.
27539 (parse_long_options): Don't call close_stdout for --version.
27541 2000-05-06 Paul Eggert <eggert@twinsun.com>
27543 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
27544 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
27545 2.1.3 bug. This avoids a clash when files like regex.c define
27548 2000-05-06 Jim Meyering <meyering@lucent.com>
27550 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
27551 (AC_REPLACE_FUNCS): Add strnlen.
27553 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
27554 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
27556 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
27557 AC_SEARCH_LIBS call for nanosleep.
27558 (LIB_NANOSLEEP): Set and AC_SUBST.
27560 2000-05-06 Jim Meyering <meyering@lucent.com>
27562 * lib/strnlen.c: Undefine __strnlen and strnlen.
27563 [!weak_alias]: Define __strnlen to strnlen.
27565 * lib/atexit.c: New file, from libiberty.
27567 2000-05-06 Jim Meyering <meyering@lucent.com>
27569 * lib/closeout.c (close_stdout_status): Also check for errors on the
27572 2000-05-05 Jim Meyering <meyering@lucent.com>
27574 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
27575 AC_SEARCH_LIBS call for clock_gettime.
27576 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
27578 * m4/search-libs.m4: Update from autoconf.
27580 su doesn't work on Solaris 2.6.
27581 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
27582 <shadow.h>. Reported by Dragos Harabor.
27584 2000-05-05 Bruno Haible <haible@clisp.cons.org>
27586 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
27587 memcpy instead of xmalloc, xrealloc, path_concat.
27588 (locale_charset): Treat empty environment variables as absent.
27589 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
27591 2000-05-04 Jim Meyering <meyering@lucent.com>
27593 * lib/getopt.c: Update from glibc.
27594 * lib/obstack.c: Likewise.
27595 * lib/obstack.h: Likewise.
27596 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
27599 * lib/regex.h: Likewise.
27600 * lib/strndup.c: Likewise.
27601 * lib/strnlen.c: New file, from glibc.
27603 2000-05-03 Jim Meyering <meyering@lucent.com>
27605 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
27607 2000-05-02 Paul Eggert <eggert@twinsun.com>
27609 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
27610 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
27611 compile-time test, rather than inspecting host and OS, to
27612 decide whether to define _LARGEFILE_SOURCE.
27614 2000-05-01 Jim Meyering <meyering@lucent.com>
27616 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
27618 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
27619 Based on a patch from Bruno Haible.
27621 2000-05-01 Jim Meyering <meyering@lucent.com>
27623 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
27625 2000-04-29 Jim Meyering <meyering@lucent.com>
27627 * lib/path-concat.c: Declare strdup only if it's not defined.
27628 * lib/canon-host.c: Likewise.
27630 2000-04-28 Jim Meyering <meyering@lucent.com>
27632 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
27633 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
27634 is included first, then limits.h is included by locale.h by libintl.h.
27635 From John David Anglin.
27637 2000-04-25 Jim Meyering <meyering@lucent.com>
27639 * lib/makepath.c (S_IRWXUGO): Define.
27640 (make_path): Always perform explicit chmod if MODE specifies any
27641 of the `special' permission bits. Prompted by a bug report against
27642 install from Mate Wierdl and Joost van Baal.
27644 2000-04-18 Jim Meyering <meyering@lucent.com>
27646 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
27647 (jm_PREREQ): Use it.
27649 2000-04-18 Jim Meyering <meyering@lucent.com>
27651 * lib/README: New file.
27653 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
27654 getpagesize. For BeOS. Based on a patch from Bruno Haible.
27656 2000-04-17 Jim Meyering <meyering@lucent.com>
27659 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
27660 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
27661 Suggestion from Akim Demaille.
27663 2000-04-17 Jim Meyering <meyering@lucent.com>
27665 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
27666 the definition of it to rpl_strftime also defined-away the system's
27669 2000-04-15 Jim Meyering <meyering@lucent.com>
27671 Use `C' to denote so-called `contiguous' files, the same way
27673 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
27674 (ftypelet): Use S_ISCTG.
27675 From Michael Deutschmann.
27677 2000-04-14 Jim Meyering <meyering@lucent.com>
27679 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
27680 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
27683 2000-04-14 Jim Meyering <meyering@lucent.com>
27685 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
27687 2000-04-13 Jim Meyering <meyering@lucent.com>
27689 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
27690 AH_VERBATIM to insert required #ifndef into config.h.in.
27691 Suggestion from Akim Demaille.
27693 2000-04-12 Jim Meyering <meyering@lucent.com>
27695 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
27696 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
27697 Christian Krackowizer.
27699 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
27700 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
27701 (AC_SYS_LARGEFILE): Require.
27702 (AM_C_PROTOTYPES): Require.
27704 2000-04-08 Jim Meyering <meyering@lucent.com>
27706 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
27707 names don't conflict. Reported by Eli Zaretskii.
27709 2000-04-07 Jim Meyering <meyering@lucent.com>
27711 * lib/putenv.c: Move inclusion of errno.h so it follows that of
27712 sys/types.h, to work around system header problems on AIX 3.2.5.
27715 2000-04-07 Bruno Haible <haible@clisp.cons.org>
27717 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
27718 bug. Deal with the different error behavior of Irix iconv.
27720 2000-04-05 Paul Eggert <eggert@twinsun.com>
27722 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
27723 IRIX if the installer said otherwise.
27725 2000-04-05 Jim Meyering <meyering@lucent.com>
27727 Portability tweaks required for ultrix4.3.
27728 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
27729 (jm_CHECK_DECLS): Add getutent to the list of functions.
27730 (_jm_DECL_HEADERS): Add utmpx.h.
27731 From John David Anglin.
27733 * m4/strftime.m4: Back out the 2000-04-02 change.
27734 Instead of that change, simply undefine putenv in the test program.
27736 2000-04-05 Jim Meyering <meyering@lucent.com>
27738 Portability tweaks required for ultrix4.3.
27739 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
27741 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
27742 * lib/canon-host.c: Declare strdup.
27743 * lib/path-concat.c: Likewise.
27744 From John David Anglin.
27746 2000-04-04 Jim Meyering <meyering@lucent.com>
27748 Be more DOS 8.3-friendly.
27749 * lib/ref-add.sin: Renamed from ref-add.sed.in.
27750 * lib/ref-del.sin: Renamed from ref-del.sed.in.
27751 * lib/Makefile.am: Reflect renaming.
27752 Reported by Eli Zaretskii.
27754 Use a temporary file name that won't clash with `charset.alias'
27755 in the DOS 8.3 name space.
27756 * lib/Makefile.am (charset_tmp): Define.
27757 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
27758 (uninstall-local): Likewise.
27759 Reported by Eli Zaretskii.
27761 2000-04-03 Jim Meyering <meyering@lucent.com>
27763 * m4/gettext.m4: Fix typo in comment.
27765 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
27766 textutils/configure.in). Suggestion from Paul Eggert.
27767 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
27769 2000-04-02 Paul Eggert <eggert@twinsun.com>
27771 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
27772 variable in the shell rather than using putenv, which isn't
27773 portable. This avoids the configure-time inter-test dependency
27774 on the potentially-renamed putenv function.
27776 2000-03-30 Paul Eggert <eggert@twinsun.com>
27778 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
27779 before checking struct stat.st_blksize, so that
27780 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
27782 2000-03-29 Paul Eggert <eggert@twinsun.com>
27784 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
27785 since strftime.c uses HAVE_STRFTIME to decide whether to use
27786 the underlying strftime.
27788 2000-03-29 Paul Eggert <eggert@twinsun.com>
27790 * lib/time/strftime.c (my_strftime): Make sure we call the system
27791 strftime, not ourselves, when invoking the underlying strftime.
27793 2000-03-24 Jim Meyering <meyering@lucent.com>
27795 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
27796 (charset_alias): Define.
27797 (install-exec-local): Factor out common code.
27798 (uninstall-local): Split lines longer than 80.
27799 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
27800 (SUFFIXES): Define.
27801 (.sed.in.sed): New rule. Don't redirect directly to $@.
27802 (CLEANFILES): Add ref-add.sed and ref-del.sed.
27804 2000-03-19 Bruno Haible <haible@clisp.cons.org>
27806 * lib/config.charset: Output a line containing "Packages using this
27808 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
27809 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
27810 ref-del.sed): New rules.
27812 2000-03-17 Jim Meyering <meyering@lucent.com>
27814 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
27815 Otherwise, include <strings.h>
27817 2000-03-17 Bruno Haible <haible@clisp.cons.org>
27819 * lib/unicodeio.c (utf8_wctomb): New function.
27820 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
27821 format instead of in UCS-4 with platform dependent endianness.
27823 2000-03-10 Jim Meyering <meyering@lucent.com>
27825 * m4/lib-check.m4: Look for getspnam in -lgen, too.
27826 From Marco Franzen.
27828 2000-03-07 Paul Eggert <eggert@twinsun.com>
27830 * lib/savedir.c (savedir): Work even if directory size is
27831 negative; this can happen with some screwy NFS configurations.
27833 2000-03-06 Jim Meyering <meyering@lucent.com>
27835 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
27836 if it's NULL (because we ran out of memory). From Bruno Haible.
27838 2000-03-05 Jim Meyering <meyering@lucent.com>
27840 * lib/localcharset.c ("path-concat.h"): Include.
27841 (get_charset_aliases): Use path_concat instead of ANSI string
27844 * lib/unicodeio.h (PARAMS): Define.
27845 Use it to guard prototype.
27847 2000-03-04 Jim Meyering <meyering@lucent.com>
27849 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
27850 for lib/localcharset.c.
27852 2000-03-04 Jim Meyering <meyering@lucent.com>
27854 * lib/Makefile.am (install-exec-local): Create $(libdir) before
27855 installing into it.
27856 (uninstall-local): Uncomment this rule so `make distcheck' works
27859 * lib/unicodeio.c (<errno.h>): Include it.
27860 (errno): Declare if not defined.
27862 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
27864 * lib/config.charset: New version, incorporating remarks from a linux
27865 i18n mailing list. From Bruno Haible.
27867 2000-03-04 Bruno Haible <haible@clisp.cons.org>
27869 * m4/codeset.m4: New file.
27870 * m4/iconv.m4: New file.
27871 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
27873 2000-03-03 Jim Meyering <meyering@lucent.com>
27875 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
27877 2000-03-02 Jim Meyering <meyering@lucent.com>
27879 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
27880 the messages come out on separate lines.
27882 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
27883 rather than jm_CHECK_DECLARATIONS.
27884 * m4/decl.m4: Remove now-unused file.
27886 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
27889 2000-03-02 Jim Meyering <meyering@lucent.com>
27891 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
27893 2000-03-01 Jim Meyering <meyering@lucent.com>
27895 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
27896 * lib/unicodeio.c: Likewise.
27898 2000-03-01 Bruno Haible <haible@clisp.cons.org>
27900 * lib/config.charset: New file.
27901 * lib/localcharset.c: New file.
27902 * lib/unicodeio.h, lib/unicodeio.c: New files.
27903 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
27904 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
27905 (noinst_HEADERS): Add unicodeio.h.
27906 (all-local, install-exec-local, charset.alias): New targets.
27908 2000-02-28 Paul Eggert <eggert@twinsun.com>
27910 * lib/quotearg.c (ALERT_CHAR): New macro.
27911 (quotearg_buffer_restyled): Use it.
27913 2000-02-27 Jim Meyering <meyering@lucent.com>
27915 * m4/check-decl.m4: Add getenv to the list.
27917 2000-02-27 Jim Meyering <meyering@lucent.com>
27919 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
27920 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
27922 * lib/backupfile.c: Guard inclusion of stdlib.h with
27923 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
27924 Declare malloc if needed.
27926 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
27927 `#ifndef HAVE_DECL..'
27928 now that autoconf always defines the HAVE_DECL_ symbols.
27929 * lib/human.c: Likewise.
27930 * lib/same.c: Likewise.
27931 * lib/strtoumax.c: Likewise.
27933 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
27934 declaration check was not run.
27935 * lib/hash.c: Likewise.
27936 * lib/human.c: Likewise.
27937 * lib/same.c: Likewise.
27938 * lib/strtoumax.c: Likewise.
27940 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
27941 `.', then first look up the entire `.'-containing string as a login
27944 2000-02-23 Jim Meyering <meyering@lucent.com>
27946 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
27947 in place of my hack.
27949 2000-02-18 Paul Eggert <eggert@twinsun.com>
27951 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
27952 (textint): New typedef.
27953 (parser_control): Member year changed from int to textint.
27955 (YYSTYPE): Removed; replaced by %union with int and textint members.
27956 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
27957 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
27958 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
27959 (tSNUMBER, tUNUMBER): Now of type <textintval>.
27960 (date, number, to_year): Use width of number in digits, not its value,
27961 to determine whether it's a 2-digit year, or a 2-digit time.
27962 (yylex): Store number of digits of numeric tokens.
27963 Reported by John Kendall.
27965 (parser_control): Changed from struct parser_control to typedef (for
27966 consistency). All uses changed.
27968 (tID): Removed; not used.
27969 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
27971 2000-02-14 Paul Eggert <eggert@twinsun.com>
27973 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
27974 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
27976 2000-02-12 Jim Meyering <meyering@lucent.com>
27978 * lib/userspec.c (ISDIGIT): Define it.
27979 (isdigit): Remove definition.
27980 (is_number): Use ISDIGIT, not isdigit.
27981 <libintl.h>: Include.
27982 (_ and N_): Define.
27983 (parse_user_spec): Mark translatable strings.
27985 2000-02-10 Jim Meyering <meyering@lucent.com>
27987 With these changes, nanosleep.[ch] are finally enough like the other
27988 lib/* replacement files to compile on a few more losing systems.
27990 * lib/nanosleep.h: Don't include config.h.
27991 Remove prototype from declaration of nanosleep.
27992 (PARAMS): Remove now-unneeded definition.
27993 * lib/nanosleep.c: #undef nanosleep.
27994 (rpl_nanosleep): Rename from nanosleep.
27996 2000-02-10 Jim Meyering <meyering@lucent.com>
27998 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
27999 gnu_nanosleep to rpl_nanosleep.
28001 2000-02-09 Jim Meyering <meyering@lucent.com>
28003 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
28004 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
28006 2000-02-08 Akim Demaille <akim@epita.fr>
28008 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
28009 `[' and `]' and remove uses of `changequote'.
28010 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
28011 (AC_SYS_LARGEFILE): Likewise.
28012 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
28013 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
28015 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
28016 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
28017 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
28018 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
28020 2000-02-05 Jim Meyering <meyering@lucent.com>
28022 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
28023 Remove explicit use of AC_HEADER_TIME. It is required by
28024 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
28025 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
28026 in autoconf whereby the expansion of the latter ended up preceding
28027 the expansion of its prerequisite, AC_HEADER_TIME.
28028 Reported by Volker Borchert.
28030 2000-02-03 Jim Meyering <meyering@lucent.com>
28032 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
28034 2000-02-03 Jim Meyering <meyering@lucent.com>
28036 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
28037 rather than with `#if HAVE_UTMPNAME'.
28039 2000-02-02 Jim Meyering <meyering@lucent.com>
28041 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
28042 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
28043 Reported by Eli Zaretskii.
28045 2000-02-01 Jim Meyering <meyering@lucent.com>
28047 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
28049 2000-01-31 Jim Meyering <meyering@lucent.com>
28051 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
28052 functions. Add the time.h and sys/time.h headers along with the
28053 AC_REQUIRE'ment of AC_HEADER_TIME.
28055 2000-01-31 Jim Meyering <meyering@lucent.com>
28057 * lib/nanosleep.h (nanosleep): Guard declaration with
28058 `#if ! HAVE_DECL_NANOSLEEP'.
28059 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
28060 the declaration in that vendor's sys/timers.h.
28061 Reported by Christian Krackowizer.
28063 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
28064 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
28065 (ISPRINT): Likewise.
28066 Reported by Tom Tromey.
28068 2000-01-30 Jim Meyering <meyering@lucent.com>
28070 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
28072 * m4/prereq.m4 (utmp_includes): Define.
28073 Check for ut_user and ut_name members in both struct utmpx
28076 2000-01-30 Jim Meyering <meyering@lucent.com>
28078 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
28079 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
28080 header files where only utmpx.ut_user is declared.
28082 * lib/readutmp.h (UT_USER): Define.
28084 2000-01-29 Jim Meyering <meyering@lucent.com>
28086 * m4/lib-check.m4: New file containing library-related checks from
28087 fileutils and sh-utils (textutils had none).
28089 2000-01-28 Jim Meyering <meyering@lucent.com>
28091 * m4/perl.m4: Change format of warning message to look more like that
28092 from the missing script. Suggestion from François Pinard.
28094 2000-01-25 Jim Meyering <meyering@lucent.com>
28096 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
28097 well as time.h in the compile check.
28098 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
28099 Fix typo in cross-compiling case: s/yes/no/.
28101 2000-01-23 Jim Meyering <meyering@lucent.com>
28103 * m4/jm-macros.m4: Move df-related tests here from
28104 fileutils/configure.in
28106 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
28107 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
28109 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
28110 s/space/ac_fsusage_space/.
28111 (jm_FILE_SYSTEM_USAGE): Take two parameters.
28113 * m4/ftruncate.m4: New file (derived from part of
28114 fileutils/configure.in).
28115 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
28116 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
28118 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
28119 AC_SUBST these here, rather than just in sh-util/configure.in, so
28120 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
28122 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
28123 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
28124 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
28125 (AC_SUBST(POW_LIBM)): Likewise.
28126 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
28128 2000-01-23 Jim Meyering <meyering@lucent.com>
28130 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
28133 2000-01-22 Jim Meyering <meyering@lucent.com>
28135 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
28137 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
28139 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
28141 (AC_CHECK_HEADERS): Likewise for sh-utils.
28142 (AC_CHECK_HEADERS): Likewise for textutils.
28143 Merge the three lists of headers.
28145 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
28146 from fileutils' configure.in.
28148 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
28149 code. Moved tests into their own function (_jm_DECL_HEADERS) in
28152 * m4/check-decl.m4: Use #if rather than #ifdef.
28153 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
28154 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
28155 (_jm_DECL_HEADERS): Define new function.
28156 (jm_CHECK_DECLARATIONS): Require it.
28158 2000-01-22 Jim Meyering <meyering@lucent.com>
28160 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
28161 [! HAVE_DECL_STRTOULL]: Declare strtoull.
28162 Required for some AIX systems. Reported by Christian Krackowizer.
28163 [TESTING] (main): New function.
28165 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
28166 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
28169 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
28172 * lib/strverscmp.c (ISDIGIT): Define.
28173 (strverscmp): Use ISDIGIT, not isdigit.
28175 2000-01-19 Jim Meyering <meyering@lucent.com>
28177 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
28178 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
28179 defines `struct timespec' in <sys/time.h>
28181 * m4/c-bs-a.m4: Remove uses of changequote altogether.
28182 Thanks to Akim for explaining.
28184 2000-01-17 Paul Eggert <eggert@twinsun.com>
28186 * lib/nanosleep.c (nanosleep):
28187 Don't use SA_INTERRUPT to decide whether to call sigaction, as
28188 POSIX.1 doesn't require SA_INTERRUPT and some systems
28189 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
28190 it's been part of POSIX.1 since day 1 (in 1988).
28192 2000-01-17 Jim Meyering <meyering@lucent.com>
28194 * lib/interlock: Remove unused file. Reported by François Pinard.
28196 2000-01-16 Paul Eggert <eggert@twinsun.com>
28198 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
28199 alert, backslash, formfeed, and vertical tab unnecessarily in
28200 shell quoting style.
28202 2000-01-16 Jim Meyering <meyering@lucent.com>
28204 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
28205 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
28206 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
28207 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
28209 2000-01-16 Jim Meyering <meyering@lucent.com>
28211 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
28212 because the latter didn't work.
28214 2000-01-15 Jim Meyering <meyering@lucent.com>
28216 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
28217 (AC_REPLACE_FUNCS): Add memcpy and memset.
28218 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
28220 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
28222 2000-01-12 Jim Meyering <meyering@lucent.com>
28224 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
28225 (jm_PREREQ): Use it.
28226 (jm_PREREQ_READUTMP): New macro.
28227 (jm_PREREQ): Use it.
28229 2000-01-11 Paul Eggert <eggert@twinsun.com>
28231 Quote multibyte characters correctly.
28232 * m4/c-bs-a.m4: New file.
28233 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
28234 (jm_PREREQ): Use it.
28236 2000-01-11 Paul Eggert <eggert@twinsun.com>
28238 * m4/uintmax_t.m4: Port to autoconf 2.13.
28240 2000-01-08 Jim Meyering <meyering@ascend.com>
28242 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
28243 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
28245 2000-01-04 Jim Meyering <meyering@ascend.com>
28247 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
28248 jm_STRUCT_DIRENT_D_TYPE.
28249 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
28250 jm_STRUCT_DIRENT_D_INO.
28251 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
28253 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
28255 * m4/utime.m4: Likewise.
28257 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
28258 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
28260 2000-01-03 Paul Eggert <eggert@twinsun.com>
28262 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
28263 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
28265 2000-01-02 Jim Meyering <meyering@ascend.com>
28267 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
28268 remember if this is necessary.
28270 1999-12-26 Jim Meyering <meyering@ascend.com>
28272 * m4/jm-macros.m4: Use it here.
28273 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
28275 1999-12-23 Jim Meyering <meyering@ascend.com>
28277 * m4/jm-macros.m4: Check for clock_gettime (moved from
28278 fileutils/configure.in)
28279 Check for gettimeofday.
28281 1999-12-20 Jim Meyering <meyering@ascend.com>
28283 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
28284 autoconf-2.14a-1999-12-20.
28286 1999-12-19 Jim Meyering <meyering@ascend.com>
28288 * m4/lstat-slash.m4: New file.
28289 * m4/jm-macros.m4: Use the new macro:
28290 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
28292 1999-12-07 Jim Meyering <meyering@ascend.com>
28294 * m4/perl.m4: Require that File::Compare be available, too.
28295 Too many systems seem to lack it.
28297 * m4/strftime.m4: Add checks for most of the cpp macros tested in
28298 GNU's strftime.c. Prompted by a patch from Paul Eggert.
28300 1999-11-18 Paul Eggert <eggert@twinsun.com>
28302 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
28303 problem with the QNX 4.25 shell, which doesn't propagate exit
28304 status of failed commands inside shell assignments.
28306 1999-11-17 Jim Meyering <meyering@ascend.com>
28308 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
28310 1999-11-07 Jim Meyering <meyering@ascend.com>
28312 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
28314 1999-11-06 Jim Meyering <meyering@ascend.com>
28316 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
28317 * m4/jm-macros.m4 (jm_MACROS): Use it here.
28319 1999-11-05 Jim Meyering <meyering@ascend.com>
28321 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
28322 configure.in of textutils, fileutils, and sh-utils into this one
28323 (shared between those packages) file.
28324 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
28325 AC_STRUCT_ST_BLKSIZE.
28327 1999-11-03 Jim Meyering <meyering@ascend.com>
28329 * m4/ssize_t.m4: Remove file. No longer needed since the new version
28330 of AC_CHECK_TYPE checks includes unistd.h.
28331 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
28332 Suggestion from Akim Demaille.
28334 1999-10-30 Jim Meyering <meyering@ascend.com>
28336 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
28338 * m4/ls-mntd-fs.m4: Likewise.
28339 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
28340 * m4/jm-winsz1.m4: Likewise.
28342 * m4/const.m4: Remove file, since the fix made it into the experimental
28343 version of autoconf.
28344 * m4/mktime.m4: Likewise.
28346 * m4/check-type.m4: Remove file, now that the latest version of
28347 AC_CHECK_TYPE takes a third arg to specify additional #includes.
28349 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
28350 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
28353 1999-10-04 Jim Meyering <meyering@ascend.com>
28355 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
28357 1999-09-22 Paul Eggert <eggert@twinsun.com>
28359 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
28360 2.95.1 bug with HP-UX 10.20.
28362 1999-09-17 Jim Meyering <meyering@ascend.com>
28364 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
28365 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
28366 due to missing strdup (against sh-utils-2.0).
28368 1999-08-29 Jim Meyering <meyering@ascend.com>
28370 * m4/jm-macros.m4: Require jm_BISON.
28371 * m4/bison.m4: New file.
28373 1999-08-17 Paul Eggert <eggert@twinsun.com>
28375 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
28376 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
28378 1999-08-05 Jim Meyering <meyering@ascend.com>
28380 * m4/getline.m4: Rename test file from conftestdata to conftest.data
28381 to avoid conflicts with `conftest' on 8+3 filesystems.
28382 Suggestion from Eli Zaretskii.
28384 1999-08-04 Jim Meyering <meyering@ascend.com>
28386 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
28387 fileutils and sh-utils (textutils's getline test was inadequate).
28388 (AM_FUNC_GETLINE): Run this test.
28389 (AC_CHECK_FUNCS): Check for getdelim.
28390 Reported by Bob Proulx.
28392 1999-08-02 Jim Meyering <meyering@ascend.com>
28394 * m4/jm-macros.m4: Add a comment.
28396 1999-08-01 Paul Eggert <eggert@twinsun.com>
28398 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
28399 <inttypes.h> defines strtoumax as a macro (and not as a
28402 1999-08-01 Paul Eggert <eggert@twinsun.com>
28404 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
28405 that we can shift, multiply and divide unsigned long long
28406 values; Ultrix cc can't do it.
28408 1999-08-01 Paul Eggert <eggert@twinsun.com>
28410 * m4/mktime.m4: New file, which is a preview of what should appear
28411 in the next public autoconf release.
28413 1999-08-01 Paul Eggert <eggert@twinsun.com>
28415 * m4/lfs.m4: Remove this file.
28416 * m4/largefile.m4: New file. It contains the old contents of
28417 lfs.m4, except that all names with prefix AC_LFS have been
28418 changed to use the prefix AC_SYS_LARGEFILE instead, to be
28419 compatible with future autoconf versions. Also, some minor m4
28420 quoting problems have been fixed.
28422 1999-08-01 Paul Eggert <eggert@twinsun.com>
28424 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
28425 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
28426 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
28427 and simplify the shell code.
28429 1999-08-01 Jim Meyering <meyering@ascend.com>
28431 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
28434 1999-07-20 Jim Meyering <meyering@ascend.com>
28436 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
28438 1999-07-15 Jim Meyering <meyering@ascend.com>
28440 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
28442 1999-05-22 Jim Meyering <meyering@ascend.com>
28444 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
28446 1999-05-20 Jim Meyering <meyering@ascend.com>
28448 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
28449 Add a colon after each `then' in case $4 is empty.
28451 1999-05-16 Jim Meyering <meyering@ascend.com>
28453 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
28455 1999-05-10 Jim Meyering <meyering@ascend.com>
28457 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
28459 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
28462 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
28464 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
28466 1999-05-04 Paul Eggert <eggert@twinsun.com>
28468 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
28469 not CPPFLAGS, so that linking works correctly in IRIX.
28471 1999-04-30 Paul Eggert <eggert@twinsun.com>
28473 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
28475 1999-04-20 Paul Eggert <eggert@twinsun.com>
28477 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
28478 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
28479 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
28480 jm_AC_TYPE_UNSIGNED_LONG_LONG.
28481 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
28483 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
28485 1999-04-20 Jim Meyering <meyering@ascend.com>
28487 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
28488 AC_REPLACE xstroull if necessary. From Paul Eggert.
28489 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
28491 1999-04-18 Jim Meyering <meyering@ascend.com>
28493 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
28494 * m4/jm-macros.m4: Use it.
28496 1999-04-06 Jim Meyering <meyering@ascend.com>
28498 * m4/strftime.m4: Remove test for %f.
28500 1999-03-29 Jim Meyering <meyering@ascend.com>
28502 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
28503 superset of the AC_TYPE_* checks in the textutils, fileutils,
28504 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
28507 1999-03-28 Jim Meyering <meyering@ascend.com>
28509 * m4/jm-macros.m4: Define GNU_PACKAGE here.
28510 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
28511 replaced e.g., in the *.sh files of the sh-utils.
28513 1999-03-20 Jim Meyering <meyering@ascend.com>
28515 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
28516 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
28517 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
28519 1999-03-19 Jim Meyering <meyering@ascend.com>
28521 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
28523 1999-03-12 Jim Meyering <meyering@ascend.com>
28525 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
28527 1999-03-07 Jim Meyering <meyering@ascend.com>
28529 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
28532 1999-02-17 Jim Meyering <meyering@ascend.com>
28534 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
28535 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
28537 1999-02-07 Jim Meyering <meyering@ascend.com>
28539 * m4/group-member.m4: New file -- extracted from sh-utils'
28542 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
28543 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
28545 1999-02-06 Jim Meyering <meyering@ascend.com>
28547 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
28548 * m4/fnmatch.m4: Likewise.
28549 * m4/getgroups.m4: Likewise.
28550 * m4/lstat.m4: Likewise.
28551 * m4/malloc.m4: Likewise.
28552 * m4/putenv.m4: Likewise.
28553 * m4/realloc.m4: Likewise.
28554 * m4/regex.m4: Likewise.
28555 * m4/stat.m4: Likewise.
28556 * m4/strftime.m4: Likewise.
28557 Suggestion from Alain Magloire.
28559 * m4/chown.m4: Use `.$ac_objext', not `.o'.
28560 * m4/fnmatch.m4: Likewise.
28561 * m4/getgroups.m4: Likewise.
28562 * m4/getline.m4: Likewise.
28563 * m4/lstat.m4: Likewise.
28564 * m4/malloc.m4: Likewise.
28565 * m4/memcmp.m4: Likewise.
28566 * m4/putenv.m4: Likewise.
28567 * m4/realloc.m4: Likewise.
28568 * m4/regex.m4: Likewise.
28569 * m4/stat.m4: Likewise.
28570 * m4/strftime.m4: Likewise.
28571 Suggestion from Alain Magloire.
28573 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
28576 * m4/regex.m4: Add a run-time Test for proper operation of
28577 re_compile_pattern.
28579 1999-01-31 Jim Meyering <meyering@ascend.com>
28581 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
28583 1999-01-30 Jim Meyering <meyering@ascend.com>
28585 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
28587 * m4/jm-mktime.m4: Make this a wrapper around the official
28588 AM_FUNC_MKTIME rather than my private copy, now that the official one
28590 * m4/mktime.m4: Remove file.
28592 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
28593 * m4/uptime.m4: Likewise.
28594 * m4/uintmax_t.m4: Likewise.
28596 1999-01-28 Jim Meyering <meyering@ascend.com>
28598 * m4/jm-macros.m4: Use jm_AFS.
28599 * m4/afs.m4: New file (from fileutils' configure.in).
28601 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
28602 * m4/chown.m4: Likewise.
28603 * m4/d-ino.m4: Likewise.
28604 * m4/d-type.m4: Likewise.
28605 * m4/fnmatch.m4: Likewise.
28606 * m4/getgroups.m4: Likewise.
28607 * m4/gettext.m4: Likewise.
28608 * m4/jm-mktime.m4: Likewise.
28609 * m4/jm-winsz2.m4: Likewise.
28610 * m4/lcmessage.m4: Likewise.
28611 * m4/ls-mntd-fs.m4: Likewise.
28612 * m4/malloc.m4: Likewise.
28613 * m4/memcmp.m4: Likewise.
28614 * m4/putenv.m4: Likewise.
28615 * m4/realloc.m4: Likewise.
28616 * m4/st_mtim.m4: Likewise.
28617 * m4/strftime.m4: Likewise.
28619 1999-01-16 Jim Meyering <meyering@ascend.com>
28621 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
28622 (ARGMATCH_DIE_DECL): Define.
28624 1999-01-12 Jim Meyering <meyering@ascend.com>
28626 * m4/Makefile.am.in: Rewrite to avoid using fmt.
28627 Reported by Lars Hecking.
28629 1999-01-10 Jim Meyering <meyering@ascend.com>
28631 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
28633 * m4/inttypes_h.m4: Likewise.
28634 * m4/lstat.m4: Likewise.
28635 * m4/malloc.m4: Likewise.
28636 * m4/readdir.m4: Likewise.
28637 * m4/realloc.m4: Likewise.
28638 * m4/st_dm_mode.m4: Likewise.
28639 * m4/stat.m4: Likewise.
28640 * m4/utimbuf.m4: Likewise.
28641 * m4/utimes.m4: Likewise.
28643 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
28644 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
28645 comments in config.h.in are meaningful.
28647 * m4/jm-macros.m4: Require autoconf-2.13 here.
28649 * m4/regex.m4: By default, don't use the included regex.c on systems
28650 with glibc 2. Suggestion from Uli Drepper.
28652 1999-01-02 Jim Meyering <meyering@ascend.com>
28654 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
28656 1998-12-18 Jim Meyering <meyering@ascend.com>
28658 * m4/Makefile.am.in (Makefile.am): Simplify rule.
28659 Based on a suggestion from Lars Hecking.
28661 1998-11-16 Paul Eggert <eggert@twinsun.com>
28663 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
28665 1998-11-16 Jim Meyering <meyering@ascend.com>
28667 * m4/lfs.m4: Double-quote the `uname...` expression.
28669 1998-11-14 Jim Meyering <meyering@ascend.com>
28671 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
28672 * m4/stat.m4: Likewise.
28674 1998-11-03 Jim Meyering <meyering@ascend.com>
28676 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
28677 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
28679 1998-10-18 Jim Meyering <meyering@ascend.com>
28681 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
28683 1998-10-17 Jim Meyering <meyering@ascend.com>
28685 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
28686 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
28687 calls for those previously hard-coded headers. Instead, take a new
28689 (jm_CHECK_DECLARATIONS): Reflect interface change.
28690 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
28691 (jm_CHECK_DECL_LOCALTIME_R): New macro.
28693 * m4/mktime.m4: Test for spring-forward gap before long-running test.
28695 1998-10-14 Jim Meyering <meyering@ascend.com>
28697 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
28698 instead of "TZ=America/Vancouver". From Paul Eggert.
28700 1998-10-11 Jim Meyering <meyering@ascend.com>
28702 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
28703 This adds a test for a recently added compatibility fix for mktime.c.
28704 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
28706 1998-09-27 Jim Meyering <meyering@ascend.com>
28708 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
28710 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
28711 ../configure.in, including a change from Gordon Matzigkeit to allow
28712 cross-compiling for the Hurd.
28714 * m4/glibc.m4: New file/macro to test for the GNU C Library
28715 versions 1 and 2. From Gordon Matzigkeit.
28718 1998-09-21 Jim Meyering <meyering@ascend.com>
28720 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
28722 1998-08-18 Paul Eggert <eggert@twinsun.com>
28724 Port nanosecond-resolution times to UnixWare 2.1.2 and
28725 pedantic Solaris 2.6.
28727 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
28729 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
28730 Generate name of ns member, instead of just 1 or undef.
28731 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
28733 1998-08-15 Jim Meyering <meyering@ascend.com>
28735 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
28736 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
28737 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
28738 instead of jm_TYPE_SSIZE_T.
28740 1998-08-12 Jim Meyering <meyering@ascend.com>
28742 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
28744 1998-08-02 Jim Meyering <meyering@ascend.com>
28746 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
28747 in acconfig.h manually.
28749 1998-07-31 Paul Eggert <eggert@twinsun.com>
28751 * m4/st_mtim.m4: New file.
28753 1998-07-28 Jim Meyering <meyering@ascend.com>
28755 * m4/utimes.m4: Undef stat.
28757 1998-07-25 Jim Meyering <meyering@ascend.com>
28759 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
28760 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
28762 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
28764 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
28765 uid and gid actually remain unchanged.
28767 1998-07-07 Jim Meyering <meyering@ascend.com>
28769 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
28771 1998-07-04 Jim Meyering <meyering@ascend.com>
28773 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
28774 to prove that this macro can be used in packages without regex.c.
28776 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
28778 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
28781 1998-07-03 Jim Meyering <meyering@ascend.com>
28783 * m4/gettext.m4: Add -lintl if it's found to be necessary.
28785 * m4/gettext.m4: New file -- from gettext-0.10.35.
28786 * m4/lcmessage.m4: Likewise.
28787 * m4/progtest.m4: Likewise.
28789 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
28790 * m4/jm-macros.m4: Require the new macro.
28792 1998-06-29 Jim Meyering <meyering@ascend.com>
28794 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
28795 for the definition of NGROUPS (used in a system header included
28798 1998-06-28 Jim Meyering <meyering@ascend.com>
28800 * m4/ls-mntd-fs.m4: New file.
28801 * m4/fstypename.m4: New file.
28803 * m4/jm-macros.m4: Require the new macro.
28804 * m4/jm-glibc-io.m4: New file.
28806 1998-05-19 Jim Meyering <meyering@ascend.com>
28808 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
28809 * m4/lchown.m4: New file.
28811 * m4/Makefile.am.in: New file.
28812 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
28814 1998-05-14 Jim Meyering <meyering@ascend.com>
28816 * m4/Makefile.am (EXTRA_DIST): Add them.
28817 * m4/jm-macros.m4: New file.
28818 * m4/utimbuf.m4: New file.
28820 1998-05-12 Jim Meyering <meyering@ascend.com>
28822 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
28824 1998-05-11 Jim Meyering <meyering@ascend.com>
28826 * m4/isc-posix.m4: New file.
28828 1998-05-10 Jim Meyering <meyering@ascend.com>
28830 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
28832 1998-05-09 Jim Meyering <meyering@ascend.com>
28834 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
28835 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
28838 * m4/ssize_t.m4: New file.
28839 * m4/mktime.m4: Remove file -- the new automake has this now.
28841 1998-04-26 Jim Meyering <meyering@ascend.com>
28843 * m4/assert.m4: New file.
28844 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
28846 1998-04-05 Jim Meyering <meyering@ascend.com>
28848 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
28849 (jm_PREREQ): Use it here.
28851 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
28853 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
28856 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
28858 * m4/prereq.m4: New file.
28859 * m4/error.m4: New file.
28860 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
28862 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
28864 * m4/getline.m4: Don't set am_cv_func_working_getline before the
28865 cache-check for the same variable -- that defeated the purpose of
28866 the test; the test program was never run. This was a problem only
28867 on systems with losing getline functions -- HP-UX 10.20 is one.
28868 Reported by Bjorn Helgaas.
28870 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
28872 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
28874 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
28876 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
28878 * m4/const.m4: New file. Use an initializer in this declaration
28879 typedef int charset[2]; const charset x;
28880 Reported by Bob Glickstein.
28882 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
28884 * m4/chown.m4: Fix reversed types on -1 args to chown.
28887 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
28889 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
28890 Add lseek and memchr.
28892 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
28893 T.E.Dickey <dickey@clark.net> said that some older preprocessors
28894 have a 20-character limit on names.
28896 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
28898 * m4/inttypes_h.m4: New file.
28899 * m4/uintmax_t.m4: New file.
28900 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
28902 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
28903 Free Software Foundation, Inc.
28904 Copying and distribution of this file, with or without modification,
28905 are permitted provided the copyright notice and this notice are preserved.