1 2007-03-17 Bruno Haible <bruno@clisp.org>
3 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
4 locale's decimal-point character.
6 2007-03-17 Bruno Haible <bruno@clisp.org>
8 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
9 before comparing it. Needed because on some platforms (e.g. x86) a
10 'long double' occupies less bytes than sizeof (long double).
12 2007-03-17 Bruno Haible <bruno@clisp.org>
14 * tests/test-crc.c (main): Make printf statements 64-bit clean.
15 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
16 * tests/test-getaddrinfo.c (simple): Likewise.
17 * tests/test-read-file.c (main): Likewise.
19 2007-03-17 Bruno Haible <bruno@clisp.org>
21 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
23 2007-03-17 Bruno Haible <bruno@clisp.org>
25 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
28 2007-03-17 Bruno Haible <bruno@clisp.org>
30 * tests/test-c-strcasecmp.c: Include c-strcase.h.
31 * tests/test-c-strncasecmp.c: Likewise.
33 2007-03-17 Bruno Haible <bruno@clisp.org>
35 * modules/stdlib (Depends-on): Add unistd.
36 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
37 Needed for MacOS X 10.3.
39 2007-03-17 Bruno Haible <bruno@clisp.org>
41 * lib/unistr/u-strdup.h: Include <stdlib.h>.
43 2007-03-17 Bruno Haible <bruno@clisp.org>
45 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
47 2007-03-17 Bruno Haible <bruno@clisp.org>
49 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
50 to reflect files copied from gnulib (with or without modifications).
51 Suggested by Jim Meyering.
53 2007-03-17 Eric Blake <ebb9@byu.net>
55 * NEWS: Document stdlib change from 2007-02-18.
57 2007-03-17 Jim Meyering <jim@meyering.net>
59 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
60 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61 someone uses a name containing shell meta-characters.
62 Reported by Alfred M. Szmidt.
64 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
66 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
68 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
69 and copy gettext configuration files only if configure.ac contains
70 a use of AM_GNU_GETTEXT_VERSION.
72 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
74 * build-aux/bootstrap (gnulib_name): New variable.
75 (gnulib_tool_options): Use it.
77 2007-03-13 Simon Josefsson <simon@josefsson.org>
79 * tests/test-des.c: Use new namespace.
81 2007-03-15 Bruno Haible <bruno@clisp.org>
83 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
84 Reported by James Youngman <jay@gnu.org>.
86 2007-03-15 Bruno Haible <bruno@clisp.org>
88 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
89 declared prototype. Needed with cc on OSF/1 5.1.
91 2007-03-15 Bruno Haible <bruno@clisp.org>
93 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
94 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
95 (struct gl_list_implementation): Add dispose_fn argument to the
96 'create_empty', 'create' methods.
97 (struct gl_list_impl_base): Add field 'dispose_fn'.
98 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
100 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
102 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
103 dispose_fn on the dropped values.
104 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
106 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
108 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
109 (gl_tree_remove_node): Call dispose_fn on the dropped value.
110 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
111 (gl_tree_remove_node): Call dispose_fn on the dropped value.
112 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
114 (gl_tree_list_free): Call dispose_fn on the dropped values.
115 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
117 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
118 Add dispose_fn argument.
119 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
120 Call dispose_fn on the dropped values.
121 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
122 Add dispose_fn argument.
123 (gl_sublist_create): Initialize the 'dispose_fn' field.
124 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
125 * tests/test-array_list.c (main): Update.
126 * tests/test-carray_list.c (main): Update.
127 * tests/test-avltree_list.c (main): Update.
128 * tests/test-rbtree_list.c (main): Update.
129 * tests/test-avltreehash_list.c (main): Update.
130 * tests/test-rbtreehash_list.c (main): Update.
131 * tests/test-linked_list.c (main): Update.
132 * tests/test-linkedhash_list.c (main): Update.
133 * tests/test-array_oset.c (main): Update.
135 2007-03-15 Bruno Haible <bruno@clisp.org>
137 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
138 (gl_oset_create_empty): Add dispose_fn argument.
139 (struct gl_oset_implementation): Add dispose_fn argument to
140 'create_empty' method.
141 (struct gl_oset_impl_base): Add dispose_fn field.
142 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
143 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
144 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
146 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
147 (gl_tree_oset_free): Call dispose_fn on the dropped values.
148 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
150 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
152 * tests/test-array_oset.c (main): Update.
153 * tests/test-avltree_oset.c (main): Update.
154 * tests/test-rbtree_oset.c (main): Update.
155 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
157 2007-03-13 Bruno Haible <bruno@clisp.org>
159 * tests/test-stdbool.c (i): Update after last patch.
161 2007-03-12 Bruno Haible <bruno@clisp.org>
163 * lib/quotearg.c: Include <wctype.h> early, before the definition of
164 the iswprint macro. Needed on Solaris 2.5.1.
166 2007-03-12 Bruno Haible <bruno@clisp.org>
168 * tests/test-printf-frexp.c (main): Declare x as volatile.
170 2007-03-12 Simon Josefsson <simon@josefsson.org>
172 * doc/gnulib.texi (Build robot for gnulib): New section.
174 2007-03-12 Jim Meyering <jim@meyering.net>
176 * build-aux/bootstrap: New file.
177 * build-aux/bootstrap.conf: New file, from coreutils.
179 2007-03-11 Bruno Haible <bruno@clisp.org>
181 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
183 2007-03-12 Simon Josefsson <simon@josefsson.org>
185 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
186 avoid collisions with 'des_setkey'. Reported by Bruno Haible
187 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
189 2007-03-11 Bruno Haible <bruno@clisp.org>
191 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
192 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
194 2007-03-11 Bruno Haible <bruno@clisp.org>
196 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
197 formula. Needed for SunPRO C 5.0.
199 2007-03-11 Bruno Haible <bruno@clisp.org>
201 * modules/long-options (Depends-on): Add getopt.
203 2007-03-11 Bruno Haible <bruno@clisp.org>
205 * modules/modechange (Depends-on): Add stdbool.
207 2007-03-11 Bruno Haible <bruno@clisp.org>
209 * modules/i-ring (Depends-on): Add stdbool.
211 2007-03-11 Bruno Haible <bruno@clisp.org>
213 * modules/gc-des (Depends-on): Add stdbool.
215 2007-03-11 Bruno Haible <bruno@clisp.org>
217 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
219 2007-03-11 Bruno Haible <bruno@clisp.org>
221 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
223 2007-03-11 Bruno Haible <bruno@clisp.org>
225 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
227 2007-03-11 Bruno Haible <bruno@clisp.org>
229 * lib/vasnprintf.c (sprintf): Undefine.
231 2007-03-11 Bruno Haible <bruno@clisp.org>
233 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
234 initializers in SunPRO C and Compaq C compilers.
236 2007-03-11 Bruno Haible <bruno@clisp.org>
238 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
239 decrementing code ANSI C compliant.
241 2007-03-11 Bruno Haible <bruno@clisp.org>
243 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
244 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
246 2007-03-11 Bruno Haible <bruno@clisp.org>
248 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
249 <stdbool.h> substitute doesn't pass.
251 2007-03-11 Bruno Haible <bruno@clisp.org>
253 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
255 2007-03-11 Bruno Haible <bruno@clisp.org>
257 * gnulib-tool (func_create_megatestdir): Create also an autobuild
258 script, for submission to autobuild.josefsson.org.
260 2007-03-10 Bruno Haible <bruno@clisp.org>
262 * modules/canonicalize-lgpl-tests: New file.
263 * tests/test-canonicalize-lgpl.sh: New file.
264 * tests/test-canonicalize-lgpl.c: New file.
266 * modules/c-strcase-tests: New file.
267 * tests/test-c-strcase.sh: New file.
268 * tests/test-c-strcasecmp.c: New file.
269 * tests/test-c-strncasecmp.c: New file.
271 * modules/atexit-tests: New file.
272 * tests/test-atexit.sh: New file.
273 * tests/test-atexit.c: New file.
275 2007-03-10 Bruno Haible <bruno@clisp.org>
277 * tests/test-binary-io.sh: Use temporary filenames that are not so
278 likely to clash with those of other tests (in a parallel make).
279 * tests/test-binary-io.c: Likewise.
281 2007-03-10 Bruno Haible <bruno@clisp.org>
283 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
284 fallback; use #error instead.
285 Suggested by Simon Josefsson.
287 2007-03-10 Bruno Haible <bruno@clisp.org>
289 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
290 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
293 2007-03-10 Bruno Haible <bruno@clisp.org>
295 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
297 2007-03-10 Bruno Haible <bruno@clisp.org>
299 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
301 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
302 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
303 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
305 2007-03-10 Bruno Haible <bruno@clisp.org>
307 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
309 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
312 2007-03-09 Eric Blake <ebb9@byu.net>
313 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
315 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
316 types are not being provided by gnulib.
317 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
320 2007-03-10 Bruno Haible <bruno@clisp.org>
322 * lib/stdio_.h (__attribute__): New macro.
323 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
324 vsprintf): Specify __attribute__ __format__ for GCC.
325 Suggested by Eric Blake.
327 2007-03-09 Bruno Haible <bruno@clisp.org>
329 * modules/printf-posix-tests: New file.
330 * tests/test-printf-posix.sh: New file.
331 * tests/test-printf-posix.c: New file.
333 * modules/printf-posix: New file.
334 * lib/printf.c: New file.
335 * m4/printf-posix-rpl.m4: New file.
336 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
338 * lib/stdio_.h (printf): New declaration.
339 (format, __format__, ____printf____, ____scanf____, ____strftime____,
340 ____strfmon____): New macros.
341 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
344 2007-03-09 Bruno Haible <bruno@clisp.org>
346 * tests/test-vasnprintf-posix2.sh: New file.
347 * tests/test-vasnprintf-posix2.c: New file.
348 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
349 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
350 (Makefile.am): Activate test-vasnprintf-posix2.sh.
352 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
353 a locale dependent decimal point, rather than always '.'.
355 2007-03-09 Eric Blake <ebb9@byu.net>
357 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
358 spite of platforms like Tandem/NSK that define it to -1.
360 2007-03-08 Bruno Haible <bruno@clisp.org>
362 * modules/vprintf-posix-tests: New file.
363 * tests/test-vprintf-posix.sh: New file.
364 * tests/test-vprintf-posix.c: New file.
365 * tests/test-printf-posix.h: New file.
367 * modules/vprintf-posix: New file.
368 * lib/vprintf.c: New file.
369 * m4/vprintf-posix.m4: New file.
370 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
372 * lib/stdio_.h (vprintf): New declaration.
373 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
376 2007-03-08 Bruno Haible <bruno@clisp.org>
378 * modules/fprintf-posix-tests: New file.
379 * tests/test-fprintf-posix.sh: New file.
380 * tests/test-fprintf-posix.c: New file.
382 * modules/fprintf-posix: New file.
383 * lib/fprintf.c: New file.
384 * m4/fprintf-posix.m4: New file.
385 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
387 * lib/stdio_.h (fprintf): New declaration.
388 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
391 2007-03-08 Bruno Haible <bruno@clisp.org>
393 * modules/vfprintf-posix-tests: New file.
394 * tests/test-vfprintf-posix.sh: New file.
395 * tests/test-vfprintf-posix.c: New file.
396 * tests/test-fprintf-posix.h: New file.
397 * tests/test-fprintf-posix.out: New file.
399 * modules/vfprintf-posix: New file.
400 * lib/vfprintf.c: New file.
401 * m4/vfprintf-posix.m4: New file.
402 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
404 * lib/stdio_.h (vfprintf): New declaration.
405 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
408 2007-03-08 Bruno Haible <bruno@clisp.org>
410 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
412 2007-03-08 Bruno Haible <bruno@clisp.org>
414 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
415 instead of 'expr' invocations.
416 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
417 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
418 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
419 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
420 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
421 Suggested by Paul Eggert.
423 2007-03-08 Bruno Haible <bruno@clisp.org>
425 * modules/fseterr-tests: New file.
426 * tests/test-fseterr.c: New file.
428 * modules/fseterr: New file.
429 * lib/fseterr.h: New file.
430 * lib/fseterr.c: New file.
432 2007-03-08 Bruno Haible <bruno@clisp.org>
434 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
435 * lib/getopt_.h: Likewise.
436 * lib/mbswidth.h: Likewise.
437 * lib/setenv.h: Likewise.
438 * lib/vasnprintf.h: Likewise.
439 * lib/vasprintf.h: Likewise.
440 * lib/verror.h: Likewise.
441 * lib/xsetenv.h: Likewise.
442 * lib/xvasprintf.h: Likewise.
444 2007-03-08 Jim Meyering <jim@meyering.net>
446 * users.txt: Add parted.
448 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
450 2007-03-07 Bruno Haible <bruno@clisp.org>
452 * m4/printf.m4: Make the shell script snippets copy&pastable.
454 2007-03-02 Bruno Haible <bruno@clisp.org>
456 * lib/netinet_in_.h: New file.
457 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
458 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
459 * modules/netinet_in (Files): Add lib/netinet_in_.h.
460 (Depends-on): Add absolute-header.
461 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
464 2007-03-03 Bruno Haible <bruno@clisp.org>
466 * lib/sys_select_.h: New file.
467 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
468 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
469 * modules/sys_select (Files): Add lib/sys_select_.h.
470 (Depends-on): Add absolute-header.
471 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
474 2007-03-02 Bruno Haible <bruno@clisp.org>
476 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
477 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
479 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
480 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
481 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
482 * modules/sys_socket (Depends-on): Add absolute-header.
483 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
484 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
485 (Include): Remove requirement of inclusion of <sys/types.h>.
487 2007-03-02 Bruno Haible <bruno@clisp.org>
489 * lib/byteswap_.h (bswap_32): Fix formula.
491 2007-03-06 Bruno Haible <bruno@clisp.org>
493 * modules/sprintf-posix-tests: New file.
494 * tests/test-sprintf-posix.c: New file.
496 * modules/sprintf-posix: New file.
497 * lib/sprintf.c: New file.
498 * m4/sprintf-posix.m4: New file.
499 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
501 * lib/stdio_.h (sprintf): New declaration.
502 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
505 2007-03-06 Bruno Haible <bruno@clisp.org>
507 * modules/vsprintf-posix-tests: New file.
508 * tests/test-vsprintf-posix.c: New file.
509 * tests/test-sprintf-posix.h: New file.
511 * modules/vsprintf-posix: New file.
512 * lib/vsprintf.c: New file.
513 * m4/vsprintf-posix.m4: New file.
514 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
516 * lib/stdio_.h (vsprintf): New declaration.
517 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
520 2007-03-06 Bruno Haible <bruno@clisp.org>
522 * modules/vsnprintf (Depend-on): Remove minmax.
524 2007-03-06 Bruno Haible <bruno@clisp.org>
526 * modules/snprintf-posix-tests: New file.
527 * tests/test-snprintf-posix.c: New file.
529 * modules/snprintf-posix: New file.
530 * m4/snprintf-posix.m4: New file.
531 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
533 (gl_FUNC_SNPRINTF): Invoke it.
534 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
535 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
537 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
539 2007-03-06 Bruno Haible <bruno@clisp.org>
541 * modules/vsnprintf-posix-tests: New file.
542 * tests/test-vsnprintf-posix.c: New file.
543 * tests/test-snprintf-posix.h: New file.
545 * modules/vsnprintf-posix: New file.
546 * m4/vsnprintf-posix.m4: New file.
547 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
549 (gl_FUNC_VSNPRINTF): Invoke it.
550 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
551 * lib/stdio_.h (vsnprintf): Define as a replacement if
552 REPLACE_VSNPRINTF is set.
553 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
555 2007-03-06 Bruno Haible <bruno@clisp.org>
557 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
558 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
560 2007-03-06 Bruno Haible <bruno@clisp.org>
562 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
563 (asinl): Declare also if HAVE_DECL_ASINL is set.
564 (atanl): Declare also if HAVE_DECL_ATANL is set.
565 (ceill): Declare also if HAVE_DECL_CEILL is set.
566 (cosl): Declare also if HAVE_DECL_COSL is set.
567 (expl): Declare also if HAVE_DECL_EXPL is set.
568 (floorl): Declare also if HAVE_DECL_FLOORL is set.
569 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
570 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
571 (logl): Declare also if HAVE_DECL_LOGL is set.
572 (sinl): Declare also if HAVE_DECL_SINL is set.
573 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
574 (tanl): Declare also if HAVE_DECL_TANL is set.
575 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
576 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
577 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
578 declaration of frexpl, ldexpl.
579 * modules/printf-frexpl (Depends-on): Add math.
580 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
582 2007-03-05 Bruno Haible <bruno@clisp.org>
584 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
585 frexpl and ldexpl are declared.
586 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
588 2007-03-05 Bruno Haible <bruno@clisp.org>
590 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
591 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
593 2007-03-05 Bruno Haible <bruno@clisp.org>
595 * lib/stdio_.h: Include <stddef.h>.
597 2007-03-05 Bruno Haible <bruno@clisp.org>
599 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
601 2007-03-05 Bruno Haible <bruno@clisp.org>
603 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
604 NetBSD 4, from Ralf Wildenhues.
606 2007-03-04 Bruno Haible <bruno@clisp.org>
608 * lib/vasprintf.h: Update #if logic for the case when the functions
609 exist but are overridden.
611 2007-03-04 Bruno Haible <bruno@clisp.org>
613 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
614 implementations: glibc-2.4 and MacOS X 10.3.
615 * tests/test-vasnprintf-posix.c (test_function): Test also the case
616 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
617 * tests/test-vasprintf-posix.c (test_function): Likewise.
619 2007-03-04 Bruno Haible <bruno@clisp.org>
621 * modules/vasprintf-posix-tests: New file.
622 * tests/test-vasprintf-posix.c: New file.
624 * modules/vasprintf-posix: New file.
625 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
627 * m4/vasprintf-posix.m4: New file.
628 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
630 (gl_FUNC_VASPRINTF): Invoke it.
631 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
633 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
635 2007-03-04 Bruno Haible <bruno@clisp.org>
637 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
638 REPLACE_GETTIMEOFDAY.
639 * modules/sys_time (Makefile.am): Likewise.
640 * m4/sys_time_h.m4: Likewise.
641 * m4/gettimeofday.m4: Likewise.
643 2007-03-04 Bruno Haible <bruno@clisp.org>
645 * modules/vasnprintf-posix-tests: New file.
646 * tests/test-vasnprintf-posix.c: New file.
648 * modules/vasnprintf-posix: New file.
649 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
651 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
652 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
653 REPLACE_VASNPRINTF is defined.
654 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
656 (gl_FUNC_VASNPRINTF): Invoke it.
657 * m4/vasnprintf-posix.m4: New file.
658 * m4/printf.m4: New file.
660 2007-03-04 Bruno Haible <bruno@clisp.org>
662 Compile progreloc.c only if --enable-relocatable is specified.
663 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
664 if --enable-relocatable was specified.
665 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
668 2007-03-04 Jim Meyering <jim@meyering.net>
670 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
671 Use it consistently, rather than enumerating errno constants.
673 2007-03-04 Bruno Haible <bruno@clisp.org>
675 * modules/xvasprintf-tests: New file.
676 * tests/test-xvasprintf.c: New file.
678 * modules/vasprintf-tests: New file.
679 * tests/test-vasprintf.c: New file.
681 * modules/vasnprintf-tests: New file.
682 * tests/test-vasnprintf.c: New file.
684 * modules/vsnprintf-tests: New file.
685 * tests/test-vsnprintf.c: New file.
687 * modules/snprintf-tests: New file.
688 * tests/test-snprintf.c: New file.
690 2007-03-04 Bruno Haible <bruno@clisp.org>
692 Compile relocatable.c only if --enable-relocatable is specified.
693 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
694 gl_RELOCATABLE_LIBRARY.
695 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
696 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
697 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
698 gl_RELOCATABLE_LIBRARY.
699 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
700 (Makefile.am): Remove lib_SOURCES.
701 * modules/relocatable-lib-lgpl (configure.ac): Invoke
702 gl_RELOCATABLE_LIBRARY.
703 (Makefile.am): Remove lib_SOURCES.
704 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
706 * modules/relocatable-prog-wrapper (configure.ac): Invoke
707 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
709 2007-03-04 Bruno Haible <bruno@clisp.org>
711 * modules/argmatch-tests: New file.
712 * tests/test-argmatch.c: New file.
714 * tests/test-allocsa.c (main): Halve the number of loop runs.
716 * modules/alloca-opt-tests: New file.
717 * tests/test-alloca-opt.c: New file.
719 2007-03-04 Jim Meyering <jim@meyering.net>
721 Work around difference between Linux ACLs and Solaris 10 ZFS.
722 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
725 2007-03-03 Bruno Haible <bruno@clisp.org>
727 * modules/relocatable-prog (Depends-on): Add back progreloc's
728 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
730 2007-03-03 Bruno Haible <bruno@clisp.org>
732 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
733 * modules/relocatable-lib: New file.
735 2007-03-03 Bruno Haible <bruno@clisp.org>
737 * modules/relocatable-prog: Renamed from modules/relocatable.
738 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
740 2007-03-03 Bruno Haible <bruno@clisp.org>
742 * modules/relocatable-script (Files): Add doc/relocatable.texi,
743 m4/relocatable-lib.m4.
744 (Depends-on): Remove 'relocatable'.
745 (configure.ac): Add gl_RELOCATABLE_NOP.
747 2007-03-03 Bruno Haible <bruno@clisp.org>
749 * modules/relocatable-prog-wrapper: New file.
750 * modules/relocatable (Depends-on): Add it. Remove all other
751 dependencies except progname.
752 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
754 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
755 (gl_FUNC_STRERROR): Nop.
756 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
758 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
759 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
761 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
762 (gl_FUNC_READLINK): Update.
764 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
766 2007-03-03 Bruno Haible <bruno@clisp.org>
768 * lib/xreadlink.c: Include <unistd.h> unconditionally.
769 * modules/xreadlink (Depends-on): Add unistd.
770 * modules/xreadlink-with-size (Depends-on): Likewise.
772 2007-03-03 Bruno Haible <bruno@clisp.org>
774 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
775 extracted from gt_FUNC_SETENV.
776 (gt_FUNC_SETENV): Remove macro.
777 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
778 remove gt_FUNC_SETENV.
780 2007-03-03 Bruno Haible <bruno@clisp.org>
782 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
783 ENABLE_RELOCATABLE here.
784 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
786 2007-03-03 Bruno Haible <bruno@clisp.org>
788 * modules/rbtreehash-list-tests (Depends-on): Add progname.
789 * tests/test-rbtreehash_list.c: Include progname.h.
790 (main): Call set_program_name.
792 * modules/rbtree-oset-tests (Depends-on): Add progname.
793 * tests/test-rbtree_oset.c: Include progname.h.
794 (main): Call set_program_name.
796 * modules/rbtree-list-tests (Depends-on): Add progname.
797 * tests/test-rbtree_list.c: Include progname.h.
798 (main): Call set_program_name.
800 * modules/linked-list-tests (Depends-on): Add progname.
801 * tests/test-linked_list.c: Include progname.h.
802 (main): Call set_program_name.
804 2007-03-03 Bruno Haible <bruno@clisp.org>
806 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
807 All uses of __restrict changed to _Restrict_.
808 * lib/glob_.h (__restrict): Remove macro.
810 2007-03-02 Bruno Haible <bruno@clisp.org>
812 * modules/gettext (configure.ac): Require gettext infrastructure
815 2007-03-02 Bruno Haible <bruno@clisp.org>
817 * modules/linkedhash-list-tests (Depends-on): Add progname.
818 * tests/test-linkedhash_list.c: Include progname.h.
819 (main): Call set_program_name.
821 * modules/carray-list-tests (Depends-on): Add progname.
822 * tests/test-carray_list.c: Include progname.h.
823 (main): Call set_program_name.
825 * modules/avltreehash-list-tests (Depends-on): Add progname.
826 * tests/test-avltreehash_list.c: Include progname.h.
827 (main): Call set_program_name.
829 * modules/avltree-oset-tests (Depends-on): Add progname.
830 * tests/test-avltree_oset.c: Include progname.h.
831 (main): Call set_program_name.
833 * modules/avltree-list-tests (Depends-on): Add progname.
834 * tests/test-avltree_list.c: Include progname.h.
835 (main): Call set_program_name.
837 * modules/array-oset-tests (Depends-on): Add progname.
838 * tests/test-array_oset.c: Include progname.h.
839 (main): Call set_program_name.
841 * modules/array-list-tests (Depends-on): Add progname.
842 * tests/test-array_list.c: Include progname.h.
843 (main): Call set_program_name.
845 * modules/argp-tests (Depends-on): Add progname.
846 * tests/test-argp.c: Include argp.h first. Include progname.h.
847 (main): Call set_program_name.
849 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
851 * doc/gnulib-tool.texi (Initial import): Reword description of
852 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
853 limited effect even if defined after the first system include.
855 2007-03-01 Bruno Haible <bruno@clisp.org>
857 * build-aux/config.libpath: Update to libtool-1.5.22.
858 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
860 2007-03-01 Bruno Haible <bruno@clisp.org>
862 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
864 Reported by Ralf Wildenhues.
866 2007-03-01 Bruno Haible <bruno@clisp.org>
868 * build-aux/install-reloc: Remove object files left over by some
870 Reported by Ralf Wildenhues.
872 2007-03-01 Bruno Haible <bruno@clisp.org>
874 * build-aux/install-reloc: Break long lines.
876 2007-03-01 Bruno Haible <bruno@clisp.org>
878 * doc/relocatable.texi: Document that it may not work on OpenBSD.
879 Reported by Ralf Wildenhues.
881 2007-03-01 Bruno Haible <bruno@clisp.org>
883 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
884 include ordering constraints.
886 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
888 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
889 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
890 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
892 * lib/time_.h: Fix misspelling.
893 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
894 Require gl_HEADER_TIME_H_DEFAULTS.
895 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
896 * m4/time_r.m4 (gl_TIME_R): Likewise.
897 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
899 2007-03-01 Bruno Haible <bruno@clisp.org>
901 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
902 * m4/utimens.m4 (gl_UTIMENS): Likewise.
904 2007-03-01 Jim Meyering <jim@meyering.net>
906 * modules/xreadlink (Maintainer): Add my name.
907 * modules/xreadlink-with-size (Depends-on): Alphabetize.
909 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
910 Bruno Haible <bruno@clisp.org>
912 * build-aux/install-reloc: Compile also c-ctype.c.
913 * build-aux/relocatable.sh.in: New file.
914 * doc/relocatable.texi: New file.
915 * doc/relocatable-maint.texi: New file.
916 * doc/gnulib.texi: Include relocatable-maint.texi.
917 * lib/progreloc.c: Include unistd.h unconditionally.
918 * lib/relocwrapper.c: Include unistd.h unconditionally.
920 (add_dotbin): Use c_tolower.
921 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
922 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
923 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
924 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
925 to m4/relocatable-lib.m4.
926 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
927 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
928 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
929 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
930 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
931 * modules/relocatable: New file.
932 * modules/relocatable-lib: New file.
933 * modules/relocatable-script: New file.
935 2007-02-28 Bruno Haible <bruno@clisp.org>
937 Import --enable-relocatable infrastructure.
938 * build-aux/config.libpath: New file, from GNU gettext.
939 * build-aux/install-reloc: New file, from GNU gettext.
940 * build-aux/reloc-ldflags: New file, from GNU gettext.
941 * lib/relocatable.h: New file, from GNU gettext.
942 * lib/relocatable.c: New file, from GNU gettext.
943 * lib/relocwrapper.c: New file, from GNU gettext.
944 * m4/relocatable.m4: New file, from GNU gettext.
946 2007-02-28 Bruno Haible <bruno@clisp.org>
948 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
950 * modules/xreadlink: New file, from GNU gettext with modifications.
951 * lib/xreadlink.c: New file, from GNU gettext.
952 * lib/xreadlink.h: Add comments.
953 (xreadlink): New declaration.
955 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
956 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
957 lib/xreadlink-with-size.c.
958 (configure.ac): Remove gl_XREADLINK invocation.
959 (Makefile.am): Augment lib_SOURCES.
960 * m4/xreadlink.m4: Remove file.
961 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
962 (xreadlink_with_size): Renamed from xreadink.
963 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
964 * modules/canonicalize (Depends-on): Replace xreadlink with
966 * lib/canonicalize.c (canonicalize_filename_mode): Update.
968 2007-02-25 Jim Meyering <jim@meyering.net>
970 * build-aux/announce-gen: When complaining about excess arguments,
973 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
975 * README: Document signed integer overflow situation more
978 2007-02-25 Bruno Haible <bruno@clisp.org>
980 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
981 'a' or 'A' conversion.
983 2007-02-25 Bruno Haible <bruno@clisp.org>
985 * modules/filename: Renamed from modules/pathname.
986 (Files): Replace lib/pathname.h with lib/filename.h. Replace
987 lib/concatpath.c with lib/concat-filename.c.
988 (Makefile.am): Update.
989 (Include): Replace pathname.h with filename.h.
990 * lib/filename.h: Renamed from lib/pathname.h.
991 (concatenated_filename): Renamed from concatenated_pathname.
992 * lib/concat-filename.c: Renamed from lib/concatpath.c.
993 (concatenated_filename): Renamed from concatenated_pathname.
994 * lib/findprog.c: Include filename.h instead of pathname.h.
995 (find_in_path): Update.
996 * lib/javacomp.c: Include filename.h instead of pathname.h.
997 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
998 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
999 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
1000 is_oldgcj_14_13_usable, is_javac_usable): Update.
1001 * lib/javaexec.c: Include filename.h instead of pathname.h.
1002 (execute_java_class): Update.
1003 * modules/findprog: Update.
1004 * modules/javacomp: Update.
1005 * modules/javaexec: Update.
1006 * MODULES.html.sh (File system functions): Add 'filename', remove
1009 2007-02-25 Bruno Haible <bruno@clisp.org>
1011 * modules/printf-frexpl-tests: New file.
1012 * tests/test-printf-frexpl.c: New file.
1014 * modules/printf-frexpl: New file.
1015 * lib/printf-frexpl.h: New file.
1016 * lib/printf-frexpl.c: New file.
1017 * m4/printf-frexpl.m4: New file.
1019 2007-02-25 Bruno Haible <bruno@clisp.org>
1021 * modules/printf-frexp-tests: New file.
1022 * tests/test-printf-frexp.c: New file.
1024 * modules/printf-frexp: New file.
1025 * lib/printf-frexp.h: New file.
1026 * lib/printf-frexp.c: New file.
1027 * m4/printf-frexp.m4: New file.
1029 2007-02-25 Bruno Haible <bruno@clisp.org>
1031 Assume automake >= 1.10 for the tests.
1032 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
1033 * modules/arctwo-tests: Likewise.
1034 * modules/argp-tests: Likewise.
1035 * modules/avltree-list-tests: Likewise.
1036 * modules/avltree-oset-tests: Likewise.
1037 * modules/avltreehash-list-tests: Likewise.
1038 * modules/carray-list-tests: Likewise.
1039 * modules/crc-tests: Likewise.
1040 * modules/des-tests: Likewise.
1041 * modules/gc-arcfour-tests: Likewise.
1042 * modules/gc-arctwo-tests: Likewise.
1043 * modules/gc-des-tests: Likewise.
1044 * modules/gc-hmac-md5-tests: Likewise.
1045 * modules/gc-hmac-sha1-tests: Likewise.
1046 * modules/gc-md2-tests: Likewise.
1047 * modules/gc-md4-tests: Likewise.
1048 * modules/gc-md5-tests: Likewise.
1049 * modules/gc-pbkdf2-sha1-tests: Likewise.
1050 * modules/gc-rijndael-tests: Likewise.
1051 * modules/gc-sha1-tests: Likewise.
1052 * modules/gc-tests: Likewise.
1053 * modules/getaddrinfo-tests: Likewise.
1054 * modules/hmac-md5-tests: Likewise.
1055 * modules/hmac-sha1-tests: Likewise.
1056 * modules/linked-list-tests: Likewise.
1057 * modules/linkedhash-list-tests: Likewise.
1058 * modules/lock-tests: Likewise.
1059 * modules/md2-tests: Likewise.
1060 * modules/md4-tests: Likewise.
1061 * modules/md5-tests: Likewise.
1062 * modules/rbtree-list-tests: Likewise.
1063 * modules/rbtree-oset-tests: Likewise.
1064 * modules/rbtreehash-list-tests: Likewise.
1065 * modules/read-file-tests: Likewise.
1066 * modules/rijndael-tests: Likewise.
1067 * modules/stdint-tests: Likewise.
1068 * modules/tls-tests: Likewise.
1070 2007-02-24 Bruno Haible <bruno@clisp.org>
1072 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
1073 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
1074 function; instead check whether isnan with a double argument links.
1075 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
1076 function; instead check whether isnan with a 'long double' argument
1078 Reported by Eric Blake <ebb9@byu.net>.
1080 2007-02-24 Bruno Haible <bruno@clisp.org>
1082 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
1084 * lib/isnanl.c: Remove all code. Just include isnan.c.
1085 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
1087 2007-02-25 Jim Meyering <jim@meyering.net>
1089 Avoid conflicting types for 'unsetenv' on FreeBSD.
1090 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
1091 conflicting with FreeBSD's (5.0 and 6.1) function declaration
1094 2007-02-24 Bruno Haible <bruno@clisp.org>
1096 * modules/isnanl-nolibm-tests: New file.
1097 * tests/test-isnanl.c: New file.
1099 * modules/isnanl-nolibm: New file.
1100 * lib/isnanl.h: New file.
1101 * lib/isnanl.c: New file.
1102 * m4/isnanl.m4: New file.
1104 2007-02-24 Bruno Haible <bruno@clisp.org>
1106 * modules/isnan-nolibm-tests: New file.
1107 * tests/test-isnan.c: New file.
1109 * modules/isnan-nolibm: New file.
1110 * lib/isnan.h: New file.
1111 * lib/isnan.c: New file.
1112 * m4/isnan.m4: New file.
1114 2007-02-24 Bruno Haible <bruno@clisp.org>
1116 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
1117 assume that an exponent fits in 20 bits.
1119 2007-02-24 Jim Meyering <jim@meyering.net>
1121 * m4/regex.m4: Update the description of the configure-time option,
1122 --without-included-regex, to state accurately what the defaults are,
1123 and perhaps to give people an idea why using this option is risky.
1125 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
1127 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
1128 loops on small arguments. This attempts to avoid the problem
1129 Bruno Haible reported for AIX 4.3.2 in
1130 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
1132 2007-02-23 Bruno Haible <bruno@clisp.org>
1134 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
1135 Needed for help2man.
1137 2007-02-23 Karl Berry <karl@gnu.org>
1139 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
1140 exists, foo.h should be cvs-ignored, not committed.
1142 2007-02-23 Eric Blake <ebb9@byu.net>
1144 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
1145 * lib/stat-time.h (includes): Likewise.
1146 * lib/utimecmp.c (includes): Likewise.
1147 * lib/utimens.h (includes): Likewise.
1148 * lib/getdate.y (includes): Also include "timespec.h" for use
1149 internal to the module.
1150 * modules/utimens (Depends-on): Revert yesterday's patch.
1151 * modules/nanosleep (Depends-on): Add missing dependency.
1153 2007-02-22 Bruno Haible <bruno@clisp.org>
1155 * lib/glob.c: Don't include getlogin_r.h.
1157 2007-02-22 Jim Meyering <jim@meyering.net>
1159 * modules/utimens (Depends-on): Add timespec, required for
1160 utimens.h's inclusion of timespec.h.
1162 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
1164 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
1165 long unreadable paths in GNU/Linux. Problem reported by Andreas
1167 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
1168 I'll try to think of a better way to fix the Solaris problem.
1170 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
1171 like glibc; on Solaris 10, it fails with errno == EINVAL.
1172 POSIX says the behavior is unspecified if the first argument is NULL,
1173 so play it safe and never pass NULL to the system getcwd.
1175 2007-02-21 Jim Meyering <jim@meyering.net>
1177 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
1178 of gettimeofday. It would conflict with the one now always
1179 provided via sys_time_.h. Reported by Matthew Woehlke, as
1180 an IRIX 6.5 build failure.
1182 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
1184 Minor fixups to port to Solaris 10 with Sun C 5.8.
1185 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
1186 * modules/getcwd (Depends-on): Add dirfd.
1187 * lib/putenv.c (putenv): #undef it.
1188 (rpl_putenv): New decl.
1189 (malloc, free): Include <stdlib.h> rather than prototyping separately.
1191 2007-02-20 Bruno Haible <bruno@clisp.org>
1193 * modules/stdio-tests: New file.
1194 * tests/test-stdio.c: New file.
1196 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
1197 (Depends-on): Add stdio.
1198 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
1199 (Include): Use <stdio.h> instead of vsnprintf.h.
1200 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
1201 HAVE_DECL_VSNPRINTF.
1202 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
1204 * modules/snprintf (Files): Remove lib/snprintf.h.
1205 (Depends-on): Add stdio.
1206 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
1207 (Include): Use <stdio.h> instead of snprintf.h.
1208 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
1210 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
1211 * lib/getaddrinfo.c: Likewise.
1213 * modules/stdio: New file.
1214 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
1215 * lib/snprintf.h: Remove file.
1216 * lib/vsnprintf.h: Remove file.
1217 * lib/.cppi-disable: Remove snprintf.h.
1218 * m4/stdio_h.m4: New file.
1219 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
1221 2007-02-20 Jim Meyering <jim@meyering.net>
1223 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
1224 used by e.g., mingw. From Bruno Haible.
1226 2007-02-19 Bruno Haible <bruno@clisp.org>
1228 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
1230 Reported by Ben Pfaff <blp@cs.stanford.edu>.
1232 2007-02-19 Bruno Haible <bruno@clisp.org>
1234 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
1237 2007-02-19 Bruno Haible <bruno@clisp.org>
1239 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
1241 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
1243 2007-02-19 Jim Meyering <jim@meyering.net>
1245 Don't use FD after a successful "fdopendir (fd)".
1246 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
1247 Reset it by calling dirfd on the just-obtained DIR*.
1249 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
1250 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
1252 2007-02-18 Bruno Haible <bruno@clisp.org>
1254 * lib/readlink.c: Include <unistd.h>.
1255 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
1257 * modules/readlink (Depends-on): Add unistd.
1258 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1259 (Include): Add <unistd.h>.
1261 * lib/getlogin_r.h: Remove file.
1262 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
1263 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
1264 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
1265 HAVE_DECL_GETLOGIN_R.
1266 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
1267 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1268 (Include): Use <unistd.h> instead of getlogin_r.h.
1270 * lib/getcwd.h: Remove file.
1271 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
1272 * lib/xgetcwd.c: Likewise.
1273 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
1274 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
1275 * modules/getcwd (Files): Remove lib/getcwd.h.
1276 (Depends-on): Add unistd.
1277 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1278 (Include): Use <unistd.h> instad of getcwd.h.
1280 * lib/ftruncate.c: Include <unistd.h> first.
1281 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
1283 * modules/ftruncate (Depends-on): Add unistd.
1284 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1286 * lib/fchdir.c: Include <unistd.h> first.
1287 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
1288 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
1289 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
1290 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1291 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
1293 * lib/dup2.c: Include <unistd.h> first.
1294 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
1296 * modules/dup2 (Depends-on): Add unistd.
1297 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1299 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
1300 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
1301 REPLACE_CHOWN. Don't define chown as a macro here.
1302 * modules/chown (Depends-on): Add unistd.
1303 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1305 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
1306 Add definition for GL_LINK_WARNING.
1307 (chown, dup2): New declarations.
1308 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
1310 (ftruncate): New declaration.
1311 (getcwd): New declaration, taken from old getcwd.h.
1312 (getlogin_r): New declaration, taken from old getlogin_r.h.
1313 (readlink): New declaration.
1314 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
1315 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
1316 (gl_PREREQ_UNISTD): Remove macro.
1317 (gl_UNISTD_MODULE_INDICATOR): New macro.
1318 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
1319 many new variables. Don't set UNISTD_H.
1320 * modules/unistd (Description): Change.
1321 (Depends-on): Add link-warning.
1322 (configure.ac): Update.
1323 (Makefile.am): Create unistd.h always. Substitute many new variables
1326 2007-02-18 Bruno Haible <bruno@clisp.org>
1328 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
1329 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
1331 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
1332 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
1333 * lib/getsubopt.h: Remove file.
1334 * modules/getsubopt (Files): Remove lib/getsubopt.h.
1335 (Depends-on): Add stdlib.
1336 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1337 (Includes): Use <stdlib.h> instead of getsubopt.h.
1338 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
1340 * lib/getsubopt.c: Don't include getsubopt.h.
1342 2007-02-18 Bruno Haible <bruno@clisp.org>
1344 * modules/fchdir (Depends-on): Add dup2.
1346 2007-02-18 Bruno Haible <bruno@clisp.org>
1348 * lib/stdlib_.h: Handle glibc's special invocation convention
1351 2007-02-18 Bruno Haible <bruno@clisp.org>
1353 * modules/stdlib-tests: New file.
1354 * tests/test-stdlib.c: New file.
1356 * modules/mkstemp (Files): Remove lib/mkstemp.h.
1357 (Depends-on): Add stdlib.
1358 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1359 (Includes): Use <stdlib.h> instead of mkstemp.h.
1360 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
1361 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
1362 * lib/mkstemp.c: Don't include mkstemp.h.
1363 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
1364 * lib/stdlib--.h: Don't include mkstemp.h.
1366 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
1367 (Depends-on): Add stdlib.
1368 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1369 (Includes): Use <stdlib.h> instead of mkdtemp.h.
1370 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
1372 * lib/mkdtemp.c: Don't include mkdtemp.h.
1373 * lib/clean-temp.c: Don't include mkdtemp.h.
1375 * modules/exit (Files): Remove lib/exit.h.
1376 (Depends-on): Add stdlib.
1377 (Makefile.am): Remove lib_SOURCES.
1378 (Include): Use <stdlib.h> instead of exit.h.
1379 * lib/argmatch.c: Don't include exit.h.
1380 * lib/execute.c: Likewise.
1381 * lib/pagealign_alloc.c: Likewise.
1382 * lib/pipe.c: Likewise.
1383 * lib/wait-process.c: Likewise.
1384 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
1385 * lib/exitfail.c: Likewise.
1386 * lib/savewd.c: Likewise.
1387 * lib/xsetenv.c: Likewise.
1389 * modules/stdlib: New file.
1390 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
1391 and extra comments about mkstemp().
1392 * lib/exit.h: Remove file.
1393 * lib/mkdtemp.h: Remove file.
1394 * lib/mkstemp.h: Remove file.
1395 * m4/stdlib_h.m4: New file.
1396 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
1398 2007-02-18 Bruno Haible <bruno@clisp.org>
1400 * modules/math-tests: New file.
1401 * tests/test-math.c: New file.
1403 * modules/math: New file.
1404 * modules/mathl (Files): Remove lib/mathl.h.
1405 (Depends-on): Add math.
1406 (Makefile.am): Don't mention mathl.h.
1407 (Include): Use <math.h> instead of mathl.h.
1408 * lib/math_.h: New file.
1409 * lib/mathl.h: Remove file.
1410 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
1412 * lib/asinl.c: Likewise.
1413 * lib/atanl.c: Likewise.
1414 * lib/ceill.c: Likewise.
1415 * lib/cosl.c: Likewise.
1416 * lib/expl.c: Likewise.
1417 * lib/floorl.c: Likewise.
1418 * lib/frexpl.c: Likewise.
1419 * lib/ldexpl.c: Likewise.
1420 * lib/logl.c: Likewise.
1421 * lib/sincosl.c: Likewise.
1422 * lib/sinl.c: Likewise.
1423 * lib/sqrtl.c: Likewise.
1424 * lib/tanl.c: Likewise.
1425 * lib/trigl.c: Likewise.
1426 * m4/math_h.m4: New file.
1427 * MODULES.html.sh (Mathematics): Add math.
1429 2007-02-17 Bruno Haible <bruno@clisp.org>
1431 * modules/wctype-tests: New file.
1432 * tests/test-wctype.c: New file.
1434 * modules/wchar-tests: New file.
1435 * tests/test-wchar.c: New file.
1437 * modules/unistd-tests: New file.
1438 * tests/test-unistd.c: New file.
1440 * modules/time-tests: New file.
1441 * tests/test-time.c: New file.
1443 * modules/sysexits-tests: New file.
1444 * tests/test-sysexits.c: New file.
1446 * modules/sys_time-tests: New file.
1447 * tests/test-sys_time.c: New file.
1449 * modules/sys_stat-tests: New file.
1450 * tests/test-sys_stat.c: New file.
1452 * modules/sys_socket-tests: New file.
1453 * tests/test-sys_socket.c: New file.
1455 * modules/sys_select-tests: New file.
1456 * tests/test-sys_select.c: New file.
1458 * modules/string-tests: New file.
1459 * tests/test-string.c: New file.
1461 * modules/stdbool-tests: New file.
1462 * tests/test-stdbool.c: New file.
1464 * modules/netinet_in-tests: New file.
1465 * tests/test-netinet_in.c: New file.
1467 * modules/inttypes-tests: New file.
1468 * tests/test-inttypes.c: New file.
1470 * modules/fcntl-tests: New file.
1471 * tests/test-fcntl.c: New file.
1473 * modules/byteswap-tests: New file.
1474 * tests/test-byteswap.c: New file.
1476 * modules/arpa_inet-tests: New file.
1477 * tests/test-arpa_inet.c: New file.
1479 2007-02-17 Bruno Haible <bruno@clisp.org>
1481 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
1482 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
1483 if the corresponding module is not enabled. Emit link warnings if
1484 the function is used nevertheless.
1485 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
1486 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
1487 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
1488 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
1489 * modules/inttypes (Depends-on): Add link-warning.
1490 (Makefile.am): Copy the contents of build-aux/link-warning.h into
1491 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
1492 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
1493 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
1494 * modules/imaxdiv (configure.ac): Likewise.
1495 * modules/strtoimax (configure.ac): Likewise.
1496 * modules/strtoumax (configure.ac): Likewise.
1498 2007-02-17 Bruno Haible <bruno@clisp.org>
1500 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
1501 gl_STRING_MODULE_INDICATOR_DEFAULTS.
1502 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
1503 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
1505 2007-02-17 Bruno Haible <bruno@clisp.org>
1507 * modules/link-warning: New file.
1508 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
1509 * lib/string_.h (GL_LINK_WARNING): Remove definition.
1510 * modules/string (Depends-on): Add link-warning.
1511 (Makefile.am): Copy the contents of build-aux/link-warning.h into
1513 * MODULES.html.sh (Support for building libraries and executables): Add
1516 2007-02-17 Bruno Haible <bruno@clisp.org>
1518 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
1519 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
1520 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
1523 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
1524 Bruno Haible <bruno@clisp.org>
1526 * modules/tmpfile: New file.
1527 * lib/tmpfile.c: New file.
1528 * m4/tmpfile.m4: New file.
1529 * MODULES.html.sh (func_all_modules): New section "Input/output".
1531 2007-02-15 Bruno Haible <bruno@clisp.org>
1533 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
1534 (supports_delete_on_close): New function.
1535 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
1537 2007-02-14 Bruno Haible <bruno@clisp.org>
1539 * modules/mbspcasecmp-tests: New file.
1540 * tests/test-mbspcasecmp.sh: New file.
1541 * tests/test-mbspcasecmp.c: New file.
1543 New module mbspcasecmp.
1544 * modules/mbspcasecmp: New file.
1545 * lib/mbspcasecmp.c: New file.
1546 * lib/string_.h (strncasecmp): Change warning message.
1547 (mbspcasecmp): New declaration.
1548 * m4/mbspcasecmp.m4: New file.
1549 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1551 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
1552 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
1554 2007-02-14 Bruno Haible <bruno@clisp.org>
1556 * modules/mbsncasecmp-tests: New file.
1557 * tests/test-mbsncasecmp.sh: New file.
1558 * tests/test-mbsncasecmp.c: New file.
1560 New module mbsncasecmp.
1561 * modules/mbsncasecmp: New file.
1562 * lib/mbsncasecmp.c: New file.
1563 * lib/string_.h (mbsncasecmp): New declaration.
1564 * m4/mbsncasecmp.m4: New file.
1565 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1567 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
1568 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
1570 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
1572 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
1573 Verify that it doesn't overlap with our flags.
1574 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
1575 do not have the desired effect in multibyte locales; instead, use
1577 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
1578 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
1579 we don't require GNU fnmatch ourselves (if our users require it, they
1580 should do so explicitly).
1582 Fix regex code so it doesn't rely on strcasecmp.
1583 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
1584 Otherwise, include gnulib's langinfo.h.
1585 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
1586 undesirable behavior in non-C locales. Instead, rely on localecharset.
1587 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
1588 * modules/regex (FILES): Remove m4/codeset.m4.
1589 (Depends-on): Add localcharset. Remove strcase.
1591 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1593 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
1594 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
1596 2007-02-13 Bruno Haible <bruno@clisp.org>
1598 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
1599 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1601 2007-02-12 Bruno Haible <bruno@clisp.org>
1603 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
1604 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
1605 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
1606 time warning rather than a link error.
1608 2007-02-12 Bruno Haible <bruno@clisp.org>
1610 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
1611 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1612 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1614 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
1616 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
1619 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
1621 New module 'time', so that apps can include <time.h> as per
1622 POSIX and GNU instead of separate include files like time_r.h
1623 and timegm.h. This implementation tries out a simpler approach
1624 for replacing decls in standard include files (as compared to
1625 the string module), somewhat as an experiment.
1627 * config/srclist.txt: Comment out mktime.c for now.
1628 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
1629 since it doesn't apply any more. Use generic wording instead.
1630 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
1632 * lib/time_.h, m4/time_h.m4, modules/time: New files.
1633 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
1634 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
1635 Don't include <sys/types.h>; no longer needed since we assume C89.
1636 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
1637 * lib/strftime.c: Likewise.
1638 * lib/time_r.c: Likewise.
1639 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
1640 * lib/nanosleep.c: Include <time.h> first, to check interface.
1641 * lib/strptime.c: Likewise.
1642 * lib/time_r.c: Likewise.
1643 * lib/timegm.c: Likewise.
1644 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
1646 * lib/timegm.c: Don't include timegm.h; no longer needed.
1647 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
1648 time.h now handles any problems in that area.
1649 (struct timespec, nanosleep): Remove; time.h now arranges for these.
1650 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
1651 that time.h defines struct timespec.
1652 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
1653 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
1655 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
1656 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
1657 needed. Set REPLACE_LOCALTIME.
1658 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
1659 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
1660 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
1661 nanosleep; time_h.m4 now does that. Don't require
1662 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
1663 module handles this now.
1664 * modules/getdate (Depends-on): Remove timespec. Add time.
1665 * modules/nanosleep (Depends-on): Likewise.
1666 * modules/stat-time (Depends-on): Likewise.
1667 * modules/nanosleep (Include): Include time.h, not timespec.h.
1668 * modules/strptime (Files): Remove lib/strptime.h.
1669 (Depends-on): Add extensions, time.
1670 (Include): Include time.h, not strptime.h.
1671 * modules/time_r (Files): Remove lib/time_r.h.
1672 (Depends-on): Add time.
1673 (Include): Include time.h, not time_r.h.
1674 * modules/timegm: Likewise.
1675 * modules/timespec (Description): Now does timespec-related decls
1676 of our own, instead of struct timespec itself.
1677 (Depends-on): Add time; remove extensions.
1678 (Maintainer): Add self.
1679 * modules/utimecmp (Depends-on): Add time; remove timespec.
1680 * modules/utimens (Depends-on): Likewise.
1681 * modules/xnanosleep (Depends-on): Likewise.
1683 2007-02-11 Bruno Haible <bruno@clisp.org>
1685 * lib/c-strstr.c: Include allocsa.h.
1686 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
1687 * lib/c-strcasestr.c: Include allocsa.h.
1688 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
1689 * lib/strcasestr.c: Include allocsa.h.
1690 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
1691 * lib/mbsstr.c: Include allocsa.h.
1692 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
1693 allocsa/freesa instead of malloc/free.
1694 * lib/mbscasestr.c: Include allocsa.h.
1695 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
1696 allocsa/freesa instead of malloc/free.
1697 * modules/c-strstr (Depends-on): Add allocsa.
1698 * modules/c-strcasestr (Depends-on): Likewise.
1699 * modules/strcasestr (Depends-on): Likewise.
1700 * modules/mbsstr (Depends-on): Likewise.
1701 * modules/mbscasestr (Depends-on): Likewise.
1703 2007-02-11 Bruno Haible <bruno@clisp.org>
1705 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
1707 * modules/mbsspn-tests: New file.
1708 * tests/test-mbsspn.sh: New file.
1709 * tests/test-mbsspn.c: New file.
1711 2007-02-11 Bruno Haible <bruno@clisp.org>
1713 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
1715 * modules/mbspbrk-tests: New file.
1716 * tests/test-mbspbrk.sh: New file.
1717 * tests/test-mbspbrk.c: New file.
1719 2007-02-11 Bruno Haible <bruno@clisp.org>
1721 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
1724 * modules/mbscspn-tests: New file.
1725 * tests/test-mbscspn.sh: New file.
1726 * tests/test-mbscspn.c: New file.
1728 2007-02-11 Bruno Haible <bruno@clisp.org>
1730 * modules/mbscasecmp-tests: New file.
1731 * tests/test-mbscasecmp.sh: New file.
1732 * tests/test-mbscasecmp.c: New file.
1734 2007-02-11 Bruno Haible <bruno@clisp.org>
1736 Ensure O(n) worst-case complexity of mbscasestr.
1737 * lib/mbscasestr.c: Include stdbool.h.
1738 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
1740 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
1741 the bookkeeping indicates that it's worth it.
1742 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
1744 * modules/mbscasestr-tests: New file.
1745 * tests/test-mbscasestr1.c: New file.
1746 * tests/test-mbscasestr2.sh: New file.
1747 * tests/test-mbscasestr2.c: New file.
1748 * tests/test-mbscasestr3.sh: New file.
1749 * tests/test-mbscasestr3.c: New file.
1750 * tests/test-mbscasestr4.sh: New file.
1751 * tests/test-mbscasestr4.c: New file.
1752 * m4/locale-tr.m4: New file.
1754 2007-02-11 Bruno Haible <bruno@clisp.org>
1756 Ensure O(n) worst-case complexity of mbsstr.
1757 * lib/mbsstr.c: Include stdbool.h.
1758 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
1760 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
1761 bookkeeping indicates that it's worth it.
1762 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
1764 * modules/mbsstr-tests: New file.
1765 * tests/test-mbsstr1.c: New file.
1766 * tests/test-mbsstr2.sh: New file.
1767 * tests/test-mbsstr2.c: New file.
1768 * tests/test-mbsstr3.sh: New file.
1769 * tests/test-mbsstr3.c: New file.
1770 * m4/locale-fr.m4: New file.
1772 2007-02-11 Bruno Haible <bruno@clisp.org>
1774 * lib/mbsrchr.c (mbsrchr): Fix bug.
1776 * modules/mbsrchr-tests: New file.
1777 * tests/test-mbsrchr.sh: New file.
1778 * tests/test-mbsrchr.c: New file.
1780 2007-02-11 Bruno Haible <bruno@clisp.org>
1782 * lib/mbschr.c (mbschr): Fix bug.
1784 * modules/mbschr-tests: New file.
1785 * tests/test-mbschr.sh: New file.
1786 * tests/test-mbschr.c: New file.
1787 * m4/locale-zh.m4: New file.
1789 2007-02-11 Bruno Haible <bruno@clisp.org>
1791 Support for copying multibyte string iterators.
1792 * lib/mbiter.h: Include <string.h>.
1793 (mbiter_multi_copy): New function.
1794 (mbi_copy): New macro.
1795 * lib/mbuiter.h: Include <string.h>.
1796 (mbuiter_multi_copy): New function.
1797 (mbui_copy): New macro.
1799 2007-02-11 Bruno Haible <bruno@clisp.org>
1802 * modules/mbslen: New file.
1803 * lib/mbslen.c: New file.
1804 * lib/string_.h (mbslen): New declaration.
1805 * m4/mbslen.m4: New file.
1806 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1808 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
1809 * MODULES.html.sh (Internationalization functions): Add mbslen.
1811 2007-02-11 Bruno Haible <bruno@clisp.org>
1813 Ensure O(n) worst-case complexity of strcasestr substitute.
1814 * lib/strcasestr.c: Include stdbool.h.
1815 (knuth_morris_pratt): New function.
1816 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
1817 bookkeeping indicates that it's worth it.
1818 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
1820 * modules/strcasestr-tests: New file.
1821 * tests/test-strcasestr.c: New file.
1823 2007-02-11 Bruno Haible <bruno@clisp.org>
1825 Ensure O(n) worst-case complexity of c_strcasestr.
1826 * lib/c-strcasestr.c: Include stdbool.h, string.h.
1827 (knuth_morris_pratt): New function.
1828 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
1829 the bookkeeping indicates that it's worth it.
1830 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
1832 * modules/c-strcasestr-tests: New file.
1833 * tests/test-c-strcasestr.c: New file.
1835 2007-02-11 Bruno Haible <bruno@clisp.org>
1837 Ensure O(n) worst-case complexity of c_strstr.
1838 * lib/c-strstr.c: Include stdbool.h, string.h.
1839 (knuth_morris_pratt): New function.
1840 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
1841 bookkeeping indicates that it's worth it.
1842 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
1844 * lib/c-strstr.c: Complete rewrite for maintainability.
1846 * modules/c-strstr-tests: New file.
1847 * tests/test-c-strstr.c: New file.
1849 2007-02-11 Bruno Haible <bruno@clisp.org>
1851 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
1852 5.2.1 and earlier, whereby \055 was treated just like the range
1854 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
1856 2007-02-08 Bruno Haible <bruno@clisp.org>
1858 * modules/regex (Depends-on): Add stdbool.
1859 Reported by Dalibor Topic <robilad@kaffe.org>.
1861 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
1863 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
1864 Prefer returning from main to exiting from it.
1865 Remove unnecessary parens after sizeof.
1867 2007-02-05 Bruno Haible <bruno@clisp.org>
1870 * modules/mbssep: New file.
1871 * lib/mbssep.c: New file.
1872 * lib/string_.h (strsep): Add a conditional link warning.
1873 (mbssep): New declaration.
1874 * m4/mbssep.m4: New file.
1875 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1877 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
1878 * MODULES.html.sh (Internationalization functions): Add mbssep.
1880 2007-02-05 Bruno Haible <bruno@clisp.org>
1882 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
1883 Optimize search in case of 1 delimiter.
1885 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
1887 * lib/acl.h: Include sys/types.h before sys/acl.h.
1889 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
1891 Merge upstream fix for glibc bugzilla #3957:
1893 2007-02-05 Jakub Jelinek <jakub@redhat.com>
1895 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
1896 bit for RE_HAT_LISTS_NOT_NEWLINE.
1897 (build_charclass_op): Remove bogus comment.
1899 2007-02-05 Simon Josefsson <simon@josefsson.org>
1901 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
1903 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
1905 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
1906 * lib/memmem.c [!defined _LIBC]: Include config.h.
1908 2007-02-04 Bruno Haible <bruno@clisp.org>
1910 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
1913 2007-02-04 Bruno Haible <bruno@clisp.org>
1915 New module mbstok_r.
1916 * modules/mbstok_r: New file.
1917 * lib/mbstok_r.c: New file.
1918 * lib/string_.h (strtok_r): Change argument names to match the
1919 comments. Add a conditional link warning.
1920 (mbstok_r): New declaration.
1921 * m4/mbstok_r.m4: New file.
1922 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1924 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
1925 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
1927 2007-02-04 Bruno Haible <bruno@clisp.org>
1930 * modules/mbsspn: New file.
1931 * lib/mbsspn.c: New file.
1932 * lib/string_.h (strspn): Add a conditional link warning.
1933 (mbsspn): New declaration.
1934 * m4/mbsspn.m4: New file.
1935 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1937 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
1938 * MODULES.html.sh (Internationalization functions): Add mbsspn.
1940 2007-02-04 Bruno Haible <bruno@clisp.org>
1943 * modules/mbspbrk: New file.
1944 * lib/mbspbrk.c: New file.
1945 * lib/string_.h (strpbrk): Add a conditional link warning.
1946 (mbspbrk): New declaration.
1947 * m4/mbspbrk.m4: New file.
1948 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1950 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
1951 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
1953 2007-02-04 Bruno Haible <bruno@clisp.org>
1956 * modules/mbscspn: New file.
1957 * lib/mbscspn.c: New file.
1958 * lib/string_.h (strcspn): Add a conditional link warning.
1959 (mbscspn): New declaration.
1960 * m4/mbscspn.m4: New file.
1961 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1963 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
1964 * MODULES.html.sh (Internationalization functions): Add mbscspn.
1966 2007-02-04 Bruno Haible <bruno@clisp.org>
1968 New module mbscasestr, reduced goal of strcasestr.
1969 * modules/mbscasestr: New file.
1970 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
1971 (mbscasestr): Renamed from strcasestr.
1972 * lib/strcasestr.c: Don't include mbuiter.h.
1973 (strcasestr): Remove support for multibyte locales.
1974 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
1975 Change the conditional link warning.
1976 (mbscasestr): New declaration.
1977 * m4/mbscasestr.m4: New file.
1978 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
1979 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
1981 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
1982 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1983 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
1984 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
1985 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
1986 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
1987 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
1988 (Depends-on): Remove mbuiter.
1989 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
1991 2007-02-04 Bruno Haible <bruno@clisp.org>
1993 Simplify handling of strncasecmp.
1994 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
1995 the conditional link warning.
1996 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1997 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
1998 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
1999 * modules/strcase (configure.ac): Don't invoke
2000 gl_STRING_MODULE_INDICATOR.
2001 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
2003 2007-02-04 Bruno Haible <bruno@clisp.org>
2005 New module mbscasecmp, reduced goal of strcasecmp.
2006 * modules/mbscasecmp: New file.
2007 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
2008 (mbscasecmp): Renamed from strcasecmp.
2009 * lib/strcasecmp.c: Don't include mbuiter.h.
2010 (strcasecmp): Remove support for multibyte locales.
2011 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
2012 Change the conditional link warning.
2013 (mbscasecmp): New declaration.
2014 * m4/mbscasecmp.m4: New file.
2015 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
2016 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
2018 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
2019 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
2021 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
2022 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
2023 * modules/strcase (Files): Remove m4/mbrtowc.m4.
2024 (Depends-on): Remove mbuiter.
2025 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
2027 2007-02-04 Bruno Haible <bruno@clisp.org>
2029 New module mbsstr. Remove module strstr.
2030 * modules/mbsstr: New file.
2031 * modules/strstr: Remove file.
2032 * lib/mbsstr.c: Renamed from lib/strstr.c.
2033 (mbsstr): Renamed from strstr.
2034 * lib/string_.h (strstr): Remove declaration. Change the conditional
2036 (mbsstr): New declaration.
2037 * m4/mbsstr.m4: New file.
2038 * m4/strstr.m4: Remove file.
2039 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
2041 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
2042 Don't initialize GNULIB_STRSTR.
2043 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
2044 substitute GNULIB_STRSTR and REPLACE_STRSTR.
2045 * MODULES.html.sh (Internationalization functions): Add mbsstr.
2046 (Support for systems lacking ANSI C 89): Remove strstr.
2048 2007-02-04 Bruno Haible <bruno@clisp.org>
2051 * modules/mbsrchr: New file.
2052 * lib/mbsrchr.c: New file.
2053 * lib/string_.h (strrchr): Add a conditional link warning.
2054 (mbsrchr): New declaration.
2055 * m4/mbsrchr.m4: New file.
2056 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
2058 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
2059 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
2061 2007-02-04 Bruno Haible <bruno@clisp.org>
2064 * modules/mbschr: New file.
2065 * lib/mbschr.c: New file.
2066 * lib/string_.h (strchr): Add a conditional link warning.
2067 (mbschr): New declaration.
2068 * m4/mbschr.m4: New file.
2069 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
2071 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
2072 * MODULES.html.sh (Internationalization functions): Add mbschr.
2074 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
2076 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
2078 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
2080 2007-02-04 Bruno Haible <bruno@clisp.org>
2082 New module description section 'configure.ac-early'.
2083 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
2084 (func_get_autoconf_early_snippet): New function.
2085 (func_import, func_create_testdir): Use it. Remove special cases for
2086 modules 'extensions' and 'lock'.
2087 * modules/extensions (configure.ac-early): Require
2088 gl_USE_SYSTEM_EXTENSIONS.
2089 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
2091 2007-02-04 Bruno Haible <bruno@clisp.org>
2093 Make use of gcj-4.3's -fsource and -ftarget option.
2094 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
2095 and if so try the options -fsource and -ftarget.
2096 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
2097 source_version, ftarget_option, target_version arguments.
2098 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
2099 (is_envjavac_oldgcj_14_14_usable): Renamed from
2100 is_envjavac_gcj_14_14_usable.
2101 (is_envjavac_oldgcj_14_13_usable): Renamed from
2102 is_envjavac_gcj_14_13_usable.
2103 (is_gcj_present): Update.
2104 (is_gcj_43, is_gcj43_usable): New functions.
2105 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
2106 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
2107 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
2108 try the options -fsource and -ftarget.
2110 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
2112 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
2113 checking code. Set N = ceil (1.5 * N) rather than to a slightly
2116 2007-02-03 Jim Meyering <jim@meyering.net>
2118 Give tools a better chance to allocate space for very large buffers.
2119 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
2121 Make pwd and readlink work also when run with an unreadable parent dir
2122 on systems with openat support.
2123 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
2124 provided getcwd function, even when we have openat support.
2125 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
2127 2007-02-02 Bruno Haible <bruno@clisp.org>
2129 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
2130 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
2131 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
2132 portability problems if one of these functions is only used on specific
2134 Reported by Paul Eggert.
2136 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
2138 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
2139 is causing more trouble than it's curing.
2140 * lib/regex_internal.h (__mempcpy): Remove.
2141 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
2142 (and make the code a tad smaller to boot).
2143 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
2145 2007-02-02 Jim Meyering <jim@meyering.net>
2147 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
2148 section, not in the Makefile.am: one.
2150 2007-02-02 Eric Blake <ebb9@byu.net>
2152 * lib/strchrnul.c: Always include config.h first.
2154 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
2155 gnulib strstr is not necessary here.
2157 2007-02-02 Simon Josefsson <simon@josefsson.org>
2159 * m4/socklen.m4: Fix typo.
2161 2007-02-02 Eric Blake <ebb9@byu.net>
2163 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
2164 * modules/netinet_in (Makefile.am): Likewise.
2166 2007-02-01 Bruno Haible <bruno@clisp.org>
2168 * lib/string_.h (GL_LINK_WARNING): New macro.
2169 (strcasecmp, strstr, strcasestr): If provided by the system,
2170 conditionally define as a macro that leads to a warning instead of to
2172 (strncasecmp): Conditionally define as a macro that leads to a warning.
2174 2007-02-01 Karl Berry <karl@gnu.org>
2176 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
2178 2007-02-01 Bruno Haible <bruno@clisp.org>
2180 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
2183 2007-02-01 Eric Blake <ebb9@byu.net>
2185 * modules/regex (Depends-on): Revert dependence on mempcpy.
2186 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
2187 module's definition of mempcpy.
2188 Reported by Paul Eggert.
2190 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
2192 * lib/string_.h: If the gnulib module XYZ is not present, undefine
2193 the symbol XYZ before redefining it. This fixes a problem with
2194 programs that don't use XYZ, when compiled on systems that define
2195 XYZ to something else.
2197 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
2199 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
2200 occurs when "mkdir -m foo" creates a setgid directory that is (1)
2201 writeable to group or other and (2) is intended to have a special
2202 mode bit that is set or cleared. In such a case, the directory
2203 should be neither group- nor other-writeable until the special
2204 mode bits are right.
2206 2007-01-31 Eric Blake <ebb9@byu.net>
2208 * modules/mountlist (Depends-on): Add strstr.
2210 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
2212 * modules/string (Makefile.am): Remove redundant replacement.
2213 * modules/regex (Depends-on): Add mempcpy.
2215 2007-01-31 Bruno Haible <bruno@clisp.org>
2217 New module description field 'Link'.
2218 * gnulib-tool (func_usage): Document --extract-link-directive.
2219 (sed_extract_prog): Recognize 'Link' directive.
2220 (func_get_link_directive): New function.
2221 (func_import): Show summary of link directives.
2222 Handle --extract-link-directive option.
2223 * modules/acl (Link): New section.
2224 * modules/clock-time (Link): New section.
2225 * modules/euidaccess (Link): New section.
2226 * modules/gettext (Link): New section.
2227 * modules/iconv (Link): New section.
2228 * modules/lock (Link): New section.
2229 * modules/nanosleep (Link): New section.
2230 * modules/readline (Link): New section.
2232 2007-01-27 Bruno Haible <bruno@clisp.org>
2234 Enforce the use of gnulib modules for unportable <string.h> functions.
2235 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
2236 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
2237 (gl_HEADER_STRING_H_BODY): Require it.
2238 * lib/string_.h: If the gnulib module XYZ is not present, redefine
2239 the symbol XYZ to one that gives a link error.
2240 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
2241 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
2242 * modules/mempcpy (configure.ac): Likewise.
2243 * modules/memrchr (configure.ac): Likewise.
2244 * modules/stpcpy (configure.ac): Likewise.
2245 * modules/stpncpy (configure.ac): Likewise.
2246 * modules/strcase (configure.ac): Likewise.
2247 * modules/strcasestr (configure.ac): Likewise.
2248 * modules/strchrnul (configure.ac): Likewise.
2249 * modules/strdup (configure.ac): Likewise.
2250 * modules/strndup (configure.ac): Likewise.
2251 * modules/strnlen (configure.ac): Likewise.
2252 * modules/strpbrk (configure.ac): Likewise.
2253 * modules/strsep (configure.ac): Likewise.
2254 * modules/strstr (configure.ac): Likewise.
2255 * modules/strtok_r (configure.ac): Likewise.
2257 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
2259 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
2261 2007-01-30 Jim Meyering <jim@meyering.net>
2263 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
2265 2007-01-29 Bruno Haible <bruno@clisp.org>
2267 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
2268 * lib/execute.c: Likewise.
2269 * lib/pipe.c: Likewise.
2270 * lib/printf-args.h: Likewise.
2271 * lib/printf-args.c: Likewise.
2272 * lib/printf-parse.c: Likewise.
2273 * lib/vasnprintf.c: Likewise.
2275 2007-01-29 Eric Blake <ebb9@byu.net>
2277 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
2280 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
2282 * lib/strptime.h (strptime): Use 'restrict' for args where
2283 POSIX requires this.
2284 * lib/strptime.c (strptime): Likewise.
2285 Change license notice from LGPL to GPL, since gnulib-tool will
2286 change this as needed.
2287 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
2289 Include "strptime.h" first, to check interface.
2290 Do not #undef _LIBC and _NL_CURRENT.
2291 Do not include <stdlib.h>; no longer needed.
2292 Include "time_r.h" and declare ptime_locale_status
2293 only if _LIBC is not defined.
2294 (__P): Remove unused macro.
2295 (match_string): Bring back glibc version, but use it only if _LIBC
2297 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
2298 Remove unnecessary assertion and abort() call.
2299 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
2300 * m4/strptime.m4: Fix serial number comment.
2301 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
2302 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
2303 (Depends-on): Add time_r.
2305 2007-01-29 Bruno Haible <bruno@clisp.org>
2307 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
2309 * modules/strptime (Depends-on): Add stdbool.
2310 * lib/strptime.h: Include <time.h> always. Add comments.
2312 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
2314 * modules/strptime: New file.
2315 * lib/strptime.h: New file.
2316 * lib/strptime.c: New file.
2317 * m4/strptime.m4: New file.
2319 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
2321 * MODULES.html.sh: New module mpsort.
2322 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
2324 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
2325 a circularity problem with HP-UX ia64 reported by Bob Proulx in
2326 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
2328 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
2330 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
2332 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
2333 the parameter matches the prototype.
2335 2007-01-28 Jim Meyering <jim@meyering.net>
2337 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
2338 sys/time.h here, reverting that part of the previous patch:
2339 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
2341 2007-01-28 Bruno Haible <bruno@clisp.org>
2343 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
2344 value of $(SYS_TIME_H).
2345 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
2346 remove it conditionally, too. [added by Jim Meyering]
2347 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
2348 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
2349 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
2350 GETTIMEOFDAY_REPLACEMENT to 1.
2352 2007-01-28 Bruno Haible <bruno@clisp.org>
2354 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
2355 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
2356 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
2357 Set UNISTD_H instead of UNISTD_H2.
2358 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
2360 2007-01-28 Bruno Haible <bruno@clisp.org>
2362 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
2363 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
2365 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2367 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
2368 (func_create_testdir): Ensure C locale for `grep' and `tr'
2370 (func_create_megatestdir): Avoid one `grep'. Fix bug in
2371 ACLOCAL_AMFLAGS parsing state machine.
2373 2007-01-27 Bruno Haible <bruno@clisp.org>
2375 * modules/unistr/base: Update.
2377 2007-01-27 Bruno Haible <bruno@clisp.org>
2379 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
2380 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
2381 * modules/unistr/u32-mbtouc-unsafe: Renamed from
2382 modules/unistr/u32-mbtouc.
2383 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
2384 * lib/unistr.h: Update.
2385 * lib/linebreak.c: Update.
2386 * modules/unistr/u32-mbtouc: Renamed from
2387 modules/unistr/u32-mbtouc-safe.
2388 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
2389 * lib/unistr.h: Update.
2390 * lib/unistr/u32-to-u8.c: Update.
2391 * lib/unistr/u32-to-u16.c: Update.
2393 2007-01-27 Bruno Haible <bruno@clisp.org>
2395 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
2396 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
2397 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
2398 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
2399 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
2400 * modules/unistr/u16-mbtouc-unsafe: Renamed from
2401 modules/unistr/u16-mbtouc.
2402 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
2403 * lib/unistr.h: Update.
2404 * lib/linebreak.c: Update.
2405 * modules/linebreak: Update.
2406 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
2407 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
2408 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
2409 * modules/unistr/u16-mbtouc: Renamed from
2410 modules/unistr/u16-mbtouc-safe.
2411 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
2412 * lib/unistr.h: Update.
2413 * lib/unistr/u16-to-u8.c: Update.
2414 * modules/unistr/u16-to-u8: Update.
2415 * lib/unistr/u16-to-u32.c: Update.
2416 * modules/unistr/u16-to-u32: Update.
2418 2007-01-27 Bruno Haible <bruno@clisp.org>
2420 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
2421 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
2422 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
2423 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
2424 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
2425 * modules/unistr/u8-mbtouc-unsafe: Renamed from
2426 modules/unistr/u8-mbtouc.
2427 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
2428 * lib/unistr.h: Update.
2429 * lib/striconveh.c: Update.
2430 * modules/striconveh: Update.
2431 * lib/linebreak.c: Update.
2432 * modules/linebreak: Update.
2433 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
2434 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
2435 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
2436 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
2437 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
2438 * lib/unistr.h: Update.
2439 * lib/striconveh.c: Update.
2440 * modules/striconveh: Update.
2441 * lib/unistr/u8-to-u16.c: Update.
2442 * modules/unistr/u8-to-u16: Update.
2443 * lib/unistr/u8-to-u32.c: Update.
2444 * modules/unistr/u8-to-u32: Update.
2446 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2449 * lib/argz.c: Do not include strings.h nor memory.h, include
2450 string.h unconditionally. Patch by Simon Josefsson.
2452 2007-01-27 Bruno Haible <bruno@clisp.org>
2454 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
2455 from gl_HEADER_STRING_H_BODY.
2456 (gl_HEADER_STRING_H_BODY): Require it.
2457 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
2458 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
2459 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
2460 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
2461 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2462 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
2463 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2464 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
2465 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
2466 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
2467 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
2468 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
2469 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
2470 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2471 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
2473 2007-01-27 Bruno Haible <bruno@clisp.org>
2475 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
2476 check_PROGRAMS into noinst_PROGRAMS.
2477 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
2478 check_PROGRAMS in this case.
2479 (func_import): Set for_test to false.
2480 (func_create_testdir): Set for_test to true.
2482 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2483 Bruno Haible <bruno@clisp.org>
2485 * modules/strcasestr (Files): Remove lib/strcasestr.h.
2486 (Depends-on): Add string.
2487 (Includes): Use <string.h> instead of strcasestr.h.
2488 * modules/string (Makefile.am): Also substitute the value of
2490 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
2491 assume strcasestr is declared in <string.h> not <strings.h>. Also
2492 set REPLACE_STRCASESTR.
2493 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
2495 * lib/strcasestr.h: Remove file.
2496 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
2497 * lib/string_.h (strcasestr): New declaration.
2499 2007-01-27 Bruno Haible <bruno@clisp.org>
2501 * lib/string_.h: Use 'extern'.
2503 2007-01-27 Jim Meyering <jim@meyering.net>
2505 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
2506 of set-but-not-used local, "q".
2508 * lib/mempcpy.c: Include <config.h> before <string.h>.
2509 This fixes a compilation error on HP-UX, due to the system's
2510 "restrict"-using mempcpy prototype.
2512 2007-01-26 Bruno Haible <bruno@clisp.org>
2515 * lib/javacomp.c: Include c-strstr.h.
2516 (is_envjavac_gcj): Use c_strstr instead of strstr.
2517 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
2519 2007-01-26 Bruno Haible <bruno@clisp.org>
2521 * MODULES.html.sh (Unicode string functions): Add the new modules.
2523 * modules/uniconv/u32-strconv-to-locale: New file.
2524 * lib/uniconv/u32-strconv-to-locale.c: New file.
2526 * modules/uniconv/u16-strconv-to-locale: New file.
2527 * lib/uniconv/u16-strconv-to-locale.c: New file.
2529 * modules/uniconv/u8-strconv-to-locale: New file.
2530 * lib/uniconv/u8-strconv-to-locale.c: New file.
2532 * modules/uniconv/u32-strconv-from-locale: New file.
2533 * lib/uniconv/u32-strconv-from-locale.c: New file.
2535 * modules/uniconv/u16-strconv-from-locale: New file.
2536 * lib/uniconv/u16-strconv-from-locale.c: New file.
2538 * modules/uniconv/u8-strconv-from-locale: New file.
2539 * lib/uniconv/u8-strconv-from-locale.c: New file.
2541 * modules/uniconv/u32-strconv-to-enc: New file.
2542 * lib/uniconv/u32-strconv-to-enc.c: New file.
2543 * modules/uniconv/u32-strconv-to-enc-tests: New file.
2544 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
2546 * modules/uniconv/u16-strconv-to-enc: New file.
2547 * lib/uniconv/u16-strconv-to-enc.c: New file.
2548 * lib/uniconv/u-strconv-to-enc.h: New file.
2549 * modules/uniconv/u16-strconv-to-enc-tests: New file.
2550 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
2552 * modules/uniconv/u8-strconv-to-enc: New file.
2553 * lib/uniconv/u8-strconv-to-enc.c: New file.
2554 * modules/uniconv/u8-strconv-to-enc-tests: New file.
2555 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
2557 * modules/uniconv/u32-strconv-from-enc: New file.
2558 * lib/uniconv/u32-strconv-from-enc.c: New file.
2559 * modules/uniconv/u32-strconv-from-enc-tests: New file.
2560 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
2562 * modules/uniconv/u16-strconv-from-enc: New file.
2563 * lib/uniconv/u16-strconv-from-enc.c: New file.
2564 * modules/uniconv/u16-strconv-from-enc-tests: New file.
2565 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
2567 * modules/uniconv/u8-strconv-from-enc: New file.
2568 * lib/uniconv/u8-strconv-from-enc.c: New file.
2569 * lib/uniconv/u-strconv-from-enc.h: New file.
2570 * modules/uniconv/u8-strconv-from-enc-tests: New file.
2571 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
2573 * modules/uniconv/u32-conv-from-enc: New file.
2574 * lib/uniconv/u32-conv-from-enc.c: New file.
2575 * modules/uniconv/u32-conv-from-enc-tests: New file.
2576 * tests/uniconv/test-u32-conv-from-enc.c: New file.
2578 * modules/uniconv/u16-conv-from-enc: New file.
2579 * lib/uniconv/u16-conv-from-enc.c: New file.
2580 * lib/uniconv/u-conv-from-enc.h: New file.
2581 * modules/uniconv/u16-conv-from-enc-tests: New file.
2582 * tests/uniconv/test-u16-conv-from-enc.c: New file.
2584 * modules/uniconv/u8-conv-from-enc: New file.
2585 * lib/uniconv/u8-conv-from-enc.c: New file.
2586 * modules/uniconv/u8-conv-from-enc-tests: New file.
2587 * tests/uniconv/test-u8-conv-from-enc.c: New file.
2589 * modules/uniconv/base: New file.
2590 * lib/uniconv.h: New file.
2592 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
2594 * doc/gnulib-tool.texi (Initial import): Update to match current
2595 behavior with strdup module.
2596 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
2597 * lib/memmem.h: Remove; all uses removed. This is now done
2599 * lib/mempcpy.h: Likewise.
2600 * lib/memrchr.h: Likewise.
2601 * lib/stpcpy.h: Likewise.
2602 * lib/stpncpy.h: Likewise.
2603 * lib/strcase.h: Likewise.
2604 * lib/strchrnul.h: Likewise.
2605 * lib/strdup.h: Likewise.
2606 * lib/strndup.h: Likewise.
2607 * lib/strnlen.h: Likewise.
2608 * lib/strpbrk.h: Likewise.
2609 * lib/strsep.h: Likewise.
2610 * lib/strstr.h: Likewise.
2611 * lib/strtok_r.h: Likewise.
2612 * lib/string_.h: New file.
2613 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
2614 Rely on <string.h> instead.
2615 * lib/canon-host.c: Likewise.
2616 * lib/chdir-long.c: Likewise.
2617 * lib/concatpath.c: Likewise.
2618 * lib/exclude.c: Likewise.
2619 * lib/fchdir.c: Likewise.
2620 * lib/getaddrinfo.c: Likewise.
2621 * lib/getcwd.c: Likewise.
2622 * lib/getsubopt.c: Likewise.
2623 * lib/glob.c: Likewise.
2624 * lib/hard-locale.c: Likewise.
2625 * lib/iconvme.c: Likewise.
2626 * lib/javacomp.c: Likewise.
2627 * lib/mempcpy.c: Likewise.
2628 * lib/memrchr.c: Likewise.
2629 * lib/regex_internal.h: Likewise.
2630 * lib/stpncpy.c: Likewise.
2631 * lib/strcasecmp.c: Likewise.
2632 * lib/strchrnul.c: Likewise.
2633 * lib/strdup.c: Likewise.
2634 * lib/striconv.c: Likewise.
2635 * lib/striconveh.c: Likewise.
2636 * lib/striconveha.c: Likewise.
2637 * lib/strncasecmp.c: Likewise.
2638 * lib/strndup.c: Likewise.
2639 * lib/strnlen.c: Likewise.
2640 * lib/strsep.c: Likewise.
2641 * lib/strstr.c: Likewise.
2642 * lib/strtok_r.c: Likewise.
2643 * lib/userspec.c: Likewise.
2644 * lib/w32spawn.h: Likewise.
2645 * lib/xstrndup.c: Likewise.
2646 * lib/mountlist.c (strstr): Remove decl.
2647 * m4/string_h.m4: New file.
2648 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
2649 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
2650 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
2651 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
2652 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
2653 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
2654 Set REPLACE_STRCASECMP if necessary.
2655 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
2656 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
2657 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
2658 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
2659 HAVE_DECL_STRDUP if necessary.
2660 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
2661 since gl_FUNC_STRNDUP does that now.
2662 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
2663 Check for decl here...
2664 (gl_PREREQ_STRNLEN): ... not here.
2665 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
2666 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
2667 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
2668 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
2670 * modules/string: New file.
2671 * modules/memmem (Files): Remove special-purpose include file.
2672 (Depends-on): Add string.
2673 (Include): Include <string.h>, not the removed file.
2674 * modules/mempcpy: Likewise.
2675 * modules/memrchr: Likewise.
2676 * modules/stpcpy: Likewise.
2677 * modules/stpncpy: Likewise.
2678 * modules/strcase: Likewise.
2679 * modules/strchrnul: Likewise.
2680 * modules/strdup: Likewise.
2681 * modules/strndup: Likewise.
2682 * modules/strnlen: Likewise.
2683 * modules/strpbrk: Likewise.
2684 * modules/strsep: Likewise.
2685 * modules/strstr: Likewise.
2686 * modules/strtok_r: Likewise.
2687 * tests/test-dirname.c: Don't include "strdup.h", since
2688 <string.h> now suffices.
2689 * tests/test-memmem.c: Don't include "memmem.h", since
2690 <string.h> now suffices.
2692 2007-01-25 Bruno Haible <bruno@clisp.org>
2694 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
2697 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
2698 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
2699 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
2700 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
2702 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
2703 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
2704 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
2705 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
2706 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
2707 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
2709 2007-01-24 Bruno Haible <bruno@clisp.org>
2711 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
2712 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
2713 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
2714 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
2716 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
2717 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
2718 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
2719 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
2720 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
2721 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
2723 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
2725 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
2726 Reported by Ralf Wildenhues.
2728 2007-01-24 Bruno Haible <bruno@clisp.org>
2730 Drop AC_REQUIRE calls that are redundant with the module dependencies.
2731 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
2733 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
2734 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
2735 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
2737 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
2739 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
2740 Don't use 'exit'; just return from 'main'.
2741 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
2743 * lib/fnmatch_.h: Readjust white space and comments to match
2744 glibc, to avoid spurious diffs.
2746 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
2748 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
2749 2004-12-01 change by Jakub Jelinek, since this code won't compile
2750 if !LIBC. Problem reported by Bob Proulx.
2752 2007-01-23 Bruno Haible <bruno@clisp.org>
2754 * lib/striconveh.c: Include c-strcaseeq.h.
2755 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
2756 * modules/striconveh (Depends-on): Add c-strcaseeq.
2758 2007-01-23 Bruno Haible <bruno@clisp.org>
2760 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
2762 * modules/c-strcaseeq: New file.
2763 * lib/c-strcaseeq.h: New file.
2765 * modules/streq: New file.
2766 * lib/streq.h: New file.
2768 2007-01-23 Bruno Haible <bruno@clisp.org>
2770 * modules/striconveha-tests: New file.
2771 * tests/test-striconveha.c: New file.
2773 * lib/striconveha.h: Include <stdbool.h>.
2774 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
2775 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
2776 (mem_iconveha_notranslit): Renamed from mem_iconveha.
2777 (mem_iconveha): New function.
2778 (str_iconveha_notranslit): Renamed from str_iconveha.
2779 (str_iconveha): New function.
2780 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
2783 2007-01-23 Bruno Haible <bruno@clisp.org>
2785 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
2786 encodings without forgiving before trying any encoding with handler.
2787 (str_iconveha): Try all encodings without forgiving before trying any
2788 encoding with handler.
2790 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
2792 Import the following changes from libc.
2794 2005-10-14 Ulrich Drepper <drepper@redhat.com>
2796 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
2798 2004-12-01 Jakub Jelinek <jakub@redhat.com>
2800 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
2801 normal_bracket label.
2803 2004-09-01 Jakub Jelinek <jakub@redhat.com>
2806 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
2807 to normal_bracket after fetching the next character.
2809 2007-01-22 Bruno Haible <bruno@clisp.org>
2811 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
2813 * lib/striconveh.c (iconv_carefully_1): New function.
2814 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
2816 (str_cd_iconveh): Update.
2817 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
2818 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
2819 * tests/test-striconveh.c (MAGIC): New macro.
2820 (new_offsets): New function.
2821 (main): Test call with and without offsets.
2823 2007-01-22 Bruno Haible <bruno@clisp.org>
2825 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
2826 * modules/sys_select (Makefile.am): Likewise.
2827 * modules/sys_socket (Makefile.am): Likewise.
2828 * modules/sys_time (Makefile.am): Likewise.
2830 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
2832 * modules/gettimeofday (License): Change from GPL to LGPL, since
2833 gettimeofday is a library function.
2835 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2837 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
2839 2007-01-21 Bruno Haible <bruno@clisp.org>
2841 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
2843 2007-01-21 Bruno Haible <bruno@clisp.org>
2845 * modules/striconveha: New file.
2846 * lib/striconveha.h: New file.
2847 * lib/striconveha.c: New file.
2848 * MODULES.html.sh (Internationalization functions): Add striconveha.
2849 * lib/striconv.c (str_iconv): Optimize the case of an empty input
2851 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
2853 2007-01-21 Bruno Haible <bruno@clisp.org>
2855 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
2856 * lib/striconveh.c (str_iconveh): Likewise.
2858 2007-01-21 Bruno Haible <bruno@clisp.org>
2860 * lib/striconveh.h (mem_iconveh): New declaration.
2861 * lib/striconveh.c (mem_iconveh): New function.
2862 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
2864 2007-01-21 Bruno Haible <bruno@clisp.org>
2866 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
2868 * lib/striconveh.h (mem_cd_iconveh): Change specification.
2869 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
2870 original result buffer.
2871 (str_cd_iconveh): Update.
2872 * tests/test-striconveh.c (main): Update.
2874 * lib/striconv.h (mem_cd_iconv): Change specification.
2875 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
2877 (str_cd_iconv): Update.
2878 * tests/test-striconv.c (main): Update.
2880 2007-01-21 Bruno Haible <bruno@clisp.org>
2882 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
2884 2007-01-20 Jim Meyering <jim@meyering.net>
2886 * lib/userspec.c (parse_with_separator): If a user or group string
2887 starts with "+", skip the corresponding name-to-ID look-up, since
2888 such a look-up must fail: user and group names may not include "+".
2890 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
2892 * lib/poll.c: Include sys/time.h and time.h unconditionally,
2893 since we now assume the sys_time module.
2894 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
2895 check for sys/time.h; no longer needed.
2896 * modules/poll (Depends-on): Depend on sys_time.
2898 2007-01-18 Bruno Haible <bruno@clisp.org>
2900 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
2901 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
2903 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
2906 * tests/test-gettimeofday.c: Include <time.h>.
2907 (dummy): Remove variable.
2909 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
2910 gl_HEADER_SYS_TIME_H.
2911 (gl_HEADER_SYS_TIME_H): New macro.
2913 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
2914 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2915 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
2916 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
2917 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2918 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
2919 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
2920 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2921 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
2922 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
2923 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2925 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
2926 last change; it caused a compilation error when cross-compiling to
2929 2007-01-18 Jim Meyering <jim@meyering.net>
2931 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
2932 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
2933 than the race-prone "test -d sys || mkdir sys".
2934 (configure.ac): Use AC_PROG_MKDIR_P.
2935 * modules/sys_select: Likewise.
2936 * modules/sys_socket: Likewise.
2937 * modules/sys_time: Likewise.
2939 2007-01-18 Eric Blake <ebb9@byu.net>
2941 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
2942 replace gettimeofday.
2943 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
2944 name, to avoid infinite recursion.
2946 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
2948 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
2950 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
2951 assume timespec.h defines struct timeval.
2952 * lib/settime.c: Likewise.
2953 * lib/utimens.c: Likewise.
2954 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
2955 since we now assume the gettimeofday module.
2956 * lib/tempname.c (__gen_tempname): Likewise.
2957 * lib/gettimeofday.h: Remove.
2958 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
2959 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
2960 Include <time.h>, for 'time()'.
2961 (localtime_buffer_addr): Also use this workaround if
2962 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
2963 to simplify the uses. All uses changed.
2964 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
2965 that #undef is inside {}, and 'const' follows type name consistently.
2966 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
2967 (gettimeofday): Do not use the maximum possible value for
2968 tv->tv_usec, since that might break usages other than ls.c.
2969 Instead, we'll leave ls.c alone. This undoes today's patch
2970 by Bruno. Add a compile-time warning for 1s-clock resolution;
2971 we've never observed the problem but might as well keep the
2973 * lib/nanosleep.c: Include timespec.h first, for interface check.
2974 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
2975 now assume the sys_time module.
2976 * lib/tempname.c: Likewise.
2977 * lib/timespec.h: Likewise.
2978 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
2980 * lib/strftime.c: Likewise.
2981 * lib/timespec.h: Likewise.
2982 * lib/posixtm.c: Include posixtm.h first, for interface check.
2983 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
2984 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
2985 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
2986 * lib/sys_time_.h: New file.
2987 * lib/timespec.h (struct timespec): Use long int, not long.
2988 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
2989 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
2990 Remove obsolescent call to AC_HEADER_TIME.
2991 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
2992 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2993 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
2994 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
2996 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
2997 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
2998 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
2999 into the sys_time module. Check for gettimeofday just once.
3000 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
3001 for gettimeofday signature to just check the signature. Merely
3002 compile it, since linking doesn't test signature. Improve test for
3003 whether gettimeofday.o is actually needed.
3004 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
3005 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
3006 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
3007 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
3008 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
3009 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
3010 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
3011 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
3012 than worrying about sys/time.h.
3013 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
3014 Don't bother worrying about TIME_WITH_SYS_TIME.
3015 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
3016 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
3017 * m4/sys_time_h.m4: New file.
3018 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
3019 Don't include sys/time.h. Return from main rather than exiting.
3020 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
3022 * modules/gethrxtime (Depends-on): Add sys_time.
3023 * modules/gettime (Depends-on): Likewise.
3024 * modules/gettimeofday (Depends-on): Likewise.
3025 * modules/nanosleep (Depends-on): Likewise.
3026 * modules/settime (Depends-on): Likewise.
3027 * modules/tempname (Depends-on): Likewise.
3028 * modules/utimens (Depends-on): Likewise.
3029 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
3030 (Include:) Change back to <sys/time.h>.
3031 (Maintainer:) Add self.
3032 * modules/sys_time: New file.
3033 * modules/tempname (Depends-on): Add gettimeofday.
3034 * tests/test-gettimeofday.c: Include <sys/time.h>
3035 rather than gettimeofday.h.
3037 2007-01-17 Bruno Haible <bruno@clisp.org>
3039 * gnulib-tool (func_get_license): Revert last patch. Instead, let
3040 the license default to GPL.
3041 (func_create_testdir): Don't complain if a module is LGPL and its
3042 tests module depends on GPLed modules.
3044 2007-01-17 Bruno Haible <bruno@clisp.org>
3046 * lib/gettimeofday.c (gettimeofday): Add code for the case
3047 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
3048 maximum possible value for tv->tv_usec, rather than the minimum one.
3050 2005-10-08 Martin Lambers <marlam@marlam.de>
3051 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
3052 2007-01-16 Bruno Haible <bruno@clisp.org>
3054 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
3055 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
3056 gl_FUNC_GETTIMEOFDAY.
3057 (Include): Add gettimeofday.h.
3058 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
3059 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
3060 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
3061 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
3062 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
3063 * lib/gettimeofday.h: New file.
3064 * lib/gettimeofday.c: Include <sys/timeb.h>.
3065 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
3066 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
3067 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
3068 fall back on time().
3070 * tests/test-gettimeofday.c: New file.
3071 * modules/gettimeofday-tests: New file.
3073 2007-01-16 Eric Blake <ebb9@byu.net>
3075 * modules/fnmatch (Depends-on): Depend on wchar.
3076 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
3077 * m4/fnmatch.m4: Likewise.
3078 * modules/mbchar (Makefile.am): Assume <wchar.h>.
3079 * m4/mbchar.m4: Likewise.
3080 * modules/mbswidth (Depends-on): Depend on wchar.
3081 * lib/mbswidth.c: Assume <wchar.h>.
3082 * m4/mbswidth.m4: Likewise.
3083 * modules/quotearg (Depends-on): Depend on wchar.
3084 * lib/quotearg.c: Assume <wchar.h>.
3085 * m4/quotearg.m4: Likewise.
3086 * modules/regex (Depends-on): Depend on wchar.
3087 * lib/regex_internal.h: Assume <wchar.h>.
3088 * m4/regex.m4: Likewise.
3089 * modules/stdint (Depends-on): Depend on wchar.
3090 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
3091 * m4/stdint.m4: Likewise.
3092 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
3093 * modules/strftime (Depends-on): Depend on wchar.
3094 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
3095 * modules/strtol (Depends-on): Depend on wchar.
3096 * lib/strtol.c: Assume <wchar.h>.
3097 * modules/wcwidth (Depends-on): Depend on wchar.
3098 * lib/wcwidth.h: Assume <wchar.h>.
3099 * m4/wcwidth.m4: Likewise.
3101 2007-01-16 Bruno Haible <bruno@clisp.org>
3103 * modules/csharpexec-script: New, created from...
3104 * modules/csharpexec: ... this.
3106 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
3108 * modules/javaexec-script: New, created from...
3109 * modules/javaexec: ... this.
3111 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3113 * modules/poll (Dependencies): Add sys_select.
3115 2007-01-15 Jim Meyering <jim@meyering.net>
3117 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
3118 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
3119 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
3120 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
3122 2007-01-15 Bruno Haible <bruno@clisp.org>
3124 * modules/striconveh: New file.
3125 * lib/striconveh.h: New file.
3126 * lib/striconveh.c: New file.
3127 * MODULES.html.sh (Internationalization functions): Add striconveh.
3129 * modules/striconveh-tests: New file.
3130 * tests/test-striconveh.c: New file.
3132 2007-01-15 Bruno Haible <bruno@clisp.org>
3134 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
3135 not from GNU libiconv or GNU libc.
3137 2007-01-15 Bruno Haible <bruno@clisp.org>
3139 * doc/gnulib-intro.texi (Copyright): Explain the different license
3140 terms for module descriptions, autoconf macros, tests, documentation.
3142 2007-01-14 Bruno Haible <bruno@clisp.org>
3144 * modules/striconv-tests: New file.
3145 * tests/test-striconv.c: New file.
3147 2007-01-14 Bruno Haible <bruno@clisp.org>
3149 * modules/iconv-tests: New file.
3150 * tests/test-iconv.c: New file.
3152 2007-01-14 Bruno Haible <bruno@clisp.org>
3154 * gnulib-tool (func_get_license): For test modules, use the license of
3157 2007-01-14 Bruno Haible <bruno@clisp.org>
3159 * modules/iconv (Include): Clarify that <iconv.h> can only be included
3160 if iconv is found to exist.
3162 2007-01-14 Bruno Haible <bruno@clisp.org>
3164 * modules/c-ctype-tests: New file.
3165 * tests/test-c-ctype.c: New file.
3167 2007-01-14 Bruno Haible <bruno@clisp.org>
3169 * modules/binary-io-tests: New file.
3170 * tests/test-binary-io.sh: New file.
3171 * tests/test-binary-io.c: New file.
3173 2007-01-14 Bruno Haible <bruno@clisp.org>
3175 * modules/array-oset-tests: New file.
3176 * tests/test-array_oset.c: New file.
3178 2007-01-14 Bruno Haible <bruno@clisp.org>
3180 * modules/array-list-tests: New file.
3181 * tests/test-array_list.c: New file.
3183 2007-01-14 Bruno Haible <bruno@clisp.org>
3185 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
3187 Reported by Simon Josefsson in
3188 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
3190 2007-01-14 Bruno Haible <bruno@clisp.org>
3192 * modules/allocsa-tests: New file.
3193 * tests/test-allocsa.c: New file.
3195 2007-01-14 Bruno Haible <bruno@clisp.org>
3197 * modules/fchdir (Depends-on): Add absolute-header.
3198 * modules/unistd (Depends-on): Likewise.
3200 2006-12-30 Bruno Haible <bruno@clisp.org>
3202 * modules/fchdir: New file.
3203 * modules/unistd (Files): Add lib/unistd_.h.
3204 (Makefile.am): Generate unistd.h from unistd_.h.
3205 * lib/fchdir.c: New file.
3206 * lib/dirent_.h: New file.
3207 * lib/unistd_.h: New file.
3208 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
3209 * m4/fchdir.m4: New file.
3210 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
3211 (gl_HEADER_UNISTD): Invoke it.
3212 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
3214 * lib/backupfile.c (opendir, closedir): Undefine.
3215 * lib/chown.c (open, close): Undefine.
3216 * lib/clean-temp.c (open, close): Undefine.
3217 * lib/copy-file.c (open, close): Undefine.
3218 * lib/execute.c (open, close): Undefine.
3219 * lib/fsusage.c (open, close): Undefine.
3220 * lib/gc-gnulib.c (open, close): Undefine.
3221 * lib/getcwd.c (opendir, closedir): Undefine.
3222 * lib/glob.c (opendir, closedir): Undefine.
3223 * lib/javacomp.c (open, close): Undefine.
3224 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
3225 * lib/openat-proc.c (open, close): Undefine.
3226 * lib/pagealign_alloc.c (open, close): Undefine.
3227 * lib/pipe.c (open, close): Undefine.
3228 * lib/progreloc.c (open, close): Undefine.
3229 * lib/savedir.c (opendir, closedir): Undefine.
3230 * lib/utime.c (open, close): Undefine.
3231 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
3233 2007-01-10 Bruno Haible <bruno@clisp.org>
3235 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
3237 2007-01-12 Eric Blake <ebb9@byu.net>
3239 Provide a robust <wchar.h>. Further simplifications are now
3240 possible in other modules, but not included here.
3241 * modules/wchar: New module.
3242 * m4/wchar.m4: New file.
3243 * lib/wchar_.h: Likewise.
3244 * modules/mbchar (Depends-on): Depend on wchar, as the first use
3246 * MODULES.html.sh (Extended multibyte and wide character utilities):
3249 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
3251 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
3252 to a reasonable default for memory allocation.
3253 (xreadlink): Don't allocate a huge buffer, to work around a buggy
3254 file system that reports garbage st_size values for symlinks.
3255 Problem reported by Liyang Hu.
3257 2007-01-11 Simon Josefsson <simon@josefsson.org>
3259 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
3260 Emacs .#* auto-save files).
3262 2007-01-11 Bruno Haible <bruno@clisp.org>
3264 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
3267 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
3269 Use @...@ consistently in lib/wctype_.h.
3270 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
3271 on it being set to 1 or 0.
3272 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
3273 go back to AC_SUBSTing it.
3274 * modules/wctype (Makefile.am): Undo previous change.
3276 2007-01-10 Eric Blake <ebb9@byu.net>
3278 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
3279 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
3280 * modules/wctype (Makefile.am): Likewise.
3281 Reported by Chris McGuire.
3283 2007-01-10 Jim Meyering <jim@meyering.net>
3285 fts.c: a small readability/maintainability improvement
3286 * lib/fts.c (fts_read): Make this code slightly more readable and
3287 maintainable by hoisting the "sp->fts_cur = p" assignments to
3288 immediately follow the statements that set P. Derived from
3289 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
3291 2007-01-10 Eric Blake <ebb9@byu.net>
3293 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
3294 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
3295 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3296 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
3297 Reported by Chris McGuire.
3299 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3301 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
3304 2007-01-09 Bruno Haible <bruno@clisp.org>
3306 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
3307 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
3309 (func_module): Use them.
3311 2007-01-09 Bruno Haible <bruno@clisp.org>
3313 * modules/unistr/base: New file.
3314 * lib/unistr.h: New file.
3316 * modules/unistr/u8-to-u16: New file.
3317 * lib/unistr/u8-to-u16.c: New file.
3319 * modules/unistr/u8-to-u32: New file.
3320 * lib/unistr/u8-to-u32.c: New file.
3322 * modules/unistr/u16-to-u8: New file.
3323 * lib/unistr/u16-to-u8.c: New file.
3325 * modules/unistr/u16-to-u32: New file.
3326 * lib/unistr/u16-to-u32.c: New file.
3328 * modules/unistr/u32-to-u8: New file.
3329 * lib/unistr/u32-to-u8.c: New file.
3331 * modules/unistr/u32-to-u16: New file.
3332 * lib/unistr/u32-to-u16.c: New file.
3334 * modules/unistr/u8-check: New file.
3335 * modules/unistr/u16-check: New file.
3336 * modules/unistr/u32-check: New file.
3337 * lib/unistr/u8-check.c: New file.
3338 * lib/unistr/u16-check.c: New file.
3339 * lib/unistr/u32-check.c: New file.
3341 * modules/unistr/u8-chr: New file.
3342 * modules/unistr/u16-chr: New file.
3343 * modules/unistr/u32-chr: New file.
3344 * lib/unistr/u8-chr.c: New file.
3345 * lib/unistr/u16-chr.c: New file.
3346 * lib/unistr/u32-chr.c: New file.
3348 * modules/unistr/u8-cmp: New file.
3349 * modules/unistr/u16-cmp: New file.
3350 * modules/unistr/u32-cmp: New file.
3351 * lib/unistr/u8-cmp.c: New file.
3352 * lib/unistr/u16-cmp.c: New file.
3353 * lib/unistr/u32-cmp.c: New file.
3355 * modules/unistr/u8-cpy: New file.
3356 * modules/unistr/u16-cpy: New file.
3357 * modules/unistr/u32-cpy: New file.
3358 * lib/unistr/u8-cpy.c: New file.
3359 * lib/unistr/u16-cpy.c: New file.
3360 * lib/unistr/u32-cpy.c: New file.
3361 * lib/unistr/u-cpy.h: New file.
3363 * modules/unistr/u8-cpy-alloc: New file.
3364 * modules/unistr/u16-cpy-alloc: New file.
3365 * modules/unistr/u32-cpy-alloc: New file.
3366 * lib/unistr/u8-cpy-alloc.c: New file.
3367 * lib/unistr/u16-cpy-alloc.c: New file.
3368 * lib/unistr/u32-cpy-alloc.c: New file.
3369 * lib/unistr/u-cpy-alloc.h: New file.
3371 * modules/unistr/u8-endswith: New file.
3372 * modules/unistr/u16-endswith: New file.
3373 * modules/unistr/u32-endswith: New file.
3374 * lib/unistr/u8-endswith.c: New file.
3375 * lib/unistr/u16-endswith.c: New file.
3376 * lib/unistr/u32-endswith.c: New file.
3377 * lib/unistr/u-endswith.h: New file.
3379 * modules/unistr/u8-mblen: New file.
3380 * modules/unistr/u16-mblen: New file.
3381 * modules/unistr/u32-mblen: New file.
3382 * lib/unistr/u8-mblen.c: New file.
3383 * lib/unistr/u16-mblen.c: New file.
3384 * lib/unistr/u32-mblen.c: New file.
3386 * modules/unistr/u8-mbtouc: New file.
3387 * modules/unistr/u16-mbtouc: New file.
3388 * modules/unistr/u32-mbtouc: New file.
3389 * lib/unistr/u8-mbtouc.c: New file.
3390 * lib/unistr/u16-mbtouc.c: New file.
3391 * lib/unistr/u32-mbtouc.c: New file.
3393 * modules/unistr/u8-mbtouc-safe: New file.
3394 * modules/unistr/u16-mbtouc-safe: New file.
3395 * modules/unistr/u32-mbtouc-safe: New file.
3396 * lib/unistr/u8-mbtouc-safe.c: New file.
3397 * lib/unistr/u16-mbtouc-safe.c: New file.
3398 * lib/unistr/u32-mbtouc-safe.c: New file.
3400 * modules/unistr/u8-move: New file.
3401 * modules/unistr/u16-move: New file.
3402 * modules/unistr/u32-move: New file.
3403 * lib/unistr/u8-move.c: New file.
3404 * lib/unistr/u16-move.c: New file.
3405 * lib/unistr/u32-move.c: New file.
3406 * lib/unistr/u-move.h: New file.
3408 * modules/unistr/u8-next: New file.
3409 * modules/unistr/u16-next: New file.
3410 * modules/unistr/u32-next: New file.
3411 * lib/unistr/u8-next.c: New file.
3412 * lib/unistr/u16-next.c: New file.
3413 * lib/unistr/u32-next.c: New file.
3415 * modules/unistr/u8-prev: New file.
3416 * modules/unistr/u16-prev: New file.
3417 * modules/unistr/u32-prev: New file.
3418 * lib/unistr/u8-prev.c: New file.
3419 * lib/unistr/u16-prev.c: New file.
3420 * lib/unistr/u32-prev.c: New file.
3422 * modules/unistr/u8-set: New file.
3423 * modules/unistr/u16-set: New file.
3424 * modules/unistr/u32-set: New file.
3425 * lib/unistr/u8-set.c: New file.
3426 * lib/unistr/u16-set.c: New file.
3427 * lib/unistr/u32-set.c: New file.
3428 * lib/unistr/u-set.h: New file.
3430 * modules/unistr/u8-startswith: New file.
3431 * modules/unistr/u16-startswith: New file.
3432 * modules/unistr/u32-startswith: New file.
3433 * lib/unistr/u8-startswith.c: New file.
3434 * lib/unistr/u16-startswith.c: New file.
3435 * lib/unistr/u32-startswith.c: New file.
3436 * lib/unistr/u-startswith.h: New file.
3438 * modules/unistr/u8-stpcpy: New file.
3439 * modules/unistr/u16-stpcpy: New file.
3440 * modules/unistr/u32-stpcpy: New file.
3441 * lib/unistr/u8-stpcpy.c: New file.
3442 * lib/unistr/u16-stpcpy.c: New file.
3443 * lib/unistr/u32-stpcpy.c: New file.
3444 * lib/unistr/u-stpcpy.h: New file.
3446 * modules/unistr/u8-stpncpy: New file.
3447 * modules/unistr/u16-stpncpy: New file.
3448 * modules/unistr/u32-stpncpy: New file.
3449 * lib/unistr/u8-stpncpy.c: New file.
3450 * lib/unistr/u16-stpncpy.c: New file.
3451 * lib/unistr/u32-stpncpy.c: New file.
3452 * lib/unistr/u-stpncpy.h: New file.
3454 * modules/unistr/u8-strcat: New file.
3455 * modules/unistr/u16-strcat: New file.
3456 * modules/unistr/u32-strcat: New file.
3457 * lib/unistr/u8-strcat.c: New file.
3458 * lib/unistr/u16-strcat.c: New file.
3459 * lib/unistr/u32-strcat.c: New file.
3460 * lib/unistr/u-strcat.h: New file.
3462 * modules/unistr/u8-strchr: New file.
3463 * modules/unistr/u16-strchr: New file.
3464 * modules/unistr/u32-strchr: New file.
3465 * lib/unistr/u8-strchr.c: New file.
3466 * lib/unistr/u16-strchr.c: New file.
3467 * lib/unistr/u32-strchr.c: New file.
3469 * modules/unistr/u8-strcmp: New file.
3470 * modules/unistr/u16-strcmp: New file.
3471 * modules/unistr/u32-strcmp: New file.
3472 * lib/unistr/u8-strcmp.c: New file.
3473 * lib/unistr/u16-strcmp.c: New file.
3474 * lib/unistr/u32-strcmp.c: New file.
3476 * modules/unistr/u8-strcpy: New file.
3477 * modules/unistr/u16-strcpy: New file.
3478 * modules/unistr/u32-strcpy: New file.
3479 * lib/unistr/u8-strcpy.c: New file.
3480 * lib/unistr/u16-strcpy.c: New file.
3481 * lib/unistr/u32-strcpy.c: New file.
3482 * lib/unistr/u-strcpy.h: New file.
3484 * modules/unistr/u8-strcspn: New file.
3485 * modules/unistr/u16-strcspn: New file.
3486 * modules/unistr/u32-strcspn: New file.
3487 * lib/unistr/u8-strcspn.c: New file.
3488 * lib/unistr/u16-strcspn.c: New file.
3489 * lib/unistr/u32-strcspn.c: New file.
3490 * lib/unistr/u-strcspn.h: New file.
3492 * modules/unistr/u8-strdup: New file.
3493 * modules/unistr/u16-strdup: New file.
3494 * modules/unistr/u32-strdup: New file.
3495 * lib/unistr/u8-strdup.c: New file.
3496 * lib/unistr/u16-strdup.c: New file.
3497 * lib/unistr/u32-strdup.c: New file.
3498 * lib/unistr/u-strdup.h: New file.
3500 * modules/unistr/u8-strlen: New file.
3501 * modules/unistr/u16-strlen: New file.
3502 * modules/unistr/u32-strlen: New file.
3503 * lib/unistr/u8-strlen.c: New file.
3504 * lib/unistr/u16-strlen.c: New file.
3505 * lib/unistr/u32-strlen.c: New file.
3506 * lib/unistr/u-strlen.h: New file.
3508 * modules/unistr/u8-strmblen: New file.
3509 * modules/unistr/u16-strmblen: New file.
3510 * modules/unistr/u32-strmblen: New file.
3511 * lib/unistr/u8-strmblen.c: New file.
3512 * lib/unistr/u16-strmblen.c: New file.
3513 * lib/unistr/u32-strmblen.c: New file.
3515 * modules/unistr/u8-strmbtouc: New file.
3516 * modules/unistr/u16-strmbtouc: New file.
3517 * modules/unistr/u32-strmbtouc: New file.
3518 * lib/unistr/u8-strmbtouc.c: New file.
3519 * lib/unistr/u16-strmbtouc.c: New file.
3520 * lib/unistr/u32-strmbtouc.c: New file.
3522 * modules/unistr/u8-strncat: New file.
3523 * modules/unistr/u16-strncat: New file.
3524 * modules/unistr/u32-strncat: New file.
3525 * lib/unistr/u8-strncat.c: New file.
3526 * lib/unistr/u16-strncat.c: New file.
3527 * lib/unistr/u32-strncat.c: New file.
3528 * lib/unistr/u-strncat.h: New file.
3530 * modules/unistr/u8-strncmp: New file.
3531 * modules/unistr/u16-strncmp: New file.
3532 * modules/unistr/u32-strncmp: New file.
3533 * lib/unistr/u8-strncmp.c: New file.
3534 * lib/unistr/u16-strncmp.c: New file.
3535 * lib/unistr/u32-strncmp.c: New file.
3537 * modules/unistr/u8-strncpy: New file.
3538 * modules/unistr/u16-strncpy: New file.
3539 * modules/unistr/u32-strncpy: New file.
3540 * lib/unistr/u8-strncpy.c: New file.
3541 * lib/unistr/u16-strncpy.c: New file.
3542 * lib/unistr/u32-strncpy.c: New file.
3543 * lib/unistr/u-strncpy.h: New file.
3545 * modules/unistr/u8-strnlen: New file.
3546 * modules/unistr/u16-strnlen: New file.
3547 * modules/unistr/u32-strnlen: New file.
3548 * lib/unistr/u8-strnlen.c: New file.
3549 * lib/unistr/u16-strnlen.c: New file.
3550 * lib/unistr/u32-strnlen.c: New file.
3551 * lib/unistr/u-strnlen.h: New file.
3553 * modules/unistr/u8-strpbrk: New file.
3554 * modules/unistr/u16-strpbrk: New file.
3555 * modules/unistr/u32-strpbrk: New file.
3556 * lib/unistr/u8-strpbrk.c: New file.
3557 * lib/unistr/u16-strpbrk.c: New file.
3558 * lib/unistr/u32-strpbrk.c: New file.
3559 * lib/unistr/u-strpbrk.h: New file.
3561 * modules/unistr/u8-strrchr: New file.
3562 * modules/unistr/u16-strrchr: New file.
3563 * modules/unistr/u32-strrchr: New file.
3564 * lib/unistr/u8-strrchr.c: New file.
3565 * lib/unistr/u16-strrchr.c: New file.
3566 * lib/unistr/u32-strrchr.c: New file.
3568 * modules/unistr/u8-strspn: New file.
3569 * modules/unistr/u16-strspn: New file.
3570 * modules/unistr/u32-strspn: New file.
3571 * lib/unistr/u8-strspn.c: New file.
3572 * lib/unistr/u16-strspn.c: New file.
3573 * lib/unistr/u32-strspn.c: New file.
3574 * lib/unistr/u-strspn.h: New file.
3576 * modules/unistr/u8-strstr: New file.
3577 * modules/unistr/u16-strstr: New file.
3578 * modules/unistr/u32-strstr: New file.
3579 * lib/unistr/u8-strstr.c: New file.
3580 * lib/unistr/u16-strstr.c: New file.
3581 * lib/unistr/u32-strstr.c: New file.
3582 * lib/unistr/u-strstr.h: New file.
3584 * modules/unistr/u8-strtok: New file.
3585 * modules/unistr/u16-strtok: New file.
3586 * modules/unistr/u32-strtok: New file.
3587 * lib/unistr/u8-strtok.c: New file.
3588 * lib/unistr/u16-strtok.c: New file.
3589 * lib/unistr/u32-strtok.c: New file.
3590 * lib/unistr/u-strtok.h: New file.
3592 * modules/unistr/u8-uctomb: New file.
3593 * modules/unistr/u16-uctomb: New file.
3594 * modules/unistr/u32-uctomb: New file.
3595 * lib/unistr/u8-uctomb.c: New file.
3596 * lib/unistr/u16-uctomb.c: New file.
3597 * lib/unistr/u32-uctomb.c: New file.
3599 * MODULES.html.sh (Unicode string functions): Add the new modules.
3601 2007-01-08 Bruno Haible <bruno@clisp.org>
3603 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
3604 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
3607 2007-01-08 Karl Berry <karl@gnu.org>
3609 * doc/error.texi: mention that main() fns must set program_name
3610 when progname is used.
3612 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
3614 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
3615 WCTYPE_H is empty, for the benefit of builds from non-distclean
3616 directories. Problem reported by Eric Blake in
3617 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
3619 2007-01-08 Bruno Haible <bruno@clisp.org>
3621 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
3622 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
3623 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
3624 PROVIDE_CANONICALIZE_FILENAME_MODE.
3625 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
3627 2007-01-08 Bruno Haible <bruno@clisp.org>
3629 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
3630 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
3631 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
3632 * lib/fts.c: Likewise.
3633 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
3635 2006-12-25 Bruno Haible <bruno@clisp.org>
3637 * modules/utf8-ucs4-safe: New file.
3638 * lib/utf8-ucs4-safe.h: New file.
3639 * lib/unistr/utf8-ucs4-safe.c: New file.
3641 * modules/utf16-ucs4-safe: New file.
3642 * lib/utf16-ucs4-safe.h: New file.
3643 * lib/unistr/utf16-ucs4-safe.c: New file.
3645 * MODULES.html.sh (Unicode string functions): Add the new modules.
3647 2007-01-08 Bruno Haible <bruno@clisp.org>
3649 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
3650 (Depends-on): Add unitypes.
3651 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
3652 (u8_mbtouc_aux): Move out to separate file.
3653 (u8_mbtouc): Use ucs4_t, uint8_t types.
3654 * lib/unistr/utf8-ucs4.c: New file.
3656 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
3657 (Depends-on): Add unitypes.
3658 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
3659 (u16_mbtouc_aux): Move out to separate file.
3660 (u16_mbtouc): Use ucs4_t, uint16_t types.
3661 * lib/unistr/utf16-ucs4.c: New file.
3663 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
3664 (Depends-on): Add unitypes.
3665 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
3666 (u8_uctomb_aux): Move out to separate file.
3667 (u8_uctomb): Use ucs4_t, uint8_t types.
3668 * lib/unistr/ucs4-utf8.c: New file.
3670 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
3671 (Depends-on): Add unitypes.
3672 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
3673 (u16_uctomb_aux): Move out to separate file.
3674 (u16_uctomb): Use ucs4_t, uint16_t types.
3675 * lib/unistr/ucs4-utf16.c: New file.
3677 2006-12-25 Bruno Haible <bruno@clisp.org>
3679 * modules/unitypes: New file.
3680 * lib/unitypes.h: New file.
3681 * MODULES.html.sh (func_all_modules): New section "Unicode string
3682 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
3683 this section. Add unitypes.
3685 2007-01-08 Bruno Haible <bruno@clisp.org>
3687 Avoid variable names that conflict with those from libtool.
3688 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
3689 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
3690 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
3691 library_names_spec to acl_library_names_spec, hardcode_* to
3693 Reported by Ralf Wildenhues.
3695 2007-01-08 Bruno Haible <bruno@clisp.org>
3697 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
3699 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
3701 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
3702 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
3704 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
3706 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
3707 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
3708 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
3709 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
3711 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
3713 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
3714 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
3716 * lib/gc-libgcrypt.c: Likewise.
3717 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
3718 * modules/gc-arctwo (configure.ac): Likewise.
3719 * modules/gc-des (configure.ac): Likewise.
3720 * modules/gc-hmac-md5 (configure.ac): Likewise.
3721 * modules/gc-hmac-sha1 (configure.ac): Likewise.
3722 * modules/gc-md2 (configure.ac): Likewise.
3723 * modules/gc-md4 (configure.ac): Likewise.
3724 * modules/gc-md5 (configure.ac): Likewise.
3725 * modules/gc-random (configure.ac): Likewise.
3726 * modules/gc-rijndael (configure.ac): Likewise.
3727 * modules/gc-sha1 (configure.ac): Likewise.
3729 2007-01-08 Bruno Haible <bruno@clisp.org>
3731 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
3733 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
3735 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
3737 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
3738 * modules/fcntl-safer (configure.ac): Likewise.
3739 * modules/fopen-safer (configure.ac): Likewise.
3740 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
3741 GNULIB_FWRITEERROR macro definition.
3743 2007-01-08 Bruno Haible <bruno@clisp.org>
3745 * m4/gnulib-common.m4: New file.
3746 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
3747 (func_get_filelist): Add m4/gnulib-common.m4.
3749 2007-01-08 Bruno Haible <bruno@clisp.org>
3751 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
3754 2007-01-08 Jim Meyering <jim@meyering.net>
3756 Use a more robust test for a "can't happen" condition.
3757 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
3758 narrowed the st_size value. Presuming the "can't happen" condition
3759 is true, that narrowing could conceivably convert an invalid st_size
3760 value into a valid one. Instead, use a change based on Matthew
3761 Woehlke's original patch.
3763 Slight readability improvement: use an assert-like macro
3764 in place of literal "abort ()" uses.
3765 * lib/fts.c (fts_assert): Define.
3766 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
3767 Use this macro instead of a bare 'abort'.
3769 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
3771 Don't worry about using IRIX 5.3's wctype.h broken definitions;
3772 simply work around them.
3773 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
3774 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
3775 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
3777 Don't bother to define as macros, since the standard doesn't require it.
3778 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
3779 longer worry about IRIX 5.3.
3780 (HAVE_WCTYPE_CTMP_BUG): Remove.
3782 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
3784 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
3785 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
3786 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
3787 Problems reported by Georg Schwarz for IRIX 5.3.
3789 * gnulib-tool (autoconf_minversion): Take the maximum version number
3790 found, not the minimum. Problem reported by James Youngman.
3792 2007-01-03 Karl Berry <karl@gnu.org>
3794 * doc/error.texi: new file, explaining interaction with progname.
3795 * doc/gnulib.texi: include it. Update copyright.
3797 2007-01-03 Simon Josefsson <simon@josefsson.org>
3799 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
3800 AC_CANONICAL_HOST, to improve autobuild outputs.
3802 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
3803 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3805 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
3806 sockets, server sockets, and other file descriptors. Count errors
3807 to compute the return value. Reorder the code a bit to be easier
3808 to follow. Don't set event bits that were not requested (except
3809 POLLERR and POLLHUP).
3811 2007-01-01 Bruno Haible <bruno@clisp.org>
3813 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
3815 2007-01-03 Jim Meyering <jim@meyering.net>
3817 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
3819 2007-01-02 Bruno Haible <bruno@clisp.org>
3821 * modules/settime (Include): Require timespec.h.
3822 * modules/nanosleep (Include): Likewise.
3824 2007-01-01 Bruno Haible <bruno@clisp.org>
3826 * gnulib-tool (func_emit_copyright_notice): Bump year.
3827 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
3829 2007-01-01 Bruno Haible <bruno@clisp.org>
3831 Improve support for OpenBSD.
3832 * build-aux/config.rpath (libname_spec): Export.
3833 (library_names_spec): New variable. Export.
3834 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
3835 library_names_spec from the config.rpath output. Locate shared library
3836 through the name pattern in library_names_spec.
3838 2007-01-01 Eric Blake <ebb9@byu.net>
3840 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
3842 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
3844 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
3845 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
3846 assume the C locale, and avoid an "eval" that could cause trouble.
3847 Problem with SORT reported by Bob Proulx.
3849 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
3850 Define. Trivial patch from Henning Nielsen Lund, originally
3851 sent to bug-grep@gnu.org today.
3853 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
3855 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
3856 struct stat. Problem reported by Henning Nielsen Lund.
3857 * lib/acl.c: Include acl.h first, to check interface. Don't
3858 bother to include sys/types.h and sys/stat.h again.
3860 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
3862 Import the following change from libc; problem reported by
3865 2005-10-13 Ulrich Drepper <drepper@redhat.com>
3868 * lib/argp.h: Remove __NTH for __argp_usage inline function.
3870 2006-12-28 Jim Meyering <jim@meyering.net>
3872 * build-aux/announce-gen: Do not assume that the package
3873 builds any of tar.gz, tar.bz2, and .xdelta files.
3874 Suggestion from Simon Josefsson.
3876 2006-12-28 Simon Josefsson <simon@josefsson.org>
3878 * modules/announce-gen: New file.
3880 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
3882 * lib/mbchar.h: Just include <wctype.h>; the wctype module
3883 handles its gotchas now.
3884 * lib/mbswidth.c: Likewise.
3885 * lib/wcwidth.h: Likewise.
3886 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
3887 and iswcntrl; the wctype module does this stuff now.
3888 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
3889 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3890 * modules/mbchar (Depends-on): Add wctype.
3891 * modules/mbswidth (Depends-on): Likewise.
3892 * modules/wcwidth (Depends-on): Likewise.
3894 2006-12-27 Eric Blake <ebb9@byu.net>
3896 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
3897 module uses more than what <wctype.h> is required to provide.
3899 2006-12-26 Eric Blake <ebb9@byu.net>
3901 * gnulib-tool (sed_extract_prog): Avoid space-tab.
3903 2006-12-26 Eric Blake <ebb9@byu.net>
3905 * modules/absolute-header: New module.
3906 * modules/fcntl (Depends-on): Depend on it.
3907 * modules/inttypes (Depends-on): Likewise.
3908 * modules/stdint (Depends-on): Likewise.
3909 * modules/sys_stat (Depends-on): Likewise.
3910 * modules/wctype (Depends-on): Likewise.
3911 * MODULES.html.sh (Support for building libraries and
3912 executables): Document it.
3914 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
3916 * gnulib-tool (SED): Remove, undoing previous change.
3917 The problem was that it broke coreutils on Solaris, because
3918 "sed --posix" leaked into a makefile.
3919 (sed): New alias, if 'alias' and GNU sed.
3921 2006-12-24 Jim Meyering <jim@meyering.net>
3923 Work around an fchownat bug in glibc-2.4:
3924 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
3925 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
3926 in spite of the -P option.
3927 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
3929 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
3930 * modules/openat (Files): Add lib/fchownat.c.
3931 * lib/openat.c (fchownat): Don't define here. Move to...
3932 * lib/fchownat.c: ...this new file.
3934 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
3936 Fix bug reported by Bruno Haible in
3937 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
3938 where quotearg.c didn't compile on Mac OS X 10.2 because it
3939 lacks <wchar.h> and wint_t.
3940 * lib/wctype_.h (__wctype_wint_t): New type.
3941 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
3942 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
3943 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
3944 Arg is now of type __wctype_wint_t, not wint_t.
3945 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
3946 substitute HAVE_WINT_T.
3947 * modules/wctype (Files): Add m4/wint_t.m4.
3948 (wctype.h): Substitute HAVE_WINT_T.
3950 2006-12-23 Bruno Haible <bruno@clisp.org>
3952 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
3954 2006-12-23 Bruno Haible <bruno@clisp.org>
3956 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
3958 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
3961 2006-12-22 Bruno Haible <bruno@clisp.org>
3963 * lib/copy-file.c: Include acl.h.
3964 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
3965 Close the file descriptors only after being done with copy_acl.
3966 * modules/copy-file (Depends-on): Add acl.
3968 2006-12-22 Bruno Haible <bruno@clisp.org>
3970 * gnulib-tool (SED): New variable.
3971 Use $SED instead of sed everywhere.
3973 2006-12-22 Bruno Haible <bruno@clisp.org>
3975 * modules/no-c++: New file.
3976 * m4/no-c++.m4: New file.
3977 * MODULES.html.sh (Support for building libraries and executables):
3980 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
3982 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
3983 Include <limits.h>, and use its INT_MAX to rewrite the
3984 j loop so that it does not overflow 'int'. Problem reported by
3986 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
3987 Play it safe by shifting left by 1 rather than multiplying by 2,
3988 as GCC is less likely to optimize this away when the value
3989 is signed (when it assumes overflow leads to undefined behavior).
3990 Also, don't assume time_t uses two's complement.
3992 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
3994 * MODULES.html.sh: New module wctype.
3995 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
3996 * lib/fnmatch.c: Don't bother to include <wchar.h> before
3997 <wctype.h>, since the new wctype module should fix this.
3998 * lib/quotearg.c: Include <wctype.h> unconditionally, since
3999 the wctype module should arrange for it.
4000 * lib/regex_internal.h: Likewise.
4001 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
4002 since the wctype module should handle this now.
4003 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
4004 * modules/fnmatch (Depends-on): Add wctype.
4005 * modules/quotearg (Depends-on): Likewise.
4006 * modules/regex (Depends-on): Likewise.
4008 2006-12-19 Bruno Haible <bruno@clisp.org>
4010 * lib/strdup.h [C++]: Wrap definitions in extern "C".
4011 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
4013 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4015 * modules/savewd (Depends-on): Fix dependency on fcntl.
4017 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
4019 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
4020 conforms to C99, rather than relying on the user's environment
4021 setting of STDINT_H.
4023 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
4024 and Eric Blake <ebb9@byu.net>
4026 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
4027 This is more consistent with the other defines here.
4028 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
4029 Port to z/OS. Problem reported by Paul Gilmartin.
4030 Change local vars to use gl_ prefix rather than ac_.
4031 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
4033 * modules/double-slash-root: New module.
4034 * modules/dirname (Files): Remove m4/double-slash-root.m4.
4035 (Depends-on): Add double-slash-root.
4036 * MODULES.html.sh (File system functions): Mention new module.
4038 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
4040 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
4041 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
4042 This is for the benefit of gzip, which doesn't do i18n.
4044 2006-12-12 Jim Meyering <jim@meyering.net>
4046 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
4047 Reported by Andreas Schwab <schwab@suse.de>.
4049 2006-12-12 Bruno Haible <bruno@clisp.org>
4051 Merge these changes.
4052 2006-09-05 Bruno Haible <bruno@clisp.org>
4053 * lib/iconvme.c (iconv_string): No need to save and restore errno when
4054 iconv_alloc succeeded.
4055 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
4056 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
4057 test for " && dest " at the end - dest is always != NULL there. Call
4058 iconv with 4xNULL arguments initially, to reset the state. Call iconv
4059 with 2xNULL arguments, also to flush the state storage. Handle the
4060 IRIX iconv behaviour. Realloc the final result, to throw away unused
4063 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
4065 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
4066 and fchmodat unconditionally, since glibc 2.4 has them.
4067 Problem reported by Arkadiusz Miskiewicz.
4069 2006-12-10 Bruno Haible <bruno@clisp.org>
4071 * gnulib-tool (func_import): Show the include files only for those
4072 modules that are copied and specified.
4073 Reported by Karl Berry.
4075 2006-12-08 Jim Meyering <jim@meyering.net>
4077 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
4078 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
4080 * build-aux/announce-gen: Add two new options, both optional:
4081 --bootstrap-tools=TOOL_LIST
4082 a comma-separated list of tools, e.g.,
4083 autoconf,automake,bison,gnulib
4084 --gnulib-snapshot-date=DATE
4085 if gnulib is in the bootstrap tool list,
4086 then report this as the snapshot date.
4087 If not specified, use the current date/time.
4088 If you specify a date here, be sure it's UTC.
4090 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4092 * tests/test-argp-2.sh: Fix test to match actual output.
4093 (func_compare): Fix sed script to be portable.
4095 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
4097 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
4098 workaround for this case. It is not autoconfigured now; offhand
4099 it's hard to see how to autoconfigure it.
4101 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
4103 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
4104 a directory that is about to be chowned. Such a directory's
4105 initial file permissions should permit the owner only and this
4106 should not be changed until after the chown, since the group and
4107 other bits would be incorrect if they granted permission before
4110 Fix porting problem for iswctype reported by Georg Schwarz in:
4111 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
4112 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
4113 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
4114 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
4115 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4117 2006-12-03 Jim Meyering <jim@meyering.net>
4119 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
4120 p->fts_statp may not yet be defined.
4121 (fts_read): Instead, set it in the caller, once p->fts_statp is
4122 sure to be defined, and corresponds to a top-level directory.
4123 This bug made du -x fail. Here's the coreutils test case:
4124 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
4125 Reported by Mike Frysinger.
4127 2006-12-01 Jim Meyering <jim@meyering.net>
4129 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
4130 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
4131 Reported by Simon Josefsson.
4133 2006-11-30 Jim Meyering <jim@meyering.net>
4135 * m4/warning.m4: Use the all-permissive copyright notice
4136 recommended by RMS (rather than LGPL).
4137 * m4/vararrays.m4: Likewise.
4138 * m4/flexmember.m4: Likewise.
4140 2006-11-29 Bruno Haible <bruno@clisp.org>
4142 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
4143 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
4145 Reported by Simon Josefsson <simon@josefsson.org>.
4147 2006-11-28 James Youngman <jay@gnu.org>
4149 * README: Advise users that they might find the bug-gnulib@gnu.org
4150 and autotools-announce@gnu.org mailing lists useful.
4152 2006-11-28 Bruno Haible <bruno@clisp.org>
4154 * m4/ptrdiff_max.m4: Remove file.
4156 2006-11-21 Bruno Haible <bruno@clisp.org>
4158 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
4160 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
4161 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
4163 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
4164 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
4166 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
4168 2006-11-28 Jim Meyering <jim@meyering.net>
4170 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
4171 warning from "gcc -Wshadow" about shadowing the builtin.
4173 2006-11-27 Bruno Haible <bruno@clisp.org>
4175 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
4177 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
4179 2006-11-27 Bruno Haible <bruno@clisp.org>
4180 Paul Eggert <eggert@cs.ucla.edu>
4182 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
4184 2006-11-26 Bruno Haible <bruno@clisp.org>
4186 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
4189 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
4190 Bruno Haible <bruno@clisp.org>
4192 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
4193 if compiling with "gcc -ansi".
4195 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
4197 Fix some incompatibilities with gcc -ansi -pedantic.
4198 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
4199 if compiling pedantically with GCC, unless it's C99 or later.
4200 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
4201 it mishandles gcc -ansi -pedantic as well.
4202 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
4204 * lib/regexec.c (check_node_accept_bytes): Don't use auto
4205 initializers for struct if -pedantic, unless it's C99 or later.
4207 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
4209 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
4210 Don't close an fd more than once. Identical atimes indicate
4211 success, not failure.
4213 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
4215 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
4217 2006-11-23 Jim Meyering <jim@meyering.net>
4219 * build-aux/announce-gen: New file. From coreutils.
4221 2006-11-22 Jim Meyering <jim@meyering.net>
4223 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
4224 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
4225 (fts_read): Use a temporary to narrow the overused st_size member
4226 before using it in a switch statement. Reported by Matthew Woehlke.
4228 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
4229 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
4231 2006-11-20 Bruno Haible <bruno@clisp.org>
4233 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
4234 changequote instead of pairs of brackets.
4235 Reported by Andreas Schwab <schwab@suse.de>.
4237 2006-11-21 Jim Meyering <jim@meyering.net>
4239 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
4240 so as to remain compatible with older compilers.
4241 Patch from Michael Deutschmann.
4243 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
4245 * MODULES.html.sh (File system functions): Add openat.
4247 * lib/openat.h (rpl_fstatat): New macro, if
4248 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
4249 (fstatat): Define to rpl_fstatat under the same conditions,
4250 unless COMPILING_FSTATAT.
4251 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
4252 seems to have the bug.
4253 * lib/fstatat.c: New file.
4254 * modules/openat (Files): Add it.
4256 2006-11-20 Bruno Haible <bruno@clisp.org>
4258 * Makefile: New file.
4260 2006-11-20 Jim Meyering <jim@meyering.net>
4262 The beginnings of syntax-related checks for gnulib.
4263 * lib/Makefile: New file.
4264 * lib/t-idcache: New script. Ensure that the two halves of
4265 idcache.c stay in sync.
4267 * lib/idcache.c: Adjust comments in user- and group- portions to
4268 be more accurate, and to be consistent with one another.
4270 2006-11-20 Jim Meyering <jim@meyering.net>
4272 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
4273 continue using the flexible array member (thus, this module performs
4274 half as many malloc calls), with the addition that...
4275 (getgroup, getuser): Consistently record a non-match via an empty
4276 "name" string, and map an empty string match to a NULL return value.
4277 * modules/idcache (Depends-on): Re-add flexmember.
4279 * lib/idcache.c (getuser): Remove all uses of the register keyword.
4280 (getuidbyname, getgroup, getgidbyname): Likewise.
4282 Use cleaner syntax: NULL rather than 0.
4283 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
4285 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
4287 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
4288 It mishandled the case where the group was missing.
4289 Problem reported by Greg Schafer.
4290 * modules/idcache: Likewise.
4292 2006-11-18 Jim Meyering <jim@meyering.net>
4294 * check-module (%exempt_header): Add exception for some
4295 conditionally-included headers.
4297 * modules/i-ring (Depends-on): Add verify.
4298 (License): Change to LGPL.
4300 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
4302 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
4303 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
4304 and inttostr.h. Use snprintf rather than uinttostr, so that
4305 LGPLed code doesn't depend on GPLed.
4307 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
4309 * modules/inline (License): Change from GPL to LGPL.
4311 2006-11-17 Jim Meyering <jim@meyering.net>
4313 * modules/d-type (License): Switch to LGPL.
4315 2006-11-15 Bruno Haible <bruno@clisp.org>
4317 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
4319 2006-11-15 Eric Blake <ebb9@byu.net>
4321 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
4322 the module dependency.
4324 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
4325 Bruno Haible <bruno@clisp.org>
4327 * gnulib-tool (func_create_testdir): Add license consistency check.
4329 2006-11-15 Eric Blake <ebb9@byu.net>
4331 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
4332 random "(cached)" in configure output.
4334 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4336 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
4337 test for conforming inttypes.h is both announced and cached.
4339 * MODULES.html.sh (seen_modules, seen_files): New variables.
4340 (func_module): Rewrite to use a few less gnulib-tool and sed
4341 invocations. Avoid a couple of quadratic algorithms for ...
4342 (missed_modules, missed_files): ... these, with ...
4343 (func_append, func_tmpdir): ... these new functions, from
4344 gnulib-tool. Analogously, install traps for cleanup.
4346 * tests/test-gc.c (main): Remove unused variables.
4347 * tests/test-read-file.c: Include stdlib.h, for 'free'.
4349 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
4351 * modules/inttostr (License): Change to LGPL.
4353 2006-11-14 Eric Blake <ebb9@byu.net>
4355 * modules/tempname (License): Change to LGPL.
4357 2006-11-14 Eric Blake <ebb9@byu.net>
4359 * doc/functions.texi (Function Portability): *printf functions on
4360 Cygwin now understand all POSIX size specifiers.
4362 2006-11-14 Bruno Haible <bruno@clisp.org>
4364 * modules/c-ctype (License): Change to LGPL.
4366 2006-11-12 Bruno Haible <bruno@clisp.org>
4368 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
4369 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
4370 for GNOME libraries, for which the include files are installed in
4371 subdirectories of $prefix/include.
4373 2006-11-12 Bruno Haible <bruno@clisp.org>
4375 * m4/lib-link.m4: Require at least autoconf-2.54.
4376 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
4377 name to underscores for the --with option.
4379 2006-11-13 Bruno Haible <bruno@clisp.org>
4381 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
4382 the tests directory.
4383 Reported by Ralf Wildenhues.
4385 2006-11-13 Bruno Haible <bruno@clisp.org>
4387 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
4388 (func_emit_initmacro_end): Undo the override here.
4389 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
4390 Works around the famous automake error in coreutils.
4392 2006-11-13 Eric Blake <ebb9@byu.net>
4394 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
4395 element, not its node.
4397 2006-11-12 Bruno Haible <bruno@clisp.org>
4399 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
4400 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
4402 2006-11-12 Bruno Haible <bruno@clisp.org>
4404 * gnulib-tool: New option --local-symlink.
4405 (func_usage): Document it.
4406 (lsymbolic): New variable.
4407 (func_import, func_create_testdir): If --symlink was not specified,
4408 test whether --local-symlink was specified and the file comes from
4409 the local_gnulib_dir.
4411 2006-11-12 Bruno Haible <bruno@clisp.org>
4413 * gnulib-tool (func_ln): New function.
4414 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
4416 2006-11-12 Bruno Haible <bruno@clisp.org>
4418 Finish support for source files in subdirectories.
4419 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
4420 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
4422 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
4424 2006-11-12 Bruno Haible <bruno@clisp.org>
4426 * gnulib-tool (func_get_automake_snippet): Synthesize also an
4427 EXTRA_lib_SOURCES augmentation.
4428 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
4430 2006-11-12 Jim Meyering <jim@meyering.net>
4432 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
4433 file descriptors. This also averts a failure on systems with
4434 native openat support when a traversed directory lacks "x" access.
4435 * lib/fts_.h: Include "i-ring.h"
4436 (struct FTS) [fts_fd_ring]: New member.
4437 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
4438 (FCHDIR): Add parentheses.
4439 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
4440 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
4441 When descending, rather than simply closing the previous
4442 fts_cwd_fd value, push that file descriptor onto the ring.
4443 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
4444 (fts_open): Initialize the new fd_ring member.
4445 (fts_close): Clear the ring.
4446 (fts_safe_changedir): When possible, use our new fd_ring to skip
4447 the diropen and fstat and dev/ino comparison that would normally
4448 accompany a virtual `chdir ("..")'.
4450 * modules/fts (Depends-on): Add i-ring.
4451 * modules/i-ring: New module.
4452 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
4453 * m4/i-ring.m4: New file.
4455 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4457 * gnulib-tool (func_create_testdir): Fix replacement of
4458 `build-aux' in configure.ac. Run autotools in gltests
4460 (func_create_testdir, func_create_megatestdir, test): There is
4461 no need for '--force' in most autotool invocations in a new
4462 tree. Actually fail the whole test if any of the tools, or the
4463 configure or make stages fail.
4466 * build-aux/gnupload: Revert last change. Add pointer to upload
4467 instructions of the GNU Maintenance Instructions.
4468 Suggestion by Karl Berry.
4470 2006-11-10 Jim Meyering <jim@meyering.net>
4472 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
4474 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
4476 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
4477 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
4478 (bind_textdomain_codeset) [! ENABLE_NLS]:
4479 Evaluate all the arguments. That way, callers get compatible behavior
4480 if the arguments have side effects. Also, it avoids some GCC
4481 diagnostics in some cases; Joel E. Denny reported problems when Bison
4482 was configured with --enable-gcc-warnigs.
4484 2006-11-10 Jim Meyering <jim@meyering.net>
4486 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
4487 relevant options in CFLAGS (like -O, -fno-inline) are taken into
4490 2006-11-10 Jim Meyering <jim@meyering.net>
4492 * modules/inline: New file/module.
4493 * modules/xalloc (Files): Remove m4/inline.m4.
4494 (Depends-on): Add inline, instead.
4495 * modules/oset: Likewise.
4496 * modules/list: Likewise.
4498 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
4500 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
4501 Problem reported by Matthew Woehlke.
4503 2006-11-09 Bruno Haible <bruno@clisp.org>
4505 * lib/tempname.c (gen_tempname): Remove variant that invokes
4507 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
4510 2006-11-08 Bruno Haible <bruno@clisp.org>
4512 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
4513 to 'yes' instead of 'cross-compiling'.
4515 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
4517 * lib/quotearg.h (quotearg_free): New decl.
4518 * lib/quotearg.c (quotearg_free): New function.
4519 (slot0, nslots, slotvec0, slotvec):
4520 Now file-scope so that quotearg_free can get at them.
4522 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4525 * build-aux/gnupload: Add missing 'gnu' to example URL.
4526 Report by Karl Berry.
4528 2006-11-08 Bruno Haible <bruno@clisp.org>
4530 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
4531 Suggested by Paul Eggert.
4533 2006-11-08 Jim Meyering <jim@meyering.net>
4535 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
4536 It's already included if !_LIBC.
4537 (fts_safe_changedir): Add a comment.
4539 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
4541 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
4542 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
4545 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
4546 definitions up, to avoid colliding with change below.
4547 (static_inline) [HAVE_INLINE]: New macro.
4548 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
4549 Provide extern decls when !HAVE_INLINE. Do not define unless
4550 static_inline is defined, either by us or by xmalloc.c. Use
4551 static_inline rather than static inline.
4552 (XCALLOC): Optimize sizeof(T) = 1 case.
4553 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
4555 2006-11-07 Bruno Haible <bruno@clisp.org>
4557 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
4558 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
4560 * modules/xalloc (Files): Add m4/inline.m4.
4562 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4565 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
4566 (Miscellanous Notes): ...from this.
4568 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
4570 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4571 Mention that offsetof should be used instead of sizeof.
4574 2006-11-07 Bruno Haible <bruno@clisp.org>
4576 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
4578 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
4580 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
4581 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
4582 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
4583 (gl_tree_add_before, gl_tree_add_after):
4584 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
4585 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
4586 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
4587 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
4588 (gl_linked_add_after, gl_linked_add_at): Likewise.
4589 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
4590 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
4591 (gl_tree_add_before, gl_tree_add_after): Likewise.
4592 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
4593 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
4594 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
4596 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4598 * lib/gl_oset.h: Use C comment style, not C++ comment style.
4600 2006-11-06 Bruno Haible <bruno@clisp.org>
4602 * m4/inline.m4: New file.
4603 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
4604 * modules/list (Files): Add m4/inline.m4.
4605 * modules/oset (Files): Likewise.
4607 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
4609 * lib/idcache.c: Include <stddef.h>, for offsetof.
4610 (struct userid.name): Change from char * to a flexible array member.
4612 * modules/idcache (Depends-on): Add flexmember.
4614 * MODULES.html.sh (Core language properties): New module flexmember.
4615 * modules/flexmember, m4/flexmember.m4: New files.
4617 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
4618 inline functions that are identical with the old xnmalloc_inline,
4619 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
4620 that we can avoid some unnecessary integer multiplications and
4621 divisions in the common case where the element size is known at
4623 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
4625 (xnboundedmalloc): Remove.
4626 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
4627 arguments, for consistency with rest of this header.
4628 (xcharalloc): Rewrite using XNMALLOC.
4629 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
4630 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
4631 versions have been moved to lib/xalloc.h and renamed to be the
4632 non-*_inline versions.
4633 (xmalloc, xrealloc): Implement without reference to the xnmalloc
4634 and xnrealloc functions, since those functions are now inline and
4636 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
4637 renaming described above.
4638 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
4639 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
4640 captures the dependency in AC_C_INLINE.
4642 New module canonicalize-lgpl, proposed by Charles Wilson in
4643 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
4644 with a few small changes afterwards.
4645 * MODULES.html.sh (File system functions): New module
4647 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
4648 and canonicalize_file_name.
4649 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
4650 * modules/canonicalize-lgpl: New files.
4652 2006-11-05 Bruno Haible <bruno@clisp.org>
4654 * gnulib-tool (func_import, func_create_testdir): Create directories
4655 also for files in subdirectories of lib/.
4657 2006-11-05 Bruno Haible <bruno@clisp.org>
4659 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
4662 2006-11-03 Bruno Haible <bruno@clisp.org>
4664 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
4665 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
4666 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
4667 (xnboundedmalloc): New inline function.
4668 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
4669 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
4671 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
4673 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
4674 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
4675 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
4677 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
4678 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
4680 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
4681 gl_tree_add_after): Use XMALLOC instead of xmalloc.
4682 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
4684 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
4685 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
4686 gl_tree_add_after): Use XMALLOC instead of xmalloc.
4687 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
4688 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
4689 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
4690 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
4692 2006-11-03 Bruno Haible <bruno@clisp.org>
4694 * lib/c-ctype.h [C++]: Define functions without name mangling.
4695 * lib/fwriteerror.h [C++]: Likewise.
4696 * lib/gcd.h [C++]: Likewise.
4697 * lib/linebreak.h [C++]: Likewise.
4699 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
4701 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
4702 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
4703 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
4704 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
4705 Check for functions and headers just once.
4706 Check for declaration of canonicalize_file_name.
4707 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
4709 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
4711 * gnulib-tool (func_import): Fix typo in actioncmd.
4713 2006-11-02 Bruno Haible <bruno@clisp.org>
4715 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
4716 newline sequence in the Makefile.am snippet as a space, like "make"
4718 Reported by Roger Persson <perrog@gmail.com>.
4720 2006-11-01 Bruno Haible <bruno@clisp.org>
4722 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
4723 already declared in <string.h>.
4724 * lib/strcase.h (strncasecmp): Don't declare it if yes.
4726 2006-11-01 Bruno Haible <bruno@clisp.org>
4728 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
4729 * lib/strcase.h: Include <string.h>.
4730 (strcasecmp): Define to rpl_strcasecmp here.
4732 2006-11-01 Bruno Haible <bruno@clisp.org>
4734 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
4736 2006-11-01 Eric Blake <ebb9@byu.net>
4738 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
4740 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
4742 2006-10-29 Bruno Haible <bruno@clisp.org>
4744 Make it compile in C++ mode.
4745 * lib/full-write.c (full_rw): Add a cast.
4747 2006-11-01 Bruno Haible <bruno@clisp.org>
4749 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
4751 Reported by Roger Persson <perrog@gmail.com>.
4753 2006-11-01 Eric Blake <ebb9@byu.net>
4755 * lib/getopt_.h: Fix comments.
4757 2006-10-31 Eric Blake <ebb9@byu.net>
4759 * modules/tmpdir (Depends-on): Add sys_stat.
4760 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
4761 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
4762 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
4763 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
4766 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
4768 Avoid some C++ diagnostics reported by Bruno Haible.
4769 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
4771 (quotearg_alloc): Use xcharalloc rather than xmalloc.
4772 (struct slotvec): Move to top level.
4773 (quotearg_n_options): Rewrite to avoid xmalloc.
4774 * lib/xalloc.h (xcharalloc): New function.
4775 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
4776 [defined __cplusplus]: Add function template that provides result
4777 type propagation. This part of the change is from Bruno Haible.
4779 2006-10-29 Bruno Haible <bruno@clisp.org>
4781 Make it compile in C++ mode.
4782 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
4783 * lib/strnlen1.c (strnlen1): Cast memchr result.
4784 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
4785 * lib/clean-temp.c (string_equals, string_hash): Add casts.
4786 (create_temp_dir): Rename local variable 'template'.
4787 (compile_csharp_using_sscli): Add cast.
4788 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
4789 * lib/findprog.c (find_in_path): Likewise.
4790 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
4791 * lib/wait-process.c (register_slave_subprocess): Likewise.
4793 2006-10-22 Bruno Haible <bruno@clisp.org>
4795 * modules/tsearch: New file.
4796 * lib/tsearch.h: New file.
4797 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
4798 * m4/tsearch.m4: New file.
4799 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
4801 2006-10-29 Eric Blake <ebb9@byu.net>
4803 * lib/arcfour.c: Assume config.h.
4804 * lib/arctwo.c: Likewise.
4805 * lib/base64.c: Likewise.
4806 * lib/check-version.c: Likewise.
4807 * lib/crc.c: Likewise.
4808 * lib/des.c: Likewise.
4809 * lib/gc-gnulib.c: Likewise.
4810 * lib/gc-libgcrypt.c: Likewise.
4811 * lib/gc-pbkdf2-sha1.c: Likewise.
4812 * lib/getaddrinfo.c: Likewise.
4813 * lib/getdelim.c: Likewise.
4814 * lib/getline.c: Likewise.
4815 * lib/hmac-md5.c: Likewise.
4816 * lib/hmac-sha1.c: Likewise.
4817 * lib/iconvme.c: Likewise.
4818 * lib/md2.c: Likewise.
4819 * lib/md4.c: Likewise.
4820 * lib/memxor.c: Likewise.
4821 * lib/read-file.c: Likewise.
4822 * lib/readline.c: Likewise.
4823 * lib/rijndael-alg-fst.c: Likewise.
4824 * lib/rijndael-api-fst.c: Likewise.
4825 * lib/xgetdomainname.c: Likewise.
4827 2006-10-28 Eric Blake <ebb9@byu.net>
4829 * lib/xstrndup.c: Assume config.h.
4831 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
4833 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
4834 stat-macros.h is now for our own macros, whereas stat_h is for
4835 macros in the <sys/stat.h> name space.
4836 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
4837 (STAT_MACROS_H): Remove.
4838 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
4839 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
4840 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
4841 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
4842 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
4843 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
4844 Move these macros to ...
4845 * lib/stat_.h: here. Don't include stat-macros.h.
4846 * lib/canonicalize.c: Don't include stat-macros.h.
4847 * lib/chown.c: Likewise.
4848 * lib/euidaccess.c: Likewise.
4849 * lib/file-type.c: Likewise.
4850 * lib/filemode.c: Likewise.
4851 * lib/glob.c: Likewise.
4852 * lib/isapipe.c: Likewise.
4853 * lib/lchown.c: Likewise.
4854 * lib/lstat.c: Likewise.
4855 * lib/mkdir-p.c: Likewise.
4856 * lib/rmdir.c: Likewise.
4857 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
4858 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
4859 unless mkdir isn't declared, to speed up 'configure'.
4860 Always create sys/stat.h, since it's unlikely any real sys/stat.h
4861 would define all the S_* symbols.
4862 * modules/canonicalize (Depends-on):
4863 Depend on sys_stat, not stat-macros.
4864 * modules/chown: Likewise.
4865 * modules/euidaccess: Likewise.
4866 * modules/filemode: Likewise.
4867 * modules/file-type: Likewise.
4868 * modules/glob: Likewise.
4869 * modules/isapipe: Likewise.
4870 * modules/lchown: Likewise.
4871 * modules/lstat: Likewise.
4872 * modules/mkancesdirs: Likewise.
4873 * modules/rmdir: Likewise.
4874 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
4875 * modules/modechange: Likewise.
4876 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
4877 (configure.ac): Remove gl_STAT_MACROS.
4878 * modules/sys_stat (Depends-on): Remove stat-macros.
4880 2006-10-27 Bruno Haible <bruno@clisp.org>
4882 * m4/signed.m4: Remove file.
4883 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
4885 * modules/vasnprintf (Files): Remove m4/signed.m4.
4887 2006-10-27 Bruno Haible <bruno@clisp.org>
4889 Update to GNU gettext 0.16.
4890 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
4891 m4/inttypes-h.m4, m4/signed.m4.
4892 * m4/gettext.m4: Update to GNU gettext 0.16.
4893 * m4/intl.m4: New file, from GNU gettext.
4894 * m4/intldir.m4: New file, from GNU gettext.
4895 * config/srclist.txt: Update
4897 2006-10-27 Eric Blake <ebb9@byu.net>
4899 * MODULES.html.sh: Document tempname.
4900 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
4902 (Files): Move lib/tempname.c...
4903 * modules/tempname: ...to this new module.
4904 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
4905 (gl_PREREQ_TEMPNAME): Move...
4906 * m4/tempname.m4: ...to this new file.
4907 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
4908 * modules/sys_stat (Depends-on): Add stat-macros.
4909 * lib/stat_.h (includes): Pick up stat macros.
4910 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
4911 if stat macros are broken.
4912 * lib/tempname.c (includes): No need to include "stat-macros.h".
4913 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
4914 (direxists, __path_search) [!_LIBC]: Don't compile these in
4915 gnulib; the tmpdir module covers that.
4916 * lib/tempname.h: New file.
4918 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
4920 * COPYING: Explain how gnulib-tool converts licence headers.
4921 Almost all wording by Eric Blake.
4923 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
4925 * lib/mbchar.h (is_basic_table): Make read-only.
4926 * lib/mbchar.c (is_basic_table): Likewise.
4927 Reported by John Darrington.
4929 2006-10-25 Bruno Haible <bruno@clisp.org>
4931 * lib/progname.h (set_program_name): Undefine before defining.
4933 2006-10-25 Bruno Haible <bruno@clisp.org>
4935 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
4936 false for non-gcc C++ compilers.
4937 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4939 2006-10-24 Bruno Haible <bruno@clisp.org>
4941 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
4942 iconv implementations like Irix iconv.
4944 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
4946 * modules/vararrays: New file.
4947 * m4/vararrays.m4: New file, taken from diffutils.
4948 * MODULES.html.sh: New module vararrays.
4950 2006-10-24 Karl Berry <karl@gnu.org>
4952 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
4953 Don't call GNU Unix.
4955 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4957 * users.txt: Add Libtool.
4961 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
4963 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
4964 to gnulib's policy of including config.h unconditionally.
4966 2006-10-24 Bruno Haible <bruno@clisp.org>
4968 * modules/wcwidth (Files): Add m4/wint_t.m4.
4969 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
4970 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
4972 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
4974 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
4975 to pacify GCC with some -W flags enabled. Problem reported by
4978 2006-10-24 Jim Meyering <jim@meyering.net>
4980 * MODULES.html.sh: Remove uinttostr. It's not a module.
4981 Reported by Karl Berry.
4983 2006-10-23 Bruno Haible <bruno@clisp.org>
4985 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
4987 2006-10-24 Bruno Haible <bruno@clisp.org>
4989 * lib/gl_list.h: Use C comment style, not C++ comment style.
4991 2006-10-23 Eric Blake <ebb9@byu.net>
4993 * lib/getaddrinfo.c (includes): Add missing include.
4995 2006-10-23 Bruno Haible <bruno@clisp.org>
4996 Paul Eggert <eggert@cs.ucla.edu>
4998 Ability to rename obstack_free.
4999 * lib/obstack.h (__obstack_free): New macro. Declare instead of
5001 (obstack_free): Invoke the __obstack_free macro.
5002 * lib/obstack.c (obstack_free): Use __obstack_free macro.
5004 2006-10-23 Bruno Haible <bruno@clisp.org>
5005 Paul Eggert <eggert@cs.ucla.edu>
5007 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
5008 __argc, __argv from the declaration. (They are defined as macros on
5011 2006-10-22 Bruno Haible <bruno@clisp.org>
5013 * doc/gnulib-intro.texi: New file.
5014 * doc/gnulib.texi: Include it.
5016 2006-10-21 Bruno Haible <bruno@clisp.org>
5018 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
5019 "Introduction", "Miscellanous Notes", "Particular Modules".
5021 2006-10-21 Bruno Haible <bruno@clisp.org>
5023 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5024 Change mostlyclean-local rule to avoid sh syntax error from bash
5025 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
5027 2006-10-23 Jim Meyering <jim@meyering.net>
5029 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
5030 in place of snprintf.
5032 * modules/inttostr (Files): Add lib/uinttostr.c.
5033 * lib/uinttostr.c (inttostr): New file/function.
5034 * lib/inttostr.h (uinttostr): Declare.
5035 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
5036 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
5038 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
5040 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
5042 * lib/canonicalize.c (ELOOP): Define if not already defined.
5043 Problem reported by Bruno Haible in
5044 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
5046 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
5048 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
5049 Problem reported by Perry Smith and Ville Laurikari.
5051 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
5054 2006-10-19 Bruno Haible <bruno@clisp.org>
5056 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
5059 2006-10-19 Bruno Haible <bruno@clisp.org>
5061 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
5064 2006-10-19 Bruno Haible <bruno@clisp.org>
5066 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
5068 2006-10-19 Bruno Haible <bruno@clisp.org>
5070 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
5073 2006-10-19 Bruno Haible <bruno@clisp.org>
5075 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
5078 2006-10-19 Bruno Haible <bruno@clisp.org>
5080 * gnulib-tool (func_create_testdir): Don't include ftruncate and
5081 mountlist by default.
5083 2006-10-16 Bruno Haible <bruno@clisp.org>
5085 * lib/c-strstr.c: Include c-strstr.h.
5087 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
5089 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
5092 2006-10-18 Bruno Haible <bruno@clisp.org>
5094 * lib/lock.h [C++]: Wrap definitions in extern "C".
5096 2006-10-18 Bruno Haible <bruno@clisp.org>
5098 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
5101 2006-10-18 Bruno Haible <bruno@clisp.org>
5103 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
5105 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
5107 * lib/xstrtol.h: Include gettext.h.
5108 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
5109 Problem reported by Eric Blake.
5110 * modules/xstrtol (Depends-on): Add gettext-h.
5112 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
5114 * lib/strftime.c (advance): New macro.
5115 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
5116 incomplete type, so you can't add 0 to it. Problem and patch
5117 reported by Eelco Dolstra for dietlibc.
5119 2006-10-18 Jim Meyering <jim@meyering.net>
5121 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
5122 type for a local, and rename it: s/up/user_proc/.
5124 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
5126 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
5127 READ_UTMP_USER_PROCESS.
5128 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
5130 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
5132 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
5133 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
5135 2006-10-17 Eric Blake <ebb9@byu.net>
5137 * lib/sigprocmask.c (sigprocmask): Fix typo.
5139 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
5141 * modules/clean-temp (Makefile.am): Don't add to make output...
5142 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
5145 2006-10-17 Bruno Haible <bruno@clisp.org>
5147 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
5148 differently if DEFAULT_TEXT_DOMAIN is set.
5150 2006-10-16 Bruno Haible <bruno@clisp.org>
5152 * lib/clean-temp.c: Include fwriteerror.h.
5154 2006-10-16 Bruno Haible <bruno@clisp.org>
5156 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
5158 2006-10-16 Bruno Haible <bruno@clisp.org>
5160 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
5161 * lib/sigprocmask.h: Include <sys/types.h>.
5162 (sigset_t): Use the system's definition if present.
5164 2006-10-17 Eric Blake <ebb9@byu.net>
5166 * lib/xvasprintf.c (includes): Assume config.h.
5167 * lib/xasprintf.c (includes): Likewise.
5169 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
5171 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
5172 at least as wide as intmax_t.
5174 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
5176 (Imported from Automake.)
5177 * build-aux/gnupload: Update to version 1.1 of directive file.
5179 2006-10-16 Eric Blake <ebb9@byu.net>
5181 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
5182 match Automake 1.10a.
5184 2006-10-14 Bruno Haible <bruno@clisp.org>
5186 * modules/sigprocmask: New file.
5187 * lib/sigprocmask.h: New file.
5188 * lib/sigprocmask.c: New file.
5189 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
5190 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
5191 request sigprocmask.o.
5192 (gl_PREREQ_SIGPROCMASK): New macro.
5193 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
5194 (Depends-on): Add sigprocmask.
5195 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
5196 gt_SIGNALBLOCKING. Test for 'raise' only once.
5197 * lib/fatal-signal.c: Include sigprocmask.h.
5198 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
5199 unblock_fatal_signals): Define always.
5200 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
5203 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
5206 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
5207 which incorrectly sets the mode of an existing destination
5208 directory. In some cases the unpatched install-sh could do the
5209 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
5210 system. We hope this is rare in practice, but it's clearly worth
5211 fixing. Problem reported by Alex Unleashed in
5212 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
5213 Also, don't bother to check for -m bugs unless we're using -m;
5214 suggested by Stepan Kasal.
5216 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5219 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
5220 `-c' flag, so they appear at the same position as in %FASTDEP%
5221 mode in depend2.am. Fixes build failure for FreeBSD's c89,
5222 which ignores unknown options only after the first non-option.
5223 Bug report against M4 by Nelson H. F. Beebe.
5225 2006-10-13 Jim Meyering <jim@meyering.net>
5227 Fix a bug in yesterday's change.
5228 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
5229 p->fts_statp->st_dev would be used uninitialized.
5230 Ensures that we always call fts_stat on the very first entry.
5231 Miklos Szeredi reported that find -xdev stopped working.
5233 2006-10-12 Bruno Haible <bruno@clisp.org>
5235 * gnulib-tool (func_get_automake_snippet): Append an automatically
5236 computed EXTRA_DIST augmentation.
5237 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
5238 * modules/alloca-opt (Makefile.am): Likewise.
5239 * modules/allocsa (Makefile.am): Likewise.
5240 * modules/arcfour (Makefile.am): Likewise.
5241 * modules/arctwo (Makefile.am): Likewise.
5242 * modules/argmatch (Makefile.am): Likewise.
5243 * modules/argz (Makefile.am): Likewise.
5244 * modules/atexit (Makefile.am): Likewise.
5245 * modules/backupfile (Makefile.am): Likewise.
5246 * modules/byteswap (Makefile.am): Likewise.
5247 * modules/c-strtod (Makefile.am): Likewise.
5248 * modules/c-strtold (Makefile.am): Likewise.
5249 * modules/calloc (Makefile.am): Likewise.
5250 * modules/canon-host (Makefile.am): Likewise.
5251 * modules/canonicalize (Makefile.am): Likewise.
5252 * modules/chdir-long (Makefile.am): Likewise.
5253 * modules/chdir-safer (Makefile.am): Likewise.
5254 * modules/check-version (Makefile.am): Likewise.
5255 * modules/chown (Makefile.am): Likewise.
5256 * modules/cloexec (Makefile.am): Likewise.
5257 * modules/close-stream (Makefile.am): Likewise.
5258 * modules/closeout (Makefile.am): Likewise.
5259 * modules/crc (Makefile.am): Likewise.
5260 * modules/csharpexec (Makefile.am): Likewise.
5261 * modules/cycle-check (Makefile.am): Likewise.
5262 * modules/des (Makefile.am): Likewise.
5263 * modules/dev-ino (Makefile.am): Likewise.
5264 * modules/dirfd (Makefile.am): Likewise.
5265 * modules/dirname (Makefile.am): Likewise.
5266 * modules/dup2 (Makefile.am): Likewise.
5267 * modules/eealloc (Makefile.am): Likewise.
5268 * modules/error (Makefile.am): Likewise.
5269 * modules/euidaccess (Makefile.am): Likewise.
5270 * modules/exclude (Makefile.am): Likewise.
5271 * modules/exitfail (Makefile.am): Likewise.
5272 * modules/fcntl-safer (Makefile.am): Likewise.
5273 * modules/fcntl (Makefile.am): Likewise.
5274 * modules/file-type (Makefile.am): Likewise.
5275 * modules/fileblocks (Makefile.am): Likewise.
5276 * modules/filemode (Makefile.am): Likewise.
5277 * modules/filenamecat (Makefile.am): Likewise.
5278 * modules/fnmatch (Makefile.am): Likewise.
5279 * modules/fopen-safer (Makefile.am): Likewise.
5280 * modules/fpending (Makefile.am): Likewise.
5281 * modules/fprintftime (Makefile.am): Likewise.
5282 * modules/free (Makefile.am): Likewise.
5283 * modules/fsusage (Makefile.am): Likewise.
5284 * modules/ftruncate (Makefile.am): Likewise.
5285 * modules/fts (Makefile.am): Likewise.
5286 * modules/gc-arcfour (Makefile.am): Likewise.
5287 * modules/gc-des (Makefile.am): Likewise.
5288 * modules/gc-hmac-md5 (Makefile.am): Likewise.
5289 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
5290 * modules/gc-md4 (Makefile.am): Likewise.
5291 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
5292 * modules/gc-sha1 (Makefile.am): Likewise.
5293 * modules/gc (Makefile.am): Likewise.
5294 * modules/getaddrinfo (Makefile.am): Likewise.
5295 * modules/getcwd (Makefile.am): Likewise.
5296 * modules/getdelim (Makefile.am): Likewise.
5297 * modules/getdomainname (Makefile.am): Likewise.
5298 * modules/getgroups (Makefile.am): Likewise.
5299 * modules/gethostname (Makefile.am): Likewise.
5300 * modules/gethrxtime (Makefile.am): Likewise.
5301 * modules/getline (Makefile.am): Likewise.
5302 * modules/getloadavg (Makefile.am): Likewise.
5303 * modules/getlogin_r (Makefile.am): Likewise.
5304 * modules/getndelim2 (Makefile.am): Likewise.
5305 * modules/getopt (Makefile.am): Likewise.
5306 * modules/getpagesize (Makefile.am): Likewise.
5307 * modules/getpass-gnu (Makefile.am): Likewise.
5308 * modules/getpass (Makefile.am): Likewise.
5309 * modules/getsubopt (Makefile.am): Likewise.
5310 * modules/gettime (Makefile.am): Likewise.
5311 * modules/gettimeofday (Makefile.am): Likewise.
5312 * modules/getugroups (Makefile.am): Likewise.
5313 * modules/getusershell (Makefile.am): Likewise.
5314 * modules/glob (Makefile.am): Likewise.
5315 * modules/group-member (Makefile.am): Likewise.
5316 * modules/hard-locale (Makefile.am): Likewise.
5317 * modules/hash (Makefile.am): Likewise.
5318 * modules/hmac-md5 (Makefile.am): Likewise.
5319 * modules/hmac-sha1 (Makefile.am): Likewise.
5320 * modules/human (Makefile.am): Likewise.
5321 * modules/idcache (Makefile.am): Likewise.
5322 * modules/imaxabs (Makefile.am): Likewise.
5323 * modules/imaxdiv (Makefile.am): Likewise.
5324 * modules/inet_ntop (Makefile.am): Likewise.
5325 * modules/inet_pton (Makefile.am): Likewise.
5326 * modules/intprops (Makefile.am): Likewise.
5327 * modules/inttostr (Makefile.am): Likewise.
5328 * modules/inttypes (Makefile.am): Likewise.
5329 * modules/isapipe (Makefile.am): Likewise.
5330 * modules/javaversion (Makefile.am): Likewise.
5331 * modules/lchmod (Makefile.am): Likewise.
5332 * modules/lchown (Makefile.am): Likewise.
5333 * modules/localcharset (Makefile.am): Likewise.
5334 * modules/long-options (Makefile.am): Likewise.
5335 * modules/lstat (Makefile.am): Likewise.
5336 * modules/malloc (Makefile.am): Likewise.
5337 * modules/mathl (Makefile.am): Likewise.
5338 * modules/mbchar (Makefile.am): Likewise.
5339 * modules/md2 (Makefile.am): Likewise.
5340 * modules/md4 (Makefile.am): Likewise.
5341 * modules/md5 (Makefile.am): Likewise.
5342 * modules/memcasecmp (Makefile.am): Likewise.
5343 * modules/memchr (Makefile.am): Likewise.
5344 * modules/memcmp (Makefile.am): Likewise.
5345 * modules/memcoll (Makefile.am): Likewise.
5346 * modules/memcpy (Makefile.am): Likewise.
5347 * modules/memmem (Makefile.am): Likewise.
5348 * modules/memmove (Makefile.am): Likewise.
5349 * modules/mempcpy (Makefile.am): Likewise.
5350 * modules/memrchr (Makefile.am): Likewise.
5351 * modules/memset (Makefile.am): Likewise.
5352 * modules/memxor (Makefile.am): Likewise.
5353 * modules/mkancesdirs (Makefile.am): Likewise.
5354 * modules/mkdir-p (Makefile.am): Likewise.
5355 * modules/mkdir (Makefile.am): Likewise.
5356 * modules/mkdtemp (Makefile.am): Likewise.
5357 * modules/mkstemp (Makefile.am): Likewise.
5358 * modules/mktime (Makefile.am): Likewise.
5359 * modules/modechange (Makefile.am): Likewise.
5360 * modules/mountlist (Makefile.am): Likewise.
5361 * modules/nanosleep (Makefile.am): Likewise.
5362 * modules/obstack (Makefile.am): Likewise.
5363 * modules/openat (Makefile.am): Likewise.
5364 * modules/pagealign_alloc (Makefile.am): Likewise.
5365 * modules/pathmax (Makefile.am): Likewise.
5366 * modules/physmem (Makefile.am): Likewise.
5367 * modules/poll (Makefile.am): Likewise.
5368 * modules/posixtm (Makefile.am): Likewise.
5369 * modules/posixver (Makefile.am): Likewise.
5370 * modules/putenv (Makefile.am): Likewise.
5371 * modules/quote (Makefile.am): Likewise.
5372 * modules/quotearg (Makefile.am): Likewise.
5373 * modules/raise (Makefile.am): Likewise.
5374 * modules/read-file (Makefile.am): Likewise.
5375 * modules/readline (Makefile.am): Likewise.
5376 * modules/readlink (Makefile.am): Likewise.
5377 * modules/readtokens (Makefile.am): Likewise.
5378 * modules/readutmp (Makefile.am): Likewise.
5379 * modules/realloc (Makefile.am): Likewise.
5380 * modules/regex (Makefile.am): Likewise.
5381 * modules/rename-dest-slash (Makefile.am): Likewise.
5382 * modules/rename (Makefile.am): Likewise.
5383 * modules/rijndael (Makefile.am): Likewise.
5384 * modules/rmdir (Makefile.am): Likewise.
5385 * modules/rpmatch (Makefile.am): Likewise.
5386 * modules/safe-read (Makefile.am): Likewise.
5387 * modules/safe-write (Makefile.am): Likewise.
5388 * modules/same-inode (Makefile.am): Likewise.
5389 * modules/same (Makefile.am): Likewise.
5390 * modules/save-cwd (Makefile.am): Likewise.
5391 * modules/savedir (Makefile.am): Likewise.
5392 * modules/setenv (Makefile.am): Likewise.
5393 * modules/settime (Makefile.am): Likewise.
5394 * modules/sha1 (Makefile.am): Likewise.
5395 * modules/sig2str (Makefile.am): Likewise.
5396 * modules/snprintf (Makefile.am): Likewise.
5397 * modules/stat-macros (Makefile.am): Likewise.
5398 * modules/stat-time (Makefile.am): Likewise.
5399 * modules/stdbool (Makefile.am): Likewise.
5400 * modules/stdint (Makefile.am): Likewise.
5401 * modules/stdlib-safer (Makefile.am): Likewise.
5402 * modules/stpcpy (Makefile.am): Likewise.
5403 * modules/stpncpy (Makefile.am): Likewise.
5404 * modules/strcase (Makefile.am): Likewise.
5405 * modules/strcasestr (Makefile.am): Likewise.
5406 * modules/strchrnul (Makefile.am): Likewise.
5407 * modules/strcspn (Makefile.am): Likewise.
5408 * modules/strdup (Makefile.am): Likewise.
5409 * modules/strerror (Makefile.am): Likewise.
5410 * modules/strftime (Makefile.am): Likewise.
5411 * modules/strndup (Makefile.am): Likewise.
5412 * modules/strnlen (Makefile.am): Likewise.
5413 * modules/strpbrk (Makefile.am): Likewise.
5414 * modules/strsep (Makefile.am): Likewise.
5415 * modules/strstr (Makefile.am): Likewise.
5416 * modules/strtod (Makefile.am): Likewise.
5417 * modules/strtoimax (Makefile.am): Likewise.
5418 * modules/strtok_r (Makefile.am): Likewise.
5419 * modules/strtol (Makefile.am): Likewise.
5420 * modules/strtoll (Makefile.am): Likewise.
5421 * modules/strtoul (Makefile.am): Likewise.
5422 * modules/strtoull (Makefile.am): Likewise.
5423 * modules/strtoumax (Makefile.am): Likewise.
5424 * modules/strverscmp (Makefile.am): Likewise.
5425 * modules/sys_socket (Makefile.am): Likewise.
5426 * modules/sys_stat (Makefile.am): Likewise.
5427 * modules/sysexits (Makefile.am): Likewise.
5428 * modules/time_r (Makefile.am): Likewise.
5429 * modules/timegm (Makefile.am): Likewise.
5430 * modules/timespec (Makefile.am): Likewise.
5431 * modules/tmpfile-safer (Makefile.am): Likewise.
5432 * modules/trim (Makefile.am): Likewise.
5433 * modules/unistd-safer (Makefile.am): Likewise.
5434 * modules/unlinkdir (Makefile.am): Likewise.
5435 * modules/unlocked-io (Makefile.am): Likewise.
5436 * modules/userspec (Makefile.am): Likewise.
5437 * modules/utime (Makefile.am): Likewise.
5438 * modules/utimecmp (Makefile.am): Likewise.
5439 * modules/utimens (Makefile.am): Likewise.
5440 * modules/vasnprintf (Makefile.am): Likewise.
5441 * modules/vasprintf (Makefile.am): Likewise.
5442 * modules/vsnprintf (Makefile.am): Likewise.
5443 * modules/xalloc (Makefile.am): Likewise.
5444 * modules/xgetcwd (Makefile.am): Likewise.
5445 * modules/xnanosleep (Makefile.am): Likewise.
5446 * modules/xreadlink (Makefile.am): Likewise.
5447 * modules/xstrtod (Makefile.am): Likewise.
5448 * modules/xstrtol (Makefile.am): Likewise.
5449 * modules/xstrtold (Makefile.am): Likewise.
5450 * modules/yesno (Makefile.am): Likewise.
5451 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
5453 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
5455 * modules/error (Makefile.am): Distribute files through
5456 EXTRA_DIST, not lib_SOURCES.
5458 2006-10-12 Eric Blake <ebb9@byu.net>
5460 * modules/error (Makefile.am): Distribute files in /lib.
5461 * modules/obstack (Makefile.am): Likewise.
5463 2006-10-12 Bruno Haible <bruno@clisp.org>
5465 * modules/acl (Makefile.am): Distribute all files in lib/ through
5467 * modules/arcfour (Makefile.am): Likewise.
5468 * modules/arctwo (Makefile.am): Likewise.
5469 * modules/argmatch (Makefile.am): Likewise.
5470 * modules/argz (Makefile.am): Likewise.
5471 * modules/atexit (Makefile.am): Likewise.
5472 * modules/backupfile (Makefile.am): Likewise.
5473 * modules/c-strtod (Makefile.am): Likewise.
5474 * modules/c-strtold (Makefile.am): Likewise.
5475 * modules/calloc (Makefile.am): Likewise.
5476 * modules/canon-host (Makefile.am): Likewise.
5477 * modules/canonicalize (Makefile.am): Likewise.
5478 * modules/chdir-long (Makefile.am): Likewise.
5479 * modules/chdir-safer (Makefile.am): Likewise.
5480 * modules/check-version (Makefile.am): Likewise.
5481 * modules/chown (Makefile.am): Likewise.
5482 * modules/cloexec (Makefile.am): Likewise.
5483 * modules/close-stream (Makefile.am): Likewise.
5484 * modules/closeout (Makefile.am): Likewise.
5485 * modules/crc (Makefile.am): Likewise.
5486 * modules/cycle-check (Makefile.am): Likewise.
5487 * modules/des (Makefile.am): Likewise.
5488 * modules/dirfd (Makefile.am): Likewise.
5489 * modules/dirname (Makefile.am): Likewise.
5490 * modules/dup2 (Makefile.am): Likewise.
5491 * modules/euidaccess (Makefile.am): Likewise.
5492 * modules/exclude (Makefile.am): Likewise.
5493 * modules/exitfail (Makefile.am): Likewise.
5494 * modules/fcntl-safer (Makefile.am): Likewise.
5495 * modules/file-type (Makefile.am): Likewise.
5496 * modules/fileblocks (Makefile.am): Likewise.
5497 * modules/filemode (Makefile.am): Likewise.
5498 * modules/filenamecat (Makefile.am): Likewise.
5499 * modules/fnmatch (Makefile.am): Likewise.
5500 * modules/fopen-safer (Makefile.am): Likewise.
5501 * modules/fpending (Makefile.am): Likewise.
5502 * modules/fprintftime (Makefile.am): Likewise.
5503 * modules/free (Makefile.am): Likewise.
5504 * modules/fsusage (Makefile.am): Likewise.
5505 * modules/ftruncate (Makefile.am): Likewise.
5506 * modules/fts (Makefile.am): Likewise.
5507 * modules/gc (Makefile.am): Likewise.
5508 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
5509 * modules/getaddrinfo (Makefile.am): Likewise.
5510 * modules/getcwd (Makefile.am): Likewise.
5511 * modules/getdelim (Makefile.am): Likewise.
5512 * modules/getdomainname (Makefile.am): Likewise.
5513 * modules/getgroups (Makefile.am): Likewise.
5514 * modules/gethostname (Makefile.am): Likewise.
5515 * modules/gethrxtime (Makefile.am): Likewise.
5516 * modules/getline (Makefile.am): Likewise.
5517 * modules/getloadavg (Makefile.am): Likewise.
5518 * modules/getlogin_r (Makefile.am): Likewise.
5519 * modules/getopt (Makefile.am): Likewise.
5520 * modules/getpass (Makefile.am): Likewise.
5521 * modules/getpass-gnu (Makefile.am): Likewise.
5522 * modules/getsubopt (Makefile.am): Likewise.
5523 * modules/gettime (Makefile.am): Likewise.
5524 * modules/gettimeofday (Makefile.am): Likewise.
5525 * modules/getugroups (Makefile.am): Likewise.
5526 * modules/getusershell (Makefile.am): Likewise.
5527 * modules/glob (Makefile.am): Likewise.
5528 * modules/group-member (Makefile.am): Likewise.
5529 * modules/hard-locale (Makefile.am): Likewise.
5530 * modules/hash (Makefile.am): Likewise.
5531 * modules/hmac-md5 (Makefile.am): Likewise.
5532 * modules/hmac-sha1 (Makefile.am): Likewise.
5533 * modules/human (Makefile.am): Likewise.
5534 * modules/idcache (Makefile.am): Likewise.
5535 * modules/imaxabs (Makefile.am): Likewise.
5536 * modules/imaxdiv (Makefile.am): Likewise.
5537 * modules/inet_ntop (Makefile.am): Likewise.
5538 * modules/inet_pton (Makefile.am): Likewise.
5539 * modules/inttostr (Makefile.am): Likewise.
5540 * modules/isapipe (Makefile.am): Likewise.
5541 * modules/lchown (Makefile.am): Likewise.
5542 * modules/long-options (Makefile.am): Likewise.
5543 * modules/lstat (Makefile.am): Likewise.
5544 * modules/malloc (Makefile.am): Likewise.
5545 * modules/mathl (Makefile.am): Likewise.
5546 * modules/mbchar (Makefile.am): Likewise.
5547 * modules/md2 (Makefile.am): Likewise.
5548 * modules/md4 (Makefile.am): Likewise.
5549 * modules/md5 (Makefile.am): Likewise.
5550 * modules/memcasecmp (Makefile.am): Likewise.
5551 * modules/memchr (Makefile.am): Likewise.
5552 * modules/memcmp (Makefile.am): Likewise.
5553 * modules/memcoll (Makefile.am): Likewise.
5554 * modules/memcpy (Makefile.am): Likewise.
5555 * modules/memmem (Makefile.am): Likewise.
5556 * modules/memmove (Makefile.am): Likewise.
5557 * modules/mempcpy (Makefile.am): Likewise.
5558 * modules/memrchr (Makefile.am): Likewise.
5559 * modules/memset (Makefile.am): Likewise.
5560 * modules/memxor (Makefile.am): Likewise.
5561 * modules/mkancesdirs (Makefile.am): Likewise.
5562 * modules/mkdir (Makefile.am): Likewise.
5563 * modules/mkdir-p (Makefile.am): Likewise.
5564 * modules/mkdtemp (Makefile.am): Likewise.
5565 * modules/mkstemp (Makefile.am): Likewise.
5566 * modules/mktime (Makefile.am): Likewise.
5567 * modules/modechange (Makefile.am): Likewise.
5568 * modules/mountlist (Makefile.am): Likewise.
5569 * modules/nanosleep (Makefile.am): Likewise.
5570 * modules/openat (Makefile.am): Likewise.
5571 * modules/pagealign_alloc (Makefile.am): Likewise.
5572 * modules/physmem (Makefile.am): Likewise.
5573 * modules/poll (Makefile.am): Likewise.
5574 * modules/posixtm (Makefile.am): Likewise.
5575 * modules/posixver (Makefile.am): Likewise.
5576 * modules/putenv (Makefile.am): Likewise.
5577 * modules/quote (Makefile.am): Likewise.
5578 * modules/quotearg (Makefile.am): Likewise.
5579 * modules/raise (Makefile.am): Likewise.
5580 * modules/read-file (Makefile.am): Likewise.
5581 * modules/readline (Makefile.am): Likewise.
5582 * modules/readlink (Makefile.am): Likewise.
5583 * modules/readtokens (Makefile.am): Likewise.
5584 * modules/readutmp (Makefile.am): Likewise.
5585 * modules/realloc (Makefile.am): Likewise.
5586 * modules/regex (Makefile.am): Likewise.
5587 * modules/rename (Makefile.am): Likewise.
5588 * modules/rename-dest-slash (Makefile.am): Likewise.
5589 * modules/rijndael (Makefile.am): Likewise.
5590 * modules/rmdir (Makefile.am): Likewise.
5591 * modules/rpmatch (Makefile.am): Likewise.
5592 * modules/safe-read (Makefile.am): Likewise.
5593 * modules/safe-write (Makefile.am): Likewise.
5594 * modules/same (Makefile.am): Likewise.
5595 * modules/save-cwd (Makefile.am): Likewise.
5596 * modules/savedir (Makefile.am): Likewise.
5597 * modules/setenv (Makefile.am): Likewise.
5598 * modules/settime (Makefile.am): Likewise.
5599 * modules/sha1 (Makefile.am): Likewise.
5600 * modules/sig2str (Makefile.am): Likewise.
5601 * modules/snprintf (Makefile.am): Likewise.
5602 * modules/stdlib-safer (Makefile.am): Likewise.
5603 * modules/stpcpy (Makefile.am): Likewise.
5604 * modules/stpncpy (Makefile.am): Likewise.
5605 * modules/strcase (Makefile.am): Likewise.
5606 * modules/strcasestr (Makefile.am): Likewise.
5607 * modules/strchrnul (Makefile.am): Likewise.
5608 * modules/strcspn (Makefile.am): Likewise.
5609 * modules/strdup (Makefile.am): Likewise.
5610 * modules/strerror (Makefile.am): Likewise.
5611 * modules/strftime (Makefile.am): Likewise.
5612 * modules/strndup (Makefile.am): Likewise.
5613 * modules/strnlen (Makefile.am): Likewise.
5614 * modules/strpbrk (Makefile.am): Likewise.
5615 * modules/strsep (Makefile.am): Likewise.
5616 * modules/strstr (Makefile.am): Likewise.
5617 * modules/strtod (Makefile.am): Likewise.
5618 * modules/strtoimax (Makefile.am): Likewise.
5619 * modules/strtok_r (Makefile.am): Likewise.
5620 * modules/strtol (Makefile.am): Likewise.
5621 * modules/strtoll (Makefile.am): Likewise.
5622 * modules/strtoul (Makefile.am): Likewise.
5623 * modules/strtoull (Makefile.am): Likewise.
5624 * modules/strtoumax (Makefile.am): Likewise.
5625 * modules/strverscmp (Makefile.am): Likewise.
5626 * modules/time_r (Makefile.am): Likewise.
5627 * modules/timegm (Makefile.am): Likewise.
5628 * modules/tmpfile-safer (Makefile.am): Likewise.
5629 * modules/unistd-safer (Makefile.am): Likewise.
5630 * modules/unlinkdir (Makefile.am): Likewise.
5631 * modules/userspec (Makefile.am): Likewise.
5632 * modules/utime (Makefile.am): Likewise.
5633 * modules/utimecmp (Makefile.am): Likewise.
5634 * modules/utimens (Makefile.am): Likewise.
5635 * modules/vasnprintf (Makefile.am): Likewise.
5636 * modules/vasprintf (Makefile.am): Likewise.
5637 * modules/vsnprintf (Makefile.am): Likewise.
5638 * modules/xalloc (Makefile.am): Likewise.
5639 * modules/xgetcwd (Makefile.am): Likewise.
5640 * modules/xnanosleep (Makefile.am): Likewise.
5641 * modules/xreadlink (Makefile.am): Likewise.
5642 * modules/xstrtod (Makefile.am): Likewise.
5643 * modules/xstrtol (Makefile.am): Likewise.
5644 * modules/xstrtold (Makefile.am): Likewise.
5645 * modules/yesno (Makefile.am): Likewise.
5647 2006-10-12 Jim Meyering <jim@meyering.net>
5649 * m4/getloadavg.m4: Revert the change below.
5651 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
5652 lib/getloadavg.c using "ls -L", not "test -f". The latter would
5653 fail with a symlink, which is what coreutils' ./bootstrap now
5656 2006-10-12 Bruno Haible <bruno@clisp.org>
5658 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
5660 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
5661 MSVC and mingw explicitly.
5663 2006-10-11 Simon Josefsson <jas@extundo.com>
5664 Bruno Haible <bruno@clisp.org>
5666 Add support for multiple gnulib-tool invocations in the scope of a
5667 single configure.ac file.
5668 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
5669 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
5670 with the same contents as the _LIBADD variable.
5671 (func_emit_initmacro_start, func_emit_initmacro_end,
5672 func_emit_initmacro_done): New functions.
5673 (func_import, func_create_testdir): Invoke them. Allow the identifiers
5674 gl_LIBOBJS and gl_LTLIBOBJS.
5676 2006-10-11 Bruno Haible <bruno@clisp.org>
5678 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
5679 (func_create_testdir): Don't create po/Makefile.am, don't invoke
5680 autoreconf. Instead, invoke autopoint explicitly but move back the
5681 *.m4 files from gnulib.
5683 2006-10-11 Bruno Haible <bruno@clisp.org>
5685 * gnulib-tool (func_usage): Make module names after --create-testdir
5687 (func_create_testdir): If no module was specified, use nearly all
5690 2006-10-12 Jim Meyering <jim@meyering.net>
5692 Big performance improvement for fts-based tools that use FTS_NOSTAT.
5693 Avoid spurious inode-mismatch problems on non-POSIX file systems.
5694 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
5695 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
5696 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
5697 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
5698 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
5699 (fts_set_stat_required): New function.
5700 (fts_open): Defer the calls to fts_stat, if possible or requested.
5701 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
5702 into fts_stat itself.
5703 (fts_read): Perform any required (deferred) fts_stat call.
5704 (fts_build): Likewise, for the directory we're about to open and read.
5705 In the readdir loop, carefully decide whether each entry will require
5706 an eventual call to fts_stat, using dirent.d_type info if available.
5707 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
5708 a command line argument into this function. Update all callers.
5709 Map a return value of FTS_DOT to FTS_D for a command line argument.
5710 * modules/fts (Depends-on): Add d-type. Alphabetize.
5711 Thanks to Miklos Szeredi for his tenacity and for the initial
5712 bug report about "find" failing on a FUSE-based file system.
5714 * lib/fts.c (fts_open): Use consistent indentation.
5716 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
5718 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
5719 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
5720 reported by Jim Meyering. All uses of cache variables renamed
5721 to match Autoconf's.
5722 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
5725 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
5726 Fix misspelling in diagnostic.
5728 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
5730 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
5731 defined. Problem reported by Matthew Woehlke.
5733 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
5734 Add support for Tandem NonStop R series.
5735 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
5738 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
5739 (has_trailing_slash): Omit size arg; all callers changed.
5740 Omit 'inline', since it doesn't help performance and we'd
5741 need to configure it.
5742 Don't count //, ///, etc. as having a trailing slash.
5743 As a side effect, this removes a C99ism reported by Matthew Woehlke.
5744 (rpl_rename_dest_slash): On failure, use rename's errno rather
5745 than (in some cases) an incorrect or junk errno.
5746 Simplify code by removing need to compute length; this does
5747 cause it to make two passes instead of one over the file name,
5750 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
5751 change, since Autoconf's version may no longer be appropriate now
5752 that we are using CVS Autoconf's version. Add support for Tandem.
5754 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
5755 Bruno Haible <bruno@clisp.org>
5757 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
5758 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
5759 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
5760 gl_AC_TYPE_LONG_LONG.
5762 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
5763 instead of HAVE_LONG_LONG.
5764 * lib/printf-args.c (printf_fetchargs): Likewise.
5765 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
5766 * lib/vasnprintf.c (VASNPRINTF): Likewise.
5767 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
5768 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
5769 gl_AC_TYPE_LONG_LONG.
5771 2006-10-11 Bruno Haible <bruno@clisp.org>
5773 * m4/longlong.m4: Add comments.
5774 * m4/ulonglong.m4: Likewise.
5776 2006-10-10 Bruno Haible <bruno@clisp.org>
5778 Make it possible to #define stpcpy, strdup to aliases.
5779 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
5780 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
5782 2006-10-10 Bruno Haible <bruno@clisp.org>
5784 Make it possible to #define gcd to an alias.
5785 * lib/gcd.c: Include config.h.
5787 2006-10-10 Bruno Haible <bruno@clisp.org>
5789 Make it possible to #define c_isascii to an alias.
5790 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
5791 defined. Undefine the macros before defining them, to avoid gcc
5793 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
5794 define NO_C_CTYPE_MACROS early.
5796 2006-10-10 Bruno Haible <bruno@clisp.org>
5798 Make it possible to #define set_program_name to an alias.
5799 * lib/progname.c: Don't undefine set_program_name; instead, undefine
5800 ENABLE_RELOCATABLE early.
5802 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
5804 Port to Tandem NSK OSS, which has 64-bit signed int but at most
5805 32-bit unsigned int. Problem reported by Matthew Woehlke in:
5806 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
5807 More generally, don't assume that 64-bit signed int is available
5808 if unsigned int is, and vice versa.
5809 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
5810 unsigned symbols, not on their signed counterparts.
5811 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
5812 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
5813 (UINT64_C, UINTMAX_C):
5815 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
5816 unsigned counterparts.
5817 (Have_long_long, Unsigned): New macros.
5818 (Int): Renamed from INT.
5819 (strtoimax): Use the new macros.
5820 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
5821 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
5822 * modules/inttypes (inttypes.h): Substitute
5823 HAVE_UNSIGNED_LONG_LONG_INT.
5824 * modules/stdint (stdint.h): Likewise.
5825 (Files): Add m4/ulonglong.m4.
5827 2006-10-10 Bruno Haible <bruno@clisp.org>
5829 Fix a gcc -Wshadow warning.
5830 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
5832 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
5833 gl_linked_indexof_from_to): Likewise.
5834 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
5836 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
5838 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
5839 Reported by Eric Blake.
5841 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
5843 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
5844 for NetBSD. Problem reported by Bruno Haible.
5846 2006-10-09 Jim Meyering <jim@meyering.net>
5848 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
5849 Patch from Bruno Haible.
5851 2006-10-09 Jim Meyering <jim@meyering.net>
5853 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
5854 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
5855 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
5857 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
5859 Don't include <config.h> twice; this doesn't work in some cases,
5860 e.g., when config.h has "#define intmax_t long long int" and
5861 we include <config.h>, <inttypes.h>, <config.h> in that order.
5862 Problem reported by Matthew Woehlke in:
5863 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
5864 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
5865 * lib/fts-cycle.c: Don't include config.h.
5866 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
5867 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
5868 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
5869 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
5871 * lib/xstrtoumax.c: Likewise.
5872 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
5873 __strtol and the like, so that this module is more like its siblings.
5874 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
5875 Remove; no longer needed now that we assume gnulib inttypes.h.
5877 2006-10-08 Bruno Haible <bruno@clisp.org>
5879 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
5882 2006-10-07 Jim Meyering <jim@meyering.net>
5884 * modules/inttypes (inttypes.h): Revert what seems to have been
5885 an inadvertent part of today's change: use "|", not "/" in the
5886 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
5888 2006-10-07 Bruno Haible <bruno@clisp.org>
5890 * modules/sublist: New file.
5892 2006-10-07 Bruno Haible <bruno@clisp.org>
5894 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
5895 * modules/argz (argz.h): Likewise.
5896 * modules/arpa_inet (arpa/inet.h): Likewise.
5897 * modules/byteswap (byteswap.h): Likewise.
5898 * modules/configmake (configmake.h): Likewise.
5899 * modules/fcntl (fcntl.h): Likewise.
5900 * modules/fnmatch (fnmatch.h): Likewise.
5901 * modules/getopt (getopt.h): Likewise.
5902 * modules/glob (glob.h): Likewise.
5903 * modules/inttypes (inttypes.h): Likewise.
5904 * modules/netinet_in (netinet/in.h): Likewise.
5905 * modules/poll (poll.h): Likewise.
5906 * modules/stdbool (stdbool.h): Likewise.
5907 * modules/stdint (stdint.h): Likewise.
5908 * modules/sys_select (sys/select.h): Likewise.
5909 * modules/sys_socket (sys/socket.h): Likewise.
5910 * modules/sys_stat (sys/stat.h): Likewise.
5911 * modules/sysexits (sysexits.h): Likewise.
5912 * modules/unistd (unistd.h): Likewise.
5913 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5914 Add a "DO NOT EDIT" comment to the generated file.
5915 (func_import): Likewise for gnulib-comp.m4.
5917 2006-10-07 Bruno Haible <bruno@clisp.org>
5919 * lib/gl_sublist.h: New file.
5920 * lib/gl_sublist.c: New file.
5922 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
5924 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
5925 name (relative to the original working directory) and the file
5926 name component (relative to the temporary working directory). All
5928 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
5929 * lib/mkdir-p.c (make_dir_parents): Likewise.
5930 * lib/mkdir-p.h (make_dir_parents): Likewise.
5932 2006-10-06 Eric Blake <ebb9@byu.net>
5934 Define several macros for use by the clean-temp module.
5935 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
5936 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
5937 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
5939 * lib/clean-temp.h (close_stream_temp): New declaration.
5940 * lib/clean-temp.c (includes): Pull in headers according to what
5941 other modules are in use.
5942 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
5944 2006-10-06 Bruno Haible <bruno@clisp.org>
5946 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
5947 instead of fopen, fwriteerror.
5949 2006-10-06 Bruno Haible <bruno@clisp.org>
5951 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
5952 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
5954 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
5955 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
5956 Return an error indicator.
5957 Suggested by Eric Blake.
5959 2006-10-06 Bruno Haible <bruno@clisp.org>
5961 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
5962 Reported by Eric Blake.
5964 2006-10-06 Bruno Haible <bruno@clisp.org>
5966 * modules/closeout (Description): Mention stderr too.
5968 2006-10-06 Bruno Haible <bruno@clisp.org>
5969 and Paul Eggert <eggert@cs.ucla.edu>
5971 * lib/closeout.c (close_stdout): Also close stderr.
5972 * lib/closeout.h: Update comment.
5974 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
5976 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
5977 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
5978 * lib/dirchownmod.c: Include lchown.h.
5979 * lib/lchown.c: Don't include files that lchown.h now includes.
5980 Don't declare chown, since lchown.h now does that.
5981 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
5982 (lchown): Define to rpl_chown if lchown is declared but
5983 does not exist. Declare using a prototype if lchown is not
5984 declared. Add a copyright notice.
5985 * lib/mkstemp.h: Include <unistd.h>.
5986 * lib/openat.c: Include lchown.h.
5988 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
5989 we now test for that separately.
5990 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
5991 rather than O_NOFOLLOW, when testing whether it's possible to
5992 avoid a race condition reliably.
5993 * lib/savewd.c (savewd_chdir): Likewise.
5995 Remove macros that are no longer needed now that stdint.h is
5997 * lib/fsusage.c (UINTMAX_MAX): Remove.
5998 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
5999 * lib/utimecmp.c (SIZE_MAX): Remove.
6001 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
6003 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
6004 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
6007 2006-10-05 Bruno Haible <bruno@clisp.org>
6009 * lib/gl_list.h (gl_sortedlist_search_from_to,
6010 gl_sortedlist_indexof_from_to): New declarations.
6011 (gl_list_implementation): New fields sortedlist_search_from_to,
6012 sortedlist_indexof_from_to.
6013 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
6015 * lib/gl_list.c (gl_sortedlist_search_from_to,
6016 gl_sortedlist_indexof_from_to): New functions.
6017 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
6019 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
6020 (gl_array_sortedlist_search_from_to): New function.
6021 (gl_array_list_implementation): Update.
6022 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
6024 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
6025 (gl_carray_sortedlist_search_from_to): New function.
6026 (gl_carray_list_implementation): Update.
6027 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
6028 gl_linked_sortedlist_indexof_from_to): New functions.
6029 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
6030 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
6031 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
6032 gl_tree_sortedlist_indexof_from_to): New functions.
6033 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
6034 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
6036 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
6037 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
6040 2006-10-05 Bruno Haible <bruno@clisp.org>
6042 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
6043 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
6044 (struct gl_list_implementation): Add fields search_from_to,
6045 indexof_from_to. Remove fields search, indexof.
6046 (gl_list_search): Use the search_from_to method.
6047 (gl_list_search_from, gl_list_search_from_to): New functions.
6048 (gl_list_indexof): Use the indexof_from_to method.
6049 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
6050 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
6051 (gl_list_search_from, gl_list_search_from_to): New functions.
6052 (gl_list_indexof): Use the indexof_from_to method.
6053 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
6054 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
6055 gl_array_indexof. Add start_index, end_index arguments.
6056 (gl_array_search_from_to): Renamed from gl_array_search. Add
6057 start_index, end_index arguments.
6058 (gl_array_remove, gl_array_list_implementation): Update.
6059 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
6060 gl_carray_indexof. Add start_index, end_index arguments.
6061 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
6062 start_index, end_index arguments.
6063 (gl_carray_remove, gl_carray_list_implementation): Update.
6064 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
6065 gl_linked_search. Add start_index, end_index arguments.
6066 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
6067 start_index, end_index arguments.
6068 (gl_linked_remove): Update.
6069 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
6070 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
6071 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
6073 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
6074 gl_tree_search. Add start_index, end_index arguments.
6075 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
6076 start_index, end_index arguments.
6077 (gl_tree_remove): Update.
6078 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
6079 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
6080 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
6082 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
6083 gl_tree_search. Add start_index, end_index arguments.
6084 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
6085 start_index, end_index arguments.
6086 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
6088 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
6090 2006-10-05 Bruno Haible <bruno@clisp.org>
6092 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
6094 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
6095 fwriteerror_temp): New declarations.
6096 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
6097 (descriptors): New variable.
6098 (cleanup): First, close the descriptors.
6099 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
6100 fclose_temp, fwriteerror_temp): New functions.
6102 2006-10-04 Jim Meyering <jim@meyering.net>
6104 * lib/fts.c (fts_open): Tiny comment change.
6106 2006-10-04 Bruno Haible <bruno@clisp.org>
6108 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
6109 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
6111 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
6112 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
6114 (gl_LOCK): Require gl_LOCK_BODY.
6116 2006-10-04 Bruno Haible <bruno@clisp.org>
6118 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
6119 (gl_oset_search_atleast): New declaration.
6120 (struct gl_oset_implementation): Add field 'search_atleast'.
6121 (gl_oset_search_atleast): New inline function.
6122 * lib/gl_oset.c (gl_oset_search_atleast): New function.
6123 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
6124 (gl_array_oset_implementation): Update.
6125 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
6126 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
6127 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
6129 2006-10-04 Bruno Haible <bruno@clisp.org>
6131 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
6133 2006-10-03 Bruno Haible <bruno@clisp.org>
6135 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
6136 from gl_avltreehash_list_implementation.
6138 2006-10-03 Bruno Haible <bruno@clisp.org>
6140 * lib/gl_oset.c (gl_oset_add): Fix return type.
6142 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
6144 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
6146 2006-10-02 Eric Blake <ebb9@byu.net>
6148 * modules/strnlen (Depends-on): Add extensions.
6150 2006-10-02 Eric Blake <ebb9@byu.net>
6152 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
6153 definition in 2.60+.
6155 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
6157 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
6160 2006-10-02 Bruno Haible <bruno@clisp.org>
6162 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
6163 to the AUTOMAKE_OPTIONS.
6164 Reported by Jim Meyering.
6166 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
6168 Work around bug in Solaris 10 /proc file system:
6169 /proc/self/fd/NNN/.. isn't the parent directory of
6170 the directory whose file descriptor is NNN. This needs to
6171 be worked around at run time, not compile time, since a
6172 program might be built on Solaris 8, where things work, and
6174 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
6175 to use the following interface instead:
6176 (OPENAT_BUFFER_SIZE): New macro.
6177 (openat_proc_name): New function.
6178 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
6179 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
6181 * lib/openat-proc.c: New file.
6182 * modules/openat (Files): Add lib/openat-proc.c.
6183 (Depends-on): Add same-inode, stdbool.
6184 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
6186 2006-09-29 Bruno Haible <bruno@clisp.org>
6188 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
6189 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
6190 argument. Set stdout_closed before testing for ferror, not after.
6191 (fwriteerror, fwriteerror_no_ebadf): New functions.
6193 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6195 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
6197 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
6199 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
6200 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
6202 2006-09-28 Jim Meyering <jim@meyering.net>
6204 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
6207 2006-09-28 Bruno Haible <bruno@clisp.org>
6209 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
6210 * modules/linkedhash-list (Depends-on): Likewise.
6211 * modules/rbtreehash-list (Depends-on): Likewise.
6213 2006-09-28 Bruno Haible <bruno@clisp.org>
6215 * lib/strndup.h: Simplify the redefinition of strndup.
6216 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
6217 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
6219 2006-09-28 Bruno Haible <bruno@clisp.org>
6221 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
6222 * lib/gl_linkedhash_list.c: Likewise.
6223 * lib/gl_rbtreehash_list.c: Likewise.
6225 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
6227 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
6230 * lib/__fpending.h: Don't include <stdio_ext.h> unless
6231 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
6232 it causes <stdio_ext.h> to cause a compile-time error.
6233 Problem reported by Nelson H. F. Beebe.
6234 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
6235 of HAVE_DECL___PENDING.
6237 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
6238 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
6241 2006-09-27 Jim Meyering <jim@meyering.net>
6243 This file could end up with a definition for a function
6244 named __strndup, rather than rpl_strndup on a system with
6245 incomplete weak_alias support.
6246 * lib/strndup.c (strndup): Rename from __strndup.
6247 Remove #defines that used to map __strndup to strndup.
6248 Don't use K&R prototypes.
6249 Remove LIBC-related code, since this file is not sync'd with glibc.
6250 * lib/strndup.h: Revamp, accordingly.
6251 * m4/strndup.m4: Modernize.
6253 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
6255 * modules/savewd (Depends-on): Add 'raise'.
6256 * lib/savewd.c: Include <signal.h>, for 'raise'.
6258 2006-09-26 Jim Meyering <jim@meyering.net>
6260 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
6261 when we detect Darwin 8.7.0's acl_get_file bug.
6262 Rearrange to perform the new (below) run-test while $LIBS
6263 contains any acl-related library. Set USE_ACL at the end.
6264 (gl_ACL_GET_FILE): New function.
6266 2006-09-26 Eric Blake <ebb9@byu.net>
6268 * lib/verror.c: Include <config.h> unconditionally.
6270 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
6272 * modules/clock-time (Maintainer): Add self.
6273 * modules/getlogin_r (Depends-on): Add extensions.
6275 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6277 * modules/clock-time: New module.
6278 * modules/nanosleep (Depends-on): Add clock-time.
6279 * modules/gethrxtime (Depends-on): Likewise.
6280 * modules/gettime (Depends-on): Likewise.
6281 * modules/settime (Depends-on): Likewise.
6283 * modules/fts-lgpl: Depend on openat.
6284 * modules/mkancesdirs: Depend on savewd.
6285 * modules/mkdir-p: Likewise.
6287 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6289 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
6291 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
6292 `gl_have_arbitrary_file_name_length_limit' to
6293 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
6294 actually works between configure runs.
6296 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6297 Bruno Haible <bruno@clisp.org>
6299 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
6301 2006-09-25 Jim Meyering <jim@meyering.net>
6303 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
6304 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
6306 2006-09-25 Eric Blake <ebb9@byu.net>
6308 * gnulib-tool (func_import, func_create_testdir): Fix typos in
6309 exec's in 2006-09-18 patch when shuffling fds.
6311 2006-09-25 Bruno Haible <bruno@clisp.org>
6313 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
6314 Reported by Jim Meyering.
6316 2006-09-24 Jim Meyering <jim@meyering.net>
6318 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
6319 compare a pointer against a literal "0". That caused failures with
6320 at least HP-UX's hpcc.
6322 2006-09-22 Simon Josefsson <jas@extundo.com>
6326 * modules/gc-hmac-sha1:
6327 * modules/gc-hmac-md5:
6329 * modules/gc-arcfour: Distribute more files.
6331 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6333 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
6334 (gl_linked_iterator_from_to): Initialize struct completely.
6335 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
6336 (gl_tree_iterator_from_to): Likewise
6337 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
6338 * lib/gl_array_list.c [lint] (gl_array_iterator)
6339 (gl_array_iterator_from_to): Likewise.
6340 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
6341 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
6342 (gl_carray_iterator_from_to): Likewise.
6344 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
6345 * lib/md4.c (md4_process_block): Remove unused variable.
6346 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
6347 parentheses for clarity.
6349 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6351 * modules/bison-i18n (Depends-on): Add gettext.
6353 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6355 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
6356 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
6357 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
6358 also add missing comma that caused broken test.
6359 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
6360 stdlib.h, for `abort'.
6361 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
6363 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
6364 include unistd.h if present, for `rmdir'.
6365 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
6367 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
6368 in the process include standard headers for prototypes.
6369 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
6370 gets declared on GNU/Linux.
6371 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
6372 unistd.h, for `rmdir'.
6373 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
6375 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
6377 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
6379 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
6381 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6383 * gnulib-tool (func_version): Create output all at once. This
6384 may help avoid triggering unnecessary SIGPIPEs, and at any
6385 rate it doesn't hurt.
6387 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6388 Bruno Haible <bruno@clisp.org>
6390 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
6391 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
6392 * m4/signed.m4 (bh_C_SIGNED): Likewise.
6394 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
6395 (gl_FUNC_VASPRINTF): Invoke it.
6397 2006-09-22 Bruno Haible <bruno@clisp.org>
6399 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
6400 getloadavg.c as first argument.
6402 2006-09-22 Bruno Haible <bruno@clisp.org>
6404 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
6405 at the beginning of the gl_INIT macro.
6406 * modules/getloadavg (configure.ac): Pass $gl_source_base to
6409 2006-09-22 Bruno Haible <bruno@clisp.org>
6411 * gnulib-tool (func_create_megatestdir): Don't include the config-h
6413 Suggested by Ralf Wildenhues.
6415 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
6417 Import this patch from libc:
6419 2006-09-06 Jakub Jelinek <jakub@redhat.com>
6421 * lib/regex_internal.c (re_string_reconstruct): Handle
6422 offset < pstr->valid_raw_len && pstr->offsets_needed case.
6423 Ensure no bytes read before raw_mbs array. Pass a saved copy of
6424 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
6425 re_string_context_at.
6427 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
6429 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
6430 gl_REGEX now does it for us.
6431 (gl_REGEX): Add test taken from
6432 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
6434 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
6435 Check that large offsets work. Modernize Autoconf usages.
6436 Prefer "yes" to mean a good thing rather than a bad.
6437 Don't put "#define mkstemp" in config.h, as this might interfere
6438 with standard system headers that "#define mkstemp mkstemp64".
6440 * modules/mkstemp (Depends-on): Add extensions, so that
6441 mkstemp is visible on some platforms.
6442 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
6443 (Include): Change to "mkstemp.h" from <stdlib.h>.
6444 (Files): Add mkstemp.h.
6446 * lib/mkstemp.h: New file, since some standard headers
6448 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
6449 Include "mkstemp.h".
6450 Make the _LIBC code resemble glibc original more,
6451 e.g., use K&R style.
6452 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
6453 (mkstemp): Remove, since mkstemp.h does this for us.
6454 * lib/stdlib--.h: Include mkstemp.h.
6456 Import this patch from libc:
6458 2006-04-07 Ulrich Drepper <drepper@redhat.com>
6460 * lib/tempname.c (__gen_tempname): Change attempts_min
6461 into a macro. Use preprocessor to decide how to initialize
6462 attempts [Coverity CID 67].
6464 2006-09-20 Bruno Haible <bruno@clisp.org>
6466 * lib/mkdtemp.c: Import from libc.
6467 2006-04-07 Ulrich Drepper <drepper@redhat.com>
6468 * sysdeps/posix/tempname.c (__gen_tempname): Change
6469 attempts_min into a macro. Use preprocessor to decide how to
6470 initialize attempts [Coverity CID 67].
6471 2001-11-27 Paul Eggert <eggert@twinsun.com>
6472 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
6473 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
6475 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6477 * gnulib-tool (func_exit): New function, to allow to pass the
6478 exit status portably through the trap. Use everywhere.
6479 (--help, --version): Signal a write error.
6480 (trap): catch SIGPIPE, for write errors.
6481 Exit at the end of the trap, with the correct exit status.
6483 2006-09-19 Karl Berry <karl@gnu.org>
6485 * doc/gnulib.texi: note about the license texinfo files.
6487 2006-09-19 Eric Blake <ebb9@byu.net>
6489 * gnulib-tool: Avoid space-tab.
6491 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
6493 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
6494 that prevented coreutils 6.1 from building. Problem reported
6495 by Petter Reinholdtsen.
6497 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
6499 * gnulib-tool (avoidlist): Fix typo that broke options like
6500 --avoid=lock that are used by coreutils bootstrap.
6502 2006-09-18 Mark D. Baushke <mdb@gnu.org>
6504 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
6505 more systematically.
6507 2006-09-18 Jim Meyering <jim@meyering.net>
6509 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
6511 2006-09-18 Bruno Haible <bruno@clisp.org>
6513 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
6515 2006-09-18 Bruno Haible <bruno@clisp.org>
6517 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
6518 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
6519 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
6520 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
6521 * m4/gettext.m4: Require autoconf >= 2.52.
6522 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
6523 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
6524 of gl_cv_header_inttypes_h.
6526 2006-09-18 Bruno Haible <bruno@clisp.org>
6528 * lib/javaversion.c: Include configmake.h.
6530 2006-09-18 Bruno Haible <bruno@clisp.org>
6532 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
6533 avoid that the while loops be executed in a subshell.
6535 2006-09-18 Bruno Haible <bruno@clisp.org>
6537 * MODULES.html.sh (func_module): Break long lines.
6538 Suggested by Bruce Korb <bkorb@gnu.org>.
6540 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6542 Speed up by a factor of 1.12.
6543 * gnulib-tool (nl): New variable.
6544 (func_import): Rewrite include directive extraction to only read each
6547 2006-09-17 Bruno Haible <bruno@clisp.org>
6549 * modules/javaversion (Makefile.am): Remove DEFS setting.
6550 (Depends-on): Add configmake, for PKGDATADIR definition.
6552 2006-09-17 Bruno Haible <bruno@clisp.org>
6554 * gnulib-tool (func_create_testdir): Rewrite all files at once.
6556 2006-09-17 Bruno Haible <bruno@clisp.org>
6558 * gnulib-tool (func_append): New function, stolen from libtool.m4.
6559 (func_modules_transitive_closure, func_modules_add_dummy,
6560 func_modules_to_filelist, func_import, func_create_testdir,
6561 func_create_megatestdir, ...): Use it wherever possible.
6562 Suggested by Ralf Wildenhues.
6564 2006-09-16 Karl Berry <karl@gnu.org>
6566 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
6567 to avoid sectioning errors.
6568 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
6569 [ifinfo]: blank line after @center-ed titles.
6570 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
6571 Spell FSF address consistently with others.
6572 (These changes approved by rms.)
6574 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6576 Speed up by a factor of 1.61.
6577 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
6578 already checked module names again.
6580 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6582 Speed up by a factor of 1.13.
6583 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
6584 for new_files, and the input to func_add_or_update.
6586 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6588 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
6589 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
6591 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
6593 * modules/mkancesdirs (Depends-on): Add fcntl.
6594 * modules/savewd: New file.
6595 * MODULES.html.sh (File system functions): Add savewd.
6597 * modules/configmake (Makefile.am): Add support for the
6598 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
6600 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
6602 * m4/savewd.m4: New file.
6604 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
6606 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
6607 (dirchownmod): New arg FD. All callers changed.
6608 Use FD rather than opening the directory ourself, as opening is
6609 now the caller's responsibility.
6610 * lib/dirchownmod.h: Likewise.
6611 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
6612 hosts that require <sys/types.h> before <sys/stat.h>. Include
6613 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
6615 (mkancesdirs): Return length of prefix of FILE that has already
6616 been made, or -2 if there is a child doing the work. Redo
6617 algorithm so that it is O(N) rather than O(N**2). Optimize away
6618 ".", and treat ".." specially since it might stray back into
6619 already-created areas. Use a subprocess if necessary. New arg
6620 WD; all users changed. MAKE_DIR function should now return 1
6621 if it creates a directory that is not readable. Return -2 if
6622 a child process is spun off.
6623 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
6624 Adjust signature to match code.
6625 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
6626 (make_dir_parents): Use a subprocess if necessary. New arg WD;
6628 * lib/savewd.c, lib/savewd.h: New files.
6630 2006-09-15 Jim Meyering <jim@meyering.net>
6632 * modules/rename-dest-slash: New module.
6633 * MODULES.html.sh (posix_compat): Add it here.
6635 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
6637 2006-09-15 Jim Meyering <jim@meyering.net>
6639 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
6642 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
6644 2006-09-15 Jim Meyering <jim@meyering.net>
6646 * lib/rename-dest-slash.c (has_trailing_slash): Use
6647 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
6648 (rpl_rename_dest_slash): Perform the cheaper trailing slash
6649 test before testing whether SRC is a directory.
6650 Suggestions from Bruno Haible.
6652 Avoid a warning about an unused variable.
6653 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
6654 into the #ifdef block where it's used.
6656 * lib/rename-dest-slash.c: New file.
6658 2006-09-14 Bruno Haible <bruno@clisp.org>
6660 * lib/allocsa.c: Include <config.h> unconditionally.
6661 * lib/asnprintf.c: Likewise.
6662 * lib/asprintf.c: Likewise.
6663 * lib/c-strcasecmp.c: Likewise.
6664 * lib/c-strcasestr.c: Likewise.
6665 * lib/c-strncasecmp.c: Likewise.
6666 * lib/c-strstr.c: Likewise.
6667 * lib/classpath.c: Likewise.
6668 * lib/clean-temp.c: Likewise.
6669 * lib/concatpath.c: Likewise.
6670 * lib/copy-file.c: Likewise.
6671 * lib/csharpcomp.c: Likewise.
6672 * lib/csharpexec.c: Likewise.
6673 * lib/execute.c: Likewise.
6674 * lib/fatal-signal.c: Likewise.
6675 * lib/findprog.c: Likewise.
6676 * lib/fwriteerror.c: Likewise.
6677 * lib/gl_array_list.c: Likewise.
6678 * lib/gl_array_oset.c: Likewise.
6679 * lib/gl_avltree_list.c: Likewise.
6680 * lib/gl_avltree_oset.c: Likewise.
6681 * lib/gl_avltreehash_list.c: Likewise.
6682 * lib/gl_carray_list.c: Likewise.
6683 * lib/gl_linked_list.c: Likewise.
6684 * lib/gl_linkedhash_list.c: Likewise.
6685 * lib/gl_list.c: Likewise.
6686 * lib/gl_oset.c: Likewise.
6687 * lib/gl_rbtree_list.c: Likewise.
6688 * lib/gl_rbtree_oset.c: Likewise.
6689 * lib/gl_rbtreehash_list.c: Likewise.
6690 * lib/imaxabs.c: Likewise.
6691 * lib/imaxdiv.c: Likewise.
6692 * lib/javacomp.c: Likewise.
6693 * lib/javaexec.c: Likewise.
6694 * lib/javaversion.c: Likewise.
6695 * lib/linebreak.c: Likewise.
6696 * lib/localcharset.c: Likewise.
6697 * lib/lock.c: Likewise.
6698 * lib/mbchar.c: Likewise.
6699 * lib/mbswidth.c: Likewise.
6700 * lib/mkdtemp.c: Likewise.
6701 * lib/pipe.c: Likewise.
6702 * lib/printf-args.c: Likewise.
6703 * lib/printf-parse.c: Likewise.
6704 * lib/progname.c: Likewise.
6705 * lib/progreloc.c: Likewise.
6706 * lib/readlink.c: Likewise.
6707 * lib/sh-quote.c: Likewise.
6708 * lib/stpcpy.c: Likewise.
6709 * lib/stpncpy.c: Likewise.
6710 * lib/strcasecmp.c: Likewise.
6711 * lib/strcasestr.c: Likewise.
6712 * lib/strcspn.c: Likewise.
6713 * lib/striconv.c: Likewise.
6714 * lib/strncasecmp.c: Likewise.
6715 * lib/strnlen1.c: Likewise.
6716 * lib/strstr.c: Likewise.
6717 * lib/strtok_r.c: Likewise.
6718 * lib/tls.c: Likewise.
6719 * lib/tmpdir.c: Likewise.
6720 * lib/unicodeio.c: Likewise.
6721 * lib/unsetenv.c: Likewise.
6722 * lib/vasnprintf.c: Likewise.
6723 * lib/vasprintf.c: Likewise.
6724 * lib/wait-process.c: Likewise.
6725 * lib/xallocsa.c: Likewise.
6726 * lib/xsetenv.c: Likewise.
6727 * lib/xstriconv.c: Likewise.
6729 2006-09-13 Simon Josefsson <jas@extundo.com>
6731 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
6732 that internally, suggested by Ralf Wildenhues
6733 <Ralf.Wildenhues@gmx.de>.
6735 2006-09-13 Simon Josefsson <jas@extundo.com>
6737 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
6739 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6741 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
6743 * lib/_fpending.c: Include <config.h> unconditionally, since we no
6744 longer worry about uses that don't define HAVE_CONFIG_H.
6745 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
6746 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
6747 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
6748 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
6749 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
6750 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
6751 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
6752 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
6753 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
6754 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
6755 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
6756 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
6757 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
6758 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
6759 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
6760 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
6761 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
6762 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
6763 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
6764 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
6765 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
6766 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
6767 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
6768 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
6769 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
6770 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
6771 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
6772 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
6773 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
6774 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
6775 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
6776 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
6777 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
6778 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
6779 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
6780 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
6781 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
6782 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
6783 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
6784 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
6785 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
6788 2006-09-13 Eric Blake <ebb9@byu.net>
6790 * lib/getopt.c: Fix typo in last commit.
6792 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
6794 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
6797 2006-09-12 Jim Meyering <jim@meyering.net>
6799 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
6800 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
6801 Reported by Nelson H. F. Beebe.
6803 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
6805 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
6806 program_invocation_name and program_invocation_short_name are
6808 * lib/argp-namefrob.h: Move declarations of program_invocation_name
6809 and program_invocation_short_name to argp.h, so they are visible
6811 * lib/argp.h: Likewise
6813 2006-09-10 Bruno Haible <bruno@clisp.org>
6815 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
6816 m4/inttypes_h.m4, m4/uintmax_t.m4.
6818 2006-09-10 Bruno Haible <bruno@clisp.org>
6820 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
6821 gl_AC_TYPE_UINTMAX_T.
6823 2006-09-10 Bruno Haible <bruno@clisp.org>
6825 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
6827 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
6829 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
6830 convention. Text proposed by Bruno Haible.
6831 (struct argp_option): Document the use of N_() wrappers.
6833 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
6834 '\v', and translate the two parts separately, instead of feeding
6835 the whole string to gettext. This allows to exclude
6836 '\v' from the strings visible to the translator by writing doc
6837 strings as N_("..") "\v" N_("..").
6839 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
6841 * config/srclist.txt: Undo latest change; the bug was fixed.
6843 2006-09-09 Bruno Haible <bruno@clisp.org>
6845 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
6846 assignments if building a library without libtool.
6847 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
6848 in func_emit_lib_Makefile_am.
6849 (func_import): When building a static library libfoo.a, arrange to
6850 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
6851 (func_create_testdir): Likewise.
6852 * modules/gc (configure.ac, Makefile.am): If building statically,
6853 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
6854 * modules/iconvme (configure.ac, Makefile.am): Likewise.
6855 * modules/striconv (configure.ac, Makefile.am): Likewise.
6856 Based on a suggestion by Ralf Wildenhues.
6858 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
6860 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
6861 Check for unistd.h too, since Autoconf doesn't assume POSIX.
6864 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
6865 Add year_2050_test to catch glibc bug 2821
6866 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
6868 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
6869 Prefer #ifdef to #if.
6871 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
6872 Return from 'main' instead of calling 'exit'.
6874 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
6876 * lib/mktime.c (guess_time_tm): Fix bug where mktime
6877 returned the maximum time_t value rather than (time_t) -1.
6878 Problem originally reported by William Bardwell
6879 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
6881 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
6883 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
6886 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
6888 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
6891 2006-09-08 Jim Meyering <jim@meyering.net>
6893 Don't make generated files read-only. That would bother too many
6894 people. However, do retain the ability to work when targets are
6895 read-only: remove the destination and temporary files before writing
6896 them (when generated via sed or echo), or by using the -f option for
6897 both cp and mv commands. Suggestion to use -f from Paul Eggert.
6898 * modules/alloca-opt, modules/argz, modules/arpa_inet:
6899 * modules/byteswap, modules/configmake, modules/fcntl:
6900 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
6901 * modules/localcharset, modules/netinet_in, modules/poll:
6902 * modules/stdbool, modules/stdint, modules/sys_select:
6903 * modules/sys_socket, modules/sys_stat, modules/sysexits:
6905 2006-09-08 Jim Meyering <jim@meyering.net>
6907 Avoid new build failure on FreeBSD 6.0.
6908 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
6909 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
6910 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
6912 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6914 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
6916 2006-09-07 Jim Meyering <jim@meyering.net>
6918 Fix global typo in last change: use chmod u-w, not chmod u-x.
6919 Spotted by Paul Eggert and Bruce Korb.
6920 * modules/alloca-opt, modules/argz, modules/arpa_inet:
6921 * modules/byteswap, modules/configmake, modules/fcntl:
6922 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
6923 * modules/localcharset, modules/netinet_in, modules/poll:
6924 * modules/stdbool, modules/stdint, modules/sys_select:
6925 * modules/sys_socket, modules/sys_stat, modules/sysexits:
6927 2006-09-06 Jim Meyering <jim@meyering.net>
6929 Make generated files be read-only.
6930 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
6931 Ensure that each generated file is now read-only.
6932 * modules/argz: Likewise.
6933 * modules/arpa_inet: Likewise.
6934 * modules/byteswap: Likewise.
6935 * modules/configmake: Likewise.
6936 * modules/fcntl: Likewise.
6937 * modules/fnmatch: Likewise.
6938 * modules/getopt: Likewise.
6939 * modules/glob: Likewise.
6940 * modules/inttypes: Likewise.
6941 * modules/netinet_in: Likewise.
6942 * modules/poll: Likewise.
6943 * modules/stdbool: Likewise.
6944 * modules/stdint: Likewise.
6945 * modules/sys_select: Likewise.
6946 * modules/sys_socket: Likewise.
6947 * modules/sys_stat: Likewise.
6948 * modules/sysexits: Likewise.
6949 * modules/localcharset: Same as above, but continue using temporary
6950 file named "t-$@" (why different?) rather than the "$@-t" used
6953 * modules/sysexits (Makefile.am): Replace literal occurrences
6954 of "sysexit.h" more readable, and more consistent, "$@".
6956 2006-09-06 Bruno Haible <bruno@clisp.org>
6958 * modules/striconv: New file.
6959 * modules/xstriconv: New file.
6960 * MODULES.html.sh (Internationalization functions): Add striconv,
6963 2006-09-06 Bruno Haible <bruno@clisp.org>
6965 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
6966 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
6967 not using libtool correctly.
6969 2006-09-06 Bruno Haible <bruno@clisp.org>
6971 * lib/striconv.h: New file.
6972 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
6974 * lib/xstriconv.h: New file.
6975 * lib/xstriconv.c: New file.
6977 2006-09-06 Bruno Haible <bruno@clisp.org>
6979 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
6982 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6984 * lib/argz_.h: Sync from Libtool.
6986 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
6987 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6989 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
6991 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
6993 * modules/trim: New file.
6995 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
6997 * lib/trim.h: New file.
6998 * lib/trim.c: New file.
7000 2006-09-05 Bruno Haible <bruno@clisp.org>
7002 * MODULES.html.sh (String handling): Add trim.
7004 2006-09-04 Karl Berry <karl@gnu.org>
7006 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
7009 2006-09-03 Bruno Haible <bruno@clisp.org>
7011 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
7014 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
7016 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
7017 not gl_GETLOADAVG. Omit unneeded semicolons.
7018 Problems reported by Ralf Wildenhues in
7019 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
7020 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
7021 at the end, which is the usual gnulib style.
7023 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
7024 of doing all the work ourselves.
7025 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
7026 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
7028 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
7030 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
7031 Problem reported by Ralf Wildenhues in
7032 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
7034 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
7035 HAVE_STRUCT_STATFS_F_FSTYPENAME.
7037 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
7039 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
7040 yesterday's patch by changing test -n to test -z.
7042 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
7044 * modules/getloadavg (Files): Add m4/getloadavg.m4.
7045 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
7046 the former is now obsolescent.
7048 * modules/chdir-long (Depends-on): Add fcntl.
7050 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
7052 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
7053 obsolescent, and programs should use gnulib instead.
7054 * m4/getloadavg.m4: New file, with contents taken from Autoconf
7055 but with prefixes changed.
7057 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
7059 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
7060 or stdbool.h, because they might not exist while configuring.
7062 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
7063 Don't include unistd.h or limits.h; not needed, since chdir-long.h
7065 (O_DIRECTORY): Remove.
7067 2006-08-31 Eric Blake <ebb9@byu.net>
7069 * gnulib-tool: Don't let emacs change spaces to TAB.
7071 2006-08-31 Bruno Haible <bruno@clisp.org>
7073 * gnulib-tool: When calling func_import more than once, do it in a
7075 Reported by Eric Blake <ebb9@byu.net>.
7077 2006-08-31 Bruno Haible <bruno@clisp.org>
7079 * gnulib-tool (nl): Remove variable.
7080 (sed_transform_lib_file): Use more robust test for config-h module.
7081 (func_import): Fix typo in 2006-08-25 patch.
7083 2006-08-31 Bruno Haible <bruno@clisp.org>
7085 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
7086 specified, augment Makefile.am variables instead of assigning them.
7088 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
7090 Work around a bug in both the Linux and SunOS 64-bit kernels:
7091 nanosleep mishandles sleeps for longer than 2**31 seconds.
7092 Problem reported by Frank v Waveren in
7093 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
7094 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
7095 Check for nanosleep bug.
7096 (LIB_NANOSLEEP): Append clock_gettime library if needed.
7098 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
7100 Work around a bug in both the Linux and SunOS 64-bit kernels:
7101 nanosleep mishandles sleeps for longer than 2**31 seconds.
7102 Problem reported by Frank v Waveren in
7103 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
7104 * lib/nanosleep.c (BILLION): New constant.
7105 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
7106 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
7109 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
7111 * modules/nanosleep (Depends-on): Add gettime.
7113 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
7114 and Simon Josefsson <jas@extundo.com>
7115 and Oskar Liljeblad <oskar@osk.mine.nu>
7117 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
7118 * gnulib-tool (func_import): New license type 'unmodifiable license
7120 * modules/fdl: Use it. Longer description.
7121 * module/gpl, module/lgpl: New files.
7123 2006-08-30 Jim Meyering <jim@meyering.net>
7125 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
7126 shadowing the parameter.
7128 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7132 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7134 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
7135 sharing with gnulib. Report by Eric Blake.
7137 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
7139 * modules/isapipe: New file.
7140 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
7142 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
7144 * modules/configmake (Makefile.am): Add a comment, and omit
7145 the CONFIGMAKE_ prefix from generated macro names. Suggested
7148 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
7150 * m4/isapipe.m4: New file.
7152 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
7154 * lib/isapipe.c, lib/isapipe.h: New files.
7156 2006-08-29 Jim Meyering <jim@meyering.net>
7158 * modules/configmake (Makefile.am): Make configmake.h depend on
7159 Makefile. Otherwise, a stale configmake.h could hang around.
7161 2006-08-29 Eric Blake <ebb9@byu.net>
7163 * lib/error.c (error_at_line, print_errno_message): Match libc, after
7164 resolution of upstream bug 3044.
7166 2006-08-29 Bruno Haible <bruno@clisp.org>
7168 * modules/localcharset (Depends-on): Add configmake.
7169 (Makefile.am): Remove setting of LIBDIR through DEFS.
7171 2006-08-29 Bruno Haible <bruno@clisp.org>
7173 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
7176 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
7178 * modules/fcntl: New file.
7179 * modules/chdir-safer (Depends-on): Add fcntl.
7180 * modules/fts: Likewise.
7181 * modules/mkdir-p: Likewise.
7183 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
7184 This undoes the most recent change, since we're now addressing the
7185 problem in a different way.
7187 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
7188 into output, since the output might be called Makefile.am even
7189 if $makefile_name is something different.
7190 (func_import): Use $makefile_am rather than
7191 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
7194 * modules/inttypes (Files): Add m4/inttypes-h.m4.
7196 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
7198 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
7199 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
7200 recent change to stdint.m4, since we're now addressing the problem in a
7203 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
7205 * m4/fcntl_h.m4: New file.
7207 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
7209 * lib/fcntl_.h: New file.
7210 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
7212 * lib/dirchownmod.c: Likewise.
7213 * lib/fts.c: Likewise.
7215 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
7216 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
7217 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
7218 just before including <inttypes.h>, to avoid circular inclusion.
7220 2006-08-28 Jim Meyering <jim@meyering.net>
7222 * doc/visibility.texi: Actually read and correct the grammar of the
7223 sentence affected by yesterday's change.
7225 2006-08-28 Eric Blake <ebb9@byu.net>
7227 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
7230 2006-08-28 Eric Blake <ebb9@byu.net>
7232 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
7234 2006-08-28 Eric Blake <ebb9@byu.net>
7236 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
7238 2006-08-28 Bruno Haible <bruno@clisp.org>
7240 * modules/c-strstr: New file, from GNU gettext.
7241 * MODULES.html.sh (String handling): Add c-strstr.
7243 2006-08-28 Bruno Haible <bruno@clisp.org>
7245 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
7247 Reported by Eric Blake.
7249 2006-08-28 Bruno Haible <bruno@clisp.org>
7251 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
7252 (VASNPRINTF): Return a string of length > INT_MAX without failing.
7253 * lib/vasprintf.c: Include errno.h, limits.h.
7254 (EOVERFLOW): New fallback definition.
7255 (vasprintf): Test here whether the string length is > INT_MAX.
7256 * lib/vsnprintf.c: Include errno.h, limits.h.
7257 (EOVERFLOW): New fallback definition.
7258 (vsnprintf): Fix bug when generated string was too long for the buffer.
7259 Test here whether the string length is > INT_MAX.
7261 2006-08-28 Bruno Haible <bruno@clisp.org>
7263 * lib/inttypes_.h (SCNX*): Remove definitions.
7264 Reported by Eric Blake.
7266 2006-08-28 Bruno Haible <bruno@clisp.org>
7268 * lib/c-strstr.h: New file, from GNU gettext.
7269 * lib/c-strstr.c: New file, from GNU gettext.
7271 2006-08-28 Bruno Haible <bruno@clisp.org>
7273 * gnulib-tool: Reorder some statements.
7275 2006-08-28 Bruno Haible <bruno@clisp.org>
7277 * gnulib-tool: New option --makefile-name.
7278 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
7280 (func_import): Write $makefile_name to the cache file, and read it from
7281 there unless explicitly specified. Use $makefile_name as file name
7282 instead of Makefile.am. Adjust the recommendations accordingly.
7284 2006-08-28 Bruno Haible <bruno@clisp.org>
7286 * gnulib-tool (func_verify_module): Check against misapplying patch.
7288 2006-08-28 Bruno Haible <bruno@clisp.org>
7290 * gnulib-tool (func_relativize, func_relconcat): New functions.
7291 Give an error if --local-dir is given with --update.
7292 Remove trailing slashes from $local_gnulib_dir.
7293 (func_import): Store the relativized $local_gnulib_dir in
7294 gnulib-cache.m4, and read it from there if not specified explicitly.
7296 2006-08-28 Bruno Haible <bruno@clisp.org>
7298 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
7299 is the current directory. Respect also $local_gnulib_dir.
7301 2006-08-28 Bruno Haible <bruno@clisp.org>
7302 Simon Josefsson <jas@extundo.com>
7305 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
7307 2006-08-27 Jim Meyering <jim@meyering.net>
7309 * doc/visibility.texi: Remove duplicate word: "pointer".
7311 2006-08-26 Bruno Haible <bruno@clisp.org>
7313 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
7314 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
7315 (Makefile.am): Create inttypes.h from inttypes_.h.
7316 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
7318 * modules/imaxabs: New file.
7320 * modules/imaxdiv: New file.
7322 2006-08-26 Bruno Haible <bruno@clisp.org>
7324 * m4/inttypes.m4: New file.
7325 * m4/_inttypes_h.m4: Remove file.
7326 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
7328 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
7330 * m4/imaxabs.m4: New file.
7332 * m4/imaxdiv.m4: New file.
7334 2006-08-26 Bruno Haible <bruno@clisp.org>
7336 * lib/inttypes_.h: New file.
7337 * lib/inttypes.h: Remove file.
7338 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
7340 * lib/imaxabs.c: New file.
7342 * lib/imaxdiv.c: New file.
7344 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
7346 New config-h module, so that "make" output needn't be cluttered
7348 * MODULES.html.sh (Support for building libraries and executables):
7350 * modules/config-h: New file.
7351 * gnulib-tool (nl, sed_transform_lib_file): New vars.
7352 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
7353 the config-h module is used.
7355 New configmake module, so that "make" output needn't be cluttered
7356 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
7357 * MODULES.html.sh (Support for building libraries and executables):
7359 * modules/configmake: New file.
7361 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
7363 * m4/config-h.m4: New file.
7365 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
7367 * config/srclist.txt: Add elisp-comp.
7369 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
7371 * MODULES.html.sh (Support for building libraries and executables):
7373 * build-aux/elisp-comp: New file.
7374 * modules/elisp-comp: New file.
7376 2006-08-24 Bruno Haible <bruno@clisp.org>
7378 * gnulib-tool (func_create_testdir): Use non-default values of
7379 sourcebase and m4base.
7381 2006-08-24 Bruno Haible <bruno@clisp.org>
7383 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
7386 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
7388 * modules/openat (Depends-on): Add lchown.
7390 2006-08-23 Bruno Haible <bruno@clisp.org>
7392 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
7393 of gl_LOCK_EARLY instead of gl_LOCK.
7395 2006-08-23 Bruno Haible <bruno@clisp.org>
7397 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
7399 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
7401 2006-08-23 Bruno Haible <bruno@clisp.org>
7403 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
7406 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
7407 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
7408 (gl_LOCK): New macro.
7410 2006-08-22 Simon Josefsson <jas@extundo.com>
7412 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
7415 2006-08-22 Simon Josefsson <jas@extundo.com>
7417 * MODULES.html.sh: Add "Support for maintaining and release
7420 * build-aux/gnupload: New file, from coreutils.
7422 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
7424 Avoid the need for AC_LIBSOURCES in m4 macros.
7425 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
7426 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
7427 * modules/check-version (EXTRA_DIST): Add check-version.h.
7428 * modules/crc (EXTRA_DIST): Add crc.h.
7429 * modules/des (EXTRA_DIST): Add des.h.
7430 * modules/gc (EXTRA_DIST): Add gc.h.
7431 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
7432 * modules/getline (EXTRA_DIST): Add getline.h.
7433 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
7434 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
7435 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
7436 * modules/md2 (EXTRA_DIST): Add md2.h.
7437 * modules/md4 (EXTRA_DIST): Add md4.h.
7438 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
7439 * modules/read-file (EXTRA_DIST): Add read-file.h.
7440 * modules/readline (EXTRA_DIST): Add readline.h.
7441 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
7444 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
7446 * m4/rijndael.m4 (gl_ARCFOUR):
7447 * m4/arctwo.m4 (gl_ARCTWO):
7448 * m4/check-version.m4 (gl_CHECK_VERSION):
7449 * m4/crc.m4 (gl_CRC):
7450 * m4/des.m4 (gl_DES):
7451 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
7453 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
7454 * m4/getline.m4 (gl_FUNC_GETLINE):
7455 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
7456 * m4/hmac-md5.m4 (gl_HMAC_MD5):
7457 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
7458 * m4/md2.m4 (gl_MD2):
7459 * m4/md4.m4 (gl_MD4):
7460 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
7461 * m4/read-file.m4 (gl_FUNC_READ_FILE):
7462 * m4/readline.m4 (gl_FUNC_READLINE):
7463 * m4/rijndael.m4 (gl_RIJNDAEL):
7464 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
7465 to get the necessary .h files and whatnot.
7467 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
7469 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
7470 gnulib rather than the other way around.
7471 * config/srclistvars.sh (COREUTILS): Remove.
7473 2006-08-22 Jim Meyering <jim@meyering.net>
7475 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
7477 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
7479 2006-08-22 Eric Blake <ebb9@byu.net>
7481 * modules/regexprops-generic: New file.
7482 * MODULES.html.sh (Support for building documentation): List it.
7484 2006-08-22 Eric Blake <ebb9@byu.net>
7486 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
7487 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
7488 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
7489 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
7491 2006-08-22 Bruno Haible <bruno@clisp.org>
7493 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
7494 and lib_LTLIBRARIES like the other lib_* variables.
7496 2006-08-22 Bruno Haible <bruno@clisp.org>
7498 * build-aux/x-to-1.in: New file, from GNU gettext.
7500 2006-08-22 Bruno Haible <bruno@clisp.org>
7502 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
7505 2006-08-22 Bruno Haible <bruno@clisp.org>
7507 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
7510 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
7513 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
7515 Problem reported by Bruno Haible.
7517 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
7519 Avoid the need for AC_LIBSOURCES in m4 macros.
7520 * modules/acl (EXTRA_DIST): Add acl.h.
7521 * modules/argmatch (Files): Add m4/argmatch.m4.
7522 (configure.ac): Add gl_ARGMATCH.
7523 (EXTRA_DIST): Renamed from lib_SOURCES, for
7524 consistency with the other modules. Remove argmatch.c.
7525 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
7526 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
7527 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
7528 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
7529 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
7530 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
7531 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
7532 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
7533 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
7534 * modules/closeout (EXTRA_DIST): Add closeout.h.
7535 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
7536 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
7537 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
7538 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
7539 dirname.h; remove basename.c and stripslash.c.
7540 * modules/exclude (EXTRA_DIST): Add exclude.h.
7541 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
7542 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
7543 * modules/file-type (EXTRA_DIST): Add file-type.h.
7544 * modules/filemode (EXTRA_DIST): Add filemode.h.
7545 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
7546 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
7547 * modules/fpending (EXTRA_DIST): Add __fpending.h.
7548 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
7549 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
7550 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
7551 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
7552 * modules/getdate (EXTRA_DIST): Add getdate.c.
7553 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
7554 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
7555 * modules/getpass (EXTRA_DIST): Add getpass.h.
7556 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
7557 * modules/group-member (EXTRA_DIST): Add group-member.h.
7558 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
7559 * modules/hash (EXTRA_DIST): Add hash.h.
7560 * modules/human (EXTRA_DIST): Add human.h.
7561 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
7562 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
7563 * modules/lchown (EXTRA_DIST): Add lchown.h.
7564 * modules/long-options (EXTRA_DIST): Add long-options.h.
7565 * modules/lstat (EXTRA_DIST): Add lstat.h.
7566 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
7567 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
7568 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
7569 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
7570 * modules/memxor (EXTRA_DIST): Add memxor.h.
7571 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
7572 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
7573 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
7574 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
7575 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
7576 * modules/physmem (EXTRA_DIST): Add physmem.h.
7577 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
7578 * modules/posixver (EXTRA_DIST): Add posixver.h.
7579 * modules/quote (EXTRA_DIST): Add quote.h.
7580 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
7581 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
7582 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
7583 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
7584 regex_internal.h regexec.c.
7585 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
7586 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
7587 * modules/same (EXTRA_DIST): Add same.h.
7588 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
7589 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
7590 * modules/savedir (EXTRA_DIST): Add savedir.h.
7591 * modules/sha1 (EXTRA_DIST): Add sha1.h.
7592 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
7593 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
7594 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
7595 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
7596 * modules/strdup (EXTRA_DIST): Add strdup.h.
7597 * modules/strftime (EXTRA_DIST): Add strftime.h.
7598 * modules/strndup (EXTRA_DIST): Add strndup.h.
7599 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
7600 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
7601 * modules/time_r (EXTRA_DIST): Add time_r.h.
7602 * modules/timespec (EXTRA_DIST): Add timespec.h.
7603 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
7604 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
7605 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
7606 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
7607 * modules/userspec (EXTRA_DIST): Add userspec.h.
7608 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
7609 * modules/utimens (EXTRA_DIST): Add utimens.h.
7610 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
7611 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
7612 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
7613 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
7614 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
7615 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
7616 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
7617 * modules/yesno (EXTRA_DIST): Add yesno.h.
7619 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
7621 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
7623 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
7624 * m4/dev-ino.m4, same-inode.m4: Remove.
7626 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
7627 * m4/acl.m4 (AC_FUNC_ACL):
7628 * m4/backupfile.m4 (gl_BACKUPFILE):
7629 * m4/c-strtod.m4 (gl_C99_STRTOLD):
7630 * m4/canon-host.m4 (gl_CANON_HOST):
7631 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
7632 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
7633 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
7634 * m4/cloexec.m4 (gl_CLOEXEC):
7635 * m4/close-stream.m4 (gl_CLOSE_STREAM):
7636 * m4/closeout.m4 (gl_CLOSEOUT):
7637 * m4/dirfd.m4 (gl_FUNC_DIRFD):
7638 * m4/dirname.m4 (gl_DIRNAME):
7639 * m4/exclude.m4 (gl_EXCLUDE):
7640 * m4/exitfail.m4 (gl_EXITFAIL):
7641 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
7642 * m4/file-type.m4 (gl_FILE_TYPE):
7643 * m4/filemode.m4 (gl_FILEMODE):
7644 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
7645 * m4/fpending.m4 (gl_FUNC_FPENDING):
7646 * m4/fprintftime.m4 (gl_FPRINTFTIME):
7647 * m4/fts.m4 (gl_FUNC_FTS):
7648 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
7649 * m4/getdate.m4 (gl_GETDATE):
7650 * m4/gethrxtime.m4 (gl_GETHRXTIME):
7651 * m4/getpagesize.m4 (gl_GETPAGESIZE):
7652 * m4/getpass.m4 (gl_FUNC_GETPASS):
7653 * m4/gettime.m4 (gl_GETTIME):
7654 * m4/getugroups.m4 (gl_GETUGROUPS):
7655 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
7656 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
7657 * m4/hard-locale.m4 (gl_HARD_LOCALE):
7658 * m4/hash.m4 (gl_HASH):
7659 * m4/idcache.m4 (gl_IDCACHE):
7660 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
7661 * m4/lchown.m4 (gl_FUNC_LCHOWN):
7662 * m4/long-options.m4 (gl_LONG_OPTIONS):
7663 * m4/lstat.m4 (gl_FUNC_LSTAT):
7664 * m4/md5.m4 (gl_MD5):
7665 * m4/memcasecmp.m4 (gl_MEMCASECMP):
7666 * m4/memcoll.m4 (gl_MEMCOLL):
7667 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
7668 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
7669 * m4/memxor.m4 (gl_MEMXOR):
7670 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
7671 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
7672 * m4/modechange.m4 (gl_MODECHANGE):
7673 * m4/mountlist.m4 (gl_MOUNTLIST):
7674 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
7675 * m4/openat.m4 (gl_FUNC_OPENAT):
7676 * m4/pathmax.m4 (gl_PATHMAX):
7677 * m4/physmem.m4 (gl_PHYSMEM):
7678 * m4/posixtm.m4 (gl_POSIXTM):
7679 * m4/posixver.m4 (gl_POSIXVER):
7680 * m4/quote.m4 (gl_QUOTE):
7681 * m4/quotearg.m4 (gl_QUOTEARG):
7682 * m4/readtokens.m4 (gl_READTOKENS):
7683 * m4/readutmp.m4 (gl_READUTMP):
7684 * m4/regex.m4 (gl_REGEX):
7685 * m4/safe-read.m4 (gl_SAFE_READ):
7686 * m4/safe-write.m4 (gl_SAFE_WRITE):
7687 * m4/same.m4 (gl_SAME):
7688 * m4/save-cwd.m4 (gl_SAVE_CWD):
7689 * m4/savedir.m4 (gl_SAVEDIR):
7690 * m4/settime.m4 (gl_SETTIME):
7691 * m4/sha1.m4 (gl_SHA1):
7692 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
7693 * m4/stat-macros.m4 (gl_STAT_MACROS):
7694 * m4/stat-time.m4 (gl_STAT_TIME):
7695 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
7696 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
7697 * m4/strdup.m4 (gl_FUNC_STRDUP):
7698 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
7699 * m4/strndup.m4 (gl_FUNC_STRNDUP):
7700 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
7701 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
7702 * m4/time_r.m4 (gl_TIME_R):
7703 * m4/timespec.m4 (gl_TIMESPEC):
7704 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
7705 * m4/unlinkdir.m4 (gl_UNLINKDIR):
7706 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
7707 * m4/userspec.m4 (gl_USERSPEC):
7708 * m4/utimecmp.m4 (gl_UTIMECMP):
7709 * m4/utimens.m4 (gl_UTIMENS):
7710 * m4/xalloc.m4 (gl_XALLOC):
7711 * m4/xgetcwd.m4 (gl_XGETCWD):
7712 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
7713 * m4/xreadlink.m4 (gl_XREADLINK):
7714 * m4/xstrtod.m4 (gl_XSTRTOD):
7715 * m4/yesno.m4 (gl_YESNO):
7716 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
7717 to get the necessary .h files and whatnot.
7719 2006-08-21 Mark D. Baushke <mdb@gnu.org>
7720 Bruno Haible <bruno@clisp.org>
7722 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
7723 /bin/sh understanding of '!' conditional negation.
7725 2006-08-21 Jim Meyering <jim@meyering.net>
7727 * modules/openat (Depends-on): Really alphabetize.
7729 * modules/acl (Depends-on): Add error and quote.
7731 * check-module (find_included_lib_files): Add at-func.c to the
7732 ok-to-include-more-than-once white list.
7734 * modules/openat (Depends-on): Add lstat. Alphabetize.
7736 2006-08-21 Bruno Haible <bruno@clisp.org>
7738 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7739 Emit a pkgdata_DATA variable only if some snippets add contents to it.
7740 Reported by Martin Lambers <marlam@marlam.de>.
7742 2006-08-21 Bruno Haible <bruno@clisp.org>
7744 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
7745 specify an installation location, don't emit a noinst_LIBRARIES or
7746 noinst_LTLIBRARIES assignment.
7748 2006-08-21 Bruno Haible <bruno@clisp.org>
7751 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
7752 BeOS has mbrtowc() but no <wctype.h>.
7754 2006-08-21 Bruno Haible <bruno@clisp.org>
7757 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
7760 2006-08-21 Bruno Haible <bruno@clisp.org>
7763 * lib/mbchar.h: Include <wctype.h> only if it exists.
7765 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
7767 Remove files that are no longer needed by their respective modules.
7768 * m4/obstack.m4: Remove.
7769 * m4/strerror_r.m4: Remove.
7770 * m4/uint32_t.m4: Remove.
7771 * m4/uintptr_t.m4: Remove.
7772 * m4/ullong_max.m4: Remove.
7773 * m4/xstrtoimax.m4: Remove.
7774 * m4/xstrtoumax.m4: Remove.
7776 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
7777 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
7778 dependencies now capture this.
7780 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
7781 Do not use AC_LIBSOURCES, since gnulib modules now do this.
7782 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
7783 * m4/human.m4 (gl_HUMAN): Likewise.
7784 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
7785 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
7787 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
7789 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
7790 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
7792 * m4/human.m4 (gl_HUMAN): Likewise.
7793 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
7794 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
7795 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
7796 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
7797 * m4/xstrtol (gl_XSTRTOL): Likewise.
7799 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
7800 AC_TYPE_LONG_LONG_INT.
7801 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
7802 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
7803 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
7804 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
7806 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
7809 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
7810 (gl_PREREQ_XSTRTOUL): Remove.
7812 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
7814 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
7817 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
7819 Add and change modules to make it easier for coreutils to use
7821 * modules/backupfile (Files): Remove m4/d-ino.m4.
7822 (Depends-on): Add d-ino.
7823 * modules/cycle-check (Depends-on): Add stdint.
7824 (lib_SOURCES): Add cycle-check.h.
7825 * modules/d-ino: New module.
7826 * modules/d-type: New module.
7827 * modules/error (Files): Remove m4/strerror_r.m4.
7828 * modules/filemode (Files): Add m4/st_dm_mode.m4.
7829 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
7830 m4/inttypes_h.m4, m4/uintmax_t.m4.
7831 (Depends-on): Add stdint.
7832 (lib_SOURCES): Add fsusage.h.
7833 * modules/getcwd (Files): Remove d-ino.m4.
7834 (Depends-on): Add d-ino.
7835 * modules/getndelim2 (Depends-on): Add stdint.
7836 * modules/glob (Files): Remove m4/d-type.m4.
7837 (Depends-on): Add d-type.
7838 * modules/host-os: New module.
7839 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
7840 m4/inttypes_h.m4, m4/uintmax_t.m4.
7841 * Depends-on: Add stdint.
7842 (lib_SOURCES): Add human.h.
7843 * modules/inttostr (Files): Remove m4/intmax_t.m4,
7844 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
7845 m4/uintmax_t.m4, m4/ulonglong.m4.
7846 (Depends-on): Add stdint.
7847 (EXTRA_DIST): Add inttostr.h.
7848 * modules/lchmod: New module.
7849 * modules/link-follow: New module.
7850 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
7851 (Depends-on): Add lchmod.
7852 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
7853 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
7854 (Depends-on): Add stdint.
7855 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
7856 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
7857 (Depends-on): Add stdint.
7858 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
7859 * modules/perl: New module.
7860 * modules/regex (Depends-on): Add stdint.
7861 * modules/rmdir-errno: New module.
7862 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
7864 (Depends-on): Add stdint.
7865 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
7867 (Depends-on): Add stdint.
7868 * modules/unlink-busy: New module.
7869 * modules/utimecmp (Depends-on): Add stdint.
7870 * modules/uptime: New module.
7871 * modules/winsz-ioctl: New module.
7872 * modules/winsz-termios: New module.
7873 * modules/xnanosleep (Depends-on): Add nanosleep.
7874 * modules/ullong_max: Remove.
7875 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
7876 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
7877 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
7878 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
7879 (Depends-on): Add inttypes.
7880 (lib_SOURCES): Add xstrtol.h.
7881 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
7882 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
7883 * MODULES.html.sh: Move 'assert' into the assert section.
7884 Move 'dummy' into the linking section.
7886 Add section for compatibility checks for POSIX:2001 functions,
7887 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
7888 winsz-ioctl, and winsz-termios into it.
7890 Add top-level Misc section and put host-os, perl, and uptime
7893 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
7895 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
7896 now assume the stdint module. Do not include inttypes.h.
7897 * lib/fsusage.h: Likewise.
7898 * lib/getndelim2.c: Likewise.
7899 * lib/human.h: Likewise.
7900 * lib/inttostr.h: Likewise.
7901 * lib/obstack.c: Likewise.
7902 * lib/regex_internal.h: Likewise.
7903 * lib/tempname.c: Likewise.
7904 * lib/utimecmp.c: Likewise.
7905 * lib/xstrtol.h: Likewise.
7907 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
7909 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
7910 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
7911 * lib/xtime.h: Likewise.
7913 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
7915 * modules/openat (Files): Add lib/fchmodat.c.
7916 Fixes problem reported by Jay Youngman.
7918 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
7920 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
7921 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
7923 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
7924 Bruno Haible <bruno@clisp.org>
7926 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
7927 and is a script that invokes bison. Tighten the code. Add comments.
7929 2006-08-18 Jim Meyering <jim@meyering.net>
7931 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
7932 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
7933 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
7934 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
7936 2006-08-18 Bruno Haible <bruno@clisp.org>
7938 * modules/bison-i18n: New file.
7939 * MODULES.html.sh (Internationalization functions): Add it.
7941 2006-08-18 Bruno Haible <bruno@clisp.org>
7943 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
7944 sys/statvfs.h. When getmntinfo was found, check its declaration and
7945 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
7947 2006-08-18 Bruno Haible <bruno@clisp.org>
7949 * m4/bison-i18n.m4: New file, from bison.
7951 2006-08-18 Bruno Haible <bruno@clisp.org>
7953 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
7954 (ME_DUMMY): Treat "kernfs" as a dummy.
7955 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
7957 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
7959 Update from coreutils.
7961 2006-08-15 Jim Meyering <jim@meyering.net>
7963 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
7965 2006-01-17 Jim Meyering <jim@meyering.net>
7967 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
7969 2006-01-11 Jim Meyering <jim@meyering.net>
7971 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
7972 Check for the lchmod function.
7974 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
7976 Update from coreutils.
7978 * lib/__fpending.h: Add copyright notice.
7979 * lib/fprintftime.h: Likewise.
7980 * lib/savedir.c: Use (C) in copyright notice.
7981 * lib/savedir.h: Likewise.
7983 2006-08-15 Jim Meyering <jim@meyering.net>
7985 * lib/at-func.c: New file, with the logic of all emulated at-functions.
7986 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
7987 in support of the EXPECTED_ERRNO macro.
7988 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
7989 definitions. Instead, define the appropriate symbols and include
7991 * lib/mkdirat.c (mkdirat): Likewise.
7992 * lib/fchmodat.c (fchmodat): Likewise.
7993 (ENOSYS): Remove definition.
7994 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
7995 it. Don't include "unistd--.h" -- it wasn't ever used.
7997 2006-01-17 Jim Meyering <jim@meyering.net>
7999 Rewrite fts.c not to change the current working directory,
8000 by using openat, fstatat, fdopendir, etc..
8002 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
8003 (HAVE_OPENAT_SUPPORT): Define.
8004 [_LIBC] (fchdir): Don't undef or define; no longer used.
8005 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
8006 Now, this `function' always succeeds, and consumes its file descriptor
8007 parameter -- so callers must not close such FDs. Update callers.
8008 (diropen_fd, opendirat, cwd_advance_fd): New functions.
8009 (diropen): Add parameter, SP. Adjust all callers.
8010 Implement using diropen_fd, rather than open.
8011 (fts_open): Initialize new member, fts_cwd_fd.
8012 Remove fts_rft-setting code.
8013 (fts_close): Close fts_cwd_fd, if necessary.
8014 (__opendir2): Define in terms of opendir or opendirat,
8015 depending on whether the FST_NOCHDIR flag is set.
8016 (fts_build): Since fts_safe_changedir consumes its FD, and since
8017 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
8018 and close the dup'd file descriptor upon failure.
8019 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
8020 (fts_safe_changedir): Tweak semantics to reflect that this function
8021 now calls cwd_advance_fd and hence consumes its FD argument.
8022 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
8023 [struct FTS] (fts_rft): Remove now-unused member.
8024 [struct FTS] (fts_cycle.state): Improve comment.
8026 * lib/openat.c (openat_needs_fchdir): New function.
8027 * lib/openat.h (openat_needs_fchdir): Declare it.
8029 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
8031 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
8032 Problem and fix reported by Pádraig Brady in
8033 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
8035 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
8037 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
8039 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
8041 * lib/memcoll.c (memcoll): Optimize for the common case where the
8042 arguments are bytewise equal.
8044 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
8046 * doc/regexprops-generic.texi: Add a copyright notice.
8048 2006-08-15 Bruno Haible <bruno@clisp.org>
8050 * modules/tmpdir (License): Change to LGPL.
8052 2006-08-15 Bruno Haible <bruno@clisp.org>
8054 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
8057 2006-08-14 Simon Josefsson <jas@extundo.com>
8059 * config/srclist.txt: Add gnupload.
8061 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
8063 Change copyright notice from LGPL 2 to GPL 2, since that's the
8064 standard form used in the gnulib repository.
8065 * tests/test-lock.c: Likewise.
8066 * tests/test-stdint.c: Likewise.
8067 * tests/test-tls.c: Likewise.
8069 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
8070 prelude-manager. User shorter URLs for GNU projects, without '?'.
8071 Add copyright notice.
8073 * check-module: Add copyright notice. Output a copyright
8074 notice if "--version" is specified.
8075 * modules/COPYING: New file.
8076 * tests/test-getaddrinfo.c: Add copyright notice.
8077 * tests/test-verify.c: Likewise.
8079 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
8081 Change copyright notice from LGPL 2 to GPL 2, since that's the
8082 standard form used in the gnulib repository.
8083 * lib/lock.c: LGPL -> GPL.
8084 * lib/lock.h: Likewise.
8085 * lib/strnlen1.c: Likewise.
8086 * lib/strnlen1.h: Likewise.
8087 * lib/tls.c: Likewise.
8088 * lib/tls.h: Likewise.
8089 * lib/tmpdir.c: Likewise.
8091 * lib/TODO: Remove; this belongs only in coreutils.
8093 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
8095 Add copyright notices to long-enough files that lack them, since
8096 otherwise the files aren't clearly free. Use the same notice that
8097 getdate.texi already uses.
8098 * doc/alloca-opt.texi: Add copyright notice.
8099 * doc/alloca.texi: Likewise.
8100 * doc/ctime.texi: Likewise.
8101 * doc/functions.texi: Likewise.
8102 * doc/gcd.texi: Likewise.
8103 * doc/gnulib-tool.texi: Likewise.
8104 * doc/inet_ntoa.texi: Likewise.
8105 * doc/visibility.texi: Likewise.
8107 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
8108 * doc/quote.texi: Add copyright notice.
8110 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
8111 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
8112 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
8113 Mention SunOS 5.11. Mention that everything before SunOS 5.7
8114 is now obsolete, and give a pointer to the Sun list.
8115 Add copyright notice.
8117 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
8119 * config/srclistvars.sh: Add copyright notice.
8121 2006-08-14 Eric Blake <ebb9@byu.net>
8123 Import the following change from libc:
8125 2006-08-12 Ulrich Drepper <drepper@redhat.com>
8128 * lib/misc/error.c: Add space between program name and message if file
8131 2006-08-12 Karl Berry <karl@gnu.org>
8133 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
8134 remove, these originate in gnulib now.
8136 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8138 * doc/Makefile (standards.info standards.html standards.dvi):
8139 Also depend on make-stds.texi.
8141 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
8143 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
8144 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
8146 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
8147 in wchar_t. Problem reported by Eric Blake.
8149 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
8150 LEN is smaller than SIZE. Suggested by Bruno Haible.
8151 Also, help the compiler to keep LEN in a register.
8153 2006-08-11 Eric Blake <ebb9@byu.net>
8155 * users.txt: Sort. Add tar.
8157 2006-08-11 Bruno Haible <bruno@clisp.org>
8159 * users.txt: New file.
8161 2006-08-11 Bruno Haible <bruno@clisp.org>
8163 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
8164 before <wchar.h>. Needed for OSF/1 and BSD/OS.
8166 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
8168 * modules/snprintf (Depends-on): Remove minmax.
8169 (Maintainer): Add self and Bruno.
8171 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
8173 * lib/.cppi-disable: Add snprintf.h, socket_.h.
8174 * lib/snprintf.c: Include <errno.h> and <limits.h>.
8175 (EOVERFLOW): Define if the system does not.
8176 Do not include "minmax.h"; it wasn't used.
8177 (snprintf): Don't assume size_t promotes to an unsigned type.
8178 Fix bug when generated string was too long for the buffer: the
8179 buffer's contents are supposed to be the initial prefix of the
8180 output. Don't assume vasnprintf returns EOVERFLOW if the size
8181 exceeds INT_MAX; do the check ourselves.
8183 Import the following changes from libc:
8185 2006-06-02 Jakub Jelinek <jakub@redhat.com>
8187 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
8188 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
8189 set wc to the byte which couldn't be converted.
8190 (re_string_reconstruct): Don't clear valid_raw_len before calling
8191 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
8192 tip_context using re_string_context_at.
8194 2006-05-02 Ulrich Drepper <drepper@redhat.com>
8196 * lib/posix/regex.h: g++ still cannot handled [restrict].
8198 2006-04-21 Ulrich Drepper <drepper@redhat.com>
8200 * lib/posix/regex.h: Remove special handling for VMS.
8202 2006-08-10 Jim Meyering <jim@meyering.net>
8204 * modules/same-inode: New module.
8205 * modules/dev-ino: New module.
8206 * modules/cycle-check: Depend on these modules, rather than simply
8207 including their .h files.
8208 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
8209 required via m4/cycle-check.m4.
8210 * modules/same: Depend on new same-inode module, rather than
8211 including same-inode.h.
8212 * modules/chdir-safer: New file.
8214 * modules/chown (Depends-on): Add stat-macros.
8216 2006-08-10 Jim Meyering <jim@meyering.net>
8218 * m4/cycle-check.m4: New file.
8219 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
8220 * m4/dev-ino.m4, m4/same-inode.m4: New files.
8222 2006-08-10 Eric Blake <ebb9@byu.net>
8224 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
8225 in from original proposal.
8227 2006-08-10 Eric Blake <ebb9@byu.net>
8228 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8230 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
8233 2006-08-10 Bruno Haible <bruno@clisp.org>
8235 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
8238 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
8240 Sync from coreutils.
8242 2006-07-19 Mike Frysinger <vapier@gentoo.org>
8244 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
8245 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
8247 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
8249 * modules/restrict: Remove; no longer needed now that we assume
8250 Autoconf 2.59 or later.
8251 * MODULES.html.sh: Remove 'restrict'.
8252 * modules/argp (Depends-on): Remove 'restrict'.
8253 * modules/base64 (Depends-on): Likewise.
8254 * modules/gc (Depends-on): Likewise.
8255 * modules/getaddrinfo (Depends-on): Likewise.
8256 * modules/glob (Depends-on): Likewise.
8257 * modules/inet_ntop (Depends-on): Likewise.
8258 * modules/inet_pton (Depends-on): Likewise.
8259 * modules/memxor (Depends-on): Likewise.
8260 * modules/regex (Depends-on): Likewise.
8261 * modules/strtok_r (Depends-on): Likewise.
8262 * modules/time_r (Depends-on): Likewise.
8264 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
8266 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
8267 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
8268 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
8269 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
8270 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
8271 * m4/memxor.m4 (gl_MEMXOR): Likewise.
8272 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
8273 gl_C_RESTRICT replaced by AC_C_RESTRICT.
8275 Merge from coreutils.
8276 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
8277 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
8278 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
8279 * m4/time_r.m4 (gl_TIME_R): Likewise.
8281 2006-08-09 Karl Berry <karl@gnu.org>
8283 * config/srclist.txt: no more gettext-tools, per Bruno.
8285 2006-08-08 Eric Blake <ebb9@byu.net>
8287 * modules/verror: New module.
8288 * MODULES.html.sh: Document it.
8290 2006-08-08 Eric Blake <ebb9@byu.net>
8292 * lib/verror.h, lib/verror.c: New files.
8294 2006-08-08 Eric Blake <ebb9@byu.net>
8296 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
8297 verror_at_line output complies with GNU Coding Standards even when
8300 2006-08-07 Bruno Haible <bruno@clisp.org>
8302 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
8304 Reported by Ralf Wildenhues.
8306 2006-08-07 Bruno Haible <bruno@clisp.org>
8308 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
8309 in an AC_DEFUN. Needed so that the autoconf snippets can use
8312 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8314 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8315 Initialize pkgdata_DATA.
8316 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
8319 2006-08-06 Eric Blake <ebb9@byu.net>
8321 * lib/error.h: Fold in some upstream changes from glibc.
8322 * lib/error.c: Likewise.
8324 2006-08-04 Bruno Haible <bruno@clisp.org>
8326 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8327 Make the mostlyclean-local rule depend on mostlyclean-generic.
8328 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
8330 2006-07-31 Bruno Haible <bruno@clisp.org>
8332 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
8333 <stdlib.h>, <string.h>.
8335 2006-07-30 Bruno Haible <bruno@clisp.org>
8337 * modules/readlink (License): Change to LGPL.
8339 2006-07-30 Bruno Haible <bruno@clisp.org>
8341 * modules/javaversion (Makefile.am): Distribute javaversion.java and
8342 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
8343 set PKGDATADIR to point to it.
8345 2006-07-30 Bruno Haible <bruno@clisp.org>
8347 * modules/csharpexec (configure.ac): Comment out macro invocation.
8348 * modules/javaexec (configure.ac): Likewise.
8349 * modules/javacomp-script (configure.ac): Likewise.
8351 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
8353 2006-07-30 Bruno Haible <bruno@clisp.org>
8355 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
8358 2006-07-30 Bruno Haible <bruno@clisp.org>
8360 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
8362 2006-07-30 Bruno Haible <bruno@clisp.org>
8364 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8365 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
8368 2006-07-29 Bruno Haible <bruno@clisp.org>
8370 Make it possible for gnulib-tool to work with locally modified or
8371 augmented gnulib repositories.
8372 * gnulib-tool (func_usage): Document --local-dir option.
8373 (local_gnulib_dir): New variable.
8374 Handle --local-dir option.
8375 (func_lookup_file): New function.
8376 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
8377 (func_get_description, func_get_filelist, func_get_description,
8378 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
8379 func_get_automake_snippet, func_get_include_directive,
8380 func_get_license, func_get_maintainer): Use func_lookup_file.
8381 (func_import, func_create_testdir): Use func_lookup_file.
8383 2006-07-29 Bruno Haible <bruno@clisp.org>
8385 * modules/setenv (Depends-on): Add unistd.
8387 2006-07-29 Bruno Haible <bruno@clisp.org>
8389 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
8391 2006-07-29 Bruno Haible <bruno@clisp.org>
8393 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
8395 2006-07-29 Bruno Haible <bruno@clisp.org>
8397 * gnulib-tool (import, update): If there is no Makefile.am, look at
8398 aclocal.m4, instead of bailing out.
8400 2006-07-29 Bruno Haible <bruno@clisp.org>
8402 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
8403 Categorize the options by when they are useful.
8405 2006-07-29 Bruno Haible <bruno@clisp.org>
8407 * gnulib-tool (func_usage): Document option --no-libtool.
8408 Handle option --no-libtool.
8409 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
8410 for changed semantics of $libtool variable.
8411 (func_import): Likewise. If libtool is not used, show this through
8412 an option --no-libtool.
8413 (func_create_testdir): Update.
8415 2006-07-29 Bruno Haible <bruno@clisp.org>
8417 * gnulib-tool (func_import): Extend error message about missing
8420 2006-07-29 Bruno Haible <bruno@clisp.org>
8422 * gnulib-tool (func_import): Don't create the $docbase directory if
8423 there is no file to store there.
8425 2006-07-29 Bruno Haible <bruno@clisp.org>
8427 * gnulib-tool (autoconf_minversion): If a --dir option is given and
8428 relevant, look for configure.ac there, not in the current directory.
8429 Also use a simple search for AC_PREREQ, not "autoconf --trace".
8431 2006-07-29 Bruno Haible <bruno@clisp.org>
8433 * gnulib-tool (SORT): New variable.
8434 (func_usage): Undocument --assume-autoconf option.
8435 Remove --assume-autoconf option handling.
8436 (autoconf_minversion): Determine from the contents of configure.ac.
8437 (func_import): Remove autoconf_minversion handling.
8438 Suggested by Eric Blake.
8440 2006-07-29 Bruno Haible <bruno@clisp.org>
8442 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
8444 2006-07-29 Bruno Haible <bruno@clisp.org>
8446 * config/srclist.txt (*setenv.[ch]): Remove rules.
8448 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8450 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
8452 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8454 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
8457 2006-07-28 Simon Josefsson <jas@extundo.com>
8459 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
8460 * modules/inet_pton (Depends-on): Likewise.
8462 2006-07-28 Simon Josefsson <jas@extundo.com>
8464 * m4/netinet_in_h.m4: New file.
8466 2006-07-28 Simon Josefsson <jas@extundo.com>
8468 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
8471 2006-07-28 Simon Josefsson <jas@extundo.com>
8473 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
8476 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
8478 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
8479 setgid on directories only if they set these bits.
8480 * lib/modechange.h: Remove obsolete comment about masks.
8482 2006-07-28 Eric Blake <ebb9@byu.net>
8484 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
8487 2006-07-28 Bruno Haible <bruno@clisp.org>
8489 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
8491 2006-07-28 Bruno Haible <bruno@clisp.org>
8493 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
8495 2006-07-28 Bruno Haible <bruno@clisp.org>
8497 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
8498 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
8500 Avoids link error on FreeBSD 4.x.
8501 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
8503 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
8505 * lib/mbswidth.c (iswcntrl): Likewise.
8507 2006-07-27 Bruno Haible <bruno@clisp.org>
8509 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
8512 2006-07-27 Bruno Haible <bruno@clisp.org>
8514 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
8515 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
8518 2006-07-26 Eric Blake <ebb9@byu.net>
8520 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
8522 2006-07-26 Eric Blake <ebb9@byu.net>
8524 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
8525 like mingw that lack mkstemp.
8526 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
8527 avoid compilation warning on mingw.
8529 2006-07-26 Bruno Haible <bruno@clisp.org>
8531 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
8532 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
8533 INT_FAST*_MIN, INTPTR_MIN.
8535 2006-07-25 Bruno Haible <bruno@clisp.org>
8537 * modules/version-etc (Depends-on): Add stdarg.
8539 2006-07-25 Bruno Haible <bruno@clisp.org>
8541 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
8544 2006-07-25 Bruno Haible <bruno@clisp.org>
8546 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
8547 defined in <stdarg.h> or config.h.
8549 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
8551 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
8552 (gl_STDIO_SAFER): Remove.
8554 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
8556 * MODULES.html.sh (File stream based Input/Output):
8557 Add fopen-safer, tmpfile-safer; remove stdio-safer.
8558 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
8559 * modules/fopen-safer, modules/tmpfile-safer: New files.
8560 * modules/stdio-safer: Remove.
8562 2006-07-24 Bruno Haible <bruno@clisp.org>
8564 * modules/tmpdir: New file.
8565 * MODULES.html.sh (File system functions): Add it.
8567 2006-07-24 Bruno Haible <bruno@clisp.org>
8569 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
8570 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
8572 2006-07-24 Bruno Haible <bruno@clisp.org>
8574 * modules/clean-temp: New file.
8576 2006-07-24 Bruno Haible <bruno@clisp.org>
8578 * m4/tmpdir.m4: New file, from GNU gettext.
8580 2006-07-24 Bruno Haible <bruno@clisp.org>
8582 * lib/tmpdir.h: New file, from GNU gettext.
8583 * lib/tmpdir.c: New file, from GNU gettext.
8585 2006-07-24 Bruno Haible <bruno@clisp.org>
8587 * lib/clean-temp.h: New file, from GNU gettext.
8588 * lib/clean-temp.c: New file, from GNU gettext.
8590 2006-07-23 Eric Blake <ebb9@byu.net>
8592 * modules/stdio-safer (Files): Add tmpfile-safer.c.
8593 (Depends-on): Add binary-io.
8595 2006-07-23 Eric Blake <ebb9@byu.net>
8597 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
8599 2006-07-23 Eric Blake <ebb9@byu.net>
8601 * lib/tmpfile-safer.c: New file.
8602 * lib/stdio-safer.h (fopen_safer): Add prototype.
8603 * lib/stdio--.h (tmpfile): Make safer.
8605 2006-07-23 Bruno Haible <bruno@clisp.org>
8607 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
8608 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
8609 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
8610 gl_linked_remove_at): Use it.
8612 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8613 and Simon Josefsson <jas@extundo.com>
8615 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
8617 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
8619 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
8621 * modules/close-stream: New file.
8622 * modules/closeout (Description): Make it clear that it exits
8623 with a diagnostic on error.
8624 (Depends-on): Add close-stream. Remove fpending, stdbool.
8625 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
8627 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
8629 * m4/close-stream.m4: New file.
8631 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
8633 * lib/close-stream.c, lib/close-stream.h: New files.
8635 2006-07-22 Bruno Haible <bruno@clisp.org>
8637 Merge from GNU gettext 0.15.
8639 2006-05-01 Bruno Haible <bruno@clisp.org>
8641 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
8643 2006-07-22 Bruno Haible <bruno@clisp.org>
8645 * modules/javaversion: New file.
8646 * MODULES.html.sh (Java): Add javaversion.
8648 2006-03-12 Bruno Haible <bruno@clisp.org>
8650 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
8652 2005-12-04 Bruno Haible <bruno@clisp.org>
8654 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
8657 2006-06-21 Bruno Haible <bruno@clisp.org>
8659 Avoid warnings from recent versions of mcs.
8660 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
8661 -o, -L, -r any more. Use options documented since mcs-1.0
8662 instead. Similarly for -g.
8664 2005-12-04 Bruno Haible <bruno@clisp.org>
8666 * build-aux/csharpcomp.sh.in: Suffix for resources is
8667 .resources, not .resource.
8669 2005-07-09 Bruno Haible <bruno@clisp.org>
8671 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
8673 Reported by Mark Junker <mjscod@gmx.de>.
8675 2006-07-22 Bruno Haible <bruno@clisp.org>
8677 * modules/gettext: Upgrade to gettext-0.15.
8678 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
8680 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
8682 2006-07-22 Bruno Haible <bruno@clisp.org>
8684 Merge from GNU gettext 0.15.
8686 2006-03-25 Bruno Haible <bruno@clisp.org>
8688 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
8690 2006-07-21 Bruno Haible <bruno@clisp.org>
8692 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
8695 2006-05-09 Bruno Haible <bruno@clisp.org>
8697 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
8698 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
8699 for the conftestver execution.
8701 2006-05-01 Bruno Haible <bruno@clisp.org>
8703 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
8704 optional target-version argument. Verify that the compiler
8705 groks source of the specified source-version, or add -source
8706 option as necessary. Verify that the compiler produces
8707 bytecode in the specified target-version, or add -target and
8708 -source options as necessary. Make the result of the test
8709 available as variable CONF_JAVAC. Also log error output in
8712 2006-03-11 Bruno Haible <bruno@clisp.org>
8714 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
8716 2006-05-09 Bruno Haible <bruno@clisp.org>
8718 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
8719 CLASSPATH_SEPARATOR to a semicolon.
8721 2006-03-12 Bruno Haible <bruno@clisp.org>
8723 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
8724 available as variable CONF_JAVA, for subsequent autoconf
8725 tests. Also log error output in config.log.
8727 2006-07-19 Bruno Haible <bruno@clisp.org>
8729 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
8730 that getline works on glibc2 systems. Needed to avoid trouble
8732 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
8734 2005-12-04 Bruno Haible <bruno@clisp.org>
8736 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
8737 launcher (untested).
8739 2005-12-04 Bruno Haible <bruno@clisp.org>
8741 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
8743 2006-07-22 Bruno Haible <bruno@clisp.org>
8745 * gettext.m4: Update from GNU gettext-0.15.
8748 * inttypes-pri.m4: Likewise.
8749 * inttypes-h.m4: Renamed from inttypes.m4.
8750 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
8752 2006-07-22 Bruno Haible <bruno@clisp.org>
8754 Merge from GNU gettext 0.15.
8756 2005-07-05 Bruno Haible <bruno@clisp.org>
8758 * printf-args.c (printf_fetchargs): Work around broken
8759 definition of wint_t on mingw.
8761 2005-02-12 Bruno Haible <bruno@clisp.org>
8763 * xallocsa.h: Add extern "C" for C++.
8765 2006-05-17 Bruno Haible <bruno@clisp.org>
8768 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
8770 2006-04-30 Bruno Haible <bruno@clisp.org>
8772 * progreloc.c: Include <mach-o/dyld.h> if available.
8773 (find_executable): Use _NSGetExecutablePath when possible.
8775 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
8777 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
8780 2005-12-29 Bruno Haible <bruno@clisp.org>
8782 * progreloc.c (set_program_name_and_installdir): Fix
8785 2005-12-04 Bruno Haible <bruno@clisp.org>
8788 * progreloc.c: Include <windows.h> also on Cygwin.
8789 (find_executable): Add support for Cygwin.
8790 (set_program_name_and_installdir): Handle also platforms with
8793 2006-07-11 Bruno Haible <bruno@clisp.org>
8795 * javacomp.c: Fix a comment.
8796 Reported by Jim Meyering.
8798 2006-04-30 Bruno Haible <bruno@clisp.org>
8800 * javacomp.h (compile_java_class): Add source_version,
8801 target_version arguments.
8802 * javacomp.c: Rewritten to choose only a compiler that
8803 respects the specified source_version and target_version.
8805 2006-06-27 Bruno Haible <bruno@clisp.org>
8807 Assume correct S_ISDIR macro.
8808 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
8810 2006-07-22 Bruno Haible <bruno@clisp.org>
8812 * javaversion.h: New file, from GNU gettext.
8813 * javaversion.c: New file, from GNU gettext.
8814 * javaversion.java: New file, from GNU gettext.
8815 * javaversion.class: New file, from GNU gettext.
8817 2006-05-17 Bruno Haible <bruno@clisp.org>
8820 * javaexec.c (execute_java_class): Test for jview program
8823 2006-04-09 Bruno Haible <bruno@clisp.org>
8825 * fatal-signal.c: Don't include string.h.
8826 (at_fatal_signal): Use a copying loop instead of memcpy.
8828 2005-12-04 Bruno Haible <bruno@clisp.org>
8830 * csharpexec.c: Add support for 'clix' launcher (untested).
8831 (execute_csharp_using_sscli): New function.
8832 (execute_csharp_program): Call it.
8834 2006-06-21 Bruno Haible <bruno@clisp.org>
8836 Avoid warnings from recent versions of mcs.
8837 * csharpcomp.c (compile_csharp_using_mono): Don't use options
8838 -o, -L, -r any more. Use options documented since mcs-1.0
8839 instead. Similarly for -g.
8841 2005-07-09 Bruno Haible <bruno@clisp.org>
8843 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
8845 Reported by Mark Junker <mjscod@gmx.de>.
8847 2006-06-17 Bruno Haible <bruno@clisp.org>
8849 * config.charset: Update for NetBSD 3.0.
8851 2006-05-17 Bruno Haible <bruno@clisp.org>
8854 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
8856 2006-05-16 Bruno Haible <bruno@clisp.org>
8858 * localcharset.c [CYGWIN]: Include <windows.h>.
8859 (get_charset_aliases): For Cygwin, return the same CPxxx
8860 aliases list as under WIN32.
8861 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
8862 the environment variables. Fall back to GetACP().
8864 2006-04-05 Bruno Haible <bruno@clisp.org>
8866 * config.charset: Update Juan Manuel Guerrero's address.
8868 2005-02-12 Bruno Haible <bruno@clisp.org>
8870 * allocsa.h: Add extern "C" for C++.
8872 2005-02-10 Bruno Haible <bruno@clisp.org>
8874 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
8875 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
8877 2006-07-22 Bruno Haible <bruno@clisp.org>
8879 * gettext.h: Update to GNU gettext-0.15.
8881 2006-07-22 Bruno Haible <bruno@clisp.org>
8883 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
8884 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
8885 lib-prefix.m4, longdouble.m4, ssize_t.m4.
8887 2006-07-21 Eric Blake <ebb9@byu.net>
8889 * modules/stdlib-safer: New file.
8890 * MODULES.html.sh (File stream based Input/Output): Add
8893 2006-07-21 Eric Blake <ebb9@byu.net>
8895 * lib/stdlib-safer.h: New file from coreutils, required by
8898 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
8900 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
8902 2006-07-20 Bruno Haible <bruno@clisp.org>
8904 * gnulib-tool: Recognize new option --assume-autoconf.
8905 (autoconf_minversion): New variable.
8906 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
8908 2006-07-20 Bruno Haible <bruno@clisp.org>
8910 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
8912 2006-07-19 Derek R. Price <derek@ximbiot.com>
8914 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
8915 Reindent and repaginate.
8917 2006-07-19 Derek Price <derek@ximbiot.com>
8919 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
8922 2006-07-17 Bruno Haible <bruno@clisp.org>
8924 * modules/list: New file.
8925 * modules/array-list: New file.
8926 * modules/carray-list, modules/carray-list-tests: New files.
8927 * modules/linked-list, modules/linked-list-tests: New files.
8928 * modules/avltree-list, modules/avltree-list-tests: New files.
8929 * modules/rbtree-list, modules/rbtree-list-tests: New files.
8930 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
8931 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
8932 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
8933 * modules/oset: New file.
8934 * modules/array-oset: New file.
8935 * modules/avltree-oset, modules/avltree-oset-tests: New files.
8936 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
8937 * tests/test-carray_list.c: New file.
8938 * tests/test-linked_list.c: New file.
8939 * tests/test-avltree_list.c: New file.
8940 * tests/test-rbtree_list.c: New file.
8941 * tests/test-linkedhash_list.c: New file.
8942 * tests/test-avltreehash_list.c: New file.
8943 * tests/test-rbtreehash_list.c: New file.
8944 * tests/test-avltree_oset.c: New file.
8945 * tests/test-rbtree_oset.c: New file.
8946 * MODULES.html.sh (Container data structures): New section.
8948 2006-07-17 Bruno Haible <bruno@clisp.org>
8950 * m4/gl_list.m4: New file.
8952 2006-07-17 Bruno Haible <bruno@clisp.org>
8954 * lib/gl_list.h: New file.
8955 * lib/gl_list.c: New file.
8956 * lib/gl_array_list.h: New file.
8957 * lib/gl_array_list.c: New file.
8958 * lib/gl_carray_list.h: New file.
8959 * lib/gl_carray_list.c: New file.
8960 * lib/gl_linked_list.h: New file.
8961 * lib/gl_linked_list.c: New file.
8962 * lib/gl_anylinked_list1.h: New file.
8963 * lib/gl_anylinked_list2.h: New file.
8964 * lib/gl_avltree_list.h: New file.
8965 * lib/gl_avltree_list.c: New file.
8966 * lib/gl_anyavltree_list1.h: New file.
8967 * lib/gl_anyavltree_list2.h: New file.
8968 * lib/gl_rbtree_list.h: New file.
8969 * lib/gl_rbtree_list.c: New file.
8970 * lib/gl_anyrbtree_list1.h: New file.
8971 * lib/gl_anyrbtree_list2.h: New file.
8972 * lib/gl_anytree_list1.h: New file.
8973 * lib/gl_anytree_list2.h: New file.
8974 * lib/gl_linkedhash_list.h: New file.
8975 * lib/gl_linkedhash_list.c: New file.
8976 * lib/gl_anyhash_list1.h: New file.
8977 * lib/gl_anyhash_list2.h: New file.
8978 * lib/gl_avltreehash_list.h: New file.
8979 * lib/gl_avltreehash_list.c: New file.
8980 * lib/gl_rbtreehash_list.h: New file.
8981 * lib/gl_rbtreehash_list.c: New file.
8982 * lib/gl_anytreehash_list1.h: New file.
8983 * lib/gl_anytreehash_list2.h: New file.
8985 * lib/gl_oset.h: New file.
8986 * lib/gl_oset.c: New file.
8987 * lib/gl_array_oset.h: New file.
8988 * lib/gl_array_oset.c: New file.
8989 * lib/gl_avltree_oset.h: New file.
8990 * lib/gl_avltree_oset.c: New file.
8991 * lib/gl_rbtree_oset.h: New file.
8992 * lib/gl_rbtree_oset.c: New file.
8993 * lib/gl_anytree_oset.h: New file.
8995 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
8997 * m4/mkancesdirs.m4: New file.
8998 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
8999 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
9000 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
9003 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
9005 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
9006 * lib/mkancesdirs.h: New files.
9007 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
9008 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
9009 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
9010 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
9011 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
9012 callers changed. Revamp internals significantly, by not
9013 attempting to create directories that are temporarily more
9014 permissive than the final results. Do not attempt to use
9015 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
9016 This removes some race conditions, fixes some bugs, and simplifies
9017 things. Use new dirchownmod function to do owner and mode changes.
9018 * lib/mkdir-p.h: Likewise.
9019 * lib/modechange.c (octal_to_mode): New function.
9020 (struct mode_change): New member mentioned.
9021 (make_node_op_equals): New arg mentioned. All callers changed.
9022 (mode_compile): Keep track of which mode bits the user has explicitly
9024 (mode_adjust): New arg DIR, so that we implement the X op correctly.
9025 New arg PMODE_BITS, to keep track of which mode bits the user
9026 mentioned; it treats S_ISUID and S_ISGID speciall.
9027 All callers changed.
9028 * lib/modechange.h: Likewise.
9030 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
9032 * MODULES.html.sh: Add mkancestors.
9033 * modules/mkancesdirs: New module.
9034 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
9035 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
9036 The chdir-safer and afs files are now orphans; I'll remove them
9037 unless someone speaks up.
9038 Add lib/dirchownmod.c, lib/dirchownmod.h.
9039 (Depends-on): Remove alloca, chown, save-cwd, dirname.
9040 Add lchown, mkancesdirs.
9041 (Maintainer): Add self.
9043 2006-07-15 Karl Berry <karl@gnu.org>
9045 * gnulib-tool: help message wording/arrangement.
9047 2006-07-14 Simon Josefsson <jas@extundo.com>
9049 * doc/gnulib.texi (Libtool and Windows): New section.
9051 2006-07-12 Simon Josefsson <jas@extundo.com>
9053 * modules/gendocs (License): Fix license, approved by Karl.
9055 2006-07-12 Eric Blake <ebb9@byu.net>
9057 * MODULES.html.sh: Add gendocs.
9059 2006-07-11 Eric Blake <ebb9@byu.net>
9061 * modules/fdl: New module, to install doc/fdl.texi.
9062 * MODULES.html.sh: Add new section for documentation modules.
9063 * gnulib-tool: Avoid space-tab.
9064 (--doc-base): New option, to manage files from doc.
9066 2006-07-11 Eric Blake <ebb9@byu.net>
9068 * m4/absolute-header.m4: Fix comments to match recent change.
9070 2006-07-11 Eric Blake <ebb9@byu.net>
9072 * gnulib-tool: List --doc-base before --tests-base.
9074 2006-07-11 Derek R. Price <derek@ximbiot.com>
9076 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
9078 2006-07-11 Bruno Haible <bruno@clisp.org>
9080 * README: Mention where to put documentation.
9082 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9084 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
9086 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
9088 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
9091 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
9093 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
9094 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
9095 "no/such/file/stdint.h" when there is no such file, so that
9096 the resulting C code can be parsed by dodgy compilers.
9097 Problems reported by Bob Proulx.
9099 2006-07-10 Derek R. Price <derek@ximbiot.com>
9101 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
9102 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
9103 macros into the GNU _D_EXACT_NAMLEN.
9104 * lib/savedir.c: Likewise.
9105 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
9107 2006-07-10 Derek R. Price <derek@ximbiot.com>
9108 and Paul Eggert <eggert@cs.ucla.edu>
9110 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
9112 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
9113 macros into the GNU _D_EXACT_NAMLEN.
9115 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
9117 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
9118 around the absolute name, to work around a problem with the HP-UX
9119 11.23 native C compiler, reported by Bob Proulx.
9121 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
9123 * doc/maintain.texi, make-stds.texi: Sync from
9124 <http://savannah.gnu.org/projects/gnustandards>.
9126 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
9128 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
9130 2006-07-09 Jim Meyering <jim@meyering.net>
9132 * m4/glob.m4: Remove a doubled word in a comment.
9134 2006-07-09 Jim Meyering <jim@meyering.net>
9136 * lib/argp-pv.c: Remove a doubled word in a comment.
9137 * lib/check-version.c (check_version): Likewise.
9138 * lib/javacomp.c (compile_java_class): Likewise.
9140 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
9142 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
9143 for the benefit of people using Autoconf 2.60. If you want to
9144 support older Autoconf versions you can copy m4/onceonly_2_57.m4
9145 (or m4/onceonly.m4, if pre-2.57) manually.
9147 2006-07-08 Jim Meyering <jim@meyering.net>
9149 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
9151 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
9152 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
9155 2006-07-08 Jim Meyering <jim@meyering.net>
9157 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
9159 2006-07-07 Simon Josefsson <jas@extundo.com>
9161 * tests/test-crc.c: Change expected crc value, the test vector
9162 were probably computed using the old broken crc.c?
9164 2006-07-06 Simon Josefsson <jas@extundo.com>
9166 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
9167 now the canonical place for the M4 file).
9169 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
9170 from the sys_socket dependency now.
9172 * modules/inet_pton (Files): Ditto.
9174 * modules/inet_ntop (Files): Ditto.
9176 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
9178 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
9179 not gl_PREREQ_GETUSERSHELL.
9181 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9183 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
9184 with only one argument, for Autoconf 2.60.
9185 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
9186 expand to nothing, so add a shell command to avoid syntax error.
9187 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9189 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9191 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
9193 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
9195 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
9196 no longer needed. Check for isblank decl.
9197 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
9198 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
9201 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
9203 * lib/getloadavg.c: Use __VMS, not VMS.
9204 * lib/getopt.c: Likewise.
9205 * lib/getpagesize.h: Likewise.
9206 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
9207 and probably does not work.
9209 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
9211 * lib/.cppi-disable: Add wcwidth.
9212 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
9213 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
9214 (ISGRAPH): Remove. All uses changed to isgraph.
9215 (FOLD) [!defined _LIBC]: Remove special case.
9216 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
9217 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
9219 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
9222 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
9224 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
9225 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
9226 brackets. Other minor changes to suppress some compiler
9229 2006-07-06 Derek R. Price <derek@ximbiot.com>
9230 and Paul Eggert <eggert@cs.ucla.edu>
9232 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
9233 of invoking obsolescent AC_HEADER_DIRENT macro.
9234 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
9235 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
9236 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9237 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
9238 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
9239 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
9240 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
9241 * m4/readdir.m4: Remove; no longer needed.
9243 2006-07-06 Derek R. Price <derek@ximbiot.com>
9244 and Paul Eggert <eggert@cs.ucla.edu>
9246 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
9247 Don't worry about this obsolete case any more.
9248 (HAVE_DIR): Remove. All uses removed; we now assume you can read
9250 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
9251 worry about this obsolete case any more.
9252 * lib/fts.c: Likewise.
9253 * lib/getcwd.c: Likewise.
9254 * lib/glob.h: Likewise.
9255 * lib/savedir.c: Likewise.
9257 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
9259 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
9260 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
9261 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
9264 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
9265 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
9266 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
9268 * m4/getdate.m4 (gl_GETDATE): Likewise.
9269 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
9270 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
9271 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9272 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
9273 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
9274 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
9275 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
9278 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
9280 * lib/memcasecmp.c: Include <limits.h>.
9281 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
9282 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
9283 Don't assume isdigit succeeds only on '0' through '9'.
9285 2006-07-05 Eric Blake <ebb9@byu.net>
9287 * modules/getaddrinfo (Depends-on): Add snprintf.
9289 2006-07-05 Eric Blake <ebb9@byu.net>
9291 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
9292 to avoid 'header present but could not be compiled' on cygwin.
9294 2006-07-05 Eric Blake <ebb9@byu.net>
9296 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
9297 missing from netdb.h.
9298 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
9300 2006-07-05 Derek R. Price <derek@ximbiot.com>
9302 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
9304 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
9305 * m4/getdate.m4 (gl_GETDATE): Likewise.
9306 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
9307 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
9308 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9309 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
9310 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
9312 2006-07-05 Derek R. Price <derek@ximbiot.com>
9314 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
9315 All uses of is_space replaced by isspace.
9316 * lib/exit.h: Don't talk about STDC_HEADERS.
9317 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
9318 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
9319 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
9320 replaced by isprint etc.
9321 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
9322 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
9323 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
9324 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
9325 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
9326 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
9328 2006-07-05 Bruno Haible <bruno@clisp.org>
9330 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
9331 the function exists, before testing against AIX.
9332 Reported by Martin Lambers <marlam@marlam.de>.
9334 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
9336 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
9337 From Mark D. Baushke.
9339 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
9341 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
9342 to the absolute name, not just one, to bypass Sun C 5.8's
9343 "warning: #include of /usr/include/... may be non-portable".
9345 2006-07-04 Eric Blake <ebb9@byu.net>
9347 * modules/dirname-tests: New test module.
9348 * tests/test-dirname.c: New file, replacing dirname.c
9349 TEST_DIRNAME section that was recently deleted.
9351 2006-07-04 Bruno Haible <bruno@clisp.org>
9353 Assume ANSI C header files and <ctype.h> functions.
9354 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
9355 (mbsnwidth): Use isprint, iscntrl instead.
9357 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
9359 Merge from coreutils.
9360 * MODULES.html.sh: Add xstrtold.
9361 * modules/xstrtold: New file.
9362 * modules/cycle-check (Files): Add lib/same-inode.h.
9363 * modules/dirname (Files): Add m4/double-slash-root.m4.
9364 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
9365 * modules/mkdir-p (Files): Add lib/same-inode.h.
9366 * modules/same (Files): Add lib/same-inode.h.
9368 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
9370 * m4/absolute-header.m4: Renamed from full-header-path.m4.
9371 This is to keep the terminology clean; POSIX talks about
9372 "absolute pathnames", not "full pathnames", but the GNU
9373 Coding Standards say to use "path" for something else;
9374 so use "absolute" to keep both sides happy.
9375 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
9376 Set gl_absolute_header, not gl_full_header_path.
9377 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
9378 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
9381 Merge from coreutils.
9383 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
9385 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
9386 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
9387 want to require the building of c-strtod.o.
9388 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
9390 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
9392 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
9394 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
9395 --as-needed option if available. Problem reported by Albert Chin in
9396 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
9397 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
9398 cc merely issues a bunch of annoying warnings for --as-needed
9399 (this problem was reported by Bob Proulx). Also, try linking with
9400 -lm to detect a bug in binutils 2.16 (this problem was reported
9401 by Ralf Wildenhues).
9403 2006-06-18 Jim Meyering <jim@meyering.net>
9405 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
9406 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
9408 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
9409 also check for glibc-2.4's abort-inducing bug.
9411 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
9412 Low-probability clean-up should be to use rmdir to get rid of
9413 the just-created directory, not unlink.
9415 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
9416 configure fail, and request a bug report to inform us about it.
9417 Add a comment that, barring reports to the contrary, in 2007 we'll
9418 assume ftruncate is universally available.
9420 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
9422 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
9424 2006-03-12 Jim Meyering <jim@meyering.net>
9426 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
9427 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
9428 * m4/same.m4 (gl_SAME): Likewise.
9429 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
9431 2006-03-11 Eric Blake <ebb9@byu.net>
9433 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
9434 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
9435 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
9436 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
9438 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
9440 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
9441 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
9442 reported by Mark D. Baushke, one in
9443 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
9445 Merge from coreutils.
9447 * lib/.cppi-disable: Add stdint_.h.
9448 * lib/.cvsignore: Add stdint.h.
9450 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
9452 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
9453 both double and long double versions.
9454 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
9455 * lib/xstrtold.c: New file.
9456 * lib/xstrtod.h (xstrtold): New decl.
9458 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
9460 * lib/filemode.c (setst): Remove.
9461 (strmode): Rewrite to avoid setst. This makes the code shorter,
9462 (arguably) clearer, and the generated code is a bit smaller on my
9463 Debian GNU/Linux stable x86 host.
9465 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
9467 * lib/filemode.c: Include "filemode.h" first, to test the interface.
9468 Assume that filemode.h includes sys/types.h and sys/stat.h.
9469 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
9470 (ftypelet): Reorder to put common cases first, for efficiency.
9471 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
9473 (strmode): Renamed from mode_string, and now stores 12 bytes instead
9474 of 10, for compatibility with FreeBSD. All callers changed.
9475 (filemodestring): Now stores 12 bytes instead of 10, and sets file
9476 types that can't be deduced solely from st_mode. First arg is now a
9478 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
9479 (strmode): Renamed from mode_string.
9480 (filemodestring): New decl.
9481 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
9482 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
9484 (S_ISPORT, S_ISWHT): New macros, if not already defined.
9486 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
9488 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
9489 fsusage.h now does that. Include fsusage.h first, to test interface.
9490 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
9491 at most one method (the old code could have generated decls that
9492 didn't conform to C89, not that this was ever exercised).
9493 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
9495 2006-03-19 Jim Meyering <jim@meyering.net>
9497 Work even in a chroot where d_ino values for entries in "/"
9498 don't match the stat.st_ino values for the same names.
9499 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
9500 number, iterate through all entries again, using lstat instead.
9501 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
9502 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
9504 * lib/getcwd.c (__getcwd): Clarify a comment.
9505 Use memcpy in place of a call to strcpy.
9507 2006-03-12 Jim Meyering <jim@meyering.net>
9509 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
9510 matches that of the current directory (which we're about to chdir ".."
9511 out of), then save the dev-ino of the parent, instead.
9513 * lib/same-inode.h (SAME_INODE): New file/macro.
9514 * lib/chdir-safer.c (SAME_INODE): Remove definition.
9515 Include "same-inode.h", instead.
9516 * lib/same.c: Likewise.
9517 * lib/cycle-check.h: Include "same-inode.h".
9518 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
9519 * lib/cycle-check.c (SAME_INODE): Remove definition.
9520 * lib/root-dev-ino.h: Include "same-inode.h".
9522 2006-03-11 Eric Blake <ebb9@byu.net>
9524 * lib/same.c (same_name): s/base_name/last_component/
9525 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
9526 * lib/filenamecat.c (file_name_concat): Likewise.
9528 2006-03-11 Eric Blake <ebb9@byu.net>,
9529 Paul Eggert <eggert@cs.ucla.edu>
9531 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
9532 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
9534 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
9535 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
9536 (last_component): New method.
9537 * lib/dirname.c (dir_len): Determine when drive letters need a
9538 subsequent slash. Preserve // when it is special.
9539 (dir_name): Don't append dot when drive letter is absolute.
9540 [TEST_DIRNAME]: Move into a full-blown gnulib test.
9541 * lib/basename.c (base_name): New semantics - malloc the result.
9542 Preserve // when it is special. Preserve relative files that look
9544 (base_len): Preserve // when it is special.
9545 (last_component): New method, similar to old base_name semantics.
9546 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
9547 base_name. Strip redundant slashes from ///.
9549 2006-07-03 Jim Meyering <jim@meyering.net>
9551 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
9552 macro is used before the first cycle_check call.
9554 2006-07-03 Eric Blake <ebb9@byu.net>
9556 * modules/dirname (Depends-on): Add xstrndup.
9558 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
9560 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
9561 test cases, so that config.log is a bit easier to follow.
9563 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
9565 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
9566 both are 64 bits, since this seems to be the tradition, and this
9567 prevents gcc -Wformat from warning about usages with PRIuMAX. If
9568 we ever run into a host that prefers long long to long in this
9569 case, we'll need another configure-time test. Problem reported by
9572 2006-07-02 Eric Blake <ebb9@byu.net>
9574 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
9576 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
9578 * modules/inttypes (Depends-on): No longer depends on stdint.
9579 * modules/stdint (Description): Say more about assumptions.
9580 Say that the fast types might differ. Say macros are used.
9581 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
9582 (Makefile.am): Revise list of substituted symbols to match
9584 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
9585 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
9586 * tests/test-stdint.c (verify_same_types)
9587 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
9588 the code conforms to C99/C89.
9589 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
9590 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
9592 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
9594 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
9595 but fix a bug, by requiring at least 64 bits.
9596 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
9597 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
9598 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
9599 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
9601 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
9602 changes. Make 2.59 a prerequisite. Check and substitute for
9603 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
9604 inttypes.h. Do not use special include files; just use the
9605 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
9606 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
9607 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
9608 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
9609 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
9610 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
9611 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
9612 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
9613 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
9614 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
9615 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
9616 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
9617 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
9618 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
9619 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
9620 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
9621 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
9622 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
9623 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
9624 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
9625 WINT_MAX. Check for C99 conformance more strictly, by detecting
9626 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
9627 not check for things that C99 does not require, e.g., int8_t. If
9628 a test isn't needed unless <stdint.h> isn't working, and is
9629 unlikely to be needed for any other reason, then don't do it
9630 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
9631 size_t, since we assume C89 freestanding at least. Do not check
9632 for sig_atomic_t, wchar_t, or wint_t, since the code now does
9633 the right thing even if the types are not defined. Instead use:
9634 (gl_STDINT_TYPE_PROPERTIES): New macro.
9635 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
9636 testing whether <sys/types.h> clashes, as Autoconf does this for
9637 us now. All uses removed.
9638 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
9639 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
9640 (gl_CHECK_TYPE_SAME):
9641 Remove; no longer needed.
9642 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
9643 exists, since we'll return 0 anyway in that case.
9644 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
9646 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
9648 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
9649 possible collision with system files.
9650 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
9651 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
9652 WCHAR_MIN and WCHAR_MAX in this case.
9653 (<stddef.h>): Do not include; no longer needed.
9654 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
9655 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
9656 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
9657 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
9658 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
9659 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
9660 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
9661 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
9662 !defined(__c99))]: Include in this case too, since it's harmless
9664 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
9666 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
9667 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
9668 (_STDINT_MIN, _STDINT_MAX): New macros.
9669 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
9670 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
9671 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
9672 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
9673 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
9674 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
9675 macros, not typedefs; this simplifies things quite a bit.
9676 Use long int for all types narrower than int64_t.
9677 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
9678 Define in terms of long long int or int64_t or long int,
9679 not int64_t or int32_t. This saves some compile-time testing.
9680 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
9681 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
9682 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
9683 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
9684 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
9685 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
9686 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
9687 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
9688 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
9689 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
9690 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
9691 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
9692 undef any previous version and define our own version, for
9693 simplicity and consistency with the new macros for types.
9694 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
9695 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
9696 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
9697 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
9698 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
9699 @WINT_T_SUFFIX@ to keep things simple here.
9700 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
9701 Simplify by assuming typical 8/16/32/64 host, since we're
9702 already doing that elsewhere anyway.
9703 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
9704 and assume long long int is 64 bits if available. This
9705 speeds up 'configure'.
9707 2006-07-01 Eric Blake <ebb9@byu.net>
9709 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
9710 Reported by Andreas Buening.
9712 2006-07-01 Eric Blake <ebb9@byu.net>
9714 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
9716 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
9718 * lib/getaddrinfo.c: fixed typo
9720 2006-06-29 Jim Meyering <jim@meyering.net>
9722 * modules/strftime (Maintainer): Add my name, since with the
9723 FPRINTFTIME changes strftime.c has forked from glibc.
9725 2006-06-29 Eric Blake <ebb9@byu.net>
9727 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
9729 2006-06-29 Eric Blake <ebb9@byu.net>
9731 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
9733 2006-06-29 Eric Blake <ebb9@byu.net>
9735 * lib/stat_.h: New file.
9737 2006-06-29 Eric Blake <ebb9@byu.net>
9739 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
9740 unused static function.
9742 2006-06-29 Eric Blake <ebb9@byu.net>
9744 * doc/functions.texi (Function Portability): Document missing lstat
9747 2006-06-29 Eric Blake <ebb9@byu.net>
9749 * MODULES.html.sh: Add sys_stat.
9750 * modules/sys_stat: New module.
9751 * modules/mkstemp (Depends-on): Add sys_stat.
9753 2006-06-29 Derek R. Price <derek@ximbiot.com>
9755 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
9757 2006-06-29 Derek R. Price <derek@ximbiot.com>
9759 * m4/c-bs-a.m4: Removed.
9761 2006-06-29 Derek R. Price <derek@ximbiot.com>
9763 * lib/strftime.c: Assume strftime() exists.
9765 2006-06-29 Derek Price <derek@ximbiot.com>
9767 * modules/c-bs-a: Removed - \a is C89.
9768 * MODULES.html.sh: Remove c-bs-a.
9770 2006-06-29 Bruno Haible <bruno@clisp.org>
9772 * modules/wcwidth (License): Change to LGPL.
9774 2006-06-28 Simon Josefsson <jas@extundo.com>
9776 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
9779 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
9782 2006-06-28 Simon Josefsson <jas@extundo.com>
9784 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
9786 2006-06-28 Simon Josefsson <jas@extundo.com>
9788 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
9789 functions there. It will succeed on Windows XP, but on Windows
9790 2000 and (presumably) earlier, it will fail, and use the internal
9792 (use_win32_p): New function.
9793 (getaddrinfo): Use strtoul on servname, to support numeric ports.
9794 Support AI_NUMERICSERV to disable getservbyname.
9795 (getnameinfo): New function, only supports
9796 NI_NUMERICHOST|NI_NUMERICSERV for now.
9798 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
9799 only have some of them. Add AI_NUMERICSERV. Add prototype for
9802 2006-06-28 Eric Blake <ebb9@byu.net>
9804 * modules/wcwidth: New file.
9805 * modules/mbchar (Depends-on): Add wcwidth.
9806 * modules/mbswidth (Depends-on): Add wcwidth.
9807 * MODULES.html.sh: Add wcwidth.
9809 2006-06-28 Eric Blake <ebb9@byu.net>
9811 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
9812 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
9814 2006-06-28 Eric Blake <ebb9@byu.net>
9816 * lib/xvasprintf.h: Fix comments.
9818 2006-06-28 Eric Blake <ebb9@byu.net>
9820 * lib/mbchar.h (wcwidth): Include wcwidth.h.
9821 * lib/mbswidth.c (wcwidth): Move from here...
9822 * lib/wcwidth.h: ...to this new file.
9824 2006-06-28 Derek R. Price <derek@ximbiot.com>
9826 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
9828 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
9830 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
9832 2006-06-28 Derek R. Price <derek@ximbiot.com>
9834 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
9835 Autoconf 2.60 says this stuff was obsolete.
9837 2006-06-28 Bruno Haible <bruno@clisp.org>
9839 * modules/wcwidth (Files): Add m4/wchar_t.m4.
9841 2006-06-28 Bruno Haible <bruno@clisp.org>
9843 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
9846 2006-06-28 Bruno Haible <bruno@clisp.org>
9848 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
9849 declaration for wcwidth.
9850 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
9852 2006-06-28 Bruno Haible <bruno@clisp.org>
9854 * lib/mkdtemp.c [MINGW]: Include <io.h>.
9855 (mkdir): Define using _mkdir.
9857 2006-06-28 Bruno Haible <bruno@clisp.org>
9859 * lib/getaddrinfo.h: Fix POSIX URL.
9860 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
9862 (use_win32_p): Make static.
9863 (getaddrinfo): Reject service name if it is empty or does not consist
9864 solely of decimal digits, or if its value is > 65535.
9865 (getnameinfo): Remove useless casts.
9867 2006-06-27 Simon Josefsson <jas@extundo.com>
9869 * modules/sys_select: New file, suggested by Bruno Haible, Paul
9870 Eggert and Martin Lambers.
9872 2006-06-27 Simon Josefsson <jas@extundo.com>
9874 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
9875 Eggert and Martin Lambers.
9877 2006-06-27 Bruno Haible <bruno@clisp.org>
9879 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
9880 result to 0, not to empty.
9881 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
9883 2006-06-27 Bruno Haible <bruno@clisp.org>
9885 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
9887 2006-06-26 Simon Josefsson <jas@extundo.com>
9889 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
9892 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
9894 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
9895 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
9896 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
9898 2006-06-26 Mark D. Baushke <mdb@gnu.org>
9900 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
9902 2006-06-26 Bruno Haible <bruno@clisp.org>
9904 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
9906 2006-06-26 Bruno Haible <bruno@clisp.org>
9908 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
9910 2006-06-26 Bruno Haible <bruno@clisp.org>
9912 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
9913 SGI C compiler in pre-C99 mode.
9914 Suggested by Mark D. Baushke and Larry Jones.
9916 2006-06-26 Bruno Haible <bruno@clisp.org>
9918 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
9920 Reported by Mark D. Baushke and Larry Jones.
9922 2006-06-26 Bruno Haible <bruno@clisp.org>
9924 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
9926 Suggested by Mark D. Baushke and Larry Jones.
9928 2006-06-23 Simon Josefsson <jas@extundo.com>
9929 Bruno Haible <bruno@clisp.org>
9931 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
9932 Emit mostlyclean-local rule.
9933 (func_emit_tests_Makefile_am): Likewise.
9934 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
9936 2006-06-23 Mark D. Baushke <mdb@gnu.org>
9938 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
9940 2006-06-23 Bruno Haible <bruno@clisp.org>
9942 * tests/test-stdint.c: Update to match ISO C 99 Technical
9945 2006-06-23 Bruno Haible <bruno@clisp.org>
9947 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
9949 2006-06-23 Bruno Haible <bruno@clisp.org>
9951 * lib/stdint_.h: Treat IRIX like OpenBSD.
9953 2006-06-23 Bruno Haible <bruno@clisp.org>
9955 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
9956 ISO C 99 Technical Corrigendum 1.
9958 2006-06-22 Simon Josefsson <jas@extundo.com>
9960 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
9963 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
9965 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
9966 needed. Some compiler complained about some of them. Problem reported
9968 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
9970 2006-06-21 Simon Josefsson <jas@extundo.com>
9972 * tests/test-getaddrinfo.c: New file.
9974 * modules/getaddrinfo-tests: New file.
9976 * MODULES.html.sh: Add inet_pton.
9978 * modules/inet_pton: New file.
9980 2006-06-21 Simon Josefsson <jas@extundo.com>
9982 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
9983 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
9984 of using the (limited) gnulib implementation on Windows XP.
9986 * m4/inet_pton.m4: New file.
9988 2006-06-21 Simon Josefsson <jas@extundo.com>
9990 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
9993 * lib/socket_.h: Don't define WINVER.
9995 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
9996 slightly modified to work in gnulib.
9998 2006-06-21 Simon Josefsson <jas@extundo.com>
10000 * doc/gnulib.texi (Windows sockets): Add.
10002 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
10004 * lib/read-file.c (fread_file): Start with buffer allocation of
10005 0 bytes rather than 1 byte; this simplifies the code.
10006 Don't invoke feof; it's not needed. Refactor to avoid duplicate
10007 code to free buffer and save/restore errno.
10008 (internal_read_file): Remove unused local.
10010 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
10012 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
10013 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
10014 Problem reported by Denis Excoffier in
10015 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
10017 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
10019 * modules/sys_socket, modules/socklen: Include sys/types since
10020 FreeBSD 4.x's sys/socket.h needs it.
10022 2006-06-19 Simon Josefsson <jas@extundo.com>
10024 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
10026 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
10028 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
10030 2006-06-19 Bruno Haible <bruno@clisp.org>
10032 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
10033 and FULL_PATH_INTTYPES_H in angle brackets.
10034 Reported by Mark D. Baushke <mdb@gnu.org>.
10036 2006-06-17 Eric Blake <ebb9@byu.net>
10038 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
10041 2006-06-17 Bruno Haible <bruno@clisp.org>
10043 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
10046 2006-06-17 Bruno Haible <bruno@clisp.org>
10048 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
10049 whether errno is declared. Assume <errno.h> declares errno.
10051 2006-06-17 Bruno Haible <bruno@clisp.org>
10053 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
10055 2006-06-17 Bruno Haible <bruno@clisp.org>
10057 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
10058 problem on Solaris 2.5.1.
10060 2006-06-16 Eric Blake <ebb9@byu.net>
10062 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
10063 * lib/unicodeio.c [!defined errno]: Likewise.
10064 * lib/strtol.c [!defined errno]: Likewise.
10065 * lib/strtod.c [!defined errno]: Likewise.
10067 2006-06-15 Eric Blake <ebb9@byu.net>
10069 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
10071 2006-06-15 Eric Blake <ebb9@byu.net>
10073 * config/srclist.txt (ssize_t.m4): Lose sync.
10075 2006-06-15 Bruno Haible <bruno@clisp.org>
10077 * modules/stdint (Files): Include m4/full-header-path.m4,
10078 m4/size_max.m4, m4/wchar_t.m4.
10079 (Makefile.am): Many more substitutions.
10080 * modules/stdint-tests: New file.
10081 * tests/test-stdint.c: New file.
10083 2006-06-15 Bruno Haible <bruno@clisp.org>
10085 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
10086 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
10087 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
10088 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
10089 gl_CHECK_TYPE_SAME): New macros.
10091 2006-06-15 Bruno Haible <bruno@clisp.org>
10093 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
10095 2006-06-15 Bruno Haible <bruno@clisp.org>
10097 * lib/stdint_.h: Rewritten to be fully auto-configured.
10098 Fixes bug on HP-UX/IA64.
10100 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
10102 * lib/getdate.y (__attribute__): Don't define if already defined.
10103 Problem reported by Larry Jones.
10104 * lib/utimens.c (__attribute__): Likewise.
10106 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
10108 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
10109 reported by Andreas Schwab.
10111 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10112 Bruno Haible <bruno@clisp.org>
10114 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
10115 check for the declaration of strnlen and a run test that exposes the
10116 AIX 5.1 strnlen bug. In the failure case, #define strndup to
10119 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10120 Bruno Haible <bruno@clisp.org>
10122 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
10124 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10126 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
10127 compile test, for Tru64 4.0D.
10129 2006-05-28 Karl Berry <karl@gnu.org>
10131 * config/srclist.txt (printf-args.c): lose sync.
10133 2006-05-26 Martin Lambers <marlam@marlam.de>
10135 * lib/getpass.c: Updates the test for the native W32 API, and adds
10136 missing includes, thus fixing compilation warnings.
10138 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
10140 * lib/exclude.c (exclude_fnmatch): New function.
10141 (excluded_file_name): Call exclude_fnmatch.
10142 * lib/exclude.h (excluded_file_name): New prototype
10144 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
10146 * lib/tempname.c (small_open, large_open): New macros.
10147 (__open, __open64) [!_LIBC]: Remove.
10148 (__gen_tempname): Use small_open and large_open instead of __open
10149 and __open64. This fixes a portability bug on HP-UX 11.11i
10150 reported by Simon Wing-Tang in
10151 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
10153 2006-05-24 Bruno Haible <bruno@clisp.org>
10155 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
10156 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
10157 Reported by Thorsten Maerz <torte@netztorte.de> via
10158 Aaron Stone <aaron@serendipity.cx>.
10160 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
10162 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
10163 gl_ rather than jm_. Link, don't run, so that cross-compiles are
10164 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
10165 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
10166 not really conditional on the cache.
10167 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
10169 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
10171 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
10172 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
10173 (my_usleep): Don't mishandle maximum value.
10175 2006-05-19 Jim Meyering <jim@meyering.net>
10177 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
10179 2006-05-17 Bruno Haible <bruno@clisp.org>
10181 Cygwin portability.
10182 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
10184 2006-05-17 Bruno Haible <bruno@clisp.org>
10186 * lib/stdint_.h: Fix recognition of Cygwin.
10188 2006-05-15 Bruno Haible <bruno@clisp.org>
10190 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
10191 on libtool patch by Ralf Wildenhues.
10193 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
10195 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
10196 test for C99 conformance; (bool) 0.5 is an integer constant
10197 expression, but (bool) -0.5 is not. Problem reported by Fedor
10198 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
10200 2006-05-11 Simon Josefsson <jas@extundo.com>
10202 * m4/xvasprintf.m4: Fix obvious typo.
10204 2006-05-11 Jim Meyering <jim@meyering.net>
10206 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
10209 2006-05-10 Simon Josefsson <jas@extundo.com>
10211 * lib/md4.c: Typo fix, update copyright years.
10212 (K1, K2): Don't use L because it turn computations into 64-bit on
10215 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
10217 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
10218 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
10219 unwanted sign propagation, e.g., on hosts with 64-bit int.
10220 There still are some problems with reeelly weird theoretical hosts
10221 (e.g., 33-bit int) but it's not worth worrying about now.
10222 * lib/sha1.c (rol): Likewise.
10223 (K1, K2, K3, K4): Remove unnecessary L suffix.
10225 2006-05-10 Bruno Haible <bruno@clisp.org>
10227 * lib/des.c: Cast to avoid warnings.
10229 2006-05-09 Bruno Haible <bruno@clisp.org>
10231 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
10232 (Depends-on): Depend also on xsize, stdarg.
10233 (configure.ac): Add gl_XVASPRINTF.
10235 2006-05-09 Bruno Haible <bruno@clisp.org>
10237 * m4/xvasprintf.m4: New file.
10239 2006-05-09 Bruno Haible <bruno@clisp.org>
10241 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
10242 (EOVERFLOW): Define fallback value.
10243 (xstrcat): New function.
10244 (xvasprintf): Recognize the special case of a string concatenation.
10246 2006-05-08 Eric Blake <ebb9@byu.net>
10248 * gnulib-tool (func_version): Base copyright year on CVS date.
10249 (func_emit_copyright_notice): New function.
10250 (func_emit_lib_Makefile_am): Use it.
10251 (func_emit_tests_Makefile_am): Likewise.
10252 (func_import): Likewise.
10254 2006-05-08 Bruno Haible <bruno@clisp.org>
10256 * modules/stdarg: New file.
10257 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
10259 2006-05-08 Bruno Haible <bruno@clisp.org>
10261 * m4/stdarg.m4: New file, from GNU gettext.
10263 2006-05-08 Bruno Haible <bruno@clisp.org>
10265 * config/srclist.txt (build-aux/config.rpath): different from latest
10268 2006-05-08 Bruno Haible <bruno@clisp.org>
10270 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
10272 2006-05-05 Jim Meyering <jim@meyering.net>
10274 * m4/warning.m4: New file, derived from bison's file by the same name.
10276 2006-05-03 Bruno Haible <bruno@clisp.org>
10278 * lib/stdint_.h: Shorter URL.
10279 * lib/inttypes.h: Likewise.
10281 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
10283 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
10285 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
10287 * lib/verify.h: Document the internals better. Most of this change
10288 was written by Bruno Haible.
10290 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
10292 * doc/verify.texi: New file, partly based on a proposal by
10295 2006-05-02 Bruno Haible <bruno@clisp.org>
10297 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
10299 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
10301 2006-04-29 Bruno Haible <bruno@clisp.org>
10303 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
10304 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
10306 2006-04-29 Bruno Haible <bruno@clisp.org>
10308 * gnulib-tool: Make --update option actually work.
10310 2006-04-29 Bruno Haible <bruno@clisp.org>
10312 * doc/gcd.texi: New file.
10313 * doc/gnulib.texi: Include it.
10315 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
10317 * lib/getdate.y (get_date): When adding relative date, start with the
10318 initial time, not with the result of the first mktime call.
10320 2006-04-25 Bruno Haible <bruno@clisp.org>
10322 * gnulib-tool (func_import): Output the include directives in three
10323 blocks, sorted separately.
10324 Reported by Ben Pfaff <blp@cs.stanford.edu>.
10326 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
10328 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
10329 to define main with arguments, for C++. Reported by Eric Blake.
10330 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
10331 Prefer 'int main ()' to 'int main (void)', for C++.
10332 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10333 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
10334 for 'main', for C99 and C++.
10336 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
10338 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
10339 Don't assume that exit status -1 is valid.
10340 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10341 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10342 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
10343 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
10344 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
10345 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
10346 not AC_TRY_RUN. Use return, not exit. Don't assume that
10347 functions can be used without declaring them, or that you can
10348 exit with status -1.
10349 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
10351 2006-04-24 Karl Berry <karl@gnu.org>
10353 * config/srclist.txt (longdouble.m4): sync lost.
10355 2006-04-24 Eric Blake <ebb9@byu.net>
10357 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
10359 2006-04-24 Bruno Haible <bruno@clisp.org>
10361 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
10362 poll() implementation in AIX.
10363 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10365 2006-04-24 Bruno Haible <bruno@clisp.org>
10367 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
10368 assigned exactly once.
10370 2006-04-23 Claudio Fontana <claudio@gnu.org>
10371 Bruno Haible <bruno@clisp.org>
10373 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
10374 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
10377 2006-04-23 Bruno Haible <bruno@clisp.org>
10379 * modules/copy-file: Depend on unistd.
10380 * modules/execute: Likewise.
10381 * modules/fatal-signal: Likewise.
10382 * modules/findprog: Likewise.
10383 * modules/mkdtemp : Likewise.
10384 * modules/pipe: Likewise.
10385 * modules/wait-process: Likewise.
10387 2006-04-23 Bruno Haible <bruno@clisp.org>
10389 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
10390 condition was already detected.
10391 Reported by Ben Pfaff <blp@cs.stanford.edu>.
10393 2006-04-23 Bruno Haible <bruno@clisp.org>
10395 * lib/copy-file.c: Include <unistd.h> unconditionally.
10396 * lib/execute.c: Likewise.
10397 * lib/fatal-signal.c: Likewise.
10398 * lib/findprog.c: Likewise.
10399 * lib/mkdtemp.c: Likewise.
10400 * lib/pipe.h: Likewise.
10401 * lib/pipe.c: Likewise.
10402 * lib/wait-process.h: Likewise.
10404 2006-04-23 Bruno Haible <bruno@clisp.org>
10406 * gnulib-tool (func_usage): Fix --import description. Document
10408 (func_import): Create temporary file in a temporary directory, if
10409 --dry-run is specified. Silence errors from 'grep' when there are no
10410 m4 files in $m4dir.
10411 (func_create_testdir): Silence errors from 'grep' when there are no
10412 m4 files in $m4dir.
10413 Reported by Karl Berry <karl@freefriends.org>.
10415 2006-04-20 Bruno Haible <bruno@clisp.org>
10417 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
10418 one argument, so that the code will be portable to Autoconf 2.60.
10419 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
10420 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10421 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
10423 2006-04-19 Derek Price <derek@ximbiot.com>
10424 Eric Blake <ebb9@byu.net>
10426 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
10427 rather than "/full/path.h". Update comment to match. Shorten &
10428 generalize m4_translit call via AS_TR_CPP.
10430 2006-04-19 Derek Price <derek@ximbiot.com>
10431 Eric Blake <ebb9@byu.net>
10433 * lib/inttypes.h: Correct grammar in comment.
10435 2006-04-18 Derek Price <derek@ximbiot.com>
10436 Paul Eggert <eggert@cs.ucla.edu>
10438 * modules/inttypes: New file.
10439 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
10441 2006-04-18 Derek Price <derek@ximbiot.com>
10442 Paul Eggert <eggert@cs.ucla.edu>
10444 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
10447 2006-04-18 Derek Price <derek@ximbiot.com>
10448 Paul Eggert <eggert@cs.ucla.edu>
10450 * lib/inttypes.h: New file.
10451 * lib/strtoimax.c: Assume <inttypes.h>.
10453 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
10455 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
10456 isn't mounted. Problem reported by Kir Kolyshkin.
10458 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
10460 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
10461 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
10463 * lib/regex.h (RE_DUP_MAX): Update comment to match current
10466 2006-04-12 Eric Blake <ebb9@byu.net>
10468 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
10469 is now done automatically by the corresponding Autoconf macro.
10471 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
10473 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
10476 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
10478 Merge regex changes from libc, removing some of our
10479 POSIX-conformance changes that were rejected and redoing them in a
10480 less-intrusive way.
10482 * lib/regcomp.c (re_compile_internal, init_dfa):
10483 Length arg is now size_t, not Idx. All uses changed.
10484 (peek_token): Forward decl now says internal_function.
10485 (__re_error_msgid, __re_error_msgid_idx):
10486 Now static rather than extern with attribute_hidden.
10487 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
10488 For some reason libc prefers K&R style defns for external functions.
10489 (regerror) [!defined _LIBC]: Likewise.
10490 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
10491 (seek_collating_symbol_entry, lookup_collation_sequence_value):
10492 (build_range_exp, build_collating_symbol):
10493 Use K&R-style defn.
10494 (re_compile_fastmap): Use '\0' to memset, not 0.
10495 (utf8_sb_map): Make the calculations more obvious.
10496 (init_dfa, parse_bracket_exp, build_charclass_op):
10497 Call calloc and cast result, as glibc does.
10498 (init_word_char, fetch_token, peek_token, peek_token_bracket):
10499 (build_range_exp, build_collating_symbol):
10500 Now internal functions.
10502 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
10504 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
10505 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
10506 Don't depend on VMS; depend on __VMS instead, for POSIX
10507 namespace cleanness.
10508 (regoff_t): Define to ssize_t, not long int.
10510 Remove the REG_ macros named below. Instead, make the old names
10511 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
10513 (REG_BACKSLASH_ESCAPE_IN_LISTS):
10514 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
10515 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
10516 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
10517 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
10518 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
10519 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
10520 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
10521 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
10522 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
10523 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
10524 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
10525 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
10526 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
10527 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
10528 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
10529 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
10531 Remove. All uses replaced by the old RE_* names.
10532 (RE_BACKSLASH_ESCAPE_IN_LISTS):
10533 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
10534 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
10535 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
10536 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
10537 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
10538 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
10539 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
10540 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
10541 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
10542 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
10543 Don't bother having these macros be independent of each others'
10544 values, since they no longer exist in the POSIX name space.
10546 Rename the following member names back to their old names,
10547 unless !__USE_GNU_REGEX. All uses changed back.
10548 (buffer): Renamed from re_buffer.
10549 (allocated): Renamed from re_allocated.
10550 (used): Renamed from re_used.
10551 (syntax): Renamed from re_syntax.
10552 (fastmap): Renamed from re_fastmap.
10553 (translate): Renamed from re_translate.
10554 (can_be_null): Renamed from re_can_be_null.
10555 (regs_allocated): Renamed from re_regs_allocated.
10556 (fastmap_accurate): Renamed from re_fastmap_accurate.
10557 (no_sub): Renamed from re_no_sub.
10558 (not_bol): Renamed from re_not_bol.
10559 (not_eol): Renamed from re_not_eol.
10560 (newline_anchor): Renamed from re_newline_anchor.
10561 (num_regs): Renamed from rm_num_regs.
10562 (start): Renamed from rm_start.
10563 (end): Renamed from rm_end.
10565 (free_state): Move up a bit.
10567 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
10568 #define to be empty.
10569 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
10570 when that is what is intended.
10571 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
10572 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
10574 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
10575 All uses changed back to re_malloc, etc. It's now the caller's
10576 responsibility to check for overflow; all callers changed.
10577 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
10578 (re_x2nrealloc): Remove.
10579 (free_state): Remove decl.
10581 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
10582 (re_set_registers, re_exec):
10583 Use K&R-style defn.
10585 2006-01-31 Roland McGrath <roland@redhat.com>
10587 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
10588 Reported by Mike Frysinger <vapier@gentoo.org>.
10590 2006-01-15 Andreas Jaeger <aj@suse.de>
10593 * lib/regex_internal.c (re_string_reconstruct): Adjust for
10594 build_wcs_upper_buffer change.
10595 (build_wcs_upper_buffer): Change return type.
10597 2005-12-10 Ulrich Drepper <drepper@redhat.com>
10599 * lib/regex_internal.h: Include <stdint.h> if available.
10601 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
10603 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
10605 2005-10-14 Ulrich Drepper <drepper@redhat.com>
10607 * lib/regcomp.c: Adjust for changed secondary hash function.
10609 2005-09-30 Ulrich Drepper <drepper@redhat.com>
10611 * lib/regex.h: Pretty printing.
10612 Clean up namespace a bit.
10614 2005-09-30 Jakub Jelinek <jakub@redhat.com>
10616 * lib/regexec.c (update_cur_sifted_state, check_arrival,
10617 check_arrival_add_next_nodes): Avoid using uninitialized variable.
10619 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
10620 Ulrich Drepper <drepper@redhat.com>
10623 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
10625 (bitset_word_t): Renamed from bitset_word. All uses changed.
10627 2005-09-22 Ulrich Drepper <drepper@redhat.com>
10630 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
10631 * lib/regcomp.c: Remove unnecessary uses of
10632 unsigned RE_TRANSLATE_TYPE.
10633 * lib/regex_internal.h: Likewise.
10634 * lib/regex_internal.c: Likewise.
10635 * lib/regexec.c: Likewise.
10636 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
10638 2005-09-07 Ulrich Drepper <drepper@redhat.com>
10640 * lib/regexec.c (find_recover_state): Remove unnecessary
10642 (transit_state_bkref): Make DFA a const pointer.
10643 (get_subexp): Likewise.
10644 (check_arrival): Likewise.
10645 (update_cur_sifted_state): Likewise.
10646 (re_search_internal): Likewise.
10647 (prune_impossible_nodes): Likewise.
10648 (acquire_init_state_context): Likewise.
10649 (proceed_next_node): Likewise.
10650 (set_regs): Likewise.
10651 (free_fail_stack_return): Likewise.
10652 (check_arrival_expand_ecl): Mark DFA parameter as const.
10653 (check_arrival_expand_ecl_sub): Likewise.
10654 (check_subexp_limits): Likewise.
10655 (sub_epsilon_src_nodes): Likewise.
10656 (add_epsilon_src_nodes): Likewise.
10657 (merge_state_array): Likewise.
10658 (update_regs): Likewise.
10659 (build_trtable): Likewise.
10660 (sift_states_backward): Mark MCTX parameter as const.
10661 (build_sifted_states): Likewise.
10662 (update_cur_sifted_state): Likewise.
10663 (sift_states_mkref): Likewise.
10664 (check_arrival_expand_ecl): Mark eclosure as const.
10665 (check_dst_limits_calc_pos_1): Likewise.
10666 * lib/regex_internal.h (re_match_context_t): Make dfa a const
10669 2005-09-06 Ulrich Drepper <drepper@redhat.com>
10671 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
10672 (transit_state_sb): Likewise.
10673 (transit_state_mb): Likewise.
10674 (sift_states_iter_mb): Likewise.
10675 (check_arrival_add_next_nodes): Likewise.
10676 (check_node_accept_bytes): Change first parameter to pointer-to-const.
10677 [_LIBC] (re_search_2_stub): Use mempcpy.
10679 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
10680 mbrtowc for very simple UTF-8 case.
10682 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
10683 a pointer-to-const.
10684 (re_acquire_state_context): Likewise.
10685 * lib/regex_internal.h: Adjust prototypes.
10687 * lib/regex.c: Prevent using C++ compilers.
10689 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
10690 (re_acquire_state_context): Likewise.
10692 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
10694 * modules/regex (Depends-on): Add ssize_t.
10696 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
10698 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
10701 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
10703 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
10705 2006-03-29 Mark D. Baushke <mdb@gnu.org>
10706 Bruno Haible <bruno@clisp.org>
10708 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
10709 <sys/types.h> and <inttypes.h>.
10711 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10713 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
10714 `__error_t_defined', so argp.h will not typedef the former.
10716 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
10718 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
10719 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
10720 glibc names. Even if glibc is changed to conform to POSIX, the
10721 traditional names will be available anyway, since regex depends on
10722 the extensions module. Also, fix a longstanding typo in the
10723 implementation of Spencer ERE test #75 from grep 2.3. Problems
10724 reported by Emanuele Giaquinta. Also, change sense of cached
10725 variable, so that the message makes sense.
10727 2006-03-24 Simon Josefsson <jas@extundo.com>
10729 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
10730 including some doc fixes.
10731 (base64_encode_alloc): Fix +1 bug on allocation failures.
10733 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10735 * lib/base64.c (base64_encode): Do not read past end of array with
10736 unsanitized input on systems with CHAR_BIT > 8.
10738 2006-03-24 Eric Blake <ebb9@byu.net>
10740 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
10742 2006-03-22 Karl Berry <karl@gnu.org>
10744 * config/srclist.txt (*setenv.[ch]): get from coreutils.
10745 * config/srclistvars.sh (COREUTILS): new var.
10747 2006-03-17 Jim Meyering <jim@meyering.net>
10749 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
10750 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
10752 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
10754 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
10755 no longer needs it. Instead, check that regoff_t is as least
10756 as wide as ptrdiff_t.
10758 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
10759 so that our regex.h stays compatible with the installed regex.
10760 This is helpful for installers who configure --without-included-regex.
10761 Problem reported by Emanuele Giaquinta.
10763 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
10765 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
10766 Typedef to long int, not to off_, as POSIX will likely change
10769 2006-03-15 Eric Blake <ebb9@byu.net>
10771 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
10773 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
10775 * lib/argp-help.c (validate_uparams): Fix typo
10776 * lib/argp-parse.c (argp_default_options): Consistently begin help
10777 messages with a lowercase letter.
10779 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
10781 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
10782 overrun buffers and shouldn't be used (much as gets shouldn't be
10784 * lib/time_r.c (asctime_r, ctime_r): Likewise.
10786 2006-03-08 Simon Josefsson <jas@extundo.com>
10788 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
10789 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10791 2006-03-08 Simon Josefsson <jas@extundo.com>
10793 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
10794 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10796 2006-03-08 Simon Josefsson <jas@extundo.com>
10798 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
10799 signal that configure disabled the device.
10801 2006-03-08 Simon Josefsson <jas@extundo.com>
10803 * build-aux/maint.mk: Fix refresh-po, to handle no translated
10806 2006-03-07 Simon Josefsson <jas@extundo.com>
10808 * modules/getopt (Depends-on): Add unistd.
10810 * modules/unistd: New file.
10812 2006-03-07 Simon Josefsson <jas@extundo.com>
10814 * modules/gc-random: New file.
10816 2006-03-07 Simon Josefsson <jas@extundo.com>
10818 * m4/unistd_h.m4: New file.
10820 2006-03-07 Simon Josefsson <jas@extundo.com>
10822 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
10823 test to be side-effect free by storing the result in the cache
10824 variable gl_cv_lib_readline, and moving the assignment of
10825 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
10826 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10828 2006-03-07 Simon Josefsson <jas@extundo.com>
10830 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
10831 error on missing devices (the functions will return an error).
10833 * m4/gc.m4: Move random stuff to gc-random.m4
10835 2006-03-07 Simon Josefsson <jas@extundo.com>
10837 * lib/unistd_.h: New file.
10839 2006-03-07 Simon Josefsson <jas@extundo.com>
10841 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
10843 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
10845 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
10846 Problem reported by Juan Manuel Guerrero.
10848 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
10850 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
10852 * lib/getlogin_r.c: Likewise.
10853 * lib/getlogin_r.h: Likewise.
10854 * lib/glob.c: Likewise.
10855 * lib/pagealign_alloc.c: Likewise.
10856 * lib/unistd_.h: Remove; no longer needed.
10858 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
10860 * MODULES.html.sh (Support for systems lacking POSIX:2001):
10862 * modules/c-stack (Depends-on): Add unistd.
10863 * modules/getlogin_r: Likewise.
10864 * modules/glob: Likewise.
10865 * modules/pagealign_alloc: Likewise.
10866 * modules/unistd (Files): Remove lib/unistd_.h.
10867 (EXTRA_DIST): Remove.
10868 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
10870 (MOSTLYCLEANFILES): Remove unistd.h-t.
10872 2006-03-03 Simon Josefsson <jas@extundo.com>
10874 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
10876 2006-03-03 Simon Josefsson <jas@extundo.com>
10878 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
10881 2006-03-03 Simon Josefsson <jas@extundo.com>
10883 * build-aux/maint.mk: Add indent target.
10885 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
10887 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
10888 our replacement poll.h in any case, to avoid a differing
10889 declaration from a system header. Seen on AIX.
10891 2006-03-01 Simon Josefsson <jas@extundo.com>
10893 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
10896 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
10898 * modules/gettime (Depends-on): Add extensions module.
10899 * modules/nanosleep (Depends-on): Likewise.
10900 * modules/settime (Depends-on): Likewise.
10902 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
10904 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
10905 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
10907 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10908 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
10910 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
10911 not "==". Reported by Ralf Wildenhues.
10913 2006-03-01 Karl Berry <karl@gnu.org>
10915 * doc/Copyright/request-*: new files, synced from gnuorg.
10917 2006-03-01 Karl Berry <karl@gnu.org>
10919 * config/srclist.txt (Copyright/*): new entries.
10921 2006-02-28 Simon Josefsson <jas@extundo.com>
10923 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
10925 2006-02-27 Simon Josefsson <jas@extundo.com>
10927 * lib/base64.h: Indent #define's. From Jim Meyering
10928 <jim@meyering.net>.
10930 2006-02-27 Jim Meyering <jim@meyering.net>
10932 Revert the change of 2006-02-24, so these files can continue
10933 to be sync'd from gettext.
10934 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
10937 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
10939 * modules/intprops: New file.
10940 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
10942 * modules/getloadavg (Files): Remove lib/intprops.h.
10943 (Depends-on): Add intprops.
10944 * modules/human: Likewise.
10945 * modules/inttostr: Likewise.
10946 * modules/openat: Likewise.
10947 * modules/sig2str: Likewise.
10948 * modules/userspec: Likewise.
10949 * modules/utimecmp: Likewise.
10950 * modules/xnanosleep: Likewise.
10951 * modules/xstrtol: Likewise.
10953 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
10955 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
10956 * modules/lock-tests (TESTS): Use $(EXEEXT).
10957 * modules/tls-tests: Likewise.
10958 * modules/argp-tests: Likewise.
10959 (check_PROGRAMS): New var, replacing...
10960 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
10962 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10964 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
10967 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
10969 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
10971 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10973 Sync from coreutils.
10974 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
10977 2006-02-22 Jim Meyering <jim@meyering.net>
10979 Sync from coreutils.
10980 * m4/chdir-safer.m4: New file.
10982 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
10984 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
10985 AT_FDCWD exceeds INT_MAX.
10986 * lib/openat.h (AT_FDCWD): Likewise.
10988 2006-02-17 Eric Blake <address@hidden>
10990 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
10992 2006-02-16 Simon Josefsson <jas@extundo.com>
10994 * modules/getaddrinfo (Depends-on): Add sys_socket.
10996 2006-02-15 Simon Josefsson <jas@extundo.com>
10998 * build-aux/maint.mk: Add dsyntax-check rule.
11000 2006-02-15 Eric Blake <ebb9@byu.net>
11002 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
11003 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
11004 'present but cannot compile' warnings on cygwin.
11005 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
11006 use ws2tcpip.h if sys/socket.h works.
11007 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
11008 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
11010 2006-02-14 Simon Josefsson <jas@extundo.com>
11012 * modules/maintainer-makefile (Files): Rename.
11014 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
11015 and (the local) Makefile.cfg to maint-cfg.mk.
11017 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
11020 * modules/maintainer-makefile: New module.
11022 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
11023 severaly stripped to make it possible to build it up from scratch
11024 with reliable tests.
11026 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
11027 fixes to permit overriding the default actions when configure and
11028 makefile are not available.
11030 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
11032 Sync from coreutils.
11033 * modules/lstat (Depends-on): Don't depend on xalloc.
11034 (License): Change from GPL to LGPL, since this is now simply a
11035 replacement for a libc function.
11037 2006-02-14 Jim Meyering <jim@meyering.net>
11039 Sync from coreutils.
11041 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
11042 failure on deficient systems, and simplify gnulib lgpl dependencies.
11043 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
11044 xmalloc/lstat combination. Based on a patch from Bruno Haible.
11046 * lib/xalloc-die.c: Remove unused definition of N_.
11048 2006-02-14 Jim Meyering <jim@meyering.net>
11050 Sync from coreutils.
11051 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
11052 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
11053 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
11054 double-quote uses of that variable, to accommodate the rare case in
11055 which getmntent is available in none of the libraries checked. This
11056 happens at least on FreeBSD 5.0.
11058 2006-02-13 Simon Josefsson <jas@extundo.com>
11060 * gnulib-tool (Usage): Fix --import, from
11061 karl@freefriends.org (Karl Berry).
11063 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
11065 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
11067 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
11069 * lib/argp-namefrob.h: Restore changes accidentally lost during the
11070 "autoupdate" on 2005-12-12.
11072 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
11074 * modules/closeout (Depends-on): Remove atexit.
11076 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
11078 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
11079 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
11081 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
11083 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
11084 __EXTENSIONS__ if this causes compilation to fail. Problem
11085 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
11086 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
11088 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
11090 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
11091 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
11092 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
11095 2006-01-26 Simon Josefsson <jas@extundo.com>
11097 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
11098 prototype is visible on mingw32.
11100 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
11103 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
11106 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
11108 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
11109 attempt to open for write; this always fails, at least on POSIX
11110 hosts. This reinstates the 2006-01-09 change, which was
11111 inadvertently removed.
11113 2006-01-26 Bruno Haible <bruno@clisp.org>
11115 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
11116 Reported by Paul Eggert.
11118 2006-01-26 Bruno Haible <bruno@clisp.org>
11119 Paul Eggert <eggert@cs.ucla.edu>
11121 * lib/stdbool_.h (_Bool)
11122 [(! (defined __cplusplus || defined __BEOS__)
11123 && !defined __GNUC__
11124 && !(defined __HP_cc || defined __xlc__
11125 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
11126 || defined __sgi))]:
11127 #define to signed char in these cases too; this simplifies
11128 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
11129 etc., separately) and makes it more conservative.
11131 2006-01-25 Simon Josefsson <jas@extundo.com>
11133 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
11134 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
11135 ws2tcpip.h with WINVER=0x0501. All for mingw32.
11137 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
11139 * lib/argp-namefrob.h: Bugfix. Remove stray #
11141 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
11143 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
11144 so that we test the test.
11145 Check for yet another HP-UX cc bug involving *bool |= bool.
11147 2006-01-25 Karl Berry <karl@gnu.org>
11149 * config/srclist.txt (vasnprintf.c): sync lost.
11151 2006-01-25 Jim Meyering <jim@meyering.net>
11153 Sync from the stable (b5) branch of coreutils:
11155 * lib/fts.c (fts_children): Don't let close() clobber errno from
11158 * lib/fts.c (fts_stat): When following a symlink-to-directory,
11159 don't necessarily interpret stat-fails+lstat-succeeds as indicating
11160 a dangling symlink. That can also happen at least for ELOOP.
11161 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
11162 FYI, this bug predates the inclusion of fts.c in coreutils.
11164 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
11165 in their own block, so pre-c99 compilers don't object.
11167 Avoid the double-free (first in fts_read, second in fts_close) that
11168 would occur when an `active' directory is made inaccessible (e.g.,
11169 via chmod a-x) during a traversal.
11170 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
11171 before returning. Reproduce this failure by
11172 mkdir -p a/b; cd a; chmod a-x . b
11173 Reported by Stavros Passas.
11175 2006-01-25 Jim Meyering <jim@meyering.net>
11177 * lib/fileblocks.c: Remove more useless parentheses.
11178 * lib/readutmp.h: Likewise.
11180 2006-01-25 Bruno Haible <bruno@clisp.org>
11182 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
11184 Reported by Paul Eggert.
11186 2006-01-25 Bruno Haible <bruno@clisp.org>
11188 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
11189 rid of a trap command. For Solaris sh.
11190 Reported by Mark D. Baushke <mdb@gnu.org>.
11192 2006-01-24 Simon Josefsson <jas@extundo.com>
11194 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
11197 2006-01-24 Karl Berry <karl@gnu.org>
11199 * config/srclist.txt (argp-namefrob.h): sync lost.
11201 2006-01-24 Jim Meyering <jim@meyering.net>
11203 * modules/openat (Files): Add lib/intprops.h.
11204 From Mark D. Baushke.
11206 2006-01-24 Jim Meyering <jim@meyering.net>
11208 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
11209 Reported by Mark D. Baushke.
11211 2006-01-24 Jim Meyering <jim@meyering.net>
11213 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
11215 2006-01-24 Bruno Haible <bruno@clisp.org>
11217 * modules/strnlen (Maintainer): Change from glibc to all.
11219 2006-01-24 Bruno Haible <bruno@clisp.org>
11221 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
11222 Patch by Paul Eggert.
11224 2006-01-24 Bruno Haible <bruno@clisp.org>
11226 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
11228 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
11231 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
11232 'signed char' to avoid problems with the built-in _Bool type.
11233 Reported by Paul Eggert on 2005-11-26.
11235 2006-01-24 Bruno Haible <bruno@clisp.org>
11237 * gnulib-tool (func_import): Avoid constructing complicated sed
11238 expressions inside backquote.
11239 Report and solution by Mark D. Baushke <mdb@gnu.org>.
11241 2006-01-23 Ulrich Drepper <drepper@redhat.com>
11243 These changes imported from libc.
11244 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
11245 test and two separate function calls.
11246 * lib/strndup.c (__strndup): Add libc_hidden_def.
11248 2006-01-23 Simon Josefsson <jas@extundo.com>
11250 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
11251 Remove the test_*_SOURCES variable: automake infers it by default.
11252 * modules/tls-tests: Likewise.
11254 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
11256 Work around porting bugs reported by Dieter in
11257 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
11258 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
11259 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
11260 Include "getopt.h" first, to check interface.
11261 (getenv): Declare only if defined HAVE_DECL_GETENV &&
11263 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
11264 (__strndup): Revert to K&R-style function dfns, the glibc style.
11265 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
11266 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
11267 Include strnlen.h first, to get prototype properly.
11268 (strnlen): Renamed from __strnlen.
11271 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
11273 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
11275 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
11277 * config/srclist.txt: Adjust to reflect glibc reorganization.
11278 This affects only comments.
11280 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
11282 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
11283 Reported by Bruce Korb <bkorb@gnu.org>.
11285 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
11287 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
11288 to pacify gcc -Wswitch-default.
11290 2006-01-22 Bruno Haible <bruno@clisp.org>
11292 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
11293 temporary buffer for sprintf, take into account the precision also
11294 for 'd', 'i', 'u', 'o', 'x', 'X'.
11296 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
11298 * modules/argp-tests: New module
11299 * tests/test-argp.c: New file
11300 * tests/test-argp-2.sh: New file
11302 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
11304 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
11305 (__argp_base_name): Removed
11306 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
11308 (__argp_base_name): Provide macro definition or extern declaration
11309 depending on the configuration
11311 2006-01-20 Simon Josefsson <jas@extundo.com>
11313 * modules/inet_ntop (Depends-on): Depend on sys_socket.
11315 2006-01-20 Simon Josefsson <jas@extundo.com>
11317 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
11319 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
11321 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
11322 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
11323 Suggested by Bruno Haible.
11325 2006-01-20 Karl Berry <karl@gnu.org>
11327 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
11328 until changes propagate, I guess.
11330 2006-01-19 Simon Josefsson <jas@extundo.com>
11332 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
11334 2006-01-19 Simon Josefsson <jas@extundo.com>
11336 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
11338 2006-01-19 Simon Josefsson <jas@extundo.com>
11340 * gnulib-tool: Set check_PROGRAMS.
11342 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
11343 modules/des-tests, modules/gc-arcfour-tests,
11344 modules/gc-arctwo-tests, modules/gc-des-tests,
11345 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
11346 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
11347 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
11348 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
11349 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
11350 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
11351 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
11354 2006-01-18 Simon Josefsson <jas@extundo.com>
11356 * modules/socklen (Depends-on): Depend on sys_socket.
11358 2006-01-18 Simon Josefsson <jas@extundo.com>
11360 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
11361 modules/des-tests, modules/gc-arcfour-tests,
11362 modules/gc-arctwo-tests, modules/gc-des-tests,
11363 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
11364 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
11365 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
11366 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
11367 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
11368 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
11369 $(EXEEXT) to automake TESTS variable, for mingw32.
11371 2006-01-17 Simon Josefsson <jas@extundo.com>
11373 * modules/socklen (Include): Need sys/socket.h.
11375 2006-01-17 Bruno Haible <bruno@clisp.org>
11377 * modules/ssize_t (Include): Add <sys/types.h>.
11379 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
11381 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
11382 it's not portable and it doesn't work with cross-compiles.
11383 Problem reported by Bruno Haible. Fix missing-$ typo in
11384 'test "gl_cv_ignore_unused_libraries" ...' that prevented
11385 -zignore from being used with Sun's C compiler.
11387 2006-01-12 Simon Josefsson <jas@extundo.com>
11389 * lib/base64.c: Fix warning, reported by Bruno Haible
11390 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
11392 2006-01-12 Bruno Haible <bruno@clisp.org>
11394 * modules/ldd: New file.
11395 * build-aux/ldd.sh.in: New file.
11396 * MODULES.html.sh (Support for building libraries and executables): Add
11399 2006-01-12 Bruno Haible <bruno@clisp.org>
11401 * m4/ldd.m4: New file.
11403 2006-01-12 Bruno Haible <bruno@clisp.org>
11405 * gnulib-tool (func_import, func_create_testdir): Don't go into an
11406 endless loop while replacing $auxdir with build-aux.
11408 2006-01-11 Simon Josefsson <jas@extundo.com>
11410 * lib/stdint_.h (SIZE_MAX): Add missing (.
11412 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
11414 Sync from coreutils.
11415 * lib/md5.c: Fix commentary typos.
11416 (alignof, UNALIGNED_P): No need for a GCC-specific version.
11417 * lib/md5.h (__attribute__): Remove; unused.
11418 * lib/sha1.c: Fix commentary to match md5 better.
11419 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
11420 so that we don't need to worry about alignment. All uses changed.
11421 This merges the 2005-10-28 md5 change into sha1.
11423 2006-01-11 Jim Meyering <jim@meyering.net>
11425 Sync from coreutils.
11426 * lib/md5.c (OP): Fix spacing.
11428 2006-01-11 Bruno Haible <bruno@clisp.org>
11430 Ensure automatic ordering between gl_LOCK and gl_ARGP.
11431 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
11432 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
11434 2006-01-11 Bruno Haible <bruno@clisp.org>
11436 Ensure automatic ordering between gl_LOCK and gl_ARGP.
11437 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
11438 the "early" section as well.
11440 2006-01-11 Bruno Haible <bruno@clisp.org>
11442 Avoid "ar: no archive members specified" error on MacOS X.
11443 * gnulib-tool (func_modules_add_dummy): New function.
11444 (func_import, func_create_testdir): Invoke it.
11446 2006-01-11 Bruno Haible <bruno@clisp.org>
11448 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
11449 with $auxdir in AC_CONFIG_FILES statements.
11451 2006-01-11 Bruno Haible <bruno@clisp.org>
11453 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11454 Initialize also noinst_HEADERS to empty.
11456 2006-01-11 Bruno Haible <bruno@clisp.org>
11458 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
11460 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
11463 2006-01-11 Bruno Haible <bruno@clisp.org>
11465 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
11466 overridable by the user.
11467 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11469 2006-01-10 Simon Josefsson <jas@extundo.com>
11471 * modules/sys_socket: New file.
11473 2006-01-10 Simon Josefsson <jas@extundo.com>
11475 * m4/sys_socket_h.m4: New file.
11477 2006-01-10 Simon Josefsson <jas@extundo.com>
11479 * lib/socket_.h: New file.
11481 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
11483 * modules/readutmp (Maintainer): Add myself.
11485 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
11487 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
11488 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
11489 People who are still concerned with buggy memcmp implementations
11490 can invoke gl_FUNC_MEMCMP themselves.
11492 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
11494 * lib/regex_internal.h (BITSET_WORD_BITS):
11495 Work around a bug in 64-bit PGC (before version 6.1-2), where the
11496 preprocessor mishandles large unsigned values as if they were signed.
11497 Problem reported by Claudio Fontana in
11498 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
11500 2006-01-10 Jim Meyering <jim@meyering.net>
11502 Avoid the double-free (first in fts_read, second in fts_close) that
11503 would occur when an `active' directory is made inaccessible (e.g.,
11504 via chmod a-x) during a traversal.
11505 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
11506 before returning. Reproduce this failure by
11507 mkdir -p a/b; cd a; chmod a-x . b
11508 Reported by Stavros Passas.
11510 Sync from coreutils.
11511 * lib/sha1.c: Tweak grammar in a comment.
11513 2006-01-10 Jim Meyering <jim@meyering.net>
11515 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
11516 Patch by Joerg Sonnenberger.
11518 2006-01-10 Bruno Haible <bruno@clisp.org>
11520 * modules/readutmp: Depend on module free.
11521 * modules/strtok_r: Depend on module restrict.
11523 2006-01-10 Bruno Haible <bruno@clisp.org>
11525 * modules/gettext (configure.ac): Add an invocation of
11526 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
11528 2006-01-10 Bruno Haible <bruno@clisp.org>
11530 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
11531 Reported by Werner Lemberg <wl@gnu.org>.
11533 2006-01-10 Bruno Haible <bruno@clisp.org>
11535 * lib/localcharset.c: Update from GNU gettext.
11537 2006-01-10 Bruno Haible <bruno@clisp.org>
11539 * lib/argp.h (__const): Remove macro. Use const instead.
11540 * lib/argp-fmtstream.h (__const): Likewise.
11541 * lib/glob_.h (__const): Remove macro.
11542 * lib/glob-libc.h: Use const instead of __const.
11544 2006-01-10 Bruno Haible <bruno@clisp.org>
11546 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
11548 Needed to avoid an automake error regarding the 'gettext' module.
11550 2006-01-09 Simon Josefsson <jas@extundo.com>
11552 * modules/inet_ntop (Depends-on): Add restrict.
11554 2006-01-09 Simon Josefsson <jas@extundo.com>
11556 * modules/gc-rijndael-tests (License): Put under LGPL.
11558 * modules/gc-des-tests (License): Likewise.
11560 * modules/gc-arcfour-tests (License): Likewise.
11562 * modules/gc-arctwo-tests (License): Likewise.
11564 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
11566 * modules/gc-hmac-sha1-tests (Files): Likewise.
11568 * modules/gc-hmac-md5-tests (License): Likewise.
11570 * modules/gc-sha1-tests (License): Likewise.
11572 * modules/gc-md5-tests (License): Likewise.
11574 * modules/gc-md4-tests (License): Likewise.
11576 * modules/gc-md2-tests (License): Likewise.
11578 * modules/gc-tests (License): Likewise.
11580 * modules/des-tests (License): Likewise.
11582 * modules/md4-tests (License): Likewise.
11584 * modules/md2-tests (License): Likewise.
11586 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
11588 Sync from coreutils:
11590 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
11591 * modules/lib-ignore: New file.
11592 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
11593 chdir-safer.m4, lchmod.m4.
11594 * modules/openat: Add mkdirat.c, openat-priv.h.
11596 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
11598 Sync from coreutils.
11599 * m4/lib-ignore.m4: New file.
11600 * m4/lchmod.m4: New file.
11602 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
11604 Sync from coreutils.
11605 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
11606 for write access: POSIX says that must fail.
11607 * lib/fts.c (diropen): Likewise.
11608 * lib/save-cwd.c (save_cwd): Likewise.
11609 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
11610 well, for minor improvements on hosts that lack O_DIRECTORY.
11611 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
11612 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
11613 Fall back on chown if open failed with EACCES.
11615 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
11616 Report an error at compile-time if only a 1-second nominal clock
11617 resolution is found.
11619 * lib/lchmod.h: New file.
11620 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
11621 (make_dir_parents): Use lchown rather than chown, and
11622 lchmod rather than chmod.
11624 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
11625 dummies too. Problem with "none" reported by Bob Proulx. Problem with
11626 "proc" reported by n0dalus.
11628 * lib/mountlist.c: Include <limits.h>.
11629 (dev_from_mount_options)
11630 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
11631 New function. It no longer assumes "dev=" has the System V meaning
11632 on Linux (since it doesn't). It also parses "dev=" more carefully.
11633 (read_file_system_list)
11634 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
11635 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
11638 * lib/posixtm.h (PDS_PRE_2000): New macro.
11639 * lib/posixtm.c (year): Arg is now syntax_bits rather than
11640 allow_century. All usages changed. Reject dates outside the range
11641 1969-1999 if PDS_PRE_2000 is used.
11643 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
11645 Sync from coreutils.
11646 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
11647 (Time of day items): Mention the possibility of leap seconds.
11648 Problem reported by Dr. David Alan Gilbert.
11650 2006-01-09 Jim Meyering <jim@meyering.net>
11652 Sync from coreutils.
11654 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
11656 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
11658 * lib/modechange.c (mode_compile): Reject an invalid mode string
11659 that starts with an octal digit. From Andreas Gruenbacher.
11661 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
11662 and dup to open_safer and dup_safer, respectively.
11663 (openat_permissive): Fix typo in comment.
11665 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
11666 "gettext.h"; either no longer needed or are guaranteed by openat.h.
11667 (_): Remove; no longer needed.
11668 (openat): Renamed from rpl_openat; no need for rpl_openat
11669 since openat.h renames openat for us.
11670 Replace most of the body with a call to openat_permissive,
11671 to avoid duplicate code.
11672 Port to (probably hypothetical) environments were mode_t is
11674 (openat_permissive): Require mode arg, so that we can check
11675 types better. Put it just after flags. Change cwd failure
11676 indicator from pointer-to-bool to pointer-to-errno-value.
11677 All callers changed.
11678 Invoke openat_save_fail and/or openat_restore_fail if
11679 cwd_errno is null, so that openat can call us.
11680 (openat_permissive, fdopendir, fstatat, unlinkat):
11681 Simplify errno handling to avoid some duplicate code,
11682 as it's OK to set errno on success.
11683 * lib/openat.h: Revamp code so that function macros depend on
11684 __OPENAT_PREFIX only, not also on AT_FDCWD.
11685 (openat_ro): Remove. Caller changed to use openat_permissive.
11686 (openat_permissive): Now a macro, if not a function.
11687 (openat_restore_fail, openat_save_fail): Now always functions,
11688 since mkdirat needs them even if __OPENAT_PREFIX is defined.
11690 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
11692 * lib/mkdirat.c: Include openat-priv.h.
11693 Remove definitions of macros defined therein.
11694 * lib/openat.c: Likewise.
11696 * lib/mkdirat.c (mkdirat): New file and function.
11697 * lib/openat.h (mkdirat): Declare.
11699 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
11701 * lib/openat.h (openat_permissive): Declare.
11702 (openat_ro): Define.
11704 * lib/openat.c (EXPECTED_ERRNO): New macro.
11705 (openat_permissive): New function -- used in remove.c rewrite.
11706 (all functions): Set errno just before returning, only if there
11707 was an actual failure.
11708 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
11710 Emulate openat-family functions using Linux's procfs, if possible.
11711 Idea and some code based on Ulrich Drepper's glibc changes.
11713 * lib/openat.c: (BUILD_PROC_NAME): New macro.
11714 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
11715 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
11716 before falling back on save_cwd and restore_cwd.
11717 (fdopendir, fstatat, unlinkat): Likewise.
11719 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
11720 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
11722 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
11723 as second argument to va_arg. Otherwise, some versions of gcc
11724 warn that `if this code is reached, the program will abort'.
11726 2006-01-09 Jim Meyering <jim@meyering.net>
11728 Sync from coreutils.
11729 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
11730 Require openat-priv.h.
11732 2006-01-09 Bruno Haible <bruno@clisp.org>
11734 * modules/strnlen (Include): Use strnlen.h.
11736 2006-01-09 Bruno Haible <bruno@clisp.org>
11738 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
11740 2006-01-09 Bruno Haible <bruno@clisp.org>
11742 * lib/sysexit_.h (EX_OK): New macro.
11743 Suggested by Martin Lambers <marlam@marlam.de>.
11745 2006-01-09 Bruno Haible <bruno@clisp.org>
11747 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
11748 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
11750 2006-01-09 Bruno Haible <bruno@clisp.org>
11752 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
11755 2006-01-09 Bruno Haible <bruno@clisp.org>
11757 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
11758 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
11759 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
11760 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
11762 2006-01-09 Bruno Haible <bruno@clisp.org>
11764 * build-aux/javacomp.sh.in: New file, moved from lib/.
11765 * modules/javacomp-script (Files): Update.
11766 (configure.ac): Add AC_CONFIG_FILES invocation.
11767 (EXTRA_DIST): Remove variable.
11769 * build-aux/javaexec.sh.in: New file, moved from lib/.
11770 * modules/javaexec (Files): Update.
11771 (configure.ac): Add AC_CONFIG_FILES invocation.
11772 (EXTRA_DIST): Remove javaexec.sh.in.
11774 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
11775 * modules/csharpcomp-script (Files): Update.
11776 (configure.ac): Add AC_CONFIG_FILES invocation.
11777 (EXTRA_DIST): Remove variable.
11779 * build-aux/csharpexec.sh.in: New file, moved from lib/.
11780 * modules/csharpexec (Files): Update.
11781 (configure.ac): Add AC_CONFIG_FILES invocation.
11782 (EXTRA_DIST): Remove csharpexec.sh.in.
11784 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
11786 Sync from coreutils.
11788 Add POSIX ACL support
11789 * lib/acl.h (copy_acl, set_acl): Add declarations.
11790 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
11791 systems other than Linux.
11792 (chmod_or_fchmod): New function: use fchmod when possible,
11793 and chmod otherwise.
11794 (file_has_acl): Add a POSIX ACL implementation, with a
11795 Linux-specific subcase.
11796 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
11797 S_ISVTX from one file to another. Fall back to fchmod/chmod when
11798 acls are unsupported.
11799 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
11800 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
11803 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
11805 Sync from coreutils.
11806 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
11808 2006-01-07 Bruno Haible <bruno@clisp.org>
11810 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
11813 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
11815 * lib/strftime.c (tzname): Don't declare if it is already #defined.
11816 Problem reported for Mingw by Mark Junker.
11818 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
11820 * README: Gnulib normally doesn't generate a tarball.
11822 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
11824 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
11825 long int, not int, for nanosecond counts, so that people who are
11826 used to POSIX struct timespec won't be surprised. Reported by Jim
11829 2005-12-28 Bruno Haible <bruno@clisp.org>
11831 * build-aux/config.rpath: Update from GNU gettext.
11833 2005-12-16 Jim Meyering <jim@meyering.net>
11835 * modules/fprintftime: New module.
11836 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
11838 2005-12-16 Jim Meyering <jim@meyering.net>
11840 * m4/fprintftime.m4: New file.
11842 2005-12-16 Jim Meyering <jim@meyering.net>
11844 * lib/fprintftime.c, lib/fprintftime.h: New files.
11846 2005-12-15 Simon Josefsson <jas@extundo.com>
11848 * modules/socklen (configure.ac): Fix M4 macro name, to align with
11851 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
11853 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
11854 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
11856 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
11858 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
11859 * lib/argp-help.c (fill_in_uparams): Check if the constructed
11860 struct uparams is valid. Fall back to the default values if it is
11863 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
11865 * modules/argp (Files): Add argp-pin.c
11866 (Depends-on): dirname
11867 (lib_SOURCES): Add argp-pin.c
11869 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
11871 * m4/argp.m4: Check if program_invocation_name and
11872 program_invocation_short_name are declared and define appropriate
11873 macros if they are not.
11875 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
11877 * lib/argp-help.c (__argp_base_name): New function
11878 (__argp_short_program_name): Rewrite using __argp_base_name
11879 * lib/argp-namefrob.h: Define program_invocation_name and
11880 program_invocation_short_name if requested
11881 (__argp_base_name): Add prototype
11882 * lib/argp-parse.c (argp_def): Use gettext wrappers
11883 (argp_default_parser): Use __argp_base_name
11884 * lib/argp-pin.c: New file. Defines program_invocation_name and
11885 program_invocation_short_name on systems that lack them.
11887 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
11889 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
11890 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
11891 porting problem reported by Georg Schwarz in
11892 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
11894 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
11896 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
11897 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
11898 porting problem reported by Georg Schwarz in
11899 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
11901 2005-12-05 Bruno Haible <bruno@clisp.org>
11903 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
11904 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
11905 Reported by Mark Junker <mjscod@gmx.de>.
11907 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
11909 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
11910 Use implementation from Albert Chin, with some
11911 comments/corrections by Stepan Kasal and myself.
11913 2005-12-02 Bruno Haible <bruno@clisp.org>
11915 * gnulib-tool (func_import): Accept GPLed build tool modules when
11917 * modules/csharpcomp-script: New file.
11918 * modules/csharpcomp: Depend on it.
11919 * modules/javacomp-script: New file.
11920 * modules/javacomp: Depend on it.
11921 Suggested by Simon Josefsson.
11923 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
11925 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
11926 statement, to work around an HP-UX 10.20 compiler bug reported by
11929 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
11931 * modules/savedir (Depends-on): Add openat.
11933 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
11935 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
11936 (uintmax_t) [defined uintmax_t]: Do not declare.
11937 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
11938 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
11939 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
11940 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
11941 sake of portability to weird hosts that C allows (though we don't
11942 know of any practical examples).
11944 * lib/savedir.h (fdsavedir): New decl.
11945 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
11946 contains most of the former guts of savedir.
11947 (savedir): Use savedirstream.
11948 Include "openat.h".
11950 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
11952 * modules/obstack (Files): Add m4/ulonglong.m4.
11953 Problem reported by Davide Angelocola.
11955 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
11957 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
11958 coreutils no longer futzes with rounding modes.
11960 2005-11-14 Jim Meyering <jim@meyering.net>
11962 * lib/mkstemp-safer.c: Include <config.h>, required for possible
11963 replacement of mkstemp.
11965 2005-11-10 Simon Josefsson <jas@extundo.com>
11967 * lib/readline.c: Remove EOL.
11969 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
11971 * modules/gethrxtime (Depends-on): Add gettime.
11973 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
11975 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
11976 or gettimeofday; no longer needed.
11978 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
11980 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
11982 (gethrxtime) [! (HAVE_NANOUPTIME
11983 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
11984 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
11985 our own approximation.
11987 2005-11-08 Eric Blake <ebb9@byu.net>
11989 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
11991 2005-11-08 Eric Blake <ebb9@byu.net>
11993 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
11995 2005-11-04 Bruno Haible <bruno@clisp.org>
11997 * gnulib-tool: Implement --update mode.
11999 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
12001 Fix porting problem reported by Theodoros V. Kalamatianos.
12002 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
12003 Don't assume that futimes failing means we must fail.
12005 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
12007 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
12008 variables to suggest the intended function of the PATH_MAX check.
12010 2005-10-30 Kean Johnston <jkj@sco.com>
12012 Trivial changes to support SCO systems.
12013 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
12015 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
12016 where __ptr is null when no I/O is pending.
12018 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
12020 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
12021 leave errno alone. Problem reported by Dmitry V. Levin.
12023 2005-10-28 Simon Josefsson <jas@extundo.com>
12025 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
12028 * tests/test-gc-md2.c, tests/test-md2.c: New files.
12030 * modules/md2, modules/md2-tests: New files.
12032 2005-10-28 Simon Josefsson <jas@extundo.com>
12034 * m4/inet_ntop.m4: More tests.
12036 * m4/gc-md2.m4, md2.m4: New file.
12038 2005-10-28 Simon Josefsson <jas@extundo.com>
12040 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
12041 "restrict" keywords, as per POSIX. Protect the function
12042 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
12043 Don't use K&R prototypes. Check the sprintf return values.
12044 Re-define EAFNOSUPPORT if not present. Indent.
12046 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
12047 suggested by Bruno Haible <bruno@clisp.org>.
12049 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
12051 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
12053 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
12056 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
12058 * lib/md2.h, lib/md2.c: New files.
12060 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
12062 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
12063 errno alone. Problem reported by Frederic Jolliton.
12065 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
12067 * modules/verify (License): Change from GPL to LGPL. This is a
12068 tiny module and there are apparently near-equivalents that are
12069 under the BSD license.
12071 2005-10-24 Simon Josefsson <jas@extundo.com>
12073 * modules/sha1: Relicense to LGPL.
12075 2005-10-24 Simon Josefsson <jas@extundo.com>
12077 * lib/md4.h: Shrink buffer size, now that we changed the type.
12079 2005-10-23 Simon Josefsson <jas@extundo.com>
12081 * gnulib-tool (func_import): Fix --tests-base.
12083 2005-10-22 Simon Josefsson <jas@extundo.com>
12085 * modules/arcfour (Depends-on): Need stdint.
12087 2005-10-22 Simon Josefsson <jas@extundo.com>
12089 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
12090 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
12092 2005-10-22 Simon Josefsson <jas@extundo.com>
12094 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
12095 suggested by Bruno Haible <bruno@clisp.org>.
12097 2005-10-22 Simon Josefsson <jas@extundo.com>
12099 * lib/crc.h: Include stddef.h, for size_t.
12101 2005-10-22 Simon Josefsson <jas@extundo.com>
12103 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
12104 arcfour_context struct (simplify test vector testing in GNU
12107 2005-10-21 Simon Josefsson <jas@extundo.com>
12109 * modules/des, modules/des-tests: New files.
12111 * modules/gc-des, modules/gc-des-tests: New files.
12113 * tests/test-des.c, tests/test-gc-des.c: New file.
12115 2005-10-21 Simon Josefsson <jas@extundo.com>
12117 * modules/arctwo, modules/arctwo-tests: New files.
12119 * tests/test-arctwo.c: New file.
12121 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
12123 * tests/test-gc-arctwo.c: New file.
12125 2005-10-21 Simon Josefsson <jas@extundo.com>
12127 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
12128 Bruno Haible <bruno@clisp.org>.
12130 * m4/gc-des.m4: New file.
12132 2005-10-21 Simon Josefsson <jas@extundo.com>
12134 * m4/arctwo.m4: New file.
12136 * m4/gc-arctwo.m4: New file.
12138 2005-10-21 Simon Josefsson <jas@extundo.com>
12140 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
12143 2005-10-21 Simon Josefsson <jas@extundo.com>
12145 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
12148 * lib/hmac-sha1.c (hmac_sha1): Likewise.
12150 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
12151 Bruno Haible <bruno@clisp.org>.
12153 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
12156 2005-10-21 Simon Josefsson <jas@extundo.com>
12158 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
12160 2005-10-21 Simon Josefsson <jas@extundo.com>
12162 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
12164 2005-10-21 Simon Josefsson <jas@extundo.com>
12166 * lib/des.h, lib/des.c: New files.
12168 * lib/gc-gnulib.c: Support DES.c
12170 2005-10-21 Simon Josefsson <jas@extundo.com>
12172 * lib/arctwo.h, lib/arctwo.c: New files.
12174 * lib/gc-gnulib.c: Support ARCTWO.
12176 2005-10-21 Simon Josefsson <jas@extundo.com>
12178 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
12179 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12181 2005-10-21 Simon Josefsson <jas@extundo.com>
12183 * gnulib-tool (func_import, func_create_testdir): Define automake
12184 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
12185 Makefile.am snippet),
12186 suggested by Bruno Haible <bruno@clisp.org>.
12188 * modules/gc (Makefile.am): Use it.
12190 2005-10-21 Bruno Haible <bruno@clisp.org>
12192 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
12195 2005-10-19 Simon Josefsson <jas@extundo.com>
12197 * tests/test-gc-rijndael.c: New file.
12199 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
12201 2005-10-19 Simon Josefsson <jas@extundo.com>
12203 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
12206 2005-10-19 Simon Josefsson <jas@extundo.com>
12208 * tests/test-gc-arcfour.c: New file.
12210 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
12212 2005-10-19 Simon Josefsson <jas@extundo.com>
12214 * modules/gc-md4, modules/gc-md4-tests: New file.
12216 * tests/test-gc-md4.c: New file.
12218 2005-10-19 Simon Josefsson <jas@extundo.com>
12220 * m4/gc-md4.m4: New file.
12222 2005-10-19 Simon Josefsson <jas@extundo.com>
12224 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
12225 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
12228 2005-10-19 Simon Josefsson <jas@extundo.com>
12230 * m4/gc-arcfour.m4: New file.
12232 * m4/gc-rijndael.m4: New file.
12234 2005-10-19 Simon Josefsson <jas@extundo.com>
12236 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
12238 2005-10-19 Simon Josefsson <jas@extundo.com>
12240 * lib/gc-gnulib.c: Support ARCFOUR.
12242 2005-10-19 Simon Josefsson <jas@extundo.com>
12244 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
12247 * lib/gc.h: Add ECB enum type.
12249 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
12251 2005-10-18 Simon Josefsson <jas@extundo.com>
12253 * tests/test-md5.c: New file.
12255 * modules/md5-tests: New file.
12257 2005-10-18 Simon Josefsson <jas@extundo.com>
12259 * tests/test-md4.c: New file.
12261 * modules/md4, modules/md4-tests: New files.
12263 2005-10-18 Simon Josefsson <jas@extundo.com>
12265 * m4/md4.m4: New file.
12267 2005-10-18 Simon Josefsson <jas@extundo.com>
12269 * lib/md4.h, lib/md4.c: New files, based on md5.?.
12271 2005-10-17 Stepan Kasal <kasal@ucw.cz>
12273 * gnulib-tool (func_create_testdir): Omit the second check whether
12274 BUILT_SOURCES in nonempty.
12276 2005-10-17 Simon Josefsson <jas@extundo.com>
12278 * tests/test-rijndael.c: New file.
12280 2005-10-17 Simon Josefsson <jas@extundo.com>
12282 * modules/sha1: Depend on stdint instead of md5.
12284 * modules/md5: Depend on stdint, remove uint32_t.
12286 2005-10-17 Simon Josefsson <jas@extundo.com>
12288 * modules/gc-sha1-tests: New file.
12290 * tests/test-gc-sha1.c: New file.
12292 2005-10-17 Simon Josefsson <jas@extundo.com>
12294 * m4/md5.m4: Remove call to uint32_t.m4.
12296 2005-10-17 Simon Josefsson <jas@extundo.com>
12298 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
12300 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
12303 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
12305 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
12307 2005-10-17 Simon Josefsson <jas@extundo.com>
12309 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
12311 2005-10-17 Simon Josefsson <jas@extundo.com>
12313 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
12315 2005-10-17 Simon Josefsson <jas@extundo.com>
12317 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
12319 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
12321 2005-10-17 Bruno Haible <bruno@clisp.org>
12323 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
12324 that it can also be used in a test.
12326 2005-10-16 Bruno Haible <bruno@clisp.org>
12328 * gnulib-tool (func_emit_tests_Makefile_am): Also define
12329 TESTS_ENVIRONMENT, so that individual tests can augment it.
12331 * gnulib-tool (func_create_testdir): Use an intermediate target for
12332 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
12333 macros, like $(ALLOCA_H), which cannot be passed through the command
12336 2005-10-15 Simon Josefsson <jas@extundo.com>
12338 * modules/rijndael-tests: New file.
12340 * modules/rijndael: New file.
12342 2005-10-15 Simon Josefsson <jas@extundo.com>
12344 * m4/rijndael.m4: New file.
12346 2005-10-15 Simon Josefsson <jas@extundo.com>
12348 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
12350 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
12352 2005-10-14 Simon Josefsson <jas@extundo.com>
12354 * tests/test-arcfour.c: New file.
12356 * modules/arcfour, modules/arcfour-tests: New files.
12358 2005-10-14 Simon Josefsson <jas@extundo.com>
12360 * m4/arcfour.m4: New file.
12362 2005-10-14 Simon Josefsson <jas@extundo.com>
12364 * lib/arcfour.h, lib/arcfour.c: New files.
12366 2005-10-14 Roland McGrath <roland@redhat.com>
12368 Import from libc. [BZ #1331]
12369 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
12371 Reported by Matej Vela <vela@debian.org>.
12373 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
12375 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
12376 include <wchar.h>; no longer needed.
12378 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
12380 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
12382 2005-10-14 Jakub Jelinek <jakub@redhat.com>
12383 and Ulrich Drepper <drepper@redhat.com>
12386 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
12387 instead of inline stream orientation test and two separate
12388 function calls. Pay no attention to USE_IN_LIBIO.
12390 2005-10-13 Simon Josefsson <jas@extundo.com>
12392 * modules/gc-hmac-md5-tests: New file.
12394 * tests/test-gc-hmac-sha1.c: New file.
12396 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
12398 * modules/gc-hmac-md5-tests: New file.
12400 * tests/test-gc-md5.c: New file.
12402 * modules/gc-md5-tests: New file.
12404 2005-10-13 Simon Josefsson <jas@extundo.com>
12406 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
12407 Move memory allocation outside of loop.
12409 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
12411 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
12412 intermediate directory is in a read-only file system. Problem
12413 reported by Eric Blake.
12415 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
12417 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
12419 2005-10-12 Simon Josefsson <jas@extundo.com>
12421 * tests/test-hmac-sha1.c: New file.
12423 * modules/hmac-sha1-tests: New file.
12425 * modules/hmac-sha1: New file.
12427 2005-10-12 Simon Josefsson <jas@extundo.com>
12429 * modules/gc-sha1: New file.
12431 2005-10-12 Simon Josefsson <jas@extundo.com>
12433 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
12435 * tests/test-gc-pbkdf2-sha1.c: New file.
12437 2005-10-12 Simon Josefsson <jas@extundo.com>
12439 * modules/gc-md5, modules/gc-hmac-md5: New files.
12441 * modules/gc (Files): Remove md5, memxor and hmac files.
12443 2005-10-12 Simon Josefsson <jas@extundo.com>
12445 * m4/gc-pbkdf2-sha1.m4: New file.
12447 * m4/gc-hmac-sha1.m4: New file.
12449 * m4/gc-sha1: New file.
12451 * m4/hmac-sha1.m4: New file.
12453 2005-10-12 Simon Josefsson <jas@extundo.com>
12455 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
12457 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
12459 2005-10-12 Simon Josefsson <jas@extundo.com>
12461 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
12462 suggested by Bruno Haible <bruno@clisp.org>.
12464 2005-10-12 Simon Josefsson <jas@extundo.com>
12466 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
12468 2005-10-12 Simon Josefsson <jas@extundo.com>
12470 * lib/gc-pbkdf2-sha1.c: New file.
12472 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
12474 2005-10-12 Simon Josefsson <jas@extundo.com>
12476 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
12478 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
12480 2005-10-12 Simon Josefsson <jas@extundo.com>
12482 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
12483 GC_USE_HMAC_MD5, respectively.
12485 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
12486 (gc_md5): Fix typo.
12488 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
12490 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
12492 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
12494 2005-10-12 Bruno Haible <bruno@clisp.org>
12496 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
12497 Reported by Stepan Kasal <kasal@ucw.cz>.
12499 2005-10-11 Simon Josefsson <jas@extundo.com>
12501 * tests/test-crc.c: New file.
12503 * modules/crc, modules/crc-tests: New files.
12505 2005-10-11 Simon Josefsson <jas@extundo.com>
12507 * m4/crc.m4: New file.
12509 2005-10-11 Simon Josefsson <jas@extundo.com>
12511 * lib/gc.h: Add gc_hash and gc_hash_buffer.
12513 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
12515 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
12517 2005-10-11 Simon Josefsson <jas@extundo.com>
12519 * lib/crc.h, lib/crc.c: New files.
12521 * lib/gc.h (gc_hash_buffer): Add doc.
12523 2005-10-11 Bruno Haible <bruno@clisp.org>
12525 * modules/c-strcasestr: New file.
12526 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
12528 2005-10-11 Bruno Haible <bruno@clisp.org>
12530 * modules/c-strcase: New file.
12531 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
12533 2005-10-11 Bruno Haible <bruno@clisp.org>
12535 * lib/strcasecmp.c: Include limits.h.
12536 (strcasecmp): Avoid integer overflow on exotic platforms.
12537 * lib/strncasecmp.c: Include limits.h.
12538 (strncasecmp): Avoid integer overflow on exotic platforms.
12539 Reported by Paul Eggert.
12541 2005-10-11 Bruno Haible <bruno@clisp.org>
12543 * lib/c-strcasestr.h: New file, from GNU gettext.
12544 * lib/c-strcasestr.c: New file, from GNU gettext.
12546 2005-10-11 Bruno Haible <bruno@clisp.org>
12548 * lib/c-strcase.h: New file, from GNU gettext.
12549 * lib/c-strcasecmp.c: New file, from GNU gettext.
12550 * lib/c-strncasecmp.c: New file, from GNU gettext.
12552 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
12554 * modules/mempcpy (License): GPL -> LGPL.
12555 * modules/strchrnul (License): Likewise.
12556 * modules/sysexits (License): Likewise.
12558 2005-10-08 Simon Josefsson <jas@extundo.com>
12560 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
12562 2005-10-07 Simon Josefsson <jas@extundo.com>
12564 * m4/memxor.m4: Remove gl_C_RESTRICT call.
12566 2005-10-06 Simon Josefsson <jas@extundo.com>
12568 * tests/test-hmac-md5.c: New file.
12570 * modules/hmac-md5-tests: New file.
12572 * modules/hmac-md5: New file.
12574 2005-10-06 Simon Josefsson <jas@extundo.com>
12576 * m4/hmac-md5.m4: New file.
12578 * m4/memxor.m4: Require gl_C_RESTRICT.
12580 2005-10-06 Simon Josefsson <jas@extundo.com>
12582 * lib/memxor.c (memxor): Avoid casts and warnings.
12584 2005-10-06 Simon Josefsson <jas@extundo.com>
12586 * lib/hmac-md5.c: New file.
12588 * lib/hmac.h: New file.
12590 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
12592 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
12593 promotes to int, not unsigned int, to catch the AIX 5.3
12596 2005-10-05 Simon Josefsson <jas@extundo.com>
12598 * modules/memxor: New file.
12600 * modules/iconv (Files): Move config.rpath to havelib, it is used
12603 * modules/havelib (Files): Add config.rpath.
12605 2005-10-05 Simon Josefsson <jas@extundo.com>
12607 * m4/memxor.m4: New file.
12609 2005-10-05 Simon Josefsson <jas@extundo.com>
12611 * lib/memxor.c (memxor): Fix compiler error.
12613 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
12614 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
12616 * lib/memxor.h, lib/memxor.c: New files.
12618 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
12619 we assume all systems have it, suggested by Jim Meyering
12620 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
12621 any systems lack sys/socket.h; mingw32 is known to lack it, but we
12622 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
12625 2005-10-05 Simon Josefsson <jas@extundo.com>
12627 * config/srclist.txt: Add glibc bug 1423 for md5.h.
12629 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
12631 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
12632 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
12633 needed, since the source code now assumes these .h files.
12635 2005-10-05 Derek Price <derek@ximbiot.com>
12637 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
12639 2005-10-05 Bruno Haible <bruno@clisp.org>
12641 * modules/stdint (License): Change to LGPL.
12643 2005-10-04 Simon Josefsson <jas@extundo.com>
12645 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
12646 D. Baushke" <mdb@gnu.org>.
12648 2005-10-04 Bruno Haible <bruno@clisp.org>
12650 * lib/verify.h (verify_true): Provide alternative definition for C++.
12652 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
12654 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
12655 (SSIZE_MAX): New macro, if not already defined.
12656 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
12659 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
12661 Sync from coreutils.
12662 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
12663 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
12664 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
12665 ULLONG_MAX doesn't work with 2.7.2.1.
12667 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
12669 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
12672 * modules/exclude (Depends-on): Depend on verify.
12673 * modules/strtoimax (Depends-on): Likewise.
12674 * modules/utimecmp (Depends-on): Likewise.
12676 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
12678 * lib/exclude.c: Include verify.h.
12679 (verify): Remove. All callers changed to use verify.h's version.
12680 * lib/strtoimax.c: Likewise.
12681 * lib/utimecmp.c: Likewis.e
12683 Sync from coreutils.
12684 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
12685 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
12686 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
12687 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
12688 bother returning ENOSYS if settimeofday or stime fails; just let
12689 them return whatever errno they want to return.
12690 * lib/utimens.c: Include unistd.h, for dup2.
12691 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
12692 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
12694 2005-10-02 Jim Meyering <jim@meyering.net>
12696 Sync from coreutils.
12697 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
12698 from glibc-2.2.5 that fails for read-only files.
12700 2005-10-02 Jim Meyering <jim@meyering.net>
12702 Sync from coreutils.
12703 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
12704 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
12705 `#if HAVE_CONFIG_H'.
12706 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
12707 Remove AT_FDCWD test.
12708 Do not consume the fd unless successful.
12709 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
12710 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
12711 block, so that we don't even try to compile it if settimeofday is
12712 available. This works around a compilation failure on OSF1 V5.1,
12713 due to stime requiring a `long int*' while tv_sec is `int'.
12715 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
12717 Sync from coreutils.
12718 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
12719 against `yes', rather than just testing for nonempty.
12721 2005-10-01 Simon Josefsson <jas@extundo.com>
12723 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
12726 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
12727 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
12728 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
12729 freeaddrinfo and gai_strerror are declared by the POSIX headers.
12730 Check if struct addrinfo is declared.
12732 2005-10-01 Simon Josefsson <jas@extundo.com>
12734 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
12735 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
12736 AI_* and EAI_* definitions. Protect function declarations.
12738 2005-10-01 Jim Meyering <jim@meyering.net>
12740 Sync from coreutils.
12742 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
12743 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
12744 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
12745 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
12746 in the inet and nsl libraries. Required on Solaris 5.7.
12748 2005-10-01 Jim Meyering <jim@meyering.net>
12750 Sync from coreutils.
12751 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
12752 in the inet and nsl libraries. Required on Solaris 5.7.
12754 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
12756 * lib/getdelim.c (getdelim): Remove unused variables.
12758 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
12760 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
12761 so that the code works even with ancient cpp. Portability problem
12762 with GCC 2.7.2.1 reported by Thomas M.Ott.
12764 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
12766 * modules/regex (Depends-on): Add strcase.
12768 * modules/gethostname (Licence): Change from GPL to LGPL, since
12769 gethostname.c is a trivial implementation of a standard library
12771 * modules/poll (License): Change from GPL to LGPL, since it's
12772 derived from LGPL code.
12774 2005-09-27 Jim Meyering <jim@meyering.net>
12776 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
12779 * lib/intprops.h (signed_type_or_expr__): Define.
12780 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
12781 for unsigned types.
12783 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
12785 * lib/verify.h (verify_expr): Remove, replacing with:
12786 (verify_true): New macro that returns true instead of void.
12787 (verify_type__): Remove.
12788 (verify): Use verify_true rather than verify_type__.
12790 2005-09-26 Bruno Haible <bruno@clisp.org>
12792 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
12794 (lib_SOURCES): Remove mbchar.c.
12795 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
12796 (Files): Add m4/mbrtowc.m4.
12797 * modules/mbiter: Likewise.
12798 * modules/mbuiter: Likewise.
12800 2005-09-26 Bruno Haible <bruno@clisp.org>
12802 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
12803 compile mbchar.c if they are not both present.
12804 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
12805 * m4/mbiter.m4 (gl_MBITER): Likewise.
12806 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
12807 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
12808 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
12810 2005-09-25 Jim Meyering <jim@meyering.net>
12812 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
12813 also uses socklen_t.
12815 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
12817 * lib/utimens.c (ENOSYS): Define if not already defined.
12818 (futimens): Support having a null PATH if the file descriptor
12821 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
12823 (__attribute): Define to empty unless GCC 3.1 or later.
12824 This works around a core dump on OpenBSD 3.4, which has GCC
12825 2.95.3, which dumps core when given __attribute__(()). It also
12826 simplifies other tests, since we really don't want to bother with
12827 worrying about which ancient version of GCC supported what.
12828 Original problem reported by Yoann Vandoorselaere, with part of
12829 the fix suggested by Derek Price.
12831 2005-09-24 Jim Meyering <jim@meyering.net>
12833 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
12834 so we can once again use a positive bitfield width of 1 -- now we
12835 don't have to explain why we were using a bitfield width of 2.
12837 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
12839 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
12840 and similarly for the other external symbols. Problem reported
12843 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
12844 bug reported by Jim Meyering.
12846 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
12847 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
12848 not needed, since socklen is a prerequisite module.
12850 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
12852 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
12853 Problem reported by Eric Blake.
12854 (getaddrinfo): Initialize se so that it's not garbage.
12855 Redo internal storage allocation so that it doesn't make unportable
12856 assumptions about alignment.
12859 * lib/utimens.c (futimens): Use futimesat if available.
12860 Prefer it to futimes since it doesn't have the futimes bug.
12862 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
12863 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
12864 Instead, declare a function that returns a pointer to an array,
12865 and use verify_type__ to declare the size of the array.
12866 Problem and germ of a solution reported by Bruno Haible.
12867 (verify_type__): Use 2, not 1, for bitfield size, to avoid
12868 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
12870 2005-09-23 Jim Meyering <jim@meyering.net>
12872 Sync from coreutils.
12873 Correct build failure (socklen_t not defined) on at least
12874 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
12875 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
12877 2005-09-23 Jim Meyering <jim@meyering.net>
12879 * modules/getaddrinfo (Depends-on): Add socklen.
12881 2005-09-23 Bruno Haible <bruno@clisp.org>
12883 * tests/test-verify.c: New file.
12885 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
12887 Sync from coreutils.
12889 * modules/argmatch (Depends-on): Add verify.
12890 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
12892 * modules/save-cwd (Depends-on): Likewise.
12894 * modules/openat (Files): Add lib/openat-die.c.
12895 (Depends-on): Remove error, exitfail.
12898 * modules/verify: New file.
12899 * MODULES.html.sh (Diagnostics <assert.h>): New section,
12900 with "verify" module.
12902 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
12904 Sync from coreutils.
12906 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
12907 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
12908 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
12909 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
12910 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
12911 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
12912 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
12913 Don't bother checking for string.h, stdlib.h, unistd.h.
12914 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
12915 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
12917 * m4/jm-macros.m4 (gl_MACROS): Likewise.
12918 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
12920 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
12921 (gl_GETDATE): Use it.
12923 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
12925 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
12927 Sync from coreutils.
12929 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
12931 * lib/argmatch.h: Include verify.h
12932 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
12933 (ARGMATCH_ASSERT): Remove; unused.
12934 * lib/canonicalize.c: Assume STDC_HEADERS.
12935 * lib/exclude.c: Include "strcase.h".
12936 * lib/regex_internal.h [!defined _LIBC]: Likewise.
12937 * lib/getusershell.c: Include stdio--.h rather than stdio.h
12939 (getusershell): Call fopen, not fopen_safer.
12940 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
12941 Do not include unistd-safer.h.
12942 (save_cwd): Don't call fd_safer; no longer needed
12943 now that we include fcntl--.h.
12945 * lib/getdate.y (relative_time): New type.
12946 (RELATIVE_TIME_0): New constant.
12947 (parser_control): Use relative_time instead of doing it ourselves.
12948 (%union): Add new relative_time rel member.
12949 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
12951 (relunit, relunit_snumber): Now of type rel.
12952 (zone, rel, relunit, get_date): Adjust to above changes.
12954 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
12955 Do not include unistd-safer.h.
12956 (getloadavg): Don't call fd_safer; no longer needed
12957 now that we include fcntl--.h.
12959 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
12960 (make_dir_parents): Treat ENOSYS like EEXIST.
12962 Improve quality of diagnostics on restore_cwd failure.
12963 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
12964 (make_dir_parents): Last arg is now int * (for errno), not bool *.
12965 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
12966 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
12967 each time through the loop. Do not diagnose restore_cwd failure;
12968 that is the caller's job (and perhaps the caller does not care).
12970 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
12971 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
12972 If the file already exists but is not a directory, don't bother
12973 to try to make its parents.
12974 Close potential file descriptor leak if we can't chdir("/") (!).
12975 Don't always return true if chdir($PWD) fails; return true only
12976 if the requested action was done successfully (except for the
12978 Don't log final directory unless we actually made it.
12979 Refactor to avoid duplicate code to fix up permissions.
12980 Don't attempt to fix up parent permissions if chdir($PWD) fails.
12982 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
12983 to make it a bit faster and (I hope) clearer.
12984 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
12985 Fix bug in formats like %2N.
12987 * lib/verify.h: New file.
12989 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
12991 Sync from coreutils.
12992 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
12994 2005-09-22 Jim Meyering <jim@meyering.net>
12996 Sync from coreutils.
12998 * m4/lstat.m4 (gl_FUNC_LSTAT):
12999 Use AC_LIBSOURCES to require lstat.c and lstat.h.
13000 Remove obsolete comment.
13001 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
13002 * m4/xstrtod.m4: Likewise.
13004 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
13006 2005-09-22 Jim Meyering <jim@meyering.net>
13008 Sync from coreutils.
13010 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
13012 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
13013 the .tm_year member, since otherwise gcc-4.0 would now warn about
13014 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
13016 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
13017 order to avoid an unsuppressible warning from gcc on 64-bit systems.
13019 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
13020 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
13021 when run in a time zone for which daylight savings time is in effect
13022 for the starting date.
13024 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
13025 stop us from restricting permissions of just-created absolute-named
13027 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
13028 to restore initial working directory.
13029 * lib/mkdir-p.c (make_dir_parents): New parameter:
13030 different_working_dir, to tell caller if/when we change the working
13031 directory and are unable to return to the initial one.
13032 * lib/mkdir-p.h (make_dir_parents): Update prototype.
13033 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
13034 `return false'. This fixes a bug introduced on 2004-07-30.
13036 * lib/openat.c (fdopendir): Be sure to close the supplied
13037 file descriptor before returning. This makes our replacement
13038 implementation a little closer to Solaris's, where fdopendir
13039 ties the file descriptor to the returned DIR* pointer.
13040 * lib/openat.c (unlinkat): New function.
13041 * lib/openat.h (unlinkat): Add prototype.
13042 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
13043 (openat_restore_fail): Rename from openat_restore_die.
13044 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
13046 Provide an alternative to exiting immediately upon save_cwd or
13047 restore_cwd failure. Now, an application can arrange e.g.,
13048 to perform a longjump in that case.
13049 * lib/openat.c: Include dirname.h.
13050 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
13051 (rpl_openat, fdopendir, fstatat): Call openat_save_die
13052 and openat_restore_die rather than calling error directly.
13053 Don't include "error.h" or "exitfail.h"; they're no longer needed.
13055 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
13056 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
13059 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
13060 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
13061 int utc, int nanoseconds);
13063 date should not have to allocate a megabyte of virtual memory to
13064 handle a format argument like +%1048575T. When implemented with
13065 strftime, it must allocate such a buffer, use strftime to fill it
13066 in, print it, then free it.
13067 With fprintftime, it simply prints everything and exits.
13068 With no need for memory allocation, that's one fewer way to fail.
13069 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
13070 optional field width, not before, so we accept %9:z, not %:9z.
13071 (my_strftime): Be sure to use L_('x') for literals.
13073 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
13074 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
13075 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
13076 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
13077 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
13078 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
13079 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
13080 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
13081 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
13082 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
13083 * lib/xgethostname.c, lib/xreadlink.c:
13084 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
13086 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
13087 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
13088 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
13089 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
13090 and don't include <sys/file.h>).
13092 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
13094 Sync from coreutils.
13096 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
13097 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
13098 [!LDAV_DONE]: Avoid unused variable warning.
13100 2005-09-21 Bruno Haible <bruno@clisp.org>
13102 * lib/unicodeio.h (unicode_to_mb): New declaration.
13104 2005-09-20 Derek Price <derek@ximbiot.com>
13106 * lib/getaddrinfo.c: Don't include <netdb.h> included from
13109 2005-09-20 Bruno Haible <bruno@clisp.org>
13111 * gnulib-tool: Remove trailing slashes from the values specified for
13112 --source-base, --m4-base, --tests-base, --aux-dir.
13113 Suggested by Simon Josefsson <jas@extundo.com>.
13115 2005-09-20 Bruno Haible <bruno@clisp.org>
13117 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
13118 func_modules_to_filelist, func_import, func_create_testdir): Make all
13119 sorting results locale-independent, so that gnulib-cache.m4 doesn't
13120 change when gnulib-tool is invoked in a different locale.
13122 2005-09-19 Simon Josefsson <jas@extundo.com>
13124 * m4/socklen.m4: Fix typo.
13126 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13128 Use a consistent style for including <config.h>.
13129 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
13130 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
13131 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
13132 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
13133 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
13134 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
13135 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
13136 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
13137 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
13138 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
13139 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
13140 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
13141 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
13142 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
13143 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
13144 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
13145 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
13146 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
13147 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
13148 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
13149 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
13150 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
13151 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
13152 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
13153 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
13154 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
13155 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
13156 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
13157 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
13158 lib/xstrtoumax.c, lib/yesno.c:
13159 Standardize inclusion of config.h.
13160 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
13161 lib/inttostr.h: Removed inclusion of config.h from header files.
13162 * lib/inttostr.c: Adjusted in-tree users.
13163 * lib/timespec.h: Remove superfluous warning to include config.h.
13164 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
13165 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
13166 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
13167 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
13168 config.h with HAVE_CONFIG_H.
13170 2005-09-19 Jim Meyering <jim@meyering.net>
13172 * modules/pathmax (License): Change to LGPL.
13174 2005-09-19 Derek Price <derek@ximbiot.com>
13176 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
13178 2005-09-19 Bruno Haible <bruno@clisp.org>
13180 * gnulib-tool (import): Provide default for --tests-base.
13182 2005-09-19 Bruno Haible <bruno@clisp.org>
13184 * doc/quote.texi: New file, extracted from gnulib.texi.
13185 * doc/ctime.texi: New file, extracted from gnulib.texi.
13186 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
13187 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
13188 * doc/gnulib.texi: Include them.
13190 2005-09-18 Bruno Haible <bruno@clisp.org>
13193 * gnulib-tool (func_readlink): New function.
13194 (func_ln_if_changed): Use it.
13196 2005-09-18 Bruno Haible <bruno@clisp.org>
13198 * gnulib-tool: Support --with-tests also with --import.
13199 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
13200 (func_import): Use variables $testsbase and $inctests. Emit a
13201 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
13202 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
13203 SUBDIRS += $testsdir.
13204 (func_create_testdir): Update.
13206 2005-09-18 Bruno Haible <bruno@clisp.org>
13208 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
13209 instead of $dry_run.
13210 (func_cp_if_changed, func_mv_if_changed): Remove functions.
13211 (func_ln_if_changed): Don't handle dry-run here.
13212 (func_import): In dry-run mode, detect more precisely which actions
13213 would be performed, and don't use "...ing" verbs.
13215 2005-09-18 Bruno Haible <bruno@clisp.org>
13217 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
13218 (func_import): Use join on two temporary files instead of three nested
13219 loops, in order to determine which files are new or old.
13221 2005-09-18 Bruno Haible <bruno@clisp.org>
13223 * gnulib-tool (func_import): Comment out code that spits out the
13224 new files with --dry-run.
13226 2005-09-18 Bruno Haible <bruno@clisp.org>
13228 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
13230 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
13232 * lib/stat-time.h: New file.
13233 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
13234 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
13235 in a different way.
13236 (timespec_cmp): New function.
13237 * lib/utimecmp.c: Include stat-time.h.
13238 (SYSCALL_RESOLUTION): Depend on whether various struct stat
13239 members exist, not on the obsolescent ST_MTIM_NSEC.
13240 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
13242 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
13244 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
13246 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
13248 * MODULES.html.sh (File system functions): Add stat-time.
13249 * modules/stat-time: New file.
13250 * modules/timespec (Files): Remove m4/st_mtim.m4; this
13251 is now done in a different way, by the stat-time module.
13252 * modules/utimecmp (Depends-on): Add stat-time.
13254 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
13256 * m4/st_mtim.m4: Remove. Superseded by...
13257 * m4/stat-time.m4: New file.
13258 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
13259 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
13261 2005-09-15 Derek Price <derek@ximbiot.com>
13263 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
13265 2005-09-15 Derek Price <derek@ximbiot.com>
13267 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
13268 * lib/regex_internal.c: Ditto, using this...
13269 (__GNUC_PREREQ): ...new macro.
13270 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
13272 (__GNUC_PREREQ): ...this new macro.
13274 * lib/strstr.h: Include string.h. Define strstr as a macro here.
13276 2005-09-15 Derek Price <derek@ximbiot.com>
13277 Paul Eggert <eggert@cs.ucla.edu>
13279 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
13280 changes, consolidating in...
13281 * lib/regex_internal.h: ...this file.
13283 2005-09-13 Jim Meyering <jim@meyering.net>
13285 * lib/canon-host.c: Filter through gnu indent and reword comments
13287 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
13289 2005-09-13 Derek Price <derek@ximbiot.com>
13291 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
13293 Reported by Jim Meyering <jim@meyering.net>.
13295 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
13297 * lib/base64.c: Typo.
13298 (base64_encode): Put b64str in initialized data section.
13300 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
13302 Merge glibc and coreutils changes into gnulib, plus a few
13304 * lib/md5.c: Use #error rather than a string.
13305 (CYCLIC): New macro, from glibc source. Use it instead of rol.
13306 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
13307 (__attribute__): Define to empty for non recent-GCC.
13308 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
13309 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
13310 Renamed from their non-__ counterparts, with new macros replacing
13311 them if not _LIBC. Add __THROW attribute.
13313 (struct md5_ctx): Align buffer if using GCC.
13314 * lib/sha1.h (struct sha1_ctx): Likewise.
13315 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
13316 The old name was backwards.
13317 (NOTSWAP): Remove; not used.
13318 (rol): New macro, moved here from md5.h.
13319 (sha1_process_block): Remove a FIXME that doesn't make sense.
13321 2005-09-12 Derek Price <derek@ximbiot.com>
13323 Return usable errors from canon-host.
13324 * lib/canon-host.h: New file.
13325 * lib/canon-host.c (canon_host): Wrap...
13326 (canon_host_r): ...this new function, which now relies exclusively on
13328 (ch_strerror): New function.
13329 (last_cherror): New global.
13330 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
13332 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
13334 (freeaddrinfo): Free ai->ai_canonname when set.
13336 2005-09-12 Derek Price <derek@ximbiot.com>
13338 Make canon-host require getaddrinfo.
13339 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
13340 AC_LIBSOURCE canon-host.h. Call...
13341 (gl_PREREQ_CANON_HOST): ...this new function, which requires
13343 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
13345 2005-09-12 Derek Price <derek@ximbiot.com>
13347 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
13349 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
13351 2005-09-12 Derek Price <derek@ximbiot.com>
13353 * lib/gai_strerror.c: Include config.h when available. Include
13354 getaddrinfo.h before other headers to test interface.
13355 Reported by Larry Jones <lawrence.jones@ugs.com>.
13357 2005-09-12 Derek Price <derek@ximbiot.com>
13358 Paul Eggert <eggert@cs.ucla.edu>
13360 * modules/glob (Files): Add glob-libc.h.
13362 2005-09-12 Derek Price <derek@ximbiot.com>
13363 Paul Eggert <eggert@cs.ucla.edu>
13365 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
13366 glob_.h, glob-libc.h.
13367 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
13369 2005-09-12 Derek Price <derek@ximbiot.com>
13370 Paul Eggert <eggert@cs.ucla.edu>
13372 * lib/glob-libc.h: Renamed from glob_.h. The new version is
13373 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
13374 protecting things that should be done only in gnulib contexts.
13375 * lib/glob_.h: New file, containing only the glob things needed for
13377 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
13378 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
13379 (glob, globfree, glob_pattern_p): Now defined simply in terms of
13380 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
13381 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
13382 and to respect the namespace rules better.
13384 2005-09-08 Simon Josefsson <jas@extundo.com>
13386 * modules/socklen: New file.
13388 2005-09-08 Simon Josefsson <jas@extundo.com>
13390 * m4/socklen.m4: New file.
13392 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
13394 * modules/utimens (Files): Add m4/utimbuf.m4, since
13395 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
13396 Reported by Sergey Poznyakoff.
13398 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
13400 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
13401 definitions, since that's the preferred style in glibc.
13402 Fix a minor spacing issue, and update copyright notice to match
13405 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
13407 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
13409 2005-09-06 Simon Josefsson <jas@extundo.com>
13411 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
13412 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
13414 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
13416 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
13419 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
13421 * config/srclist.txt: Add glibc bug 1302.
13423 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
13425 Change bitset word type from unsigned int to unsigned long int,
13426 as this has better performance on typical 64-bit hosts.
13427 Port bitset code to hosts with unusual word sizes.
13428 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
13429 (build_collating_symbol):
13430 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
13431 argument is a bitset. This is merely a style issue, but it makes
13432 it clearer that an entire array is expected.
13433 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
13434 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
13435 Port to the case where bitset_word is not the same as unsigned int.
13436 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
13437 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
13439 * lib/regexec.c (check_dst_limits_calc_pos_1,
13440 check_subexp_matching_top):
13441 (build_trtable, group_nodes_into_DFAstates):
13443 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
13444 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
13445 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
13446 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
13447 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
13448 * lib/regcomp.c (optimize_subexps, lower_subexp):
13449 Work even if bitset_word has holes in its bitwise representation.
13450 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
13451 * lib/regexec.c (check_dst_limits_calc_pos_1,
13452 check_subexp_matching_top):
13454 * lib/regex_internal.c (re_string_reconstruct):
13455 Don't assume UCHAR_MAX == 255.
13456 * lib/regex_internal.h (bitset_set_all): Likewise.
13457 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
13459 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
13460 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
13462 (BITSET_WORD_MAX): New macro.
13463 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
13464 (bitset_set_all, bitset_copy): Now inline functions, not macros.
13465 (bitset_empty, bitset_copy):
13466 Prefer sizeof (bitset) to multiplying it out ourselves.
13467 (bitset_not_merge): Remove; unused.
13468 (bitset_contain): Return bool, not unsigned int with one bit on.
13469 All callers changed.
13470 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
13471 alignment than re_node_set; do this by defining a new internal
13472 type struct dests_alloc and using it to allocate memory.
13474 2005-09-05 Bruno Haible <bruno@clisp.org>
13476 * gnulib-tool (func_import): Fix comparison in handling of symbolic
13479 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
13481 * modules/size_max (Makefile.am): Add size_max.h
13483 2005-09-04 Derek Price <derek@ximbiot.com>
13485 * gnulib-tool (func_import): Fix reversed $symbolic logic.
13487 2005-09-03 Simon Josefsson <jas@extundo.com>
13489 * gnulib-tool: Fix typo.
13491 2005-09-03 Simon Josefsson <jas@extundo.com>
13493 * config/srclist.txt: Add glibc bug 1293.
13495 2005-09-03 Derek Price <derek@ximbiot.com>
13497 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
13498 From Larry Jones <lawrence.jones@ugs.com>.
13500 2005-09-02 Simon Josefsson <jas@extundo.com>
13502 * modules/socklen: New file.
13504 2005-09-02 Simon Josefsson <jas@extundo.com>
13506 * modules/havelib: New module.
13508 * modules/gettext, modules/iconv, modules/lock, modules/readline:
13511 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
13513 Check for arithmetic overflow when calculating sizes, to prevent
13514 some buffer-overflow issues. These patches are conservative, in the
13515 sense that when I couldn't determine whether an overflow was possible,
13516 I inserted a run-time check.
13517 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
13519 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
13520 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
13521 (re_xnrealloc, re_x2nrealloc): New inline functions.
13522 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
13523 parse_bracket_exp):
13524 (build_equiv_class, build_charclass): Check for arithmetic overflow
13525 in size expression calculations.
13526 * lib/regex_internal.c (re_string_realloc_buffers):
13527 (build_wcs_upper_buffer, re_node_set_add_intersect):
13528 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
13529 (re_dfa_add_node, register_state): Likewise.
13530 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
13531 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
13532 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
13533 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
13535 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
13537 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
13538 m4/ulonglong.m4. Problem reported by Martin Lambers.
13540 2005-09-02 Bruno Haible <bruno@clisp.org>
13542 Support for lib vs. lib64 distinction on biarch platforms.
13543 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
13544 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
13545 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
13547 2005-09-02 Bruno Haible <bruno@clisp.org>
13549 * gnulib-tool (import): In the other first-use case, provide defaults
13552 2005-09-02 Bruno Haible <bruno@clisp.org>
13554 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
13555 patches not yet found in the latest gettext release.
13557 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
13559 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
13560 to avoid a collision with bits/local_lim.h in glibc.
13561 All uses changed. Problem reported by Dmitry V. Levin in
13562 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
13564 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
13565 bugs in int versus size_t comparisons.
13566 (re_string_context_at): Fix bug where the code assumed that
13569 Use bool where appropriate.
13570 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
13571 All callers changed.
13572 (calc_eclosure_iter): Likewise, for ROOT arg.
13573 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
13574 (build_charclass_op): Likewise, for NON_MATCH arg.
13575 * lib/regex_internal.c (re_string_allocate, re_string_construct):
13576 (re_string_construct_common): Likewise, for ICASE arg.
13577 * lib/regexec.c (re_search_2_stub, re_search_stub):
13578 Likewise, for RET_LEN arg.
13579 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
13580 (set_regs): Likewise, for FL_BACKTRACK arg.
13581 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
13582 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
13583 (calc_eclosure_iter, parse_bracket_exp):
13584 Use bool for internal variables that are booleans.
13585 * lib/regexec.c (re_search_internal, check_matching,
13586 proceed_next_node):
13587 (set_regs, build_sifted_states, sift_states_bkref):
13588 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
13589 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
13590 (find_collation_sequence_value):
13592 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
13593 (re_node_set_compare):
13594 Return bool, not int. All callers changed.
13595 * lib/regexec.c (check_halt_node_context, check_dst_limits):
13596 (build_trtable, check_node_accept): Likewise.
13597 * lib/regex_internal.h: Include stdbool.h.
13599 Fix bugs uncovered when converting to bool.
13600 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
13601 failure instead of charging ahead blindly.
13602 * lib/regex_internal.c (register_state): Likewise.
13603 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
13604 for freeing internal storage.
13605 (group_nodes_into_DFA_states): Use unsigned int, not int, for
13606 bitset pieces used as boolean, to avoid undefined behavior
13607 on hosts that do int overflow checking.
13609 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
13611 * config/srclist.txt: Add glibc bugs 1285-1287.
13613 2005-09-01 Jim Meyering <jim@meyering.net>
13615 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
13616 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
13617 Require gl_STAT_MACROS, too.
13619 2005-09-01 Bruno Haible <bruno@clisp.org>
13621 * gnulib-tool (import): In the first-use case, provide defaults.
13623 2005-09-01 Bruno Haible <bruno@clisp.org>
13625 * gnulib-tool (func_import): Remove the .tmp files.
13627 2005-09-01 Bruno Haible <bruno@clisp.org>
13629 * gnulib-tool (func_import): Fix handling of symbolic links.
13631 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
13633 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
13634 old glibc regex code mishandles strings longer than 2**31 bytes.
13635 This patch fixes this when the regex code is used in gnulib
13636 (i.e., outside glibc).
13638 This patch should not affect the use of the regex code inside
13639 glibc. No doubt this problem also needs to be handled for glibc
13640 as well, but the result will be an incompatible change to the
13641 glibc ABI, and the old ABI will have to be supported too. That
13642 can be the the subject for another patch.
13644 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
13645 governing whether the rest of this patch is active. By default,
13646 the macro is disabled and the patch has no effect.
13647 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
13648 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
13649 (struct re_pattern_buffer, re_search, re_search_2, re_match):
13650 (re_match_2, re_set_registers): Use the new types.
13651 * lib/regex_internal.h (Idx, re_hashval_t): New types.
13652 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
13654 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
13655 (re_string_context_at, bin_tree_t, re_dfastate_t):
13656 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
13657 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
13658 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
13659 (re_string_char_size_at, re_string_wchar_at):
13660 (re_string_elem_size_at):
13661 Use the new types and macros to port to 64-bit hosts.
13662 Use unsigned types for internal values, so that the code
13663 mostly works even for arrays larger than SSIZE_MAX.
13664 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
13665 (search_duplicated_node, calc_eclosure_iter, fetch_number):
13666 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
13667 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
13668 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
13669 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
13670 (calc_inveclosure, parse_dup_op, build_range_exp):
13671 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
13672 (fetch_number, create_token_tree, mark_opt_subexp):
13674 * lib/regex_internal.c (re_string_construct_common,
13675 create_ci_newstate):
13676 (create_cd_newstate, re_string_allocate, re_string_construct):
13677 (re_string_realloc_buffers, build_wcs_upper_buffer):
13678 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
13679 (re_string_reconstruct, re_string_peek_byte_case):
13680 (re_string_fetch_byte_case, re_string_context_at):
13681 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
13682 (re_node_set_init_copy, re_node_set_add_intersect):
13683 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
13684 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
13685 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
13686 (re_acquire_state, re_acquire_state_context, register_state):
13688 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
13689 search_cur_bkref_entry):
13690 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
13691 (re_search_internal, re_search_2_stub, re_search_stub)
13692 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
13693 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
13694 (update_cur_sifted_state, check_dst_limits):
13695 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
13696 (check_subexp_limits, sift_states_bkref, merge_state_array):
13697 (check_subexp_matching_top, get_subexp, get_subexp_sub):
13698 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
13699 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
13700 (expand_bkref_cache, check_node_accept_bytes):
13701 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
13702 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
13703 (acquire_init_state_context, check_halt_node_context):
13704 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
13705 (sift_states_backward, clean_state_log_if_needed):
13706 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
13707 (find_recover_state, transit_state_sb, transit_state_mb):
13708 (transit_state_bkref, build_trtable, match_ctx_clean):
13710 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
13711 to work around an assumption that REG_MISSING is negative.
13713 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
13714 (seek_collating_symbol_entry) [defined _LIBC]:
13715 (lookup_collation_sequence_value) [defined _LIBC]:
13716 (build_range_exp, build_collating_symbol) [defined _LIBC]:
13717 Use prototypes rather than old-style function definitions.
13718 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
13719 (transit_state_sb) [0]:
13720 (find_collation_sequence_value) [defined _LIBC]: Likewise.
13722 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
13725 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
13726 (optimize_subexps, lower_subexp):
13727 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
13728 since the signed shift might overflow. Use 1u<<31 instead.
13729 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
13731 * lib/regexec.c (check_dst_limits_calc_pos_1,
13732 check_subexp_matching_top): Likewise.
13734 * lib/regcomp.c (optimize_subexps, lower_subexp):
13735 Use CHAR_BIT rather than 8, for clarity.
13736 * lib/regexec.c (check_dst_limits_calc_pos_1):
13737 (check_subexp_matching_top): Likewise.
13738 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
13739 have to worry about portability issues when shifting it left.
13740 Remove no-longer-needed test for table_size > 0.
13741 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
13742 in a word, as the resulting behavior is undefined.
13743 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
13744 in one case, a <= should have been an <, and in another case the
13745 whole test was missing.
13746 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
13747 the standard name CHAR_BIT.
13748 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
13749 this is not true on one's complement and signed-magnitude hosts.
13751 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
13753 (struct re_dfa_t): Remove unused member states_alloc.
13754 * lib/regcomp.c (init_dfa): Don't initialize unused members.
13756 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
13758 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
13759 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
13760 and large-file glibc and in 32-bit large-file Solaris.
13762 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
13764 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
13765 lengths fit in regoff_t; this isn't true if regoff_t is the same
13767 * lib/regex.c (re_search_internal): 5th arg is LAST_START
13768 (= START + RANGE) instead of RANGE. This avoids overflow
13769 problems when regoff_t is the same width as size_t.
13770 All callers changed.
13771 (re_search_2_stub): Check for overflow when adding the
13772 sizes of the two strings.
13773 (re_search_stub): Check for overflow when adding START
13774 to RANGE; if it occurs, substitute the extreme value.
13776 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
13778 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
13780 2005-08-31 Jim Meyering <jim@meyering.net>
13782 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
13783 a pointer-to-const.
13784 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
13785 (register_state): Likewise.
13786 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
13787 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
13788 (group_nodes_into_DFAstates): Likewise.
13790 2005-08-31 Jim Meyering <jim@meyering.net>
13792 * check-module: Add a FIXME comment.
13794 2005-08-31 Eric Blake <ebb9@byu.net>
13796 * modules/unistd-safer (Files): Add unistd--.h.
13797 * modules/stdio-safer (Files): Add stdio--.h.
13799 2005-08-31 Derek Price <derek@ximbiot.com>
13801 * lib/getdelim.c (getdelim): Return EOF on EOF.
13802 Reported by Larry Jones <lawrence.jones@ugs.com>.
13804 2005-08-31 Bruno Haible <bruno@clisp.org>
13806 Avoid unnecessary diffs in the generated lib/Makefile.am.
13807 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
13808 the generated files.
13809 (func_import): Don't set cmd.
13811 2005-08-31 Bruno Haible <bruno@clisp.org>
13813 * lib/strstr.c: Include <stddef.h>, for NULL.
13814 * lib/strcasestr.c: Likewise.
13815 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13817 2005-08-31 Bruno Haible <bruno@clisp.org>
13819 * gnulib-tool: New option --macro-prefix.
13820 (func_import): Use macro_prefix.
13821 (import): Handle option --macro-prefix.
13823 2005-08-31 Bruno Haible <bruno@clisp.org>
13825 * gnulib-tool (import): Rename most ac_* variables to cached_*.
13826 Also use new variables cached_lgpl, cached_libtool.
13828 2005-08-31 Bruno Haible <bruno@clisp.org>
13830 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
13831 always instantiating them.
13833 2005-08-31 Bruno Haible <bruno@clisp.org>
13835 * gnulib-tool (func_import): Read the previous cached settings
13836 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
13837 earlier added by gnulib but are now dropped. Warn when a gnulib file
13838 overwrites a non-gnulib file.
13840 2005-08-31 Bruno Haible <bruno@clisp.org>
13842 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
13843 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
13844 projects that don't keep autogenerated files in CVS. Put into
13845 actioncmd only the specified modules, not the transitive closure.
13847 2005-08-31 Bruno Haible <bruno@clisp.org>
13849 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
13850 Create directories that shall be filled.
13851 (import): Don't look for gl_* macros in configure.ac. Recurse across
13852 all directories containing a gnulib-cache.m4 files, if meaningful.
13854 2005-08-31 Bruno Haible <bruno@clisp.org>
13856 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
13857 (import): Set seen_libtool when we see gl_LIBTOOL.
13859 2005-08-31 Bruno Haible <bruno@clisp.org>
13861 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
13862 declaration macro definitions from generated gnulib.m4.
13864 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
13866 * lib/iconvme.h: Add prototype for iconv_alloc.
13868 2005-08-29 Simon Josefsson <jas@extundo.com>
13870 * lib/iconvme.c: Fix errno.
13872 2005-08-29 Bruno Haible <bruno@clisp.org>
13874 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
13875 that it works when the directory contains spaces.
13877 2005-08-29 Bruno Haible <bruno@clisp.org>
13879 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
13881 2005-08-29 Bruno Haible <bruno@clisp.org>
13883 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
13886 2005-08-29 Bruno Haible <bruno@clisp.org>
13887 and Stepan Kasal <kasal@ucw.cz>
13889 * check-module: If more parameters are given, check each of them
13890 separately; add more exceptions, as noted by Jim Meyering.
13891 (check_module): New procedure.
13892 (%exempt_header): Now contains all exceptions.
13894 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
13896 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
13898 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
13900 * lib/iconvme.c: Split iconv_string into iconv_alloc.
13902 2005-08-28 Bruno Haible <bruno@clisp.org>
13904 * m4/gnulib-tool.m4: New file.
13906 2005-08-27 Jim Meyering <jim@meyering.net>
13908 * modules/unistd-safer (Files): Add pipe-safer.c.
13909 * modules/fcntl-safer (Files): Add creat-safer.c.
13911 2005-08-27 Jim Meyering <jim@meyering.net>
13913 * m4/stdlib-safer.m4: New file. From coreutils.
13914 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
13915 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
13916 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
13917 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
13918 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
13920 2005-08-27 Jim Meyering <jim@meyering.net>
13922 * lib/fopen-safer.c: Merge minor changes from coreutils.
13923 * lib/dup-safer.c: Likewise.
13924 * lib/fd-safer.c: Likewise.
13926 Merge from coreutils.
13927 * lib/stdio--.h: New file.
13928 * lib/stdlib--.h: New file.
13929 * lib/mkstemp-safer.c: New file.
13931 GNU tar needs these.
13932 * lib/pipe-safer.c: New file.
13933 * lib/creat-safer.c: New file.
13934 * lib/fcntl--.h (creat): Define to creat_safer.
13935 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
13936 * lib/unistd--.h (pipe): Define to pipe_safer.
13937 * lib/unistd-safer.h: Declare pipe_safer.
13939 2005-08-26 Simon Josefsson <jas@extundo.com>
13941 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
13942 Haible <bruno@clisp.org>.
13944 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
13946 * lib/regex_internal.h: Remove all references to
13947 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
13949 (bitset_not, bitset_merge, bitset_not_merge):
13950 (bitset_mask, re_string_allocate, re_string_construct):
13951 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
13952 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
13953 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
13954 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
13955 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
13956 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
13957 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
13958 (re_acquire_state_context):
13959 Remove unnecessary forward decls.
13960 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
13961 Put __attribute at function definition,
13962 now that the function decl has been removed.
13963 * lib/regex_internal.c (re_string_peek_byte_case):
13964 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
13967 2005-08-25 Stepan Kasal <kasal@ucw.cz>
13969 * m4/regex.m4: Add AC_PREREQ(2.50).
13970 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
13972 2005-08-25 Simon Josefsson <jas@extundo.com>
13974 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
13977 2005-08-25 Simon Josefsson <jas@extundo.com>
13979 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
13980 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
13981 GLIBC specific code.
13983 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
13985 Make regex safe for g++. This fixes one real bug (an "err"
13986 that should have been "*err"). g++ problem reported by
13988 * lib/regex_internal.h (re_calloc): New macro, consistent with
13989 re_malloc etc. All callers of calloc changed to use re_calloc.
13990 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
13991 not int. All callers changed.
13992 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
13993 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
13994 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
13995 (find_recover_state): Change "err" to "*err"; this fixes what
13996 appears to be a real bug.
13997 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
14000 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
14002 * modules/regex (Depends-on): Add malloc, since the code
14003 assumes that !malloc(0) means failure.
14005 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
14007 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
14009 alloca modernization/simplification for regex.
14010 * lib/regex.c: Remove portability cruft for alloca. This no longer
14011 needs to be at the start of the file, and can be moved into
14012 regex_internal.h and simplified.
14013 * lib/regex_internal.h: Include <alloca.h>.
14014 (__libc_use_alloca) [!defined _LIBC]: New macro.
14015 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
14016 now works outside glibc.
14018 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
14020 * config/srclist.txt: Add glibc bugs 1241, 1245.
14022 2005-08-25 Jim Meyering <jim@meyering.net>
14024 * lib/open-safer.c: Include <config.h>.
14025 Otherwise, we'd lose LARGEFILE support in any file using
14028 2005-08-25 Bruno Haible <bruno@clisp.org>
14030 * m4/minmax.m4: Require autoconf 2.52.
14031 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
14032 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
14033 alternatives of translit over the alphabet.
14034 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
14036 2005-08-24 Simon Josefsson <jas@extundo.com>
14038 * tests/test-getpass.c: New file.
14040 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
14042 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
14043 for GNU regex features.
14045 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
14047 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
14048 * lib/regex.h (regerror): Likewise.
14050 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
14051 requires this. (The code never needed it.)
14053 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
14054 All uses of recently-renamed identifiers changed to use the new,
14055 POSIX-compliant names. The code will build and run just fine
14056 without these changes, but it's better to eat our own dog food
14057 and use the standard-conforming names.
14059 * lib/regex.h: Fix a multitude of POSIX name space violations.
14060 These changes have an effect only for programs that define
14061 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
14062 do not change anything for programs compiled in the normal way.
14063 Also, there is no effect on the ABI.
14065 (_REGEX_SOURCE): New macro.
14066 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
14067 defined and _GNU_SOURCE is not; this fixes a name space violation.
14069 Rename the following macros to obey POSIX requirements.
14070 The old names are still visible as macros if _REGEX_SOURCE is defined.
14071 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
14072 RE_BACKSLASH_ESCAPE_IN_LISTS.
14073 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
14074 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
14075 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
14076 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
14077 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
14078 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
14079 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
14080 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
14081 (REG_INTERVALS): renamed from RE_INTERVALS.
14082 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
14083 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
14084 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
14085 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
14086 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
14087 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
14088 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
14089 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
14090 RE_UNMATCHED_RIGHT_PAREN_ORD.
14091 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
14092 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
14093 (REG_DEBUG): renamed from RE_DEBUG.
14094 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
14095 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
14096 unusual, since we can't clash with the POSIX REG_ICASE.
14097 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
14098 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
14099 (REG_NO_SUB): renamed from RE_NO_SUB.
14100 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
14101 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
14102 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
14103 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
14104 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
14105 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
14106 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
14107 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
14108 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
14109 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
14110 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
14111 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
14112 RE_SYNTAX_POSIX_MINIMAL_BASIC.
14113 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
14114 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
14115 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
14116 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
14117 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
14118 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
14119 (REG_FIXED): Renamed from REGS_FIXED.
14120 (REG_NREGS): Renamed from RE_NREGS.
14122 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
14123 of other REG_* macros, since POSIX says the user is allowed to
14124 #undef these macros selectively.
14126 (reg_errcode_t): Update comment stating what other tables need
14129 Rename the following enum values to obey POSIX requirements.
14130 The old names are still visible as macros.
14131 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
14132 is not defined, since GNU is supposed to be a superset of POSIX as
14133 much as possible, and since we want reg_errcode_t to be a signed
14134 type for implementation consistency.
14135 (_REG_NOERROR): Renamed from REG_NOERROR.
14136 (_REG_NOMATCH): Renamed from REG_NOMATCH.
14137 (_REG_BADPAT): Renamed from REG_BADPAT.
14138 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
14139 (_REG_ECTYPE): Renamed from REG_ECTYPE.
14140 (_REG_EESCAPE): Renamed from REG_EESCAPE.
14141 (_REG_ESUBREG): Renamed from REG_ESUBREG.
14142 (_REG_EBRACK): Renamed from REG_EBRACK.
14143 (_REG_EPAREN): Renamed from REG_EPAREN.
14144 (_REG_EBRACE): Renamed from REG_EBRACE.
14145 (_REG_BADBR): Renamed from REG_BADBR.
14146 (_REG_ERANGE): Renamed from REG_ERANGE.
14147 (_REG_ESPACE): Renamed from REG_ESPACE.
14148 (_REG_BADRPT): Renamed from REG_BADRPT.
14149 (_REG_EEND): Renamed from REG_EEND.
14150 (_REG_ESIZE): Renamed from REG_ESIZE.
14151 (_REG_ERPAREN): Renamed from REG_ERPAREN.
14152 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
14153 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
14154 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
14155 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
14157 (_REG_RE_NAME, _REG_RM_NAME): New macros.
14158 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
14159 changed. But support the old name if the new one is not defined
14160 and if _REGEX_SOURCE.
14162 Change the following member names in struct re_pattern_buffer.
14163 The old names are still supported if !_REGEX_SOURCE.
14164 The new names are always supported, regardless of _REGEX_SOURCE.
14165 (re_buffer): Renamed from buffer.
14166 (re_allocated): Renamed from allocated.
14167 (re_used): Renamed from used.
14168 (re_syntax): Renamed from syntax.
14169 (re_fastmap): Renamed from fastmap.
14170 (re_translate): Renamed from translate.
14171 (re_can_be_null): Renamed from can_be_null.
14172 (re_regs_allocated): Renamed from regs_allocated.
14173 (re_fastmap_accurate): Renamed from fastmap_accurate.
14174 (re_no_sub): Renamed from no_sub.
14175 (re_not_bol): Renamed from not_bol.
14176 (re_not_eol): Renamed from not_eol.
14177 (re_newline_anchor): Renamed from newline_anchor.
14179 Change the following member names in struct re_registers.
14180 The old names are still supported if !_REGEX_SOURCE.
14181 The new names are always supported, regardless of _REGEX_SOURCE.
14182 (rm_num_regs): Renamed from num_regs.
14183 (rm_start): Renamed from start.
14184 (rm_end): Renamed from end.
14186 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
14187 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
14188 Prepend __ to parameter names.
14190 Undo yesterday's changes.
14192 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
14194 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
14195 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
14198 2005-08-24 Jim Meyering <jim@meyering.net>
14200 Sync from coreutils.
14201 * m4/fcntl-safer.m4: New file.
14203 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
14204 and object files for this module.
14206 2005-08-24 Jim Meyering <jim@meyering.net>
14208 Sync from coreutils.
14209 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
14211 2005-08-24 Jim Meyering <jim@meyering.net>
14213 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
14214 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
14216 2005-08-24 Jim Meyering <jim@meyering.net>
14218 * modules/fcntl-safer: New module.
14219 * modules/fts (Depends-on): Add fcntl-safer.
14220 * MODULES.html.sh (File descriptor based Input/Output):
14223 2005-08-24 Bruno Haible <bruno@clisp.org>
14225 Support for unit test modules.
14226 * modules/README: Mention tests modules.
14227 * modules/TEMPLATE-TESTS: New file.
14228 * gnulib-tool: New options --extract-tests-module, --with-tests and
14229 --tests-base (unused for the moment).
14230 (testsbase, inctests): New variables.
14231 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
14232 (func_verify_module): Exclude TEMPLATE-TESTS.
14233 (func_verify_nontests_module, func_verify_tests_module): New functions.
14234 (func_get_dependencies): Add implicit dependency for tests modules.
14235 (func_get_tests_module): New function.
14236 (func_modules_transitive_closure): When --with-tests was specified,
14237 include the unit tests as well, unless explicitly avoided.
14238 (func_emit_lib_Makefile_am): Ignore the tests modules here.
14239 (func_emit_tests_Makefile_am): New function.
14240 (func_create_testdir): When --with-tests was specified, emit a
14242 * MODULES.html.sh (Future developments): Update.
14244 2005-08-24 Bruno Haible <bruno@clisp.org>
14246 * modules/tls-tests: New file.
14247 * tests/test-tls.c: New file, from GNU gettext.
14249 2005-08-24 Bruno Haible <bruno@clisp.org>
14251 * modules/lock-tests: New file.
14252 * tests/test-lock.c: New file, from GNU gettext.
14254 2005-08-24 Bruno Haible <bruno@clisp.org>
14256 * lib/lock.h: Add multiple inclusion guard.
14257 * lib/tls.h: Add multiple inclusion guard.
14259 2005-08-24 Bruno Haible <bruno@clisp.org>
14261 * gnulib-tool: Add support for the --aux-dir option to
14262 --create-testdir, --create-megatestdir, --test, --megatest.
14263 (func_create_testdir, func_create_megatestdir): Optionally emit a
14264 AC_CONFIG_AUX_DIR directive.
14265 (create-testdir, create-megatestdir, test, megatest): Provide a
14266 default value for $auxdir.
14268 2005-08-24 Bruno Haible <bruno@clisp.org>
14270 * gnulib-tool (import): Use compound statement instead of subshell
14273 2005-08-24 Bruno Haible <bruno@clisp.org>
14275 * gnulib-tool (import): Change --aux-dir default to "build-aux".
14277 2005-08-24 Bruno Haible <bruno@clisp.org>
14279 * gnulib-tool (func_version): Update.
14281 2005-08-24 Bruno Haible <bruno@clisp.org>
14283 * gnulib-tool (func_import, func_create_testdir,
14284 func_create_megatestdir): Quote all autoconf macro arguments.
14286 2005-08-24 Bruno Haible <bruno@clisp.org>
14288 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
14289 option --force, because --force causes the aclocal.m4 of each
14290 subdirectory to be newer than the corresponding config.h.in.
14292 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
14294 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
14295 All contents moved to gl_REGEX.
14296 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
14297 assume that it does.
14299 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
14301 * lib/regex.h (REG_NOSYS)
14302 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
14303 Define, since POSIX requires it as of 2001.
14305 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
14306 New private symbol, used to keep the enum signed in all cases.
14307 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
14309 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
14311 * lib/regex_internal.c (re_string_skip_chars, register_state):
14313 Remove forward decls; no longer needed now that we use prototypes.
14314 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
14315 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
14316 (clean_state_log_if_needed): Likewise.
14318 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
14320 * config/srclist.txt: Add glibc bugs 1231-1233.
14322 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
14324 Fix problems reported by Sam Steingold in
14325 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
14326 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
14327 assumed that reg_errcode_t is a signed type, which is not
14328 necessarily true if _XOPEN_SOURCE is not defined.
14329 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
14330 since some compilers warn about it otherwise.
14332 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
14334 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
14335 (init_word_char, create_initial_state, duplicate_node_closure):
14336 (fetch_token, peek_token_bracket, build_range_exp):
14337 (build_collating_symbol): Remove forward decls; no longer needed
14338 now that we use prototypes.
14341 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
14342 (re_compile_fastmap_iter, regcomp, regerror, regfree):
14343 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
14344 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
14345 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
14346 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
14347 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
14348 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
14349 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
14350 (build_range_exp, build_collating_symbol, parse_bracket_exp):
14351 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
14352 (build_charclass, build_charclass_op, fetch_number, create_tree):
14353 (create_token_tree, mark_opt_subexp, duplicate_tree):
14354 Use prototypes rather than old-style definitions.
14356 * lib/regex_internal.c:
14357 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
14358 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
14359 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
14360 (re_string_reconstruct, re_string_peek_byte_case):
14361 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
14362 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
14363 (re_node_set_init_copy, re_node_set_add_intersect):
14364 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
14365 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
14366 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
14367 (re_acquire_state, re_acquire_state_context, register_state):
14368 (create_ci_newstate, create_cd_newstate, free_state):
14370 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
14372 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
14373 (re_search_internal, prune_impossible_nodes):
14374 (acquire_init_state_context, check_matching, static):
14375 (check_halt_node_context, check_halt_state_context, proceed_next_node):
14376 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
14377 (update_regs, sift_states_backward, build_sifted_states):
14378 (clean_state_log_if_needed, merge_state_array):
14379 (update_cur_sifted_state, add_epsilon_src_nodes):
14380 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
14381 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
14382 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
14383 (find_recover_state, check_subexp_matching_top, transit_state_mb):
14384 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
14385 (check_arrival, check_arrival_add_next_nodes):
14386 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
14387 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
14388 (check_node_accept_bytes, check_node_accept, extend_buffers):
14389 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
14390 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
14394 * lib/regex_internal.h:
14395 (re_string_allocate, re_string_construct, re_string_reconstruct):
14396 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
14397 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
14398 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
14399 (re_string_context_at, re_string_peek_byte_case):
14400 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
14401 is defined, since we now use prototypes always.
14403 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
14404 C89 or better. All uses removed.
14406 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
14408 * config/srclist.txt: Add glibc bugs 1220-1227.
14410 2005-08-20 Jim Meyering <jim@meyering.net>
14412 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
14413 of unused local, dfa.
14415 2005-08-20 Bruno Haible <bruno@clisp.org>
14417 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
14419 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
14421 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
14422 (re_node_set_insert_last, re_dfa_add_node):
14423 Rename local variables to avoid GCC shadowing warnings.
14425 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
14427 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
14428 [defined lint]: Suppress bogus uninitialized-variable warnings.
14430 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
14431 and let the caller return REG_ESPACE if out of space. This
14432 removes an uninitialied-variable warning with GCC 4.0.1, and also
14433 avoids taking the address of a local variable. All callers
14436 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
14438 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
14439 $LIBCSRC/posix/regexec.c.
14440 Add glibc bug 1217 for regcomp.c.
14442 2005-08-19 Jim Meyering <jim@meyering.net>
14444 * lib/regexec.c (proceed_next_node): Redo local variables to
14445 avoid GCC shadowing warnings.
14447 2005-08-18 Bruno Haible <bruno@clisp.org>
14449 * lib/strstr.c (strstr): Fix return value in multibyte case.
14450 * lib/strcasestr.c (strcasestr): Likewise.
14452 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
14454 * lib/regex.h: Remove useless space-before-tab. From coreutils.
14456 2005-08-17 Jim Meyering <jim@meyering.net>
14458 Make the %s format (seconds since the epoch) work for a negative
14459 number and when used with a zero-padded field width, e.g. %015s.
14461 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
14462 label so that it precedes the code to set `digits'. Otherwise,
14463 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
14464 print `00-22'. Now, it prints `-0022', as it should.
14466 2005-08-17 Bruno Haible <bruno@clisp.org>
14468 * modules/strstr (Files): Add m4/mbrtowc.m4.
14469 (Depends-on): Add mbuiter.
14471 2005-08-17 Bruno Haible <bruno@clisp.org>
14473 * modules/strcasestr: New file.
14474 * MODULES.html.sh (String handling, based on ANSI C 89): Add
14477 2005-08-17 Bruno Haible <bruno@clisp.org>
14479 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
14481 2005-08-17 Bruno Haible <bruno@clisp.org>
14483 * modules/mbuiter: New file.
14484 * MODULES.html.sh (Extended multibyte and wide character utilities):
14487 2005-08-17 Bruno Haible <bruno@clisp.org>
14489 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
14490 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
14492 2005-08-17 Bruno Haible <bruno@clisp.org>
14494 * m4/strcasestr.m4: New file.
14496 2005-08-17 Bruno Haible <bruno@clisp.org>
14498 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
14499 * lib/strstr.c: Completely rewritten, with multibyte locale support.
14501 2005-08-17 Bruno Haible <bruno@clisp.org>
14503 * lib/strcasestr.h: New file.
14504 * lib/strcasestr.c: New file.
14506 2005-08-17 Bruno Haible <bruno@clisp.org>
14508 * lib/strcasecmp.c: Use mbuiter.h.
14510 2005-08-17 Bruno Haible <bruno@clisp.org>
14512 * lib/mbuiter.h: New file.
14514 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
14516 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
14517 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
14518 and gl_GETOPT are both invoked via different paths (as happens
14519 with GNU tar CVS because it uses both argp and getopt), the former
14522 2005-08-16 Bruno Haible <bruno@clisp.org>
14524 * modules/tls: New file.
14525 * MODULES.html.sh (Multithreading): Add tls.
14527 2005-08-16 Bruno Haible <bruno@clisp.org>
14529 * modules/strnlen1: New file.
14530 * MODULES.html.sh (String handling): Add strnlen1.
14532 2005-08-16 Bruno Haible <bruno@clisp.org>
14534 * modules/strcase (Files): Add m4/mbrtowc.m4.
14535 (Depends-on): Add strnlen1, mbchar.
14537 2005-08-16 Bruno Haible <bruno@clisp.org>
14539 * modules/mbiter: New file.
14540 * MODULES.html.sh (Extended multibyte and wide character utilities):
14543 2005-08-16 Bruno Haible <bruno@clisp.org>
14545 * modules/mbfile: New file.
14546 * MODULES.html.sh (Extended multibyte and wide character utilities):
14549 2005-08-16 Bruno Haible <bruno@clisp.org>
14551 * modules/mbchar: New file.
14552 * MODULES.html.sh (Extended multibyte and wide character utilities):
14555 2005-08-16 Bruno Haible <bruno@clisp.org>
14557 * m4/tls.m4: New file, from GNU gettext.
14559 2005-08-16 Bruno Haible <bruno@clisp.org>
14561 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
14563 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
14565 2005-08-16 Bruno Haible <bruno@clisp.org>
14567 * m4/mbiter.m4: New file.
14569 2005-08-16 Bruno Haible <bruno@clisp.org>
14571 * m4/mbfile.m4: New file.
14573 2005-08-16 Bruno Haible <bruno@clisp.org>
14575 * m4/mbchar.m4: New file.
14577 2005-08-16 Bruno Haible <bruno@clisp.org>
14579 * lib/tls.h: New file, from GNU gettext.
14580 * lib/tls.c: New file, from GNU gettext.
14582 2005-08-16 Bruno Haible <bruno@clisp.org>
14584 * lib/strnlen1.h: New file.
14585 * lib/strnlen1.c: New file.
14587 2005-08-16 Bruno Haible <bruno@clisp.org>
14589 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
14590 (mbi_init): Update.
14591 (mbi_avail, mbi_advance): Let the iteration end before the terminating
14592 NUL byte, not after it.
14594 2005-08-16 Bruno Haible <bruno@clisp.org>
14596 * lib/strcase.h (strcasecmp): Add note in comments.
14597 * lib/strncasecmp.c: Use code from strcasecmp.c.
14598 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
14599 (strcasecmp): Work correctly in multibyte locales.
14601 2005-08-16 Bruno Haible <bruno@clisp.org>
14603 * lib/mbiter.h: New file.
14605 2005-08-16 Bruno Haible <bruno@clisp.org>
14607 * lib/mbfile.h: New file.
14609 2005-08-16 Bruno Haible <bruno@clisp.org>
14611 * lib/mbchar.h: New file.
14612 * lib/mbchar.c: New file.
14614 2005-08-16 Bruno Haible <bruno@clisp.org>
14616 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
14617 the valid ones. Makes the comparison operations transitive:
14618 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
14619 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
14621 2005-08-15 Simon Josefsson <jas@extundo.com>
14623 * modules/ssize_t (License): Change to 'unlimited'.
14625 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
14627 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
14629 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
14630 Add comments for each pending glibc patch.
14632 2005-08-15 Bruno Haible <bruno@clisp.org>
14634 * lib/regex.h (__restrict_arr): Don't define to __restrict if
14635 __cplusplus is defined.
14637 2005-08-14 Jim Meyering <jim@meyering.net>
14639 Sync from coreutils.
14641 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
14642 Use the hash-table-based cycle-detection code not just when
14643 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
14644 Reported by James Youngman in
14645 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
14646 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
14647 FTS_TIGHT_CYCLE_CHECK.
14648 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
14649 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
14651 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
14652 * lib/fts.c (fd_safer): Remove decl.
14653 Include fcntl--.h rather than unistd-safer.h
14654 (fts_safe_changedir): Don't call fd_safer; no longer needed
14655 now that we include fcntl--.h.
14657 2005-08-12 Simon Josefsson <jas@extundo.com>
14659 * modules/getndelim2: Use ssize_t module.
14660 * modules/getnline: Likewise.
14661 * modules/safe-read: Likewise.
14662 * modules/xreadlink: Likewise.
14664 * modules/ssize_t: New file.
14666 2005-08-12 Simon Josefsson <jas@extundo.com>
14668 * m4/readline.m4: Look for termcap, curses or ncurses if required.
14670 2005-08-12 Simon Josefsson <jas@extundo.com>
14672 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14675 2005-08-12 Simon Josefsson <jas@extundo.com>
14677 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
14678 readline, getdelim and check_version.
14679 (Support for systems lacking ISO C 99: Sizes of integer types):
14682 2005-08-12 Bruno Haible <bruno@clisp.org>
14684 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
14686 2005-08-11 Simon Josefsson <jas@extundo.com>
14688 * modules/readline: New file.
14690 * modules/strnlen (Files): Add strnlen.h.
14692 2005-08-11 Simon Josefsson <jas@extundo.com>
14694 * m4/readline.m4: New file.
14696 2005-08-11 Simon Josefsson <jas@extundo.com>
14698 * lib/readline.h, readline.c: New file.
14700 2005-08-11 Simon Josefsson <jas@extundo.com>
14702 * doc/gnulib.texi (Initial import, Finishing touches): Mention
14705 2005-08-11 Bruno Haible <bruno@clisp.org>
14707 * lib/strnlen.h (strnlen): Change parameter name to match comment.
14709 2005-08-10 Stepan Kasal <kasal@ucw.cz>
14711 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
14713 2005-08-10 Simon Josefsson <jas@extundo.com>
14715 * tests/test-iconvme.c: New file.
14717 2005-08-10 Simon Josefsson <jas@extundo.com>
14719 * m4/strnlen.m4: New file.
14721 * m4/strndup.m4: Don't check for strnlen declaration, done in
14724 2005-08-10 Simon Josefsson <jas@extundo.com>
14726 * lib/strndup.c: Use strnlen.h.
14728 * lib/strnlen.h: New file.
14730 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
14734 2005-08-02 Simon Josefsson <jas@extundo.com>
14736 * modules/readline: New file.
14738 2005-08-02 Simon Josefsson <jas@extundo.com>
14740 * modules/getdelim: New file.
14742 * modules/getline: Rewrite, don't use getndelim2.
14744 2005-08-02 Simon Josefsson <jas@extundo.com>
14746 * m4/getline.m4: Separate out getdelim stuff into separate module.
14748 * m4/getdelim.m4: New file.
14750 2005-08-02 Simon Josefsson <jas@extundo.com>
14752 * lib/getline.h, getline.c: Rewrite.
14754 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
14756 2005-07-31 Bruno Haible <bruno@clisp.org>
14758 * lib/lock.h (gl_lock_initializer): New macro.
14759 (gl_lock_define_initialized): Use it.
14760 (gl_rwlock_initializer): New macro.
14761 (gl_rwlock_define_initialized): Use it.
14762 (gl_recursive_lock_initializer): New macro.
14763 (gl_recursive_lock_define_initialized): Use it.
14765 2005-07-30 Karl Berry <karl@gnu.org>
14767 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
14768 Report from Ben Pfaff, regarding getopt.
14770 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
14772 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
14774 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
14775 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
14776 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
14777 (gl_GETOPT): Use the new macros. Most of the implementation
14778 is moved to the new macros. This is for programs like Emacs
14779 that don't want all the functionality of gl_GETOPT.
14781 2005-07-26 Bruno Haible <bruno@clisp.org>
14783 * m4/lock.m4: Update from GNU gettext.
14785 2005-07-26 Bruno Haible <bruno@clisp.org>
14787 * lib/lock.h: Update from GNU gettext.
14788 * lib/lock.c: Update from GNU gettext.
14790 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
14792 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
14793 obsolescent AC_TRY_RUN. Include the default includes files, for
14796 2005-07-24 Bruno Haible <bruno@clisp.org>
14798 * modules/visibility: New file.
14799 * MODULES.html.sh (Misc): Add visibility.
14801 2005-07-24 Bruno Haible <bruno@clisp.org>
14803 * m4/visibility.m4: New file.
14805 2005-07-24 Bruno Haible <bruno@clisp.org>
14807 * doc/visibility.texi: New file.
14809 2005-07-22 Bruno Haible <bruno@clisp.org>
14811 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
14812 $(ALLOCA_H), redundant through BUILT_SOURCES.
14813 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
14814 redundant through BUILT_SOURCES.
14815 * modules/byteswap (Makefile.am): Remove explicit dependency on
14816 $(BYTESWAP_H), redundant through BUILT_SOURCES.
14817 * modules/fnmatch (Makefile.am): Remove explicit dependency on
14818 $(FNMATCH_H), redundant through BUILT_SOURCES.
14819 * modules/getopt (Makefile.am): Remove explicit dependency on
14820 $(GETOPT_H), redundant through BUILT_SOURCES.
14821 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
14822 redundant through BUILT_SOURCES.
14823 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
14824 redundant through BUILT_SOURCES.
14825 * modules/stdbool (Makefile.am): Remove explicit dependency on
14826 $(STDBOOL_H), redundant through BUILT_SOURCES.
14827 * modules/stdint (Makefile.am): Remove explicit dependency on
14828 $(STDINT_H), redundant through BUILT_SOURCES.
14829 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
14830 Remove explicit dependency on $(SYSEXITS_H).
14831 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
14833 2005-07-18 Simon Josefsson <jas@extundo.com>
14835 * lib/check-version.c (check_version): Accept identical versions too.
14837 2005-07-18 Bruno Haible <bruno@clisp.org>
14839 * modules/lock: New file.
14840 * MODULES.html.sh (Multithreading): New section.
14842 2005-07-18 Bruno Haible <bruno@clisp.org>
14844 * m4/lock.m4: New file, from GNU gettext.
14846 2005-07-18 Bruno Haible <bruno@clisp.org>
14848 * lib/lock.h: New file, from GNU gettext.
14849 * lib/lock.c: New file, from GNU gettext.
14851 2005-07-18 Bruno Haible <bruno@clisp.org>
14853 * lib/lock.h (gl_once_t): New type.
14854 (gl_once_define, gl_once): New macros.
14855 * lib/lock.c (fresh_once): New variable.
14856 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
14859 2005-07-16 Simon Josefsson <jas@extundo.com>
14861 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
14862 workaround, suggested by Bruno.
14864 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
14866 * modules/xalloc (Depends-on): Add xalloc-die.
14867 * modules/xvasprintf (Depends-on): Add xalloc-die.
14869 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
14871 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
14872 with a minor change.
14874 2005-07-15 Bruno Haible <bruno@clisp.org>
14876 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
14877 When using lib/poll.c, define poll as rpl_poll.
14879 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
14881 * modules/argp (Depends-on): Remove unlocked-io.
14883 2005-07-14 Derek Price <derek@ximbiot.com>
14885 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
14886 for glob symlink bug.
14888 2005-07-14 Bruno Haible <bruno@clisp.org>
14890 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
14891 Instead, test for *_unlocked function declarations directly.
14893 2005-07-11 Simon Josefsson <jas@extundo.com>
14895 * modules/size_max: New file.
14897 * modules/xsize: Depend on size_max module for size_max.m4.
14899 2005-07-11 Simon Josefsson <jas@extundo.com>
14901 * lib/size_max.h: New file.
14903 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
14905 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
14906 copyright symbol and the year.
14907 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
14908 (version_etc_va): Use parameterized copyright notice.
14909 Reword to conform to the current GNU coding standards.
14911 2005-07-11 Karl Berry <karl@gnu.org>
14913 * doc/gnulib.texi (Quoting): new node.
14914 (Initial import): more info, from Patrice.
14916 2005-07-11 Bruno Haible <bruno@clisp.org>
14918 * gnulib-tool (func_usage): Document option --avoid.
14919 (Command line options): Handle --avoid.
14920 (func_acceptable): New function.
14921 (func_modules_transitive_closure): Use it.
14923 2005-07-11 Bruno Haible <bruno@clisp.org>
14925 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
14926 Reported by Jim Meyering.
14928 2005-07-10 Bruno Haible <bruno@clisp.org>
14930 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
14931 Needed when size_t is smaller than 'unsigned int'.
14932 Reported by Paul Eggert.
14934 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
14936 * modules/argp (Depends-on): Add unlocked-io
14938 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
14940 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
14943 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
14945 * config/srclist.txt: Comment out regcomp.c, since we have a porting
14948 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
14949 and Paul Eggert <eggert@cs.ucla.edu>
14951 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
14952 in wint_t, not wchar_t. Remove now-unnecessary cast.
14954 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
14956 * modules/regex (Files): Add lib/regex_internal.c,
14957 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
14958 (Depends-on): Add extensions.
14959 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
14961 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
14963 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
14965 * m4/same.m4 (gl_SAME): Likewise.
14966 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
14968 * m4/regex.m4: Adjust to new libc regex implementation.
14969 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
14970 all the .c and .h parts of (the new) regex.
14971 Quote the m4 stuff better.
14972 Check for RE_ICASE bug of old gnulib.
14973 Check for REG_STARTEND of recent libc.
14974 Rename local variables from jm_* to gl_*.
14975 Quote operand of "test -f".
14976 Say "recent enough" version of libc, not "version 2".
14977 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
14978 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
14979 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
14980 Remove check for btowc, isascii.
14981 Require AM_LANGINFO_CODESET.
14983 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
14985 * lib/regex.c, regex.h: Sync from libc.
14986 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
14988 New files, synced from libc, except that regex_internal.h
14989 currently has a small porting fix.
14991 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
14993 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
14994 regex_internal.c, regexec.c.
14995 Add regex_internal.h too, but as a comment, since the libc version
14996 is currently broken in gnulib mode.
14998 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
15000 Support programs like Emacs that use gnulib but not gettext.
15001 * MODULES.html.sh (Internationalization functions): Add gettext-h.
15002 * modules/gettext-h: New file.
15003 * modules/gettext (Files): Remove lib/gettext.h.
15004 (Depends-on): Add gettext-h.
15005 (Makefile.am): Remove lib_SOURCES.
15006 * modules/argmatch, modules/c-stack, modules/closeout:
15007 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
15008 * modules/execute, modules/file-type, modules/getaddrinfo:
15009 * modules/getopt, modules/human, modules/javacomp:
15010 * modules/javaexec, modules/mkdir-p, modules/obstack:
15011 * modules/openat, modules/pagealign_alloc, modules/pipe:
15012 * modules/quotearg, modules/regex, modules/rpmatch:
15013 * modules/unicodeio, modules/userspec, modules/version-etc:
15014 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
15016 Depend on gettext-h, not gettext.
15018 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
15020 * gnulib-tool (func_import): Add support for 'public domain' license.
15021 * modules/alloca, modules/atexit, modules/memmove:
15022 Now public domain, not GPL.
15023 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
15024 * modules/realloc, modules/strerror, modules/strtod:
15027 2005-07-05 Bruno Haible <bruno@clisp.org>
15029 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
15030 autoconf CVS. Needed for mingw.
15032 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
15034 Remove the dependency of the strftime module on the tzset module.
15035 * modules/strftime (Depends-on): Remove dependency on tzset.
15037 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
15039 Remove the dependency of the strftime module on the tzset module.
15040 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
15041 gl_FUNC_TZSET_CLOBBER.
15043 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
15045 Remove the dependency of the strftime module on the tzset module.
15046 * lib/strftime.c (my_strftime)
15047 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
15048 Copy the input structure, to work around some of the bug with
15049 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
15050 Solaris releases, you should also use the tzset module, but we won't
15051 require it as a dependency any more since we don't want LGPLed code
15052 to depend on GPLed code.
15054 2005-07-02 Jim Meyering <jim@meyering.net>
15056 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
15057 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
15058 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
15059 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
15061 2005-07-02 Jim Meyering <jim@meyering.net>
15063 * lib/backupfile.c (backup_args): Change a `0' to NULL.
15065 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
15067 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
15068 declares only 'struct timespec;' (!).
15070 2005-07-01 Jim Meyering <jim@meyering.net>
15072 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
15073 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
15074 * lib/save-cwd.c, tempname.c:
15075 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
15076 and don't include <sys/file.h>).
15078 2005-06-29 Jim Meyering <jim@meyering.net>
15080 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
15081 type name. Use the variable name instead.
15082 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
15085 2005-06-28 Simon Josefsson <jas@extundo.com>
15087 * modules/check-version (Files): Add check-version.m4.
15089 2005-06-28 Simon Josefsson <jas@extundo.com>
15091 * m4/check-version.m4: New file, suggested by Jim Meyering
15092 <jim@meyering.net>.
15094 2005-06-28 Simon Josefsson <jas@extundo.com>
15096 * lib/check-version.h, lib/check-version.c: New files.
15098 2005-06-28 Simon Josefsson <jas@extundo.com>
15100 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
15101 collision with global variable. Better indentation. Don't
15102 increment buffer pointer beyond buffer end. Based on comments
15103 from Paul Eggert <eggert@cs.ucla.edu>.
15105 * lib/base64.h: Indent.
15107 2005-06-28 Simon Josefsson <jas@extundo.com>
15109 * doc/gnulib.texi (Library version handling): New section.
15111 2005-06-28 Jim Meyering <jim@meyering.net>
15113 * check-module (find_included_lib_files): Hard-code another
15114 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
15115 but modules/fts-lgpl (correctly) does not list those files.
15117 * modules/canonicalize (Files): Add lib/pathmax.h.
15119 2005-06-25 Simon Josefsson <jas@extundo.com>
15121 * modules/check-version: New file.
15123 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
15125 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
15126 initializer of struct addrinfo, as an indication that we don't
15127 care how many members the structure has.
15129 2005-06-24 Derek Price <derek@ximbiot.com>
15130 and Bruno Haible <bruno@clisp.org>
15132 Remove stat module & update lstat.
15133 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
15134 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15135 * m4/stat.m4: Remove this file.
15137 2005-06-24 Derek Price <derek@ximbiot.com>
15138 and Bruno Haible <bruno@clisp.org>
15140 Remove stat module & update lstat.
15141 * lib/stat.c: Remove this file...
15142 (slash_aware_lstat): ...moving this content and its support...
15143 * lib/lstat.c (rpl_lstat): ...into here.
15144 * lib/lstat.h: New file.
15146 2005-06-24 Derek Price <derek@ximbiot.com>
15147 and Bruno Haible <bruno@clisp.org>
15149 Remove stat module & update lstat.
15150 * config/srclist.txt (libc sources): Remove stat.
15152 2005-06-24 Derek Price <derek@ximbiot.com>
15153 and Bruno Haible <bruno@clisp.org>
15155 Remove stat module & update lstat.
15156 * MODULES.html.sh (stat): Remove.
15157 * MODULES.html: Regenerated.
15158 * modules/lstat (Description): Correct function name.
15159 (Files): Add "lstat.h".
15160 (Depends-on): Remove stat, add xalloc, stat-macros.
15161 * modules/stat: Remove this file.
15162 (Include): Add "lstat.h", remove <sys/stat.h>.
15164 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
15166 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
15167 (ranged_convert): Don't save conversion in a temporary struct.
15168 This causes a warning with GCC 4.0.0, and anyway in the typical
15169 case it's not worth the extra 100 bytes or so of code.
15170 (ranged_convert, __mktime_internal): When calling a function via a
15171 pointer P, use P () rather than (*P) (), as we now assume C89 or
15174 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
15176 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
15177 "who -r" failed to give output. Problem reported by Tim Waugh.
15179 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
15180 (xcalloc): Use it to avoid needless tests.
15181 Problem reported by Jim Meyering.
15183 2005-06-20 Derek Price <derek@ximbiot.com>
15185 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
15186 unnecessary for Autoconfs > 2.59c.
15188 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
15190 * lib/argp.h (__option_is_short): Check upper limit of
15191 __key. Isprint() requires its argument to have the value
15192 of an unsigned char or EOF.
15194 2005-06-16 Jim Meyering <jim@meyering.net>
15196 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
15197 when either N or S is zero.
15199 2005-06-16 Derek Price <derek@ximbiot.com>
15201 * m4/bison.m4: Declare YACC & YFLAGS precious.
15203 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
15205 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
15206 multibyte string or pattern, fall back on unibyte matching.
15207 Problem reported by James Youngman.
15209 2005-06-08 Bruno Haible <bruno@clisp.org>
15211 * modules/csharpcomp: New file.
15212 * MODULES.html.sh (C#): Add csharpcomp.
15214 2005-06-08 Bruno Haible <bruno@clisp.org>
15216 * m4/csharpcomp.m4: New file, from GNU gettext.
15218 2005-06-08 Bruno Haible <bruno@clisp.org>
15220 * lib/csharpcomp.h: New file, from GNU gettext.
15221 * lib/csharpcomp.c: New file, from GNU gettext.
15222 * lib/csharpcomp.sh.in: New file, from GNU gettext.
15224 2005-06-08 Bruno Haible <bruno@clisp.org>
15226 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
15229 2005-06-07 Derek Price <derek@ximbiot.com>
15232 * lib/glob_.h: Indent nested #ifdef.
15234 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
15236 Sync from coreutils.
15237 Use "file name" when talking about file names, instead of "filename"
15238 or "path", as per the GNU coding standards.
15239 * lib/mkdir-p.c: Renamed from makepath.c.
15240 (make_dir_parents): Renamed from make_path. All callers changed.
15241 * lib/mkdir-p.h: Likewise. All includers changed.
15242 * lib/filenamecat.c: Renamed from path-concat.c.
15243 (file_name_concat): Renamed from path_concat. All callers changed.
15244 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
15245 * lib/filenamecat.h: Likewise. All includers changed.
15246 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
15247 in comments or local variable names.
15248 * lib/basename.c: Likewise.
15249 * lib/canonicalize.c, canonicalize.h: Likewise.
15250 * lib/dirname.c, dirname.h: Likewise.
15251 * lib/euidaccess.c: Likewise.
15252 * lib/exclude.c: Likewise
15253 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
15254 * lib/fsusage.c, fsuage.h: Likewise.
15255 * lib/fts.c, fts_.h: Likewise.
15256 * lib/getcwd.c: Likewise.
15257 * lib/getloadavg.c: Likewise.
15258 * lib/mkstemp.c: Likewise.
15259 * lib/mountlist.c, mountlist.h: Likewise.
15260 * lib/openat.c, openat.h: Likewise.
15261 * lib/readlink-stub.c: Likewise.
15262 * lib/readutmp.c, readutmp.h: Likewise.
15263 * lib/rename.c: Likewise.
15264 * lib/rmdir.c: Likewise.
15265 * lib/same.c: Likewise.
15266 * lib/savedir.c: Likewise.
15267 * lib/stripslash.c: Likewise.
15268 * lib/tempname.c: Likewise.
15269 * lib/xreadlink.c: Likewise.
15270 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
15272 * lib/exclude.h: Likewise.
15274 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
15275 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
15276 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
15277 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
15278 * lib/pathmax.h: Include <limits.h> unconditionally, since other
15279 files have been getting away with it for years (MORE/BSD 4.3
15281 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
15282 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
15284 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
15285 Define to 256, not 255, as per modern POSIX.
15287 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
15289 Sync from coreutils.
15290 Use "file name" when talking about file names, instead of "filename"
15291 or "path", as per the GNU coding standards.
15292 * MODULES.html.sh: mkdir-p renamed from makepath.
15293 filenamecat renamed from path-concat.
15294 * modules/filenamecat: Renamed from modules/path-concat.
15295 (Files): filenamecat.h and filenamecat.c renamed from
15296 path-concat.h and path-concat.c.
15297 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
15298 (Include): filenamecat.h, not path-concat.h.
15299 * modules/mkdir-p: Renamed from modules/makepath.
15300 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
15302 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
15303 (Include): mkdir-p.h, not makepath.h.
15305 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
15307 Sync from coreutils.
15308 * m4/mkdir-p.m4: Renamed from makepath.m4.
15309 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
15310 Rename files from makepath.c to mkdir-p.c, and from
15311 makepath.h to mkdir-p.h.
15312 * m4/filenamecat.m4: Renamed from path-concat.m4.
15313 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
15314 Rename files from path-concat.c to filenamecat.c,
15315 and from path-concat.h to filenamecat.h.
15316 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
15317 "file name" in local variables or comments.
15318 * m4/rename.m4: Likewise.
15320 2005-06-01 Bruno Haible <bruno@clisp.org>
15322 * modules/csharpexec: New file.
15323 * MODULES.html.sh (C#): New section.
15325 2005-06-01 Bruno Haible <bruno@clisp.org>
15327 * m4/csharp.m4: New file, from GNU gettext.
15328 * m4/csharpexec.m4: New file, from GNU gettext.
15330 2005-06-01 Bruno Haible <bruno@clisp.org>
15332 * lib/csharpexec.h: New file, from GNU gettext.
15333 * lib/csharpexec.c: New file, from GNU gettext.
15334 * lib/csharpexec.sh.in: New file, from GNU gettext.
15336 2005-05-31 Derek Price <derek@ximbiot.com>
15337 Paul Eggert <eggert@cs.ucla.edu>
15340 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
15342 2005-05-31 Derek Price <derek@ximbiot.com>
15343 Paul Eggert <eggert@cs.ucla.edu>
15346 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
15348 2005-05-29 Derek Price <derek@ximbiot.com>
15350 * config/srclist.txt (glob_.h, glob.c): Add these files.
15352 2005-05-29 Derek Price <derek@ximbiot.com>
15354 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
15355 * modules/glob: New file.
15356 * modules/getlogin_r: Add link to POSIX spec in description.
15358 2005-05-29 Derek Price <derek@ximbiot.com>
15359 Paul Eggert <eggert@cs.ucla.edu>
15361 * m4/glob.m4: New file.
15363 2005-05-29 Derek Price <derek@ximbiot.com>
15364 Paul Eggert <eggert@cs.ucla.edu>
15366 * lib/glob_.h, lib/glob.c: New files.
15368 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
15370 * modules/fts (Files): Remove m4/inttypes-pri.m4.
15371 * modules/fts-lgpl (Depends-on): Remove gettext.
15373 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
15375 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
15376 and don't require gt_INTTYPES_PRI.
15378 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
15380 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
15382 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
15383 the configuration hassle isn't worth it.
15384 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
15385 (LONGEST_MODIFIER, PRIuMAX): Remove.
15387 2005-05-27 Bruno Haible <bruno@clisp.org>
15389 * lib/getlogin_r.h: Remove second include of <stddef.h>.
15391 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
15393 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
15394 _POSIX_PTHREAD_SEMANTICS for Solaris.
15396 2005-05-25 Derek Price <derek@ximbiot.com>
15398 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
15400 2005-05-25 Derek Price <derek@ximbiot.com>
15401 Paul Eggert <eggert@cs.ucla.edu>
15403 * modules/getlogin_r, m4/getlogin_r.m4: New files.
15404 * lib/getlogin_r.c, getlogin_r.h: New files.
15406 2005-05-25 Bruno Haible <bruno@clisp.org>
15407 Derek Price <derek@ximbiot.com>
15409 * lib/getlogin_r.h: Simplify API documentation.
15411 2005-05-23 Derek Price <derek@ximbiot.com>
15413 * modules/minmax (Files): Add m4/minmax.m4.
15414 (configure.ac): Add gl_MINMAX.
15416 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
15418 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
15419 so that unistd-safer.h (GPL'ed code) need not be included.
15421 2005-05-22 Bruno Haible <bruno@clisp.org>
15423 * m4/minmax.m4: New file.
15424 Based on a patch by Derek Price <derek@ximbiot.com>.
15426 2005-05-22 Bruno Haible <bruno@clisp.org>
15428 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
15429 (INT64_MIN): Fix definition.
15430 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
15432 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
15433 NEED_SIGNED_INT_TYPES.
15435 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
15436 HAVE_SYSTEM_INTTYPES.
15438 2005-05-22 Bruno Haible <bruno@clisp.org>
15440 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
15441 Also include <sys/param.h> if it defines MIN, MAX.
15442 Based on a patch by Derek Price <derek@ximbiot.com>.
15444 2005-05-21 Jim Meyering <jim@meyering.net>
15446 * modules/fts (Files): Add m4/inttypes-pri.m4.
15447 (Depends-on): Add lstat and remove gettext. Alphabetize.
15449 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
15452 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
15453 (setup_dir, free_dir): New functions.
15454 (enter_dir, leave_dir): Define trivial
15455 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
15456 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
15457 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
15458 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
15459 Move to fts-cycle.c.
15460 (fts_open): Use setup_dir.
15461 (fts_close): Use free_dir.
15462 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
15463 This adds a label and some gotos, but the alternatives were messier.
15464 Check for memory allocation failure when entering a dir.
15465 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
15466 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
15467 (FTS): New member fts_cycle, that is a union that contains the
15468 old active_dir_ht and cycle_state. All uses changed to mention
15469 fts_cycle.ht and fts_cycle.state.
15470 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
15471 fts.c, with the following changes:
15472 (setup_dir, free_dir): New functions.
15473 (enter_dir): Now returns bool. Return true if successful, false
15474 if memory exhausted. All callers changed.
15475 Do not bother partly cleaning up on
15476 memory allocation failure; that is free_dir's job.
15477 However, free ad if hash_insert fails, to avoid memory leak.
15478 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
15479 fts->fts_options to see which union member to use.
15481 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
15483 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
15484 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
15486 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
15488 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
15490 2005-05-20 Jim Meyering <jim@meyering.net>
15492 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
15493 Now a macro, to pacify GCC.
15495 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
15497 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
15500 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
15502 * lib/chown.c (rpl_chown): Return -1 on failure.
15504 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
15506 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
15507 Don't check for stddef.h.
15508 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
15509 don't use its results.
15510 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
15511 since we include them unconditionally. Don't require
15512 AM_STDBOOL_H, since stdbool is a prerequisite.
15513 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
15514 since we assume C89 or better.
15515 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
15516 as we don't use their results.
15517 Don't check for fchdir, memmove, memset, strrchr, as we use
15518 them unconditionally.
15519 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
15520 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
15522 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
15524 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
15525 Include <stddef.h> unconditionally, since we assume C89 now.
15526 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
15527 * lib/fts.c: Include fts_.h first, to check interface.
15528 Do not include intprops.h; no longer needed.
15529 Include cycle-check.h and hash.h, since fts_.h no longer does.
15530 Remove unnecessary casts of closedir to void.
15531 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
15532 decide whether to decrement nlinks.
15533 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
15534 (FTS): Use struct hash_table * instead of Hash_table, so that
15535 we no longer need to include hash.h here.
15537 2005-05-18 Jim Meyering <jim@meyering.net>
15539 * modules/dirfd (License): Change to LGPL. Most of the code
15540 is already in the public domain.
15542 2005-05-18 Jim Meyering <jim@meyering.net>
15544 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
15545 Reported by Yoann Vandoorselaere.
15547 2005-05-17 Jim Meyering <jim@meyering.net>
15549 * m4/fts.m4: New file, from coreutils.
15551 2005-05-17 Jim Meyering <jim@meyering.net>
15553 * lib/fts.c, lib/fts_.h: New files, from coreutils.
15555 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
15557 Sync from coreutils.
15558 * m4/unlinkdir.m4: New file.
15560 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
15562 Sync from coreutils.
15563 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
15564 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
15565 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
15566 White space changes only.
15567 * lib/makepath.c (make_path): Port to hosts where leading "//" is
15569 * lib/yesno.c: Include getline.h, not ctype.h.
15570 (yesno): Don't remove leading white space; POSIX doesn't allow it.
15571 Use getline to remove arbitrary restriction on response length.
15573 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
15575 * config/srclist-update: Spell out "Street" in FSF postal
15576 mail address; this is the style the FSF seems to prefer.
15578 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
15579 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
15580 this updates FSF postal mail address.
15582 Sync from coreutils.
15583 * modules/unlinkdir: New file.
15584 * modules/yesno (Depends-on): Add getline.
15585 * MODULES.html.sh (File system functions): Add unlinkdir.
15587 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
15589 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
15591 Change the initial comment to refer to GPL, not LGPL.
15592 gnulib-tool will change it to LGPL as needed.
15594 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
15595 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
15596 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
15597 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
15598 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
15599 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
15600 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
15601 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
15602 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
15603 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
15604 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
15605 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
15606 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
15607 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
15608 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
15609 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
15610 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
15611 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
15612 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
15613 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
15614 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
15615 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
15616 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
15617 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
15618 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
15619 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
15620 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
15621 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
15622 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
15623 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
15624 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
15625 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
15626 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
15627 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
15628 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
15629 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
15630 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
15631 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
15632 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
15633 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
15634 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
15635 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
15636 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
15637 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
15638 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
15639 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
15640 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
15641 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
15642 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
15643 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
15644 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
15645 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
15646 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
15647 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
15648 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
15649 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
15650 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
15651 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
15652 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
15653 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
15654 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
15655 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
15656 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
15657 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
15658 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
15659 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
15660 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
15661 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
15662 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
15663 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
15664 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
15665 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
15666 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
15667 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
15668 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
15669 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
15670 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
15671 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
15672 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
15673 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
15674 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
15675 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
15676 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
15677 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
15678 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
15679 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
15680 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
15681 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
15682 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
15683 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
15684 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
15685 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
15686 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
15687 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
15688 lib/yesno.c, lib/yesno.h:
15689 Update FSF postal mail address.
15691 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
15693 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
15694 tests/test-memmem.c, tests/test-stpncpy.c:
15695 Update FSF postal mail address.
15697 2005-05-13 Bruno Haible <bruno@clisp.org>
15699 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
15700 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
15701 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
15702 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
15703 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
15704 Add support for 64-bit integers in the MSVC compiler.
15706 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
15708 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
15710 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
15712 * gnulib-tool (func_import): Sort and uniquify recommended includes.
15714 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
15716 * doc/getdate.texi (General date syntax): Don't say that date
15717 date --iso-8601=ns generates acceptable dates; it doesn't yet.
15718 Problem reported by Nic Ferrier.
15720 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15722 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
15723 specified in ai_socktype. Fix invalid ai_protocol
15724 check. ai_protocol is usually set to 0 or depending on
15725 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
15726 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
15727 ai_socktype / ai_protocol in the returned addrinfo structure.
15729 2005-05-10 Simon Josefsson <jas@extundo.com>
15731 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
15732 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
15734 2005-05-10 Karl Berry <karl@gnu.org>
15736 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
15737 (from http://www.gnu.org/licenses).
15738 * doc/COPYING.LIB: also rename to COPYING.LESSER.
15739 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
15742 2005-05-10 Karl Berry <karl@gnu.org>
15744 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
15745 (COPYING.DOC): remove.
15747 * config/srclist-update: new FSF address.
15749 2005-05-10 Derek Price <derek@ximbiot.com>
15751 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
15754 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15755 Bruno Haible <bruno@clisp.org>
15757 * modules/inet_ntop: New file.
15758 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15761 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15762 Bruno Haible <bruno@clisp.org>
15764 * m4/inet_ntop.m4: New file.
15766 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15767 Bruno Haible <bruno@clisp.org>
15769 * lib/inet_ntop.h: New file.
15770 * lib/inet_ntop.c: New file, from glibc with modifications.
15772 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
15774 * modules/time_r (License): Change to LGPL.
15775 * modules/extensions (License): Change to LGPL. Actually,
15776 the license is more permissive than that, but currently gnulib-tool
15777 doesn't know how to handle more-permissive licenses.
15779 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
15780 Problem reported by Dave Love.
15782 2005-05-08 Jim Meyering <jim@meyering.net>
15784 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
15787 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
15789 * modules/argmatch (Depends-on): Add stdbool.
15790 * modules/backupfile (Depends-on): Likewise.
15791 * modules/chdir-long (Depends-on): Likewise.
15792 * modules/closeout (Depends-on): Likewise.
15793 * modules/cycle-check (Depends-on): Likewise.
15794 * modules/dirname (Depends-on): Likewise.
15795 * modules/fnmatch (Depends-on): Likewise.
15796 * modules/fsusage (Depends-on): Likewise.
15797 * modules/fwriteerror (Depends-on): Likewise.
15798 * modules/getcwd (Depends-on): Likewise.
15799 * modules/getloadavg (Depends-on): Likewise.
15800 * modules/hard-locale (Depends-on): Likewise.
15801 * modules/makepath (Depends-on): Likewise.
15802 * modules/mountlist (Depends-on): Likewise.
15803 * modules/nanosleep (Depends-on): Likewise.
15804 * modules/posixtm (Depends-on): Likewise.
15805 * modules/quotearg (Depends-on): Likewise.
15806 * modules/readtokens (Depends-on): Likewise.
15807 * modules/readtokens0 (Depends-on): Likewise.
15808 * modules/readutmp (Depends-on): Likewise.
15809 * modules/save-cwd (Depends-on): Likewise.
15810 * modules/strftime (Depends-on): Likewise.
15811 * modules/userspec (Depends-on): Likewise.
15812 * modules/utimecmp (Depends-on): Likewise.
15813 * modules/xgetcwd (Depends-on): Likewise.
15814 * modules/xnanosleep (Depends-on): Likewise.
15815 * modules/xstrtod (Depends-on): Likewise.
15816 * modules/yesno (Depends-on): Likewise.
15818 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
15820 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
15823 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
15825 Merge from coreutils. Among other things,
15826 add bulletproofing for cases where stdin, stdout, or stderr are closed.
15827 * lib/fd-safer.c: New file.
15828 * lib/fcntl-safer.h, open-safer.c: Remove.
15829 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
15830 * lib/dup-safer.c: Include unistd-safer.h first.
15831 Don't include errno.h.
15832 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
15833 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
15834 * lib/file-type.c: Rely on file-type.h change.
15835 * lib/getloadavg.c: Include unistd-safer.h.
15836 (getloadavg): Use safer open.
15837 * lib/getusershell.c: Include "stdio-safer.h".
15838 (getusershell): Use safer fopen.
15839 * lib/long-options.c (long_options): Use NULL rather than 0.
15840 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
15842 * lib/modechange.c: Likewise.
15843 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
15844 (MODE_DONE): New constant.
15845 (struct mode_change): Remove 'next' member.
15846 (make_node_op_equals): New function; like the old one of the
15847 same name, except it allocates an array.
15848 (mode_compile, mode_create_from_ref): Use it.
15849 (mode_compile): Allocate result as an array, not a linked list.
15850 Parse octal string ourself, so that we catch mistakes like "+0".
15851 (mode_adjust): Arg is an array, not a linked list.
15852 * lib/modechange.c: Include stat-macros.h, xalloc.h.
15853 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
15854 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
15855 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
15856 Remove. This is now stat-macros.h's job.
15857 (talloc): Remove. All callers replaced by xalloc, so that
15858 our invokers don't have to worry about reporting memory failures.
15859 (make_node_op_equals): Remove.
15860 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
15862 (struct mode_change): Moved here from modechange.h.
15863 (mode_append_entry): Remove.
15864 (mode_compile): Remove MASKED_OPS arg, since it encouraged
15865 apps to have incorrect behavior. Use simpler algorithm for head
15866 and tail. Don't futz with umask; that's now the job of mode_adjust.
15867 Detect more invalid usages rather than having somewhat-random behavior.
15868 Don't insert an "a=" action, as that leads to incorrect behavior.
15869 (mode_compile, mode_create_from_ref): Return NULL on error instead
15870 of an enum, since now there's only one way to have an error. All
15872 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
15873 at the correct time. Simplify calculation of "+u" and its ilk.
15874 Don't mishandle "+X".
15875 (mode_free): Remove "register" and localize decls.
15876 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
15877 (struct mode_change): Move to modechange.c; callers don't
15878 need to see this stuff.
15879 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
15880 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
15881 (mode_change, mode_adjust): Reflect the new signatures noted above.
15882 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
15883 that might redefine system include files.
15884 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
15885 (my_usleep): Use NULL rather than (void *) 0.
15886 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
15887 Use siginterrupt to specify that system calls should be interrupted.
15888 (rpl_nanosleep): Move initialization of suspended closer to call of
15890 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
15891 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
15892 (desirable_utmp_entry): New function.
15893 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
15894 using x2nrealloc, to simplify logic.
15895 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
15896 size calculation. Do not assume utmp file is a regular file.
15897 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
15898 (READ_UTMP_CHECK_PIDS): New constant.
15899 * lib/save-cwd.c: Include unistd-safer.h.
15900 (save_cwd): Use fd_safer.
15901 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
15902 [!_LIBC] Include "stat-macros.h" instead.
15903 * lib/unistd-safer.h (fd_safer): New decl.
15905 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
15907 * modules/getloadavg (Depends-on): Add unistd-safer.
15908 * modules/getusershell (Depends-on): Add stdio-safer.
15909 * modules/lstat (Depends-on): Remove xalloc.
15910 * modules/mkstemp (Depends-on): Add stat-macros.
15911 * modules/modechange (Depends-on): Remove xstrtol.
15912 Add stat-macros, xalloc.
15913 * modules/save-cwd (Depends-on): Add unistd-safer.
15914 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
15915 * modules/unistd-safer (Files): Add lib/fd-safer.c
15916 (Makefile.am): Remove lib_SOURCES.
15918 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
15919 Remove fcntl-safer; unistd-safer supersedes it.
15921 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
15923 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
15925 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
15926 (gl_PREREQ_CHOWN): Remove.
15927 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
15928 it. Don't require AC_HEADER_STAT.
15929 (gl_PREREQ_LSTAT): Remove.
15930 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
15931 Don't require AC_HEADER_STAT.
15932 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
15933 (gl_PREREQ_RMDIR): Remove.
15934 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
15935 mention stat-macros.h or AC_HEADER_STAT, since we'll make
15936 the stat-macros module a prerequisite.
15937 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
15938 * m4/filemode.m4 (gl_FILEMODE): Likewise.
15939 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
15940 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
15941 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
15943 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
15944 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
15946 * m4/fcntl-safer.m4: Remove.
15947 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
15948 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
15949 Invoke gl_PREREQ_FD_SAFER.
15950 (gl_PREREQ_FD_SAFER): New macro.
15951 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
15952 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
15953 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
15954 Remove duplicate call to AC_LIBOBJ(readutmp).
15955 (gl_PREREQ_READUTMP): Remove. All uses inlined.
15957 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
15958 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
15960 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
15962 * MODULES.html.sh (Misc): Add byteswap.
15964 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
15966 * modules/getcwd (Depends-on): Add extensions.
15967 * modules/openat (Depends-on): Likewise.
15969 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
15971 * modules/byteswap: New file.
15973 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
15975 * m4/byteswap.m4: New file.
15977 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
15979 * lib/byteswap_.h: New file.
15981 2005-04-25 Karl Berry <karl@gnu.org>
15983 * m4/gettext.m4: Update from GNU gettext 0.14.4.
15985 2005-04-25 Albert Chin <china@thewrittenword.com>
15987 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
15990 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
15992 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
15993 (func_ln_if_changed) Remove forcibly for no error message
15994 in case file does not exist.
15996 2005-04-19 Simon Josefsson <jas@extundo.com>
15998 * gnulib-tool (Options): Make --symlink mean --symbolic.
16000 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
16002 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
16004 2005-04-16 Simon Josefsson <jas@extundo.com>
16006 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
16008 2005-04-15 Simon Josefsson <jas@extundo.com>
16010 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
16012 2005-04-15 Simon Josefsson <jas@extundo.com>
16014 * gnulib-tool: Rename --symlink to --symbolic.
16016 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
16018 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
16019 symbolic links to files instead of copying/moving. Add --aux-dir,
16020 specifying directory relative --dir where auxiliary build tools
16023 2005-04-14 Bruno Haible <bruno@clisp.org>
16025 * modules/allocsa (License): Change to LGPL.
16026 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
16028 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
16030 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
16031 that "UTC +1 second" continues to work. Problem reported
16032 by Dmitry V. Levin.
16033 (relunit_snumber): New rule.
16036 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
16038 * lib/getdate.y (universal_time_zone_table): New constant.
16039 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
16040 universal_time_zone_table.
16041 (lookup_zone): Prefer universal_time_zone_table to
16042 local_time_zone_table, so that "GMT" time stamps are allowed in
16043 London during the summer. Problem reported by Ian Abbott.
16045 2005-04-12 Jim Meyering <jim@meyering.net>
16047 * lib/human.c (humblock): Set *options even when returning due to
16048 xstrtoumax conversion failure. Thanks to a used-uninitialized
16049 warning from gcc-4.
16051 2005-04-09 Jim Meyering <jim@meyering.net>
16053 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
16054 -Wuninitialized: initialize tm0.tm_year.
16056 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
16058 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
16059 count, since there's no maximum. All uses changed.
16060 Add member dsts_seen.
16061 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
16063 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
16064 Use pc_rels_seen to decide whther a date is absolute.
16066 * lib/getdate.y (number): Don't overwrite year.
16067 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
16070 2005-04-02 Simon Josefsson <jas@extundo.com>
16072 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
16073 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
16075 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
16077 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
16078 where no absolute path name can be longer than PATH_MAX.
16080 2005-03-27 Jim Meyering <jim@meyering.net>
16082 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
16084 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
16086 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
16087 "one's complement" -> "ones' complement" in comment, as per Knuth.
16088 "value of type" -> "type or expression" in comment.
16089 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
16091 2005-03-26 Jim Meyering <jim@meyering.net>
16094 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
16095 Correct typos: s/or/of/.
16097 2005-03-26 Jim Meyering <jim@meyering.net>
16099 * modules/check-include-files: Move to ../ and rename to...
16100 * check-module: ...this.
16102 2005-03-25 Jim Meyering <jim@meyering.net>
16104 * modules/xvasprintf (Files): Add xalloc.h.
16106 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
16108 * modules/gettext (Files): config/config.rpath ->
16109 build-aux/config.rpath
16110 * modules/iconv (Files): Likewise.
16111 Problem reported by Oskar Liljeblad.
16113 2005-03-23 Jim Meyering <jim@meyering.net>
16115 * modules/check-include-files: New script to check for
16116 missing dependencies, multiple includes, etc.
16118 * modules/c-strtold (Depends-on): Add xalloc.
16119 * modules/c-strtod (Depends-on): Add xalloc.
16120 * modules/hash (Depends-on): Add xalloc.
16121 (Files): Remove lib/xalloc.h.
16123 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
16124 * modules/userspec (Files): Add lib/inttostr.h.
16126 2005-03-23 Jim Meyering <jim@meyering.net>
16128 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
16130 2005-03-22 Jim Meyering <jim@meyering.net>
16132 * modules/stat-macros: New module.
16133 * modules/canonicalize, modules/euidaccess, modules/file-type,
16134 * modules/filemode, modules/lchown, modules/makepath,
16135 * modules/rmdir, modules/stat: Depend on new stat-macros module
16136 rather than listing lib/stat-macros.h manually.
16137 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
16139 2005-03-22 Jim Meyering <jim@meyering.net>
16141 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
16143 2005-03-22 Bruno Haible <bruno@clisp.org>
16145 * config/srclist.txt: Replace target directory 'config' with
16147 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
16148 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
16151 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
16153 * modules/chdir-long (Depends-on): Add mempcpy.
16155 * modules/acl, modules/backupfile, modules/c-strtod,
16156 modules/c-strtold, modules/canon-host, modules/canonicalize,
16157 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
16158 modules/exclude, modules/exitfail, modules/file-type,
16159 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
16160 modules/getdate, modules/getline, modules/getpagesize,
16161 modules/getpass, modules/getugroups, modules/group-member,
16162 modules/hard-locale, modules/hash, modules/human, modules/idcache,
16163 modules/inttostr, modules/long-options, modules/makepath,
16164 modules/md5, modules/memcasecmp, modules/memcoll,
16165 modules/modechange, modules/mountlist, modules/path-concat,
16166 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
16167 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
16168 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
16169 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
16170 modules/strftime, modules/strndup, modules/strverscmp,
16171 modules/timespec, modules/unlocked-io, modules/userspec,
16172 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
16174 Remove lib_SOURCES line from Makefile.am section, as this is now
16175 done automatically by the corresponding Autoconf macro.
16177 2005-03-21 Jim Meyering <jim@meyering.net>
16179 Changes imported from coreutils.
16181 * lib/cycle-check.c: Don't include xalloc.h.
16183 * lib/path-concat.c: Don't include assert.h.
16184 (path_concat): Remove assertion that would have triggered
16185 for ABASE starting with more than one slash.
16186 Reported by Andreas Schwab.
16188 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
16189 properly when ABASE is an absolute file name.
16190 Correct the description of this function.
16191 Include <assert.h>.
16192 Add an assertion and a test driver.
16193 This fixes a bug introduced on 2004-07-02.
16194 Andreas Schwab reported the resulting failure of cp --parents:
16195 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
16197 2005-03-21 Jim Meyering <jim@meyering.net>
16199 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
16200 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
16202 2005-03-21 Jim Meyering <jim@meyering.net>
16203 and Paul Eggert <eggert@cs.ucla.edu>
16205 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
16206 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
16207 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
16208 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
16209 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
16210 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
16211 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
16212 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
16213 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
16214 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
16215 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
16216 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
16217 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
16218 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
16219 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
16220 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
16221 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
16224 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
16226 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
16227 (which shouldn't happen), generate nothing instead of returning 0
16228 immediately, so that nstrftime (NULL, ...) doesn't return 0.
16230 2005-03-16 Bruno Haible <bruno@clisp.org>
16232 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
16233 HAVE_LONGLONG_64BIT.
16235 2005-03-16 Bruno Haible <bruno@clisp.org>
16237 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
16238 HAVE_LONGLONG_64BIT.
16240 2005-03-16 Bruno Haible <bruno@clisp.org>
16242 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
16243 HAVE_LONGLONG_64BIT.
16245 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
16247 * lib/strftime.c (my_strftime): Prepend space to format so that we can
16248 reliably distinguish strftime failure from empty output on POSIX
16251 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
16253 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
16254 (iconv_string): Don't guess a size-zero buffer, as that might cause
16255 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
16256 result would be 'too large', where 'too large' is (heuristically)
16257 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
16258 overflow concerns. This will prevent some unwanted malloc failures
16259 when the inputs are very large.
16261 2005-03-15 Karl Berry <karl@gnu.org>
16263 * config/srclist.txt (config.rpath): from gettext.
16264 * config/config.rpath: update.
16266 2005-03-15 Bruno Haible <bruno@clisp.org>
16268 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
16271 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
16274 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
16277 2005-03-14 Simon Josefsson <jas@extundo.com>
16279 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
16282 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
16284 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
16285 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
16287 * lib/strtol.c: Likewise.
16289 2005-03-14 Jim Meyering <jim@meyering.net>
16291 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
16292 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
16293 to be nonzero so that we (and caller) can detect the difference
16294 between a valid zero-length expansion and an error return, even
16295 when the underlying strftime fails before writing anything into
16298 2005-03-14 Bruno Haible <bruno@clisp.org>
16300 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
16301 Update from GNU gettext 0.14.3.
16303 2005-03-10 Jim Meyering <jim@meyering.net>
16305 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
16307 2005-03-10 Jim Meyering <jim@meyering.net>
16309 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
16310 so that this module works on systems without fchdir.
16312 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
16314 Factor int-properties macros into a single file, except for
16315 glibc-related files.
16316 * lib/intprops.h: New file.
16317 * lib/getloadavg.c: Include it instead of limits.h.
16318 (INT_STRLEN_BOUND): Remove.
16319 * lib/human.c: Include intprops.h.
16320 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
16321 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
16323 * lib/inttostr.h: Include intprops.h instead of limits.h.
16324 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
16325 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
16326 for consistency with intprops.h.
16327 (time_t_is_integer, twos_complement_arithmetic): Use them.
16328 * lib/sig2str.h: Include <signal.h>, intprops.h.
16329 (INT_STRLEN_BOUND): Remove.
16330 * lib/strftime.c (TYPE_SIGNED): Remove.
16331 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
16332 * lib/strtol.c: Adjust comments to match intprops.h.
16333 * lib/userspec.c: Include intprops.h.
16334 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
16335 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
16336 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
16337 instead of rolling our own expressions.
16338 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
16340 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
16342 (my_strftime): Do not mishandle years close to INT_MAX, by doing
16343 the right thing even if adding 1900 would overflow. Similarly
16344 for tm_mon + 1 and tm_yday + 1.
16345 Make %Y always equivalent to %C%y, and similarly for %G and %g.
16346 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
16347 (DO_SIGNED_NUMBER): New macro.
16348 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
16350 2005-03-07 Bruno Haible <bruno@clisp.org>
16352 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
16354 2005-03-07 Bruno Haible <bruno@clisp.org>
16356 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
16358 2005-03-04 Derek R. Price <derek@ximbiot.com>
16360 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
16361 (func_import): Only replace files via --import when they have actually
16364 2005-03-03 Derek R. Price <derek@ximbiot.com>
16366 * m4/mmap-anon.m4: New file.
16367 * m4/pagealign_alloc.m4: New file.
16369 2005-03-03 Derek R. Price <derek@ximbiot.com>
16370 Bruno Haible <bruno@clisp.org>
16372 * modules/pagealign_alloc: New file.
16373 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
16375 2005-03-03 Derek R. Price <derek@ximbiot.com>
16376 Bruno Haible <bruno@clisp.org>
16378 * lib/pagealign_alloc.h: New file.
16379 * lib/pagealign_alloc.c: New file.
16381 2005-03-03 Bruno Haible <bruno@clisp.org>
16383 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
16384 Use an all-permissive copyright notice, recommended by RMS.
16386 2005-03-02 Bruno Haible <bruno@clisp.org>
16388 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
16389 of AIX, the replacement has to be done only after <string.h> is
16390 included, therefore not in config.h. stpncpy.h does the replacement,
16391 and stpncpy.c uses it.
16393 2005-03-02 Bruno Haible <bruno@clisp.org>
16395 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
16398 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
16400 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
16401 The workaround isn't strictly needed for POSIX conformance, and
16402 it's too much of a pain to configure and maintain. We'll ask
16403 people to fix their kernels instead.
16404 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
16405 (NANOSLEEP_BUG_WORKAROUND): Remove.
16406 (xnanosleep): Remove the workaround.
16408 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
16410 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
16411 Reported by Derek Price.
16412 (Include): Add "timespec.h".
16414 * modules/xnanosleep (Depends-on): Remove gethrxtime.
16416 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
16418 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
16419 to detect nanosleep bug.
16421 2005-03-01 Bruno Haible <bruno@clisp.org>
16423 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
16425 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
16427 * modules/gethrxtime: New file.
16428 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
16429 (Depends-on): Add gethrxtime.
16430 (configure.ac): Add gl_XNANOSLEEP.
16431 (Makefile.am): Remove lib_SOURCES line.
16433 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
16435 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
16436 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
16438 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
16440 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
16441 * lib/timespec.h (gettime): Return void, since it always
16442 succeeds now. All uses changed.
16443 * lib/gettime.c (gettime) Likewise.
16444 [HAVE_NANOTIME]: Prefer nanotime.
16445 Assume gettimeofday succeeds, as POSIX requires.
16446 Assime time () succeeds, since other code already does.
16447 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
16448 (timespec_subtract): Remove.
16449 (NANOSLEEP_BUG_WORKAROUND): New constant.
16450 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
16451 things considerably. Use it only on GNU/Linux hosts, since the
16452 workaround shouldn't be needed elsewhere.
16454 2005-02-24 Bruno Haible <bruno@clisp.org>
16456 * modules/gettext (Files): Add m4/glibc2.m4.
16458 2005-02-24 Bruno Haible <bruno@clisp.org>
16460 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
16461 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
16463 Update from GNU gettext 0.14.2.
16464 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
16466 2005-02-24 Bruno Haible <bruno@clisp.org>
16468 * lib/localcharset.c: Update from GNU gettext 0.14.2.
16469 * lib/config.charset: Update from GNU gettext 0.14.2.
16471 2005-02-24 Bruno Haible <bruno@clisp.org>
16473 * lib/gettext.h: Update from GNU gettext 0.14.2.
16475 2005-02-23 Simon Josefsson <jas@extundo.com>
16477 * m4/iconvme.m4: New file.
16479 2005-02-23 Jim Meyering <jim@meyering.net>
16481 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
16483 Thanks to Bruno Haible for catching it.
16485 2005-02-22 Simon Josefsson <jas@extundo.com>
16487 * modules/iconvme: New file.
16489 * MODULES.html.sh: Add iconvme.
16491 2005-02-22 Simon Josefsson <jas@extundo.com>
16493 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
16495 2005-02-22 Simon Josefsson <jas@extundo.com>
16497 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
16499 2005-02-22 Jim Meyering <jim@meyering.net>
16501 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
16504 2005-02-20 Neil Conway <neilc@samurai.com>
16506 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
16507 returned by OSX/Darwin if the specified buffer is not large
16508 enough for the hostname.
16510 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
16512 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
16513 pass it to _help, otherwise the latter coredumps trying to
16514 dereference state.root_argp.
16516 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
16518 * modules/chdir-long (Depends-on): Add memrchr.
16519 * modules/memrchr (Files): Add lib/memrchr.h.
16520 (Include): "memrchr.h".
16522 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
16524 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
16526 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
16528 * lib/memrchr.h: New file.
16529 * lib/chdir-long.c: Include it.
16530 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
16531 Don't bother including stddef.h.
16533 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
16535 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
16537 Include <sys/types.h>, for dev_t.
16538 (ME_DUMMY, ME_REMOTE): Move from here....
16539 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
16540 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
16542 Include mountlist.h first, to test the interface.
16544 2005-01-29 Bruno Haible <bruno@clisp.org>
16546 * lib/progname.c (program_name): Initialize.
16547 Needed when linking statically on MacOS X.
16549 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
16551 Sync from coreutils.
16552 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
16553 (Depends-on): Add c-strtod.
16554 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
16556 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
16558 Sync from coreutils.
16559 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
16561 Remove files that are specific to coreutils.
16562 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
16564 2005-01-28 Bruno Haible <bruno@clisp.org>
16566 * modules/javacomp: New file.
16567 * MODULES.html.sh (Java): Add javacomp.
16569 2005-01-28 Bruno Haible <bruno@clisp.org>
16571 * m4/javacomp.m4: New file, from GNU gettext.
16573 2005-01-28 Bruno Haible <bruno@clisp.org>
16575 * lib/javacomp.sh.in: New file, from GNU gettext.
16576 * lib/javacomp.h: New file, from GNU gettext.
16577 * lib/javacomp.c: New file, from GNU gettext.
16579 2005-01-26 Simon Josefsson <jas@extundo.com>
16581 * lib/gai_strerror.c: Use GPL in header.
16583 2005-01-26 Bruno Haible <bruno@clisp.org>
16585 * modules/javaexec: New file.
16586 * MODULES.html.sh (Java): Add javaexec.
16588 2005-01-26 Bruno Haible <bruno@clisp.org>
16590 * m4/javaexec.m4: New file, from GNU gettext.
16592 2005-01-26 Bruno Haible <bruno@clisp.org>
16594 * lib/javaexec.sh.in: New file, from GNU gettext.
16595 * lib/javaexec.h: New file, from GNU gettext.
16596 * lib/javaexec.c: New file, from GNU gettext.
16598 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
16600 * modules/lchown (Depends-on): Remove lchown.h
16602 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
16604 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
16605 must be defined if the header file was not found, in order
16606 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
16608 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
16610 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
16611 initializers for struct pentry_state.
16612 (__argp_error): Check return value of __asprintf
16613 (__argp_failure): Translate error message
16615 * lib/argp-parse.c: Removed braces around the expansion of N_()
16617 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
16619 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
16620 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
16621 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
16622 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
16623 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
16624 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
16625 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
16626 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
16627 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
16628 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
16629 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
16630 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
16631 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
16632 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
16633 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
16634 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
16635 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
16636 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
16637 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
16638 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
16639 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
16640 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
16641 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
16642 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
16643 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
16644 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
16645 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
16646 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
16647 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
16648 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
16649 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
16650 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
16651 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
16652 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
16653 xstrtol.m4, xstrtoumax.m4, yesno.m4:
16654 Use an all-permissive copyright notice, recommended by RMS.
16656 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
16658 * modules/chdir-long (Depends-on): Remove mempcpy.
16660 2005-01-21 Jim Meyering <jim@meyering.net>
16662 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
16663 same value as for Solaris 9.
16665 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
16666 component length. This included changing the parameter to be
16667 of type `char *' rather than `char const *'.
16668 * lib/chdir-long.h (chdir_long): Update prototype.
16670 * lib/openat.c (fdopendir, fstatat): New functions.
16671 * lib/openat.h: Include headers required for use of DIR and struct
16673 [AT_SYMLINK_NOFOLLOW]: Define.
16674 (fdopendir, fstatat): Add prototypes.
16676 2005-01-21 Bruno Haible <bruno@clisp.org>
16678 * modules/classpath: New file.
16679 * MODULES.html.sh (Java): Add classpath.
16681 2005-01-21 Bruno Haible <bruno@clisp.org>
16683 * lib/classpath.h: New file, from GNU gettext.
16684 * lib/classpath.c: New file, from GNU gettext.
16686 2005-01-20 Simon Josefsson <jas@extundo.com>
16688 * modules/version-etc-fsf: New file.
16690 2005-01-20 Simon Josefsson <jas@extundo.com>
16692 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
16693 * lib/version-etc.c: Remove version_etc_copyright.
16694 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
16695 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
16697 2005-01-20 Simon Josefsson <jas@extundo.com>
16699 * lib/base64.h (isbase64): Add.
16701 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
16702 using a unsigned prototype, don't inline.
16703 (base64_decode): Use it.
16705 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
16707 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
16710 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
16712 * lib/save-cwd.c (save_cwd): Remove code to support the case
16713 where fchdir is missing or flaky.
16715 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
16717 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
16719 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
16721 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
16722 AC_LIBSOURCES now does this.
16723 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
16724 with new ullong_max module.
16726 2005-01-19 Bruno Haible <bruno@clisp.org>
16728 * modules/sh-quote: New file.
16729 * MODULES.html.sh (Executing programs): Add sh-quote.
16731 2005-01-19 Bruno Haible <bruno@clisp.org>
16733 * lib/sh-quote.h: New file, from GNU gettext.
16734 * lib/sh-quote.c: New file, from GNU gettext.
16736 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
16738 Merge from coreutils.
16739 * m4/ullong_max.m4: New file.
16740 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
16741 (gl_MACROS): Assume localeconv exists.
16743 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
16745 Merge changes from coreutils, as described below in several
16746 changelogs dated today.
16748 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
16749 (O_DIRECTORY): Remove; not needed here, since "." must be
16750 a directory. All uses removed.
16751 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
16752 universal on Suns, and we also need to test for IRIX.
16753 Revamp code to use 'if' rather than '#if'.
16754 Avoid unnecessary comparison of cwd->desc to 0.
16756 * lib/utimens.c (futimens): Robustify the previous patch, by checking
16757 for known valid error numbers rather than observed invalid ones.
16759 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
16761 * modules/ullong_max: New file.
16763 * modules/chdir-long, modules/openat: New files.
16764 * modules/save-cwd (Depends-on): Depend on chdir-long.
16765 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
16767 2005-01-18 Jim Meyering <jim@meyering.net>
16769 Merge from coreutils.
16770 * m4/chdir-long.m4, m4/openat.m4: New files.
16771 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
16772 save-cwd.h. Add AC_LIBOBJ for save-cwd.
16773 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
16774 is sane and DOES follow symlinks. Besides, testing 20 different
16775 systems found no broken chown implementations.
16776 Prompted by a change in rsync's copy of this macro.
16777 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
16779 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
16781 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
16782 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
16783 NULL-means-set-to-current-time semantics.
16784 Remove temporary file immediately, rather than waiting
16785 for configure's at-exit trap code to do it.
16787 2005-01-18 Jim Meyering <jim@meyering.net>
16789 * lib/version-etc.c (version_etc_copyright): Update copyright date.
16791 * lib/utimens.c (futimens): Account for the fact that futimes
16792 can also fail with errno == ENOSYS or errno == ENOENT.
16793 Patch from Dmitry V. Levin.
16795 Change the name of the robust chdir function from chdir to chdir_long.
16796 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
16797 (restore_cwd): Use chdir_long, not chdir.
16798 * lib/chdir-long.c: Renamed from chdir.c.
16799 * lib/chdir-long.h: Renamed from chdir.h.
16800 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
16803 2005-01-18 Bruno Haible <bruno@clisp.org>
16805 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
16806 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
16807 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
16808 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
16809 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
16810 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
16811 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
16812 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
16813 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
16814 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
16815 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
16816 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
16817 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
16818 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
16819 Use an all-permissive copyright notice, recommended by RMS.
16821 2005-01-18 Bob Proulx <bob@proulx.com>
16823 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
16824 simplify offsetof() macro construct to avoid compile failure with
16825 native HP-UX 11.0 ANSI C compiler.
16827 2005-01-17 Bruno Haible <bruno@clisp.org>
16829 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
16830 redundant because stpncpy.m4 takes care of it.
16832 2005-01-17 Bruno Haible <bruno@clisp.org>
16834 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
16836 2005-01-17 Bruno Haible <bruno@clisp.org>
16838 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
16841 2005-01-17 Bruno Haible <bruno@clisp.org>
16843 * lib/fwriteerror.h (fwriteerror): Change specification to include
16845 * lib/fwriteerror.c: Include <stdbool.h>.
16846 (fwriteerror): At the end, close the file stream. Record whether
16847 stdout was already closed.
16849 2005-01-17 Bruno Haible <bruno@clisp.org>
16851 * lib/execute.c (environ): Declare if needed.
16852 * lib/pipe.c (environ): Likewise.
16853 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
16855 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
16857 * modules/argp: Depend on vsnprintf
16859 2005-01-10 Jim Meyering <jim@meyering.net>
16861 * modules/closeout (Depends-on): Add atexit.
16863 2005-01-06 Bruno Haible <bruno@clisp.org>
16865 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
16867 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
16869 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
16870 definitions to be after all include files, to avoid collisions.
16871 Problem reported by Bob Proulx.
16873 2005-01-04 Jim Meyering <jim@meyering.net>
16875 Changes imported from coreutils.
16876 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
16877 as the mkstemp template, use a temporary directory and an
16878 8.3-friendly template to avoid trouble on systems like DJGPP.
16879 Reported by Juan M. Guerrero via Stepan Kasal.
16880 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
16881 close. Remove the temporary directory right away, rather than waiting
16882 for configure's at-exit trap code to do it.
16883 Suggestion from Stepan Kasal.
16885 2005-01-01 Simon Josefsson <jas@extundo.com>
16887 * gnulib-tool: Print #include directives when --import'ing.
16889 2004-12-28 Simon Josefsson <jas@extundo.com>
16891 * tests/test-base64.c: Include required header files. Remove
16894 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
16896 * modules/error (Depends-on): Remove gettext.
16898 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
16900 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
16901 not needed. This removes a dependency on the gettext module.
16902 [defined _LIBC]: Do not include <libintl.h>; not needed.
16904 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
16906 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
16907 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
16909 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
16911 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
16914 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
16916 * modules/getdate (Depends-on): Remove alloca-opt.
16918 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
16920 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
16922 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
16924 * lib/argp-parse.c: Include <stddef.h>.
16925 (alignof, alignto): New macros.
16926 (parser_init): Don't assume that void * is aligned sufficiently
16929 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
16930 need to extend the stack.
16931 (YYINITDEPTH): New macro, so that the initial stack isn't overly
16934 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
16936 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
16938 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
16940 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
16941 (2004-10-24) change. Apparently this was a false alarm.
16943 * modules/getdate: Depend on alloca-opt, not alloca.
16945 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
16947 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
16948 Remove now-obsolete comment about AIX.
16949 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
16950 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
16951 (YYMAXDEPTH): New macro.
16953 2004-12-18 Simon Josefsson <jas@extundo.com>
16955 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
16957 2004-12-18 Bruno Haible <bruno@clisp.org>
16959 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
16961 2004-12-18 Bruno Haible <bruno@clisp.org>
16963 * lib/fatal-signal.c (fatal_signals): Make non-const.
16964 (init_fatal_signals): New function.
16965 (uninstall_handlers, install_handlers): Ignore signals that were set to
16967 (at_fatal_signal): Call init_fatal_signals.
16968 (init_fatal_signal_set): Likewise. Ignore signals that were set to
16970 Reported by Paul Eggert.
16972 2004-12-18 Bruno Haible <bruno@clisp.org>
16974 * doc/alloca.texi: New file.
16975 * doc/alloca-opt.texi: New file.
16977 2004-12-17 Jim Meyering <jim@meyering.net>
16979 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
16980 Otherwise, install-sh could exit with improper exit status when
16981 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
16983 2004-12-16 Simon Josefsson <jas@extundo.com>
16985 * tests/test-base64.c: Add license.
16987 2004-12-15 Stepan Kasal <address@hidden>
16989 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
16991 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
16993 * modules/getcwd (Files): Add m4/d-ino.m4.
16994 Suggested by Mark D. Baushke.
16996 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
16998 * lib/getdate.y (textint): New member "negative".
16999 (time_zone_hhmm): New function.
17000 Expect 14 shift-reduce conflicts, not 13.
17001 (o_colon_minutes): New rule.
17002 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
17003 (yylex): Set the "negative" member of signed numbers.
17005 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
17007 * doc/getdate.texi (Time of day items, Time zone items):
17008 Describe new formats +00:00, UTC+00:00.
17010 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
17012 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
17013 spurious "-l"s. Problem reported by Stepan Kasal.
17015 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
17017 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
17018 in Autoconf 2.59. Problem reported by Mark D. Baushke.
17020 2004-12-04 Simon Josefsson <jas@extundo.com>
17022 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
17023 Vandoorselaere <yoann@prelude-ids.org>.
17025 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
17027 Changes imported from coreutils.
17028 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
17030 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
17032 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
17034 Changes imported from coreutils.
17035 * lib/hard-locale.c: Assume <locale.h> exists.
17036 Include "strdup.h".
17037 (GLIBC_VERSION): New macro.
17038 (hard_locale): Assume setlocale exists.
17039 Rewrite to avoid #ifdef.
17040 Use strdup rather than malloc + strcpy.
17041 * lib/human.c: Assume <locale.h> exists.
17042 (human_readable): Assume localeconv exists.
17044 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
17046 * modules/hard-locale (Depends-on): Add strdup.
17048 2004-12-01 Jakub Jelinek <jakub@redhat.com>
17050 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
17051 convert T2, not T. (Imported from libc.)
17053 2004-11-30 Simon Josefsson <jas@extundo.com>
17055 * modules/restrict (License): Change to LGPL.
17057 2004-11-30 Simon Josefsson <jas@extundo.com>
17059 * m4/restrict.m4: Add copyright and copying conditions.
17061 2004-11-30 Simon Josefsson <jas@extundo.com>
17063 * m4/base64.m4: New file.
17065 2004-11-30 Simon Josefsson <jas@extundo.com>
17067 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
17070 * tests/test-base64.c: New file.
17072 * modules/base64: New file.
17074 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
17076 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
17077 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
17079 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
17081 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
17083 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
17084 (__getcwd.c): Don't restore errno; glibc doesn't.
17085 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
17086 first, falling back to our code only if its results look suspicious.
17087 Ensure that the resulting buffer is only as large as necessary.
17089 * lib/readutmp.c: Include readutmp.h first.
17090 Include <errno.h>, since readutmp.h no longer does that.
17091 * lib/readutmp.h: Don't include <errno.h>,
17092 <sys/param.h>, <time.h>; not needed to establish interface.
17093 (errno): Remove decl.
17094 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
17095 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
17096 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
17098 2004-11-28 Simon Josefsson <jas@extundo.com>
17100 * lib/base64.h, base64.c: New file.
17102 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
17104 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
17106 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
17108 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
17109 (Depends-on): Remove pathmax, same. Add mempcpy.
17110 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
17111 (Makefile.am): Append getcwd.h to lib_SOURCES.
17112 (Include): Add getcwd.h.
17113 (Maintainer): Change from Jim Meyering to "all, glibc",
17114 since getdate now uses intended-for-glibc code.
17115 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
17116 (Depends-on): Depend on getcwd. Do not depend on pathmax.
17118 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
17120 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
17121 HP's ANSI C compiler.
17122 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
17123 Declaring int functions causes warnings on some modern systems and
17124 shouldn't be needed to compile on ancient ones.
17125 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
17128 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
17129 with the following changes.
17130 (__set_errno): Parenthesize properly.
17131 Include <stdbool.h>.
17132 (MIN, MAX, MATCHING_INO): New macros.
17133 (__getcwd): Define with prototype, not K&R form.
17134 Use heuristics to allocate default buffer on stack if possible.
17135 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
17136 behavior, and to avoid the PATH_MAX limit when computing
17138 Use MATCHING_INO to compare inode number to file.
17139 Check for arithmetic overflow in size calculations.
17140 Fix bug in reallocation of dot array that caused getcwd to fail
17141 on directories nested deeper than 75.
17142 Be more careful about saving errno on error.
17143 Do not use realloc; use only free+malloc, as this is a bit
17144 more flexible and avoids a needless copy operation.
17145 Do not inspect st_dev and st_ino for symbolic links; POSIX
17146 doesn't specify the latter.
17147 Check for closedir errors.
17148 Avoid needless casts.
17149 Use "#ifdef weak_alias" around weak_alias, to be like other
17151 The following changes to getcwd.c have effect only when used in
17152 gnulib; they have no effect inside glibc proper.
17153 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
17154 as alloca isn't used.
17155 (alloca, __alloca): Likewise.
17156 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
17157 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
17158 unconditionally, as gnulib assumes C89 or better.
17159 Do not include <sys/param.h>.
17160 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
17161 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
17163 (NULL) [!defined NULL]: Remove; we assume C89 or better.
17164 Include <dirent.h> in a way that is compatible with modern Autoconf.
17165 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
17166 New macros, if not already defined.
17167 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
17168 Use "_LIBC", not "defined _LIBC", for consistency.
17169 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
17171 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
17172 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
17173 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
17174 credit only to Jim Meyering and adjust the copyright dates.
17175 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
17176 <stdlib.h>, <unistd.h>, "pathmax.h".
17177 Instead, include "xgetcwd.h" (first) and "getcwd.h".
17178 (INITIAL_BUFFER_SIZE): Remove.
17179 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
17181 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
17183 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
17184 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
17185 Use the _ONCE methods, for efficiency.
17186 Check for fcntl.h. In test program, include <errno.h>
17187 and <fcntl.h> if available. Remove old K&R cruft from
17188 test program. Check for common errors in GNU/Linux,
17189 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
17190 don't do AC_LIBOBJ, as that's getcwd.m4's job.
17191 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
17192 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
17194 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
17195 accommodate new getcwd.c.
17196 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
17197 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
17198 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
17199 that's all we need now.
17201 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
17203 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
17204 argp-parse.c depends on getopt internals, that means we should
17205 always use our getopt, to be on the safe side.
17206 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
17207 order not to spoil the result of an eventual previous invocation
17208 of gl_GETOPT_SUBSTITUTE.
17210 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
17212 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
17213 redefinition warnings. To avoid them, include the defines
17214 in `#if !defined __need_getopt ... #endif'. The only place
17215 where __getopt_argv_const is used is in definitions
17216 of getopt_long and getopt_long_only below, which are as well
17217 protected by `#ifndef __need_getopt'.
17218 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
17219 __need_getopt after including <stdio.h> and <unistd.h> These
17220 headers might have defined it.
17222 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
17224 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
17226 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
17228 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
17229 (futimens): New function, which uses futimes if available.
17230 (futimens, utimens): Support timespec==NULL, with same semantics
17231 as utime and utimens.
17232 * lib/utimens.h (futimens): New decl.
17234 2004-11-23 Jim Meyering <jim@meyering.net>
17236 * lib/getopt_.h: Remove trailing blanks.
17238 2004-11-23 Jim Meyering <jim@meyering.net>
17240 * lib/__fpending.c: Add comment.
17242 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
17244 * modules/canonicalize (Depends-on): Add xreadlink.
17245 Problem reported by James Youngman.
17247 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
17249 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
17251 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
17252 optopt): Use them instead of invoking ## directly; otherwise, the
17253 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
17255 2004-11-19 Bruno Haible <bruno@clisp.org>
17257 * lib/strtok_r.c: Move comments from here...
17258 * lib/strtok_r.h: ... to here.
17260 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
17262 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
17263 implementations that mishandle size_t overflow.
17265 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
17267 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
17268 might fail. Problem reported by Yoann Vandoorselaere.
17269 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
17270 implementations that mishandle size_t overflow.
17272 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
17274 * modules/canon-host (Depends-on): Add strdup.
17276 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
17278 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
17280 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
17282 * lib/canon-host.c: Include "strdup.h".
17283 (canon_host): Use getaddrinfo if available, so that IPv6 works.
17284 Use strdup instead of malloc/strcpy to duplicate strings.
17286 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
17287 (human_space_before_unit): New constant.
17288 * lib/human.c (human_readable): Support it.
17290 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
17291 (xgetcwd): Set errno correctly when failing.
17292 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
17293 the failure is actually due to a PATH_MAX problem.
17295 Further getopt changes to make it more likely that glibc will
17296 buy the changes back.
17297 * lib/getopt.c (POSIXLY_CORRECT): New constant.
17298 (getopt): Use it, so to preserve glibc semantic
17299 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
17300 when compiling for libc.
17301 * lib/getopt_.h (__getopt_argv_const): Bring it back.
17302 (getopt_long, getopt_long_only): Use it.
17304 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
17305 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
17306 (getopt): Argv is now char * const *, as per standard.
17307 (_getopt_internal_r, _getopt_internal): Argv is now char **,
17308 not char *__getopt_argv_const *.
17309 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
17310 _getopt_long_only_r): Likewise.
17311 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
17312 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
17313 _getopt_long_r, _getopt_long_only_r): Likewise.
17314 * lib/getopt_.h (__getopt_argv_const): Remove.
17315 (getopt): Argv is now char * const *, as per standard.
17317 * lib/getdate.y (tORDINAL): New token.
17318 (day, relunit): Allow it for relative times.
17319 (relative_time_table): Use tORDINAL for ordinals.
17321 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
17323 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
17324 Document that "second" isn't allowed as an ordinal number.
17326 2004-11-16 Jim Meyering <jim@meyering.net>
17328 * modules/closeout (Depends-on): Add fpending.
17330 2004-11-15 Jim Meyering <jim@meyering.net>
17332 * lib/closeout.c: Include "__fpending.h" once again.
17333 Include <stdbool.h>.
17334 (close_stdout): Don't fail just because stdout was closed initially,
17335 since some programs don't write to stdout in the normal course of
17336 operation (other than --version and --help), and we don't want this
17337 function to make e.g. `touch file >&-' fail.
17338 But do fail if it was closed and someone has tried to write to it.
17339 E.g., `printf foo >&-' must fail.
17341 2004-11-13 Jim Meyering <jim@meyering.net>
17343 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
17345 2004-11-12 Simon Josefsson <jas@extundo.com>
17347 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
17348 small doc fix is still pending.
17350 2004-11-11 Simon Josefsson <jas@extundo.com>
17352 * modules/strtok_r: New file.
17354 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17357 2004-11-11 Simon Josefsson <jas@extundo.com>
17359 * m4/strtok_r.m4: New file.
17361 * m4/getopt.m4: Replace opterr.
17363 2004-11-11 Simon Josefsson <jas@extundo.com>
17365 * lib/strtok_r.h, strtok_r.c: New file.
17367 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
17369 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
17370 of replacing opterr, getopt, etc. This should handle the
17371 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
17373 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
17375 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
17376 we can stop lying to compilers about the constness of argv when we
17377 are compiled outside glibc.
17378 (getopt, getopt_long, getopt_long_only): Use it.
17379 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
17380 _getopt_internal, getopt): Likewise.
17381 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
17382 _getopt_long_only_r): Likewise.
17383 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
17384 _getopt_long_r, _getopt_long_only_r): Likewise.
17386 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
17387 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
17388 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
17389 the other external symbols.
17390 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
17391 declaration, since the above renaming now works around collisions.
17393 2004-11-11 Jim Meyering <jim@meyering.net>
17395 * lib/linebreak.c: Remove trailing blanks.
17396 * lib/alloca_.h: Likewise.
17397 * lib/acosl.c: Likewise.
17398 * lib/euidaccess.c: Likewise.
17399 * lib/allocsa.h: Likewise.
17401 2004-11-10 Simon Josefsson <jas@extundo.com>
17403 * m4/getaddrinfo.m4: New file.
17405 2004-11-10 Simon Josefsson <jas@extundo.com>
17407 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
17409 2004-11-10 Simon Josefsson <jas@extundo.com>
17411 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17414 * modules/getaddrinfo: New file.
17416 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
17418 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
17420 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
17422 * lib/mktime.c (SHR): New macro, which is a portable
17423 substitute for >> that should work even on Crays.
17424 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
17425 Problem reported by Mark D. Baushke in
17426 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
17427 * lib/getdate.y (SHR): Likewise.
17429 * lib/strftime.c (SHR): Likewise.
17431 * lib/quotearg.c (struct quoting_options): Use unsigned int for
17432 quote_these_too, so that right shifts are well defined. All uses
17435 2004-11-10 Jim Meyering <jim@meyering.net>
17437 Ensure that no close failure goes unreported.
17438 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
17439 return early when it seems there's nothing to flush.
17440 Don't include __fpending.h.
17442 2004-11-10 Jim Meyering <jim@meyering.net>
17444 * modules/closeout (Depends-on): Remove fpending.
17446 2004-11-10 Jim Meyering <jim@meyering.net>
17448 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
17450 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
17452 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
17454 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
17455 and AC_REQUIRE when possible, to avoid duplicate checks.
17456 Check for <wchar.h>.
17458 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
17460 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
17462 2004-11-09 Bruno Haible <bruno@clisp.org>
17464 * m4/sockpfaf.m4: New file.
17466 2004-11-05 Bruno Haible <bruno@clisp.org>
17468 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
17469 Reported by Mark D. Baushke <mdb@cvshome.org>.
17471 2004-11-04 Bruno Haible <bruno@clisp.org>
17473 2004-09-11 Bruno Haible <bruno@clisp.org>
17474 * allocsa.valgrind: New file.
17475 2004-02-06 Bruno Haible <bruno@clisp.org>
17476 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
17477 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
17478 Reported by Christopher Seip <chris.seip@hp.com>.
17480 2004-11-04 Bruno Haible <bruno@clisp.org>
17482 * modules/allocsa (Files): Add lib/allocsa.valgrind.
17483 (Makefile.am): Distribute it.
17485 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
17487 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
17488 with errno == ERANGE if the buffer is too small.
17489 Problem reported by Mark D. Baushke.
17491 2004-11-03 Albert Chin <china@thewrittenword.com>
17492 Paul Eggert <eggert@cs.ucla.edu>
17494 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
17495 equivalent, substitute $ac_type for equivalent type rather than
17496 blindly using uint32_t *always* which won't work if uint32_t is not
17497 available. Define _UINT32_T to work around typedef of uint32_t if
17498 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
17501 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
17503 * m4/jm-macros.m4: Sync from coreutils.
17504 (gl_MACROS): Check for mbrlen, for pathchk.
17505 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
17507 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
17509 * lib/xreadlink.c (MAXSIZE): New macro.
17510 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
17511 size does not exceed MAXSIZE. Avoid cast.
17512 As suggested by Mark D. Baushke in
17513 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
17514 if readlink fails with buffer size just under MAXSIZE, try again
17517 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
17519 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
17521 2004-11-02 Derek R. Price <derek@ximbiot.com>
17522 and Paul Eggert <eggert@cs.ucla.edu>
17524 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
17525 (get_date): Overparenthesize to avoid GCC warning.
17527 2004-11-02 Bruno Haible <bruno@clisp.org>
17529 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
17532 2004-11-02 Bruno Haible <bruno@clisp.org>
17534 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
17535 function returns void.
17537 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
17539 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
17540 fflush_unlocked, flockfile, funlockfile, funlockfile,
17541 fputs_unlocked, putc_unlocked.
17543 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
17545 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
17546 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
17549 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
17551 * modules/getdate (Files): Add doc/getdate.texi.
17552 (Depends-on): Add setenv, xalloc.
17554 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
17556 * lib/getdate.y: Add support for TZ="foo" within a date string.
17557 Fix some bugs near time_t boundaries. Reject dates with
17558 out-of-range components, e.g., "Sept 31".
17559 Include <stdlib.h>, "setenv.h", "xalloc.h".
17560 (ISDIGIT_LOCALE): Remove; unused.
17561 Note that the TZ and time functions used here are not reentrant.
17562 (mktime_ok, get_tz): New functions.
17563 (TZBUFSIZE): New constant.
17564 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
17565 This requires that we sometimes generate our own TZ="XXX..." setting.
17567 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
17569 * doc/getdate.texi: New file, from coreutils with modifications for
17570 the new TZ parsing.
17572 2004-10-27 Derek R. Price <derek@ximbiot.com>
17574 * lib/mktime.c (not_equal_tm): Remove redundant check.
17576 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
17578 * modules/regex (lib_SOURCES): Add regex.c.
17579 Reported by James Youngman in
17580 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
17582 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
17584 * lib/getdate.y: Use Bison 1.875 features, and some minor
17585 code cleanups. This change does not affect semantics.
17586 Don't include <stdlib.h>; no longer needed.
17587 Don't include unlocked-io.h; only the "#if TEST" code uses
17588 stdio, and performance isn't crucial there.
17589 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
17590 Bison 1.875 features as described below.
17591 All uses of "PC." replaced by "pc->".
17592 (YYSTYPE): Add a forward declaration.
17593 (yylex, yyerror): Use full prototypes in forward decls.
17594 Use "%pure-parser" rather than obsolescent "%pure_parser".
17595 Use %parse-param and %lex-param instead of obsolescent
17596 YYPARSE_PARAM and YYLEX_PARAM.
17597 (meridian_table, month_and_day_table, time_units_table,
17598 relative_time_table, time_zone_table, military_table,
17599 lookup_zone, lookup_word, get_date):
17600 Use NULL instead of 0 where appropriate.
17601 (to_hour): Avoid abort (), to avoid a dependency on
17603 (yyerror, yylex): Now accepts parser_control * arg.
17604 (main) [TEST]: Use '\0' rather than 0 for char.
17606 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
17608 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
17610 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
17612 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
17613 It's now the caller's responsibility to handle the case where
17614 !HAVE_GETPAGESIZE && !defined getpagesize.
17616 * lib/mktime.c (leapyear): Arg is long int, not int.
17618 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
17620 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
17622 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
17624 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
17625 missing. Problem reported by James Youngman.
17627 2004-10-16 Simon Josefsson <jas@extundo.com>
17629 * gnulib-tool: Fix comments. Fix parse problem.
17630 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
17632 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
17634 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
17635 implementation of getopt_long. Problem reported by Alexander Taler in:
17636 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
17638 2004-10-15 Bruno Haible <bruno@clisp.org>
17640 * gnulib-tool: Untabify. Initialize supplied_libname.
17641 (func_usage): More homogenous output.
17642 (func_modules_transitive_closure, func_modules_to_filelist,
17643 func_emit_lib_Makefile_am): New functions.
17644 (func_import): New function, extracted from big case statement. Use
17645 func_get_license, func_modules_transitive_closure,
17646 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
17647 opt_lgpl. Don't use test -a, as it's not portable.
17648 (func_create_testdir): Use func_modules_transitive_closure,
17649 func_modules_to_filelist, func_emit_lib_Makefile_am.
17651 2004-10-15 Bruno Haible <bruno@clisp.org>
17653 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
17655 2004-10-15 Bruno Haible <bruno@clisp.org>
17657 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
17658 the portions belonging to each module.
17659 Suggested by Derek Robert Price <derek@ximbiot.com>.
17661 2004-10-12 Simon Josefsson <jas@extundo.com>
17663 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
17664 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
17667 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
17669 * modules/vsnprintf: New file.
17671 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
17673 * m4/vsnprintf.m4: New file.
17675 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
17677 * lib/vsnprintf.h: New file.
17678 * lib/vsnprintf.c: New file.
17680 2004-10-11 Bruno Haible <bruno@clisp.org>
17682 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
17685 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
17687 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
17689 2004-10-07 Bruno Haible <bruno@clisp.org>
17691 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
17692 fits into the provided buffer.
17694 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
17696 * lib/diacrit.c, diacrit.h: Add GPL notice.
17698 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
17700 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
17701 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
17702 This avoids a potential constant-folding bug.
17704 2004-10-05 Bruno Haible <bruno@clisp.org>
17706 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
17707 for the declaration of strsep.
17709 2004-10-05 Bruno Haible <bruno@clisp.org>
17711 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
17713 2004-10-04 Simon Josefsson <jas@extundo.com>
17715 * modules/memmem: New file.
17716 * tests/test-memmem.c: New file.
17717 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
17719 2004-10-04 Simon Josefsson <jas@extundo.com>
17721 * m4/memmem.m4: New file.
17723 2004-10-04 Simon Josefsson <jas@extundo.com>
17725 * lib/memmem.h: New file.
17726 * lib/memmem.c: New file, taken from glibc.
17728 2004-10-04 Simon Josefsson <jas@extundo.com>
17730 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
17731 '#ifdef USE_UNLOCKED_IO'.
17733 2004-10-04 Simon Josefsson <jas@extundo.com>
17735 * config/srclist.txt: Add memmem from glibc.
17737 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
17739 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
17741 * modules/argmatch, modules/argp, modules/closeout, modules/error,
17742 modules/exclude, modules/getdate, modules/getline,
17743 modules/getndelim2, modules/getpass, modules/getpass-gnu,
17744 modules/getusershell, modules/linebuffer, modules/md5,
17745 modules/mountlist, modules/posixtm, modules/readtokens,
17746 modules/readutmp, modules/regex, modules/sha1,
17747 modules/version-etc, modules/yesno:
17748 Remove dependency on unlocked-io.
17750 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
17752 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
17754 * m4/unlocked-io.m4: Add copyright notice.
17755 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
17757 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
17759 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
17760 * lib/xmalloc.c (xmemdup): Likewise.
17761 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
17762 XFREE): Remove these long-obsolescent macros.
17763 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
17764 * lib/xstrdup.c: Remove.
17766 * lib/regex.c (re_comp): Cast gettext return value to char *,
17767 Problem reported by Martin Neitzel via Mark D. Baushke.
17769 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
17771 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
17772 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
17773 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
17774 regex.c, sha1.c, version-etc.c, yesno.c:
17775 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
17776 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
17777 the includer's responsibility.
17779 Sync from coreutils.
17781 * lib/modechange.c (mode_compile): Don't decrement a pointer that
17782 points to the start of a string, as the C Standard says the
17783 resulting behavior is undefined.
17785 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
17786 simple -> simple_backups, numbered_existing ->
17787 numbered_existing_backups, numbered -> numbered_backups
17788 to avoid shadowing problems. All uses changed.
17789 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
17790 * lib/backupfile.c (check_extension, numbered_backup):
17791 Rename locals to avoid shadowing 'basename'.
17792 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
17795 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
17796 * lib/.cvsignore: Add getopt.h.
17798 2004-10-04 Bruno Haible <bruno@clisp.org>
17800 * modules/README: New file.
17801 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
17804 2004-10-02 Jim Meyering <jim@meyering.net>
17806 * lib/dirfd.h, getpagesize.h: Add copyright notice.
17808 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
17810 * modules/strsep: New file.
17812 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
17814 * m4/strsep.m4: New file.
17816 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
17818 * lib/strsep.h: New file.
17819 * lib/strsep.c: New file.
17821 2004-10-01 Simon Josefsson <jas@extundo.com>
17823 * lib/snprintf.c (snprintf): Handle size==0.
17825 2004-10-01 Simon Josefsson <jas@extundo.com>
17826 Bruno Haible <bruno@clisp.org>
17828 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
17829 (snprintf): Declare 'args'.
17831 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
17833 * lib/snprintf.c: Remove comments as to why each header is needed.
17835 2004-10-01 Bruno Haible <bruno@clisp.org>
17837 * MODULES.html.sh: Add strsep.
17839 2004-09-30 Simon Josefsson <jas@extundo.com>
17841 * modules/snprintf: New file.
17843 2004-09-30 Simon Josefsson <jas@extundo.com>
17845 * m4/snprintf.m4: New file.
17847 2004-09-30 Simon Josefsson <jas@extundo.com>
17849 * lib/snprintf.h, lib/snprintf.c: New files.
17851 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
17853 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
17854 (hol_entry_help): Never translate an empty string.
17855 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
17856 * lib/argp.h (OPTION_NO_TRANS): New option.
17858 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
17860 * modules/argp (Maintainer): Replace Simon Josefsson
17861 by Sergey Poznyakoff.
17863 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
17865 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
17866 changes merged back into glibc.
17868 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
17870 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
17872 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
17874 * lib/xvasprintf.c: Include xalloc.h.
17875 (xvasprintf): Use xalloc_die, not xmalloc_die.
17877 2004-09-29 Bruno Haible <bruno@clisp.org>
17879 * modules/alloca-opt: New file, derived from modules/alloca.
17880 * modules/allocsa: Depend on alloca-opt instead of alloca.
17881 * modules/setenv: Likewise.
17882 * modules/vasnprintf: Likewise.
17883 * MODULES.html.sh: Add alloca-opt.
17885 2004-09-28 Simon Josefsson <jas@extundo.com>
17887 * gnulib-tool: New parameter --lgpl, to asseert that modules are
17888 LGPL, and to replace license template from GPL to LGPL.
17890 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
17892 * modules/dummy: Change license to LGPL.
17894 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
17896 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
17898 2004-09-24 Simon Josefsson <jas@extundo.com>
17900 * modules/minmax (License): Change from GPL to LGPL.
17902 2004-09-23 Simon Josefsson <jas@extundo.com>
17904 * gnulib-tool (--import): Typo.
17906 2004-09-23 Simon Josefsson <jas@extundo.com>
17908 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
17910 2004-09-22 Bruno Haible <bruno@clisp.org>
17912 * modules/*: Add 'License' field.
17913 * gnulib-tool: Accept --extract-license option.
17914 (func_get_license): New function.
17916 2004-09-21 Bruno Haible <bruno@clisp.org>
17918 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
17919 Reported by Simon Josefsson.
17921 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
17923 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
17924 gl_AC_TYPE_LONG_LONG.
17926 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
17928 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
17930 2004-09-18 Simon Josefsson <jas@extundo.com>
17931 and Paul Eggert <eggert@cs.ucla.edu>
17933 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
17934 calls with autoreconf. Define GL_LIB.
17936 2004-09-14 Karl Berry <karl@gnu.org>
17938 * config/srclist.txt: unsync setenv.c, sigh.
17940 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
17942 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
17943 Problem reported by Bruno Haible in:
17944 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
17946 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
17948 * config/srclist.txt: Comment out argp-pvh.c.
17950 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
17952 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
17953 in case some system header has #define'd it. Problem reported by
17954 Soeren D. Schulze in
17955 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
17957 2004-09-09 Karl Berry <karl@gnu.org>
17959 * regex.[ch]: delete from the root. These were supposed to be
17960 synced with emacs cvs, but this has not happened for about
17961 a year, and anyway nothing else uses emacs regex.[ch].
17962 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
17963 lib/regex[.ch] is untouched.
17965 2004-09-09 Bruno Haible <bruno@clisp.org>
17967 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
17969 2004-09-09 Bruno Haible <bruno@clisp.org>
17971 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
17973 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
17975 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
17977 * modules/xvasprintf: New file.
17978 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
17980 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
17982 * lib/xvasprintf.h: New file.
17983 * lib/xvasprintf.c: New file.
17984 * lib/xasprintf.c: New file.
17986 2004-09-08 Bruno Haible <bruno@clisp.org>
17988 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
17990 2004-09-08 Bruno Haible <bruno@clisp.org>
17992 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
17993 length is > INT_MAX.
17994 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
17997 2004-09-08 Bruno Haible <bruno@clisp.org>
17999 * lib/stdint_.h: New file, taken from GNU clisp.
18001 2004-09-08 Bruno Haible <bruno@clisp.org>
18002 Oskar Liljeblad <oskar@osk.mine.nu>
18004 * modules/stdint: New file.
18005 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
18007 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
18009 Import from coreutils.
18010 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
18011 strings on unbounded length. alloca's performance benefits aren't
18012 that important here.
18013 (V_STRDUP): Remove.
18014 (parse_with_separator): New function, with most of the internals
18015 of the old parse_user_spec. Allow user to omit both user and group,
18016 for compatibility with FreeBSD.
18017 Clone only the user name, not the entire spec.
18018 Do not set *uid, *gid unless entirely successful.
18019 Avoid memory leak in some failing cases.
18020 Fix regression for USER.GROUP reported by Dmitry V. Levin in
18021 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
18022 (parse_user_spec): Rewrite to use parse_with_separator.
18024 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
18026 * modules/userspec: Don't depend on alloca.
18028 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
18030 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
18032 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
18034 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
18035 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
18036 utimecmp, utimens, xnanosleep. Rename sha to sha1.
18038 2004-08-16 Simon Josefsson <jas@extundo.com>
18040 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
18041 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
18042 Add --dry-run for --import.
18043 Let user provided command line parameters override configure.ac
18046 2004-08-12 Simon Josefsson <jas@extundo.com>
18048 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
18049 as discussed with Paul Eggert in threads rooted at
18050 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
18052 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
18053 Before, the test was empty, and relied on ELIDE_CODE in source
18055 (gl_PREREQ_GETOPT): New macro.
18056 (gl_GETOPT): Use them.
18058 2004-08-12 Simon Josefsson <jas@extundo.com>
18060 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
18061 * lib/getopt_.h: Renamed from getopt.h.
18063 2004-08-12 Simon Josefsson <jas@extundo.com>
18065 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
18066 Change default library name from libfoo to libgnu.
18067 Now, if you have a configure.ac that says:
18070 gl_MODULES(error getopt etcetera)
18072 you can import all you need by running:
18073 ../gnulib/gnulib-tool --import
18075 * modules/getopt (Files): Rename getopt.h to getopt_.h.
18076 (Makefile.am): Rewrite, use logic from argz.
18077 (Include): Use <getopt.h> instead of "getopt.h".
18079 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
18081 * modules/argp (Files): Add m4/unlocked-io.m4.
18082 (Depends-on): Add extensions.
18084 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
18086 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
18087 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
18088 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
18089 Check for program_invocation_name, program_invocation_short_name,
18090 flockfile, funlockfile, features.h, _getopt_long_only_r.
18092 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
18094 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
18095 its complicated substitute.
18096 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
18097 and program_invocation_name.
18098 (__argp_basename) [!_LIBC]: Remove; the only use was
18099 replaced by its body.
18100 (__argp_short_program_name): Change condition from
18101 !defined __argp_short_program_name to
18102 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
18103 to match argp-namefrob.h.
18104 (__argp_failure): Don't assume strerror_r returns char *.
18105 * lib/argp-parse.c (N_): Define unconditionally.
18106 (argp_default_options): Fill out initializers with 0 to avoid
18109 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
18111 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
18114 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
18116 Merge from coreutils.
18118 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
18120 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
18121 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
18123 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
18125 Merge from coreutils.
18127 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
18128 wmemchr or wmemcpy. Problem reported by Robert Dahlem
18129 for Reliant Unix 5.43.
18131 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
18132 (union fooround): Use uintmax_t, not long int.
18133 The rest is a merge from libc:
18134 [defined _LIBC]: Include <shlib-compat.h>.
18135 (_obstack) [defined _LIBC]: Remove after 2.3.4.
18137 * lib/settime.c (settime): Recode to avoid warning with
18140 * lib/strverscmp.c: Convert to UTF-8.
18142 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
18144 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
18147 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
18149 * modules/xalloc-die: New file.
18150 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
18152 * modules/md5 (Files): Add m4/uint32_t.m4.
18153 * modules/sha1: Renamed from modules/sha.
18155 Rename lib/sha.h to lib/sha1.h.
18156 Rename lib/sha.c to lib/sha1.c.
18157 Rename m4/sha.m4 to m4/sha1.m4.
18158 (lib_SOURCES): Likewise.
18159 (configure.ac): Rename gl_SHA to gl_SHA1.
18160 (Include): sha.h -> sha1.h.
18162 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
18164 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
18165 * m4/sha1.m4: Renamed from sha.m4.
18166 (gl_SHA1): Renamed from gl_SHA. All uses changed.
18168 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
18170 * lib/obstack.h (obstack_empty_p):
18171 Don't assume that chunk->contents is suitably aligned.
18172 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
18173 Likewise. Problem reported by Benno in
18174 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
18176 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
18177 readable. This could be improved further but it'd take some work.
18179 2004-08-08 Simon Josefsson <jas@extundo.com>
18181 * modules/xgethostname (Depends-on): Remove exit and error (not
18184 * modules/getpass-gnu: Add getpass.h.
18185 (Depends-on): Add stdbool.
18186 * modules/getpass: Add getpass.h.
18188 2004-08-08 Simon Josefsson <jas@extundo.com>
18190 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
18191 Check getpass declaration.
18193 2004-08-08 Simon Josefsson <jas@extundo.com>
18195 * lib/xgethostname.c: Don't include error.h (not used).
18197 * lib/getpass.h: Add.
18198 * lib/getpass.c: Include getpass.h first.
18200 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
18202 * lib/xalloc-die.c: New file.
18203 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
18205 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
18206 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
18208 (_, N_, xalloc_die): Move to xalloc-die.c.
18209 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
18210 so that we needn't mess with xalloc_msg_memory_exhausted.
18212 * lib/sha1.h: Renamed from sha.h.
18213 (SHA1_H): Renamed from _SHA_H.
18214 (sha1_ctx): Renamed from sha_ctx.
18215 (sha1_init_ctx): Renamed from sha_init_ctx.
18216 (sha1_process_block): Renamed from sha_process_block.
18217 (sha1_process_bytes): Renamed from sha_process_bytes.
18218 (sha1_finish_ctx): Renamed from sha_finish_ctx.
18219 (sha1_read_ctx): Renamed from sha_read_ctx.
18220 (sha1_stream): Renamed from sha_stream.
18221 (sha1_buffer): Renamed from sha_buffer.
18222 * lib/sha1.c: Likewise; renamed from sha.c.
18223 Do not include <sys/types.h>.
18224 Include <stddef.h> rather than <stdlib.h>.
18226 2004-08-08 Bruno Haible <bruno@clisp.org>
18228 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
18229 FILESYSTEM_PREFIX_LEN.
18230 * lib/progreloc.c: Likewise.
18231 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
18233 2004-08-06 Simon Josefsson <jas@extundo.com>
18235 * modules/progname (Depends-on): Don't depend on stdbool.
18237 2004-08-06 Simon Josefsson <jas@extundo.com>
18239 * modules/getsubopt: New file.
18240 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18243 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
18245 More merge from coreutils.
18247 * m4/utimens.m4, m4/utimecmp.m4: New files.
18248 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
18249 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
18250 prereq.m4, sha.m4: Import changes from coreutils.
18252 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
18254 More merge from coreutils.
18255 * modules/raise, modules/readtokens0, modules/utimens:
18256 * modules/utimecmp, module/xnanosleep: New files.
18257 * modules/strftime: Add lib/strftime.h.
18258 Change include from <time.h> to "strftime.h".
18259 * modules/yesno: Add lib/yesno.h.
18260 * modules/backupfile: Remove lib/addext.c.
18261 * modules/euidaccess: Add stat-macros.h.
18262 * modules/canonicalize, modules/euidaccess,
18263 modules/filemode, modules/lchown, modules/makepath,
18264 modules/rmdir, modules/stat: Likewise.
18266 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
18269 * lib/argp-help.c (make_hol, hol_append): Don't assume that
18270 SIZE_MAX is a valid preprocessor constant.
18271 (__argp_basename): Change from "#ifndef _LIBC"
18272 to "#ifndef __argp_short_program_name", so that
18273 we don't compile these functions for tar.
18275 More merges from coreutils.
18276 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
18277 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
18278 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
18279 * lib/addext.c: Remove; no longer needed.
18280 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
18281 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
18282 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
18283 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
18284 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
18285 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
18286 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
18287 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
18288 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
18289 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
18290 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
18291 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
18292 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
18293 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
18294 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
18295 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
18296 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
18297 Import changes from coreutils.
18299 2004-08-05 Simon Josefsson <jas@extundo.com>
18301 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
18303 2004-08-05 Simon Josefsson <jas@extundo.com>
18305 * m4/getsubopt.m4: New file.
18307 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
18309 Merge from coreutils.
18311 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
18312 * m4/getcwd-path-max.m4: New files.
18314 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
18315 FILESYSTEM_PREFIX_LEN ->
18316 FILE_SYSTEM_PREFIX_LEN.
18317 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
18318 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
18319 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
18320 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
18322 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
18323 prerequisite modules now handle the DOS stuff.
18324 Don't check for unistd.h.
18326 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
18328 Merge from coreutils.
18330 * lib/.gdb-history: Remove; this doesn't belong here.
18332 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
18333 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
18334 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
18335 * lib/getcwd.c: New files.
18337 * lib/dirname.h: Include <stdbool.h>.
18338 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
18339 for consistency with POSIX terminology. All uses changed.
18340 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
18341 (strip_trailing_slashes): Use bool for booleans.
18342 * lib/stripslash.c (strip_trailing_slashes): Likewise.
18344 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
18345 sometimes returns a positive errno value even when it succeeds.
18346 (print_errno_message) [!LIBC]: Fall back on strerror if
18347 __strerror_r fails.
18349 * lib/path-concat.c (mempcpy): Don't define if a system header defines
18350 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
18351 (longest_relative_suffix): New function.
18352 (path_concat): Use it. Assume first argument is not NULL.
18353 Port to DOS. Omit redundant separators.
18354 Report an error instead of returning NULL.
18355 Use mempcpy instead of memcpy.
18356 (xpath_concat): Remove: not declared or used.
18358 * lib/same.h: Include <stdbool.h>
18359 (same_name): Return bool, not int.
18360 * lib/same.c (same_name): Likewise.
18361 (errno): Don't declare; we assume C89 or better now.
18363 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
18364 if not already defined.
18366 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
18367 * lib/dup-safer.c (errno): Likewise.
18369 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
18371 Merge from coreutils.
18372 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
18373 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
18374 * modules/path-concat: Don't depend on strdup.
18376 2004-08-03 Simon Josefsson <jas@extundo.com>
18378 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
18379 * lib/progname.h: Don't include stdbool.h.
18381 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
18383 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
18384 * MODULES.html.sh (func_all_modules): Remove fatal.
18386 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
18388 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
18390 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
18392 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
18395 2004-08-02 Simon Josefsson <jas@extundo.com>
18397 * lib/getsubopt.h: New file, with comments from Bruno Haible.
18398 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
18399 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
18401 2004-08-01 Simon Josefsson <jas@extundo.com>
18403 * lib/xgetdomainname.c: Include stdlib.h, for free().
18405 2004-07-19 Bruno Haible <bruno@clisp.org>
18407 * MODULES.html.sh (func_all_modules): Add dummy.
18409 2004-07-16 Simon Josefsson <jas@extundo.com>
18411 * modules/dummy: New file.
18413 2004-07-16 Simon Josefsson <jas@extundo.com>
18415 * lib/dummy.c: New file.
18417 2004-07-16 Bruno Haible <bruno@clisp.org>
18419 * lib/backupfile.h: Add extern "C" for C++.
18420 * lib/closeout.h: Likewise.
18421 * lib/copy-file.h: Likewise.
18422 * lib/findprog.h: Likewise.
18423 * lib/full-write.h: Likewise.
18424 * lib/pathname.h: Likewise.
18425 * lib/progname.h: Likewise.
18426 * lib/stpcpy.h: Likewise.
18427 * lib/stpncpy.h: Likewise.
18428 * lib/strcase.h: Likewise.
18429 * lib/strstr.h: Likewise.
18430 * lib/xalloc.h: Likewise.
18432 * lib/mbswidth.h: Add extern "C" for C++.
18433 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
18435 2004-07-13 Robert Millan <robertmh@gnu.org>
18437 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
18439 2004-07-09 Simon Josefsson <jas@extundo.com>
18441 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
18442 failed without this.)
18444 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
18446 * modules/chown (Files): Add lib/fchown-stub.c, since
18447 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
18449 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
18451 * lib/fchown-stub.c: New file.
18453 2004-06-24 Jim Meyering <jim@meyering.net>
18455 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
18457 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
18459 * modules/argz: Omit "#include".
18461 * MODULES.html.sh (func_all_modules): Add calloc, to match
18462 2004-06-01 addition of calloc module.
18464 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
18466 * m4/argz.m4: New file, which is autoupdated from libtool.
18468 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
18470 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
18473 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
18475 * config/srclist-update: Don't insist on "USA." before the
18476 close-comment, as libtool omits the period and puts the */ on a
18478 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
18479 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
18481 2004-06-22 Gary V. Vaughan <gary@gnu.org>
18483 * modules/argz: New file.
18484 * MODULES.html.sh (func_all_modules): Add argz.
18486 2004-06-12 Jim Meyering <jim@meyering.net>
18487 and Paul Eggert <eggert@cs.ucla.edu>
18489 * modules/hash (Files): Add lib/xalloc.h.
18490 * modules/pipe (Depends-on): Add wait-process.
18491 * modules/stat (Depends-on): Add xalloc.
18492 * modules/userspec (Files): Add lib/userspec.h.
18495 Upgrade from gettext-0.13.
18496 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
18497 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
18498 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
18500 2004-06-10 Jim Meyering <jim@meyering.net>
18502 * lib/calloc.c: New file.
18504 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
18506 * lib/getdate.y (yylex): Allow space between sign and number.
18507 Problem reported by Dan Jacobson.
18509 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
18511 Merge from coreutils CVS.
18513 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
18514 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
18515 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
18516 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
18517 xstrtol.m4: Fix copyright date and/or serial number.
18519 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
18520 See if we need an fchown replacement.
18521 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
18522 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
18523 and use the replacement function if we detect either defect.
18525 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
18528 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
18529 and Jim Meyering <jim@meyering.net>
18531 Merge from coreutils CVS.
18533 * lib/stat-macros.h: New file, with contents from file-type.h
18534 and coreutils' system.h.
18535 * lib/file-type.c: Include "stat-macros.h".
18536 * lib/file-type.h (file_type): Move all macro definitions to new file,
18539 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
18540 Wrap old code with this conditional.
18541 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
18542 function that does not dereference symlinks.
18543 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
18545 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
18546 dependency problems.
18547 (xreadlink): Accept new arg SIZE, for efficiency.
18548 All decls and uses changed.
18549 * lib/xreadlink.h: Include <stddef.h>, for size_t.
18551 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
18552 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
18554 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
18557 2004-06-01 Jim Meyering <jim@meyering.net>
18559 * m4/calloc.m4: New file.
18561 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
18563 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
18564 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
18565 Also, fix a typo in a diagnostic.
18567 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
18569 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
18570 or AC_FUNC_REALLOC.
18572 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
18574 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
18575 macros to be defined.
18576 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
18577 the allocator returns NULL because the requested size is zero.
18579 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
18581 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
18582 var. Add comment explaining why libc still defines it. This
18583 merges the following patch from glibc:
18584 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
18586 2004-05-20 Andreas Schwab <schwab@suse.de>
18588 * m4/free.m4: Replace free if it not known to work, not the other
18591 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
18593 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
18594 present in glibc since revision 1.1 of this file.
18595 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
18596 obstack_alignment_mask, obstack_alloc, obstack_base,
18597 obstack_blank, obstack_blank_fast, obstack_chunk_size,
18598 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
18599 obstack_grow0, obstack_init, obstack_int_grow,
18600 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
18601 obstack_next_free, obstack_object_size, obstack_ptr_grow,
18602 obstack_ptr_grow_fast, obstack_room): Remove declarations of
18603 nonexistent functions.
18605 2004-05-18 Karl Berry <karl@gnu.org>
18607 * config/srclist.txt: break link for vasnprintf.c.
18609 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
18611 Port obstack to the AS/400, where pointers are 16 bytes wide and
18612 you cannot cast an integer to a valid pointer. This patch is
18613 currently waiting to be integrated into glibc; see
18614 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
18616 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
18617 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
18618 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
18619 (struct obstack): temp member is now a union of a pointer and
18620 an integer, instead of an integer. All integer uses changed.
18621 This does not affect the physical layout of struct obstack,
18622 except on hosts (like the AS/400) where the size or alignment of
18623 void * is greater than that of ptrdiff_t.
18624 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
18625 __STDC__)]: Store temporary in pointer member of union, not
18627 * lib/obstack.c: Include <stddef.h>, for offsetof.
18628 (struct fooalign): Remove; it doesn't need a name.
18629 (union fooround): Change double to long double, and add void *.
18630 (DEFAULT_ALIGNMENT): Use offsetof to compute.
18631 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
18632 not a macro. Hence the values are always int; so remove all
18633 casts-to-int in uses.
18635 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
18637 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
18638 we can get this patch merged into glibc.
18640 2004-05-17 Derek R. Price <derek@ximbiot.com>
18641 Paul Eggert <eggert@cs.ucla.edu>
18643 * m4/argp: Depend on alloca.
18645 2004-05-17 Derek R. Price <derek@ximbiot.com>
18646 Paul Eggert <eggert@cs.ucla.edu>
18648 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
18651 2004-05-17 Bruno Haible <bruno@clisp.org>
18653 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
18654 precision that consists of a '.' followed by an empty digit string.
18655 Patch by Tor Lillqvist <tml@iki.fi>.
18657 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
18659 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
18660 for backward compatibility with older code. We need our own
18661 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
18662 it under some other name, and our alloca.h will define it.
18664 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
18665 Derek Price <derek@ximbiot.com>
18667 * lib/alloca.c: Include <alloca.h>, to get our interface.
18668 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
18669 include <alloca.h> first. Use C89 prototype for alloca; this
18670 requires including <stddef.h> for size_t. Use extern "C" if C++.
18671 Use #elif for simplicity, since we can assume C89 now.
18672 Don't try to source the system alloca.h since it will not be found
18673 and to prevent recursively including its replacement.
18674 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
18675 * lib/regex.c: Likewise.
18677 2004-05-16 Derek Price <derek@ximbiot.com>
18678 Paul Eggert <eggert@cs.ucla.edu>
18680 getline cleanup. This changes the getndelim2 API: both order of
18681 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
18684 * lib/getline.c: Don't include stddef.h or stdio.h, since our
18685 interface does that.
18686 (getline): Always use getdelim, so that we don't have two
18687 copies of this code.
18688 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
18690 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
18691 (GETNDELIM2_MAXIMUM): New macro.
18692 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
18693 instead of the old practice of delim2==0. All callers changed.
18694 Return -1 on overflow, instead of returning junk.
18695 Do not set *linesize unless allocation succeeds.
18696 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
18697 that we include sys/types.h.
18698 * lib/getnline.h: Likewise.
18699 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
18700 (getndelim2): Reorder arguments.
18701 * lib/getnline.c (getnline, getndelim):
18702 Don't discard the NMAX argument.
18703 (getnline): Invoke getndelim, to avoid code duplication.
18704 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
18705 of (size_t) -1 by callers of the getnline family.
18707 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
18709 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
18710 Check for gettimeofday.
18711 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
18712 Check for settimeofday, stime.
18714 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
18716 * lib/nanosleep.c (suspended): Change its type from int to
18717 sig_atomic_t volatile.
18718 (first_call): Make it private to rpl_nanosleep, and have it
18719 be zero initially as that's a bit faster.
18720 (my_usleep): Round up fractional times instead of truncating them,
18721 as this is the usual meaning for 'sleep'.
18723 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
18725 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
18726 (ENOSYS): Define if not defined.
18727 (settime): Fall back on stime if it exists and settimeofday fails.
18728 But don't bother with fallbacks if a method fails with errno == EPERM.
18730 2004-05-11 Jim Meyering <jim@meyering.net>
18732 Prior to this change, the save_cwd caller required read access to the
18733 current directory on most systems (ones with the fchdir function).
18735 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
18736 fails, try write-only, and finally, resort to using xgetcwd.
18738 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
18740 * lib/obstack.c, obstack.h: Import changes from libc.
18742 2004-04-28 Bruno Haible <bruno@clisp.org>
18744 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
18745 also implicitly appends .exe to executables.
18746 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
18747 accepts Windows pathnames.
18748 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
18749 Treat Cygwin like Windows, since it now accepts Windows pathnames.
18750 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
18751 Treat Cygwin like Windows, since it now accepts Windows pathnames.
18752 Reported by Derek Robert Price <derek@ximbiot.com>.
18754 2004-04-21 Karl Berry <karl@gnu.org>
18756 * config/srclist.txt (localcharset.c): break sync.
18758 2004-04-20 Paul Eggert <eggert@twinsun.com>
18760 * m4/host-os.m4: Add a copyright notice.
18762 2004-04-20 Jim Meyering <jim@meyering.net>
18764 Change UTILS_ to gl_ in AC_DEFINE'd names.
18765 Change utils_- and jm_-prefixed variables, too.
18766 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
18767 UTILS_FUNC_MKDIR_TRAILING_SLASH.
18768 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
18770 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
18771 Don't emit trailing blanks.
18772 Also rename jm_-prefixed variables to have gl_ prefix.
18774 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
18775 Also rename jm_-prefixed variables to have gl_ prefix.
18777 * m4/jm-macros.m4: Reflect the renamings.
18778 * m4/prereq.m4: Likewise.
18780 2004-04-20 Jim Meyering <jim@meyering.net>
18782 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
18785 2004-04-20 Jim Meyering <jim@meyering.net>
18786 Bruno Haible <bruno@clisp.org>
18788 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
18789 memory when realloc fails.
18791 2004-04-19 Jim Meyering <jim@meyering.net>
18793 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
18794 now that readutmp.c may call `free (0)'.
18796 2004-04-19 Bruno Haible <bruno@clisp.org>
18798 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
18799 * m4/inttypes_h.m4: Likewise.
18800 * m4/stdint_h.m4: Likewise.
18801 * m4/intmax_t.m4: Likewise.
18802 * m4/uintmax_t.m4: Likewise.
18804 2004-04-18 Jim Meyering <jim@meyering.net>
18806 * m4/prereq.m4: Don't forbid jm_ prefix.
18808 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
18809 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
18810 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
18811 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
18812 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
18813 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
18814 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
18815 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
18816 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
18817 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
18818 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
18819 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
18820 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
18821 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
18822 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
18823 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
18824 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
18825 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
18826 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
18828 2004-04-18 Jim Meyering <jim@meyering.net>
18830 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
18831 failure, don't leak memory and do call END_UTMP_ENT.
18833 2004-04-16 Jim Meyering <jim@meyering.net>
18835 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
18836 coreutils' stat program.
18837 (gl_PREREQ): Don't require jm_PREREQ_STAT.
18839 2004-04-11 Paul Eggert <eggert@twinsun.com>
18841 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
18843 (CHAR_BIT): Remove, since we assume C89.
18844 Include <stdint.h> if available, as per current Autoconf CVS advice.
18846 2004-03-31 Jim Meyering <jim@meyering.net>
18848 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
18849 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
18850 * m4/xalloc.m4: Likewise.
18852 2004-03-30 Paul Eggert <eggert@twinsun.com>
18854 Merge from coreutils.
18856 * m4/inttostr.m4: New file.
18857 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
18858 Require AM_STDBOOL_H and gl_TIMESPEC instead.
18859 Require gl_CLOCK_TIME.
18860 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
18862 2004-03-30 Paul Eggert <eggert@twinsun.com>
18864 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
18865 not bool, to be more consistent with Unix conventions.
18866 Suggested by Bruno Haible.
18868 Merge from coreutils.
18870 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
18871 * lib/umaxtostr.c: New files.
18873 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
18874 the usual <time.h> dance.
18875 (get_date): Change signature to support fractional time stamps.
18876 All callers changed.
18877 * lib/getdate.y: Include "getdate.h" first, as we can now
18878 assume C89 and don't need to worry about 'const'.
18879 Similarly, include "unlocked-io.h" near start, not in middle.
18880 Include <limits.h>.
18881 (textint.value): Use long int rather than int.
18882 (textint.digits): Use size_t rather than int.
18883 (BILLION, LOG10_BILLION): New constants.
18884 (parser_control): New member rel_ns. Members day_ordinal,
18885 time_zone, month, day, hour, minutes, rel_year, rel_month,
18886 rel_day, rel_hour, rel_minutes, rel_seconds
18887 are now long int, not int. Member seconds is now struct timespec,
18888 not int. New member timespec_seen. Members dates_seen, days_seen,
18889 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
18891 (%union.intval): Now long int, not int.
18892 New member timespec.
18893 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
18894 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
18895 (spec): Now is a timespec or an item list.
18896 (timespec, items): New nonterminals.
18897 (time, rel, relunit, number, get_date):
18898 Add support for fractional seconds.
18899 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
18900 (gmtime, localtime, mktime): Remove decls; not needed with C89.
18901 (to_hour): First arg is now long int, not int.
18902 (to_year): Returns long int, not int.
18903 Don't treat year -70 like 70.
18904 (tm_diff): Returns long int, not int.
18905 (lookup_word): Use bool instead of int when appropriate.
18906 (yylex): Use size_t for count, not int.
18907 Detect overflow when parsing large integer constants.
18908 Add support for fractions.
18909 (get_date): Make pointers 'const' if possible.
18910 Use more-portable code to detect integer overflow.
18911 (main) [TEST]: Adjust to above changes. Test for localtime failure.
18912 Don't use ctime; it's not reliable if the year has >4 digits.
18914 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
18915 This is for compatibility with BSD.
18917 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
18918 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
18919 From coreutils' system.h.
18921 * lib/userspec.c: Don't include "posixver.h".
18922 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
18923 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
18924 compatible extension. Simplify code by removing a boolean int
18925 that was always nonzero if a string was nonnull.
18927 2004-03-30 Jim Meyering <jim@meyering.net>
18929 Merge from coreutils.
18931 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
18932 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
18933 on some systems one must include <grp.h> before it.
18934 Reported by Christian Krackowizer.
18936 2004-03-30 Jim Meyering <jim@meyering.net>
18938 Merge from coreutils.
18940 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
18942 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
18943 an empty input stream.
18945 * lib/readtokens.c: Include <stdbool.h>.
18946 (readtoken): Use `size_t' rather than int/long.
18947 All callers adjusted.
18948 Use `bool' rather than `int' where appropriate.
18949 Use memset rather than an explicit loop.
18950 Use x2nrealloc rather than xrealloc.
18951 Allow the use of `\0' as a delimiter.
18952 (readtokens): Likewise.
18953 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
18955 2004-03-30 Jim Meyering <jim@meyering.net>
18957 * m4/realloc.m4: Remove file, since now it does no more than
18958 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
18959 the `configure.ac' section of module/realloc.
18960 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
18962 2004-03-30 Bruno Haible <bruno@clisp.org>
18964 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
18967 2004-03-29 Paul Eggert <eggert@twinsun.com>
18969 Merge changes to getloadavg.c from coreutils and Emacs.
18971 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
18972 Define to an expression, not to the empty string.
18973 Include cloexec.h and xalloc.h.
18974 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
18975 Use set_cloexec_flag rather than rolling our own.
18976 * lib/cloexec.c, lib/cloexec.h: New files.
18978 2004-03-29 Paul Eggert <eggert@twinsun.com>
18980 * m4/cloexec.m4: New file.
18982 2004-03-18 Paul Eggert <eggert@twinsun.com>
18984 * lib/getopt.h: Sync with libc CVS.
18986 2004-03-18 Paul Eggert <eggert@twinsun.com>
18987 Bruno Haible <bruno@clisp.org>
18989 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
18992 2004-03-18 Paul Eggert <eggert@twinsun.com>
18993 Bruno Haible <bruno@clisp.org>
18995 * lib/mbswidth.h: Include <wchar.h> only if
18996 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
18998 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
19000 2004-03-09 Paul Eggert <eggert@twinsun.com>
19002 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
19003 Sync with libc CVS.
19004 * lib/getopt_int.h: New file, also synced from libc.
19006 2004-03-09 Paul Eggert <eggert@twinsun.com>
19008 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
19009 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
19010 Bring back getopt.c, getopt.h, getopt1.c.
19012 2004-03-07 Paul Eggert <eggert@twinsun.com>
19014 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
19015 All uses changed. Check for sa_sigaction member; this fixes
19016 a bug first reported by Jason Andrade in
19017 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
19019 2004-03-07 Paul Eggert <eggert@twinsun.com>
19021 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
19022 '#if' expressions. Unlike the code it replaces, it does not
19023 depend on (defined _SC_PAGESIZE). However, it does depend on
19024 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
19025 first reported by Jason Andrade in
19026 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
19028 2004-02-25 Simon Josefsson <jas@extundo.com>
19030 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
19032 2004-02-25 Simon Josefsson <jas@extundo.com>
19034 * lib/strdup.h: New file.
19035 * lib/strdup.c: Include it.
19036 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
19037 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
19039 2004-02-23 Karl Berry <karl@gnu.org>
19041 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
19042 (from fencepost.gnu.org:/gd/gnuorg).
19044 2004-02-23 Karl Berry <karl@gnu.org>
19046 * config/srclistvars.sh (GNUORG) [karl]: redefine.
19047 * config/srclist.txt: add maintain/standards documents.
19049 2004-02-18 Bruno Haible <bruno@clisp.org>
19051 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
19052 Reported by Derek Robert Price <derek@ximbiot.com>.
19054 2004-02-16 Karl Berry <karl@gnu.org>
19056 * config/mkinstalldirs, install-sh: update from automake.
19058 2004-02-06 Karl Berry <karl@gnu.org>
19060 * m4/po.m4: update from gettext 0.14.1.
19062 2004-02-06 Karl Berry <karl@gnu.org>
19064 * lib/config.charset: update from gettext 0.14.1.
19066 2004-02-05 Paul Eggert <eggert@twinsun.com>
19068 Add comments and code, prompted by suggestions from Bruno Haible
19070 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
19071 describing the enum quoting_style values.
19072 * lib/quotearg.c (quotearg_alloc): New function.
19073 (quotearg_buffer_restyled): Treat lone { and } as special.
19074 Treat = as special. Work around bug with older shells
19075 that "see" a '\' that is really the 2nd byte of a multibyte char.
19076 Quote empty string with shell_quoting_style.
19078 2004-02-03 Bruno Haible <bruno@clisp.org>
19080 * m4/pipe.m4: New file, from GNU gettext.
19082 2004-02-03 Bruno Haible <bruno@clisp.org>
19084 * lib/pipe.h: New file, from GNU gettext.
19085 * lib/pipe.c: New file, from GNU gettext.
19087 2004-01-27 Bruno Haible <bruno@clisp.org>
19089 * m4/execute.m4: New file, from GNU gettext.
19091 2004-01-27 Bruno Haible <bruno@clisp.org>
19093 * lib/execute.h: New file, from GNU gettext.
19094 * lib/execute.c: New file, from GNU gettext.
19095 * lib/w32spawn.h: New file, from GNU gettext.
19097 2004-01-24 Paul Eggert <eggert@twinsun.com>
19099 Merge from diffutils.
19101 * lib/file-type.c (file_type): Add typed memory objects.
19102 * lib/file-type.h (S_TYPEISTMO): New macro.
19104 * lib/c-stack.h (c_stack_action): Remove argv argument.
19105 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
19106 (die): Don't calculate message unless segv_action returns.
19107 (get_stack_location, min_address_from_argv, max_address_from_argv,
19108 volatile stack_base, volatile_stack_size): Remove.
19109 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
19110 that every segmentation violation is a stack overflow. (Ouch!)
19111 See Debian bug 136249 (still outstanding) for more info about why
19112 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
19114 2004-01-24 Paul Eggert <eggert@twinsun.com>
19116 Exit-status fix from coreutils.
19118 Use exit_failure consistently in place of EXIT_FAILURE,
19119 so that program exit statuses are consistent on failure.
19121 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
19122 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
19123 * lib/argmatch.h: Comment fix to match the above.
19124 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
19125 Now a macro referring to exit_failure, instead of a separate
19126 variable. Include "exitfail.h" to get it.
19127 * lib/xstrtol.h: Include "exitfail.h".
19128 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
19130 * lib/long-options.c (parse_long_options): Use prototype
19131 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
19134 2004-01-21 Jim Meyering <jim@meyering.net>
19136 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
19137 so as not to conflict with a different-sized __mktime_internal
19138 function in GNU libc.
19139 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
19140 Problem building statically-linked `ls' reported by Michael Brunnbauer.
19142 2004-01-20 Karl Berry <karl@gnu.org>
19144 * config/config.guess: update from config.
19146 * config/srclistvars.sh: GNUWWWLICENSES for karl.
19148 2004-01-20 Bruno Haible <bruno@clisp.org>
19150 Safer stack allocation.
19151 * lib/setenv.c: Include allocsa.h.
19152 (alloca): Remove fallback definition.
19153 (freea): Remove macro.
19154 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
19157 2004-01-20 Bruno Haible <bruno@clisp.org>
19159 * m4/eealloc.m4: New file, from GNU gettext.
19161 2004-01-20 Bruno Haible <bruno@clisp.org>
19163 * m4/allocsa.m4: New file, from GNU gettext.
19165 2004-01-20 Bruno Haible <bruno@clisp.org>
19167 * lib/xallocsa.h: New file, from GNU gettext.
19168 * lib/xallocsa.c: New file, from GNU gettext.
19170 2004-01-20 Bruno Haible <bruno@clisp.org>
19172 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
19174 2004-01-20 Bruno Haible <bruno@clisp.org>
19176 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
19177 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
19180 2004-01-20 Bruno Haible <bruno@clisp.org>
19182 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
19185 2004-01-20 Bruno Haible <bruno@clisp.org>
19187 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
19189 2004-01-20 Bruno Haible <bruno@clisp.org>
19191 * lib/eealloc.h: New file.
19193 2004-01-20 Bruno Haible <bruno@clisp.org>
19195 * lib/binary-io.h: Avoid warnings on Cygwin.
19197 2004-01-20 Bruno Haible <bruno@clisp.org>
19199 * lib/allocsa.h: New file, from GNU gettext.
19200 * lib/allocsa.c: New file, from GNU gettext.
19202 2004-01-18 Karl Berry <karl@gnu.org>
19204 * doc/gpl.texi, doc/lgpl.texi: new files.
19206 2004-01-18 Karl Berry <karl@gnu.org>
19208 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
19209 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
19211 2004-01-15 Paul Eggert <eggert@twinsun.com>
19213 Merge from coreutils.
19215 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
19216 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
19217 (gl_DEFAULT_POSIX2_VERSION): Move
19218 the documentation from 'configure' into 'config.hin',
19219 so that 'configure --help' isn't burdened by it and
19220 we don't have to worry about its formatting there.
19221 Reword the documentation so that it's more succinct
19222 and can be run together into a single paragraph.
19223 * m4/same.m4 (gl_SAME): Check for pathconf.
19225 2004-01-15 Paul Eggert <eggert@twinsun.com>
19227 Merge from coreutils.
19229 * lib/posixver.c: Include posixver.h.
19231 * lib/same.c: Include <stdbool.h>, <limits.h>.
19232 (_POSIX_NAME_MAX): Define if not defined.
19234 (same_name): If file names are silently truncated, report
19235 that the file names are the same if they are the same after
19236 the silent truncation.
19238 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
19239 conversion function.
19240 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
19241 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
19244 2004-01-15 Jim Meyering <jim@meyering.net>
19246 Merge from coreutils.
19248 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
19249 if no library is required.
19250 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
19251 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
19252 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
19253 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
19254 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
19255 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
19256 value, $ac_cv_search_crypt, if it's "none required".
19257 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
19258 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
19259 not gl_FUNC_GETLOADAVG.
19260 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
19261 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
19263 2004-01-15 Jim Meyering <jim@meyering.net>
19265 Merge from coreutils.
19267 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
19268 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
19269 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
19271 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
19272 optional configure-time default.
19274 * lib/version-etc.c (version_etc_copyright): Update copyright date.
19276 * lib/xreadlink.c (xreadlink): Correct outdated comment.
19278 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
19280 Merge from coreutils.
19282 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
19283 value, $ac_cv_search_nanosleep, if it's "none required".
19285 2004-01-14 Paul Eggert <eggert@twinsun.com>
19287 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
19288 with like-named macro in fnmatch.c.
19289 (EXT): Use an internal constant instead.
19291 Merge fnmatch patches from glibc.
19292 * lib/fnmatch.c (mbsinit): Remove define.
19293 Add libc_hidden_ver (__fnmatch, fnmatch).
19294 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
19295 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
19297 2004-01-14 Karl Berry <karl@gnu.org>
19299 * config/install-sh: update from automake.
19301 2004-01-13 Karl Berry <karl@gnu.org>
19303 * config/install-sh: update from automake.
19305 2004-01-09 Karl Berry <karl@gnu.org>
19307 * config/install-sh: update from automake.
19309 2004-01-05 Karl Berry <karl@gnu.org>
19311 * config/config.{sub,guess}: update from config.
19313 2003-12-31 Karl Berry <karl@gnu.org>
19315 * config/depcomp: update from automake.
19317 2003-12-14 Karl Berry <karl@gnu.org>
19319 * lib/config.charset: update from gettext-runtime.
19321 2003-12-03 Paul Eggert <eggert@twinsun.com>
19323 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
19324 Bug reported by Alfred M. Szmidt.
19326 2003-12-03 Bruno Haible <bruno@clisp.org>
19328 * m4/gettext.m4: Upgrade from gettext-0.13.
19329 * m4/po.m4: Upgrade from gettext-0.13.
19330 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
19331 * m4/intmax.m4: New file, from gettext-0.13.
19332 * m4/printf-posix.m4: New file, from gettext-0.13.
19334 2003-11-29 Karl Berry <karl@gnu.org>
19336 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
19338 2003-11-25 Paul Eggert <eggert@twinsun.com>
19339 Bruno Haible <bruno@clisp.org>
19341 * lib/printf-parse.h: Don't include sys/types.h.
19342 (ARG_NONE): New macro.
19343 (char_directive): Change type of *arg_index fields to size_t.
19344 * lib/printf-parse.c: Don't include sys/types.h.
19345 (SSIZE_MAX): Remove macro.
19346 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
19347 Remove unnecessary overflow check.
19348 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
19351 2003-11-25 Bruno Haible <bruno@clisp.org>
19353 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
19355 2003-11-25 Bruno Haible <bruno@clisp.org>
19357 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
19360 2003-11-24 Paul Eggert <eggert@twinsun.com>
19362 * modules/alloca: Remove dependency on xalloc.
19364 2003-11-24 Paul Eggert <eggert@twinsun.com>
19366 * lib/alloca.c: Remove dependency on xalloc module.
19367 (xalloc_die): Remove.
19368 (memory_full) [!defined emacs]: New macro.
19369 [!defined emacs]: Don't include xalloc.h.
19370 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
19371 address arithmetic overflows. Change datatypes a bit to avoid
19374 2003-11-22 Jim Meyering <jim@meyering.net>
19376 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
19379 2003-11-21 Karl Berry <karl@gnu.org>
19381 * config/config.{sub,guess}: update from config.
19383 2003-11-18 Karl Berry <karl@gnu.org>
19385 * config/config.{sub,guess}: update from config.
19387 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
19389 2003-11-17 Paul Eggert <eggert@twinsun.com>
19391 * README: Mention that S+T cannot overflow if S is the size of
19392 an existing object and T is sufficiently small.
19394 2003-11-17 Jim Meyering <jim@meyering.net>
19396 On systems without utime and without a utimes function capable of
19397 dealing with a NULL struct utimbuf* argument, this utime replacement
19398 could -- in unusual circumstances -- leak a file descriptor.
19399 * lib/utime.c: Include <unistd.h> and <errno.h>.
19400 (utime_null): Be sure to close `fd' and to preserve errno.
19401 Reported by Geoff Collyer via Arnold Robbins.
19403 2003-11-17 Bruno Haible <bruno@clisp.org>
19405 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
19406 (Depends-on): Add xsize.
19408 2003-11-17 Bruno Haible <bruno@clisp.org>
19410 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
19412 2003-11-17 Bruno Haible <bruno@clisp.org>
19414 * lib/vasnprintf.c (alloca): Remove fallback definition.
19415 (freea): Remove definition.
19416 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
19417 Reported by Paul Eggert.
19419 2003-11-16 Paul Eggert <eggert@twinsun.com>
19420 Bruno Haible <bruno@clisp.org>
19422 Protect against address arithmetic overflow.
19423 * lib/printf-args.h: Include stddef.h.
19424 (arguments): Change type of field 'count' to size_t.
19425 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
19426 'unsigned int' where appropriate.
19427 * lib/printf-parse.h: Include sys/types.h.
19428 (char_directive): Change type of *arg_index fields to ssize_t.
19429 (char_directives): Change type of fields 'count', max_*_length to
19431 * lib/printf-parse.c: Include sys/types.h and xsize.h.
19432 (SSIZE_MAX): Define fallback value.
19433 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
19434 instead of 'int' where appropriate. Check a_allocated, d_allocated
19435 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
19436 * lib/vasnprintf.c: Include xsize.h.
19437 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
19438 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
19439 overflow. Avoid wraparound when converting a width or precision from
19442 2003-11-16 Bruno Haible <bruno@clisp.org>
19444 Update from GNU gettext.
19445 * lib/printf-parse.c: Generalize to it can be compiled for wide
19447 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
19448 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
19449 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
19450 SNPRINTF): New macros.
19451 Don't include <alloca.h> if the file is used inside libintl.
19452 (local_wcslen): New function, for Solaris 2.5.1.
19453 (VASNPRINTF): Use it instead of wcslen.
19455 2003-11-16 Bruno Haible <bruno@clisp.org>
19457 * lib/xsize.h (xmax): New function.
19458 (xsum, xsum3, xsum4): Declare as "pure" functions.
19460 2003-11-12 Paul Eggert <eggert@twinsun.com>
19462 * modules/xalloc (Files): Undo latest change, since xalloc.h
19463 no longer needs SIZE_MAX or PTRDIFF_MAX.
19465 2003-11-12 Paul Eggert <eggert@twinsun.com>
19467 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
19470 2003-11-12 Paul Eggert <eggert@twinsun.com>
19472 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
19473 "return", to pacify some unknown compiler. Problem reported
19474 by Joerg Schilling.
19476 2003-11-12 Paul Eggert <eggert@twinsun.com>
19478 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
19479 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
19480 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
19481 heuristic is just as accurate as far as we know, and it removes a
19482 dependency on size_max.m4 and ptrdiff_max.m4.
19484 2003-11-11 Bruno Haible <bruno@clisp.org>
19486 * modules/xsize (Files): Add m4/size_max.m4.
19487 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
19489 2003-11-11 Bruno Haible <bruno@clisp.org>
19491 * m4/size_max.m4: New file.
19492 * m4/ptrdiff_max.m4: New file.
19493 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
19494 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
19495 (gl_XALLOC): Invoke it.
19497 2003-11-11 Bruno Haible <bruno@clisp.org>
19499 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
19500 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
19503 2003-11-10 Paul Eggert <eggert@twinsun.com>
19505 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
19506 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
19507 rejected some allocations of exactly SIZE_MAX - 2 bytes.
19509 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
19510 not (size_t) -1, since it's defined here.
19512 2003-11-09 Karl Berry <karl@gnu.org>
19514 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
19516 2003-11-06 Paul Eggert <eggert@twinsun.com>
19518 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
19519 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
19520 Reject sizes of exactly SIZE_MAX bytes.
19521 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
19522 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
19524 2003-11-05 Bruno Haible <bruno@clisp.org>
19526 * lib/xsize.h: Include limits.h, to avoid a possible collision with
19527 SIZE_MAX defined in <limits.h> on Solaris.
19529 2003-11-04 Jim Meyering <jim@meyering.net>
19531 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
19532 variable names, rather than @VAR@.
19533 * modules/poll: Likewise.
19535 2003-11-04 Bruno Haible <bruno@clisp.org>
19537 * modules/xsize: New file.
19538 * modules/linebreak: Depend on xsize.
19539 * MODULES.html.sh (func_all_modules): Add xsize.
19541 2003-11-04 Bruno Haible <bruno@clisp.org>
19543 * m4/xsize.m4: New file.
19545 2003-11-04 Bruno Haible <bruno@clisp.org>
19547 * lib/xsize.h: New file.
19548 * lib/linebreak.c: Include xsize.h.
19549 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
19550 argument for overflow.
19551 Suggested by Paul Eggert.
19553 2003-11-03 Karl Berry <karl@gnu.org>
19555 * config/config.{guess,sub}: update from config.
19557 2003-11-03 Jim Meyering <jim@meyering.net>
19559 * modules/userspec (lib_SOURCES): Add userspec.h.
19560 (Include): Add "userspec.h".
19561 Improve description.
19563 2003-11-03 Jim Meyering <jim@meyering.net>
19565 * lib/userspec.c: Include "userspec.h".
19566 * lib/userspec.h: New file.
19568 2003-11-03 Bruno Haible <bruno@clisp.org>
19570 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
19572 2003-11-03 Bruno Haible <bruno@clisp.org>
19574 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
19575 available, to avoid (extremely rare) race condition.
19576 Suggested by Paul Eggert.
19578 2003-11-02 Karl Berry <karl@gnu.org>
19580 * config/srclist.txt (vasprintf.c): sync broken, sigh.
19582 2003-10-31 Paul Eggert <eggert@twinsun.com>
19584 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
19585 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
19586 (read_filesystem_list): Set and use me_type_malloced.
19587 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
19588 whatever the type happens to be), for brevity and consistency.
19589 Check for size calculation overflow on Alphas running OSF/1.
19591 2003-10-31 Jim Meyering <jim@meyering.net>
19593 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
19595 * lib/linebuffer.c: Include <string.h> for declaration of memset.
19597 2003-10-30 Paul Eggert <eggert@twinsun.com>
19598 Bruno Haible <bruno@clisp.org>
19600 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
19601 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
19603 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
19605 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
19606 netbsd*-gnu*. Suggested by Robert Millan.
19608 2003-10-29 Paul Eggert <eggert@twinsun.com>
19610 * modules/group-member: Depend on stdbool.
19612 2003-10-29 Paul Eggert <eggert@twinsun.com>
19614 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
19616 2003-10-29 Paul Eggert <eggert@twinsun.com>
19618 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
19619 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
19620 after the 'gnu' in these cases. This fixes some bugs in the
19621 previous change, and is based on suggestions by Robert Millan.
19623 2003-10-29 Paul Eggert <eggert@twinsun.com>
19625 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
19626 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
19628 * lib/quotearg.c (quotearg_n_options): Use it.
19629 * lib/group-member.c: Include <stdbool.h>.
19630 (free_group_info): Arg is now const *; don't free arg.
19631 (get_group_info): Now returns bool and accepts struct group_info *,
19632 rather than returning a malloc'ed struct group_info *.
19633 All uses changed. Check for overflow in internal size calculation.
19635 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
19636 rather than xmalloc/xrealloc.
19637 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
19638 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
19639 conformance bug: the old code used a pointer after freeing the
19640 storage that it addressed.
19641 * lib/hash.c (hash_initialize): Simplify the code by using
19642 xalloc_oversized rather than doing it by hand.
19643 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
19644 the buffer preserved. Use free and xmalloc instead.
19645 * lib/quotearg.c (quotearg_n_options): Likewise.
19646 Use a simpler test for size overflow. Don't use xalloc_oversized
19647 because unsigned int might be wider than size_t (!); this suggests
19648 that we should switch from unsigned int to size_t for slot numbers.
19650 2003-10-28 Paul Eggert <eggert@twinsun.com>
19652 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
19653 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
19654 NetBSD kernels. Requested by Richard Stallman.
19656 2003-10-27 Paul Eggert <eggert@twinsun.com>
19658 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
19659 to allocate the returned structure. Do not allocate a subarray,
19660 as x2nrealloc will do that.
19661 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
19662 instead of xnrealloc.
19663 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
19665 2003-10-27 Bruno Haible <bruno@clisp.org>
19667 * lib/stdbool_.h: Better support for BeOS.
19669 2003-10-26 Paul Eggert <eggert@twinsun.com>
19671 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
19674 2003-10-26 Paul Eggert <eggert@twinsun.com>
19676 * lib/xalloc.h (xalloc_oversized): New static inline function, for
19677 callers that want to do their own size-overflow checking. Include
19678 <stdbool.h>, since xalloc_oversized returns bool.
19679 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
19680 to use xalloc_oversized.
19682 Add two functions x2realloc, x2nrealloc, for programs that grow
19683 arrays dynamically by doubling their sizes.
19684 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
19685 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
19688 Port to C99 semantics for 'inline' of external functions.
19689 Bug reported by Bruno Haible.
19690 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
19691 with the old contents of xnmalloc.
19692 (xnmalloc, xmalloc): Use it.
19693 (xnrealloc_inline): New static inline function,
19694 with the old contents of xnrealloc.
19695 (xnrealloc, xrealloc): Use it.
19697 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
19700 2003-10-26 Karl Berry <karl@gnu.org>
19702 * config/srclist.txt (COPYING.DOC): no longer available from
19703 /gd/gnuorg; don't know where the ultimate source is.
19705 2003-10-25 Paul Eggert <eggert@twinsun.com>
19707 Fix several address-calculation bugs in the hash modules,
19708 plus some minor code cleanup.
19710 * lib/hash.h: Include <stdbool.h>, for bool.
19711 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
19712 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
19713 hash_get_n_entries, hash_get_max_bucket_length,
19714 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
19715 hash_rehash): Use size_t rather than unsigned.
19716 * lib/hash.c (struct hash_table, hash_get_n_buckets,
19717 hash_get_n_buckets_used, hash_get_n_entries,
19718 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
19719 hash_get_entries, hash_do_for_each, hash_string, is_prime,
19720 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
19722 (SIZE_MAX): Define if not defined.
19723 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
19724 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
19726 Use const * when possible.
19727 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
19728 (check_tuning): Fix bug: if tuning parameters were very close to
19729 0 or 1, rounding errors could have caused subscript violations.
19730 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
19731 (hash_initialize): Add 'fail:' label
19732 to free table and return NULL, and use it to simplify code.
19733 Use calloc rather than clearing the storage ourself.
19734 (hash_initialize, hash_rehash): Check for arithmetic overflow in
19735 buffer size calculations.
19736 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
19737 Include <stddef.h>, for size_t.
19738 * lib/hash-pjw.c (hash_pjw): Likewise.
19739 Switch to method described by Bruno Haible.
19740 Include <limits.h>, for CHAR_BIT.
19741 (SIZE_BITS): New macro.
19743 2003-10-23 Paul Eggert <eggert@twinsun.com>
19745 * m4/getline.m4 (AM_FUNC_GETLINE):
19746 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
19747 hosts. Problem reported by Derek Robert Price in
19748 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
19749 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
19750 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
19752 2003-10-21 Paul Eggert <eggert@twinsun.com>
19754 * lib/getndelim2.c (getndelim2): When size calculation overflows,
19755 ceiling the allocation at NMAX bytes rather than silently
19756 discarding input bytes before NMAX is reached. This makes
19757 a difference only if NMAX exceeds SIZE_MAX / 2.
19759 * lib/obstack.c: Merge from glibc.
19760 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
19761 Add libc_hidden_def (_obstack_newchunk).
19762 (_obstack_free) [! defined _LIBC]: Remove.
19763 [defined _LIBC]: Make a strong alias from obstack_free, rather than
19764 a clone of the function body.
19765 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
19766 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
19768 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
19770 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
19773 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
19774 (obstack_ptr_grow_fast, obstack_int_grow_fast):
19775 Don't use lvalue casts, as GCC plans to remove support for them
19776 in GCC 3.5. Reported by Joseph S. Myers. This bug
19777 was also present in the non-GCC version, indicating that this
19778 code had always been buggy and had never been widely used.
19779 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
19780 Use the fast variant of each macro, rather than copying the
19781 definiens of the fast variant; that way, we'll be more likely to
19782 catch future bugs in the fast variants.
19784 2003-10-20 Bruno Haible <bruno@clisp.org>
19786 * modules/wait-process: New file.
19787 * MODULES.html.sh (func_all_modules): Add wait-process.
19789 2003-10-20 Bruno Haible <bruno@clisp.org>
19791 * m4/wait-process.m4: New file.
19793 2003-10-20 Bruno Haible <bruno@clisp.org>
19795 * lib/wait-process.h: New file, from GNU gettext.
19796 * lib/wait-process.c: New file, from GNU gettext.
19798 2003-10-19 Jim Meyering <jim@meyering.net>
19800 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
19803 2003-10-18 Karl Berry <karl@gnu.org>
19805 * config/config.guess: update from config.
19807 2003-10-16 Paul Eggert <eggert@twinsun.com>
19809 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
19810 (getgroups): First arg is int, not size_t.
19811 Don't let 'free' mangle errno.
19813 2003-10-16 Paul Eggert <eggert@twinsun.com>
19815 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
19817 2003-10-16 Karl Berry <karl@gnu.org>
19819 * config/config.{guess,sub}: update from config.
19821 2003-10-16 Jim Meyering <jim@meyering.net>
19823 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
19826 2003-10-15 Paul Eggert <eggert@twinsun.com>
19828 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
19829 (SIZE_MAX): Remove.
19830 (new_exclude, add_exclude_file): Initial size no longer needs to
19832 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
19833 our own address arithmetic overflow checking.
19835 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
19836 (fnmatch): Do not alloca more than 2000 wide characters;
19837 instead, use malloc for large buffers.
19838 Check for address arithmetic overflow, and return -1
19839 with errno set to ENOMEM in that case.
19840 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
19841 (NEW_PATTERN): Do not alloca more than 8000 bytes;
19842 instead, return -1. Check for address arithmetic overflow.
19844 2003-10-14 Paul Eggert <eggert@twinsun.com>
19846 Handle invalid suffixes and overflow independently, so that
19847 callers can treat them independently as needed. Fix some bugs in
19848 suffix handling, e.g., "100k@" was not diagnosed as an invalid
19849 suffix for a human-readable blocksize. The major caller-visible
19850 change is the addition of a new
19851 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
19852 that both overflow and suffix chars were found.
19854 * lib/human.c (humblock): Don't check separately for invalid suffix
19855 char; that is xstrtoumax's job (now that its bug is fixed).
19856 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
19857 INTMAX_MAX]: New macros.
19858 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
19859 TYPE_MAXIMUM): New macros.
19860 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
19861 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
19862 if overflow occurs, as it's what __strtol does and it's more useful
19864 (__xstrtol): If __strtol reports some error other than ERANGE,
19865 reflect it to the caller as LONGINT_INVALID. If it reports
19866 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
19867 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
19868 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
19870 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
19871 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
19872 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
19873 [defined UINTMAX_MAX]: New macros.
19875 2003-10-14 Bruno Haible <bruno@clisp.org>
19877 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
19879 2003-10-14 Bruno Haible <bruno@clisp.org>
19881 * m4/sig_atomic_t: New file, from GNU gettext.
19882 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
19884 2003-10-14 Bruno Haible <bruno@clisp.org>
19886 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
19887 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
19888 Also use volatile where needed.
19890 2003-10-12 Paul Eggert <eggert@twinsun.com>
19892 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
19893 Change maintainer from Bruno Haible to 'all'.
19895 2003-10-12 Paul Eggert <eggert@twinsun.com>
19897 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
19899 2003-10-12 Paul Eggert <eggert@twinsun.com>
19901 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
19902 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
19903 and define in terms of the other primitives.
19904 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
19905 (SIZE_MAX): Define if not already defined.
19906 (array_size_overflow): New function.
19907 (xalloc_die): Abort instead of exiting if 'error' returns.
19908 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
19909 (xmalloc, xrealloc): Use them.
19910 (xcalloc): Check for address arithmetic overflow.
19911 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
19912 a bit faster than strcpy.
19914 2003-10-10 Simon Josefsson <jas@extundo.com>
19916 * modules/argp (Depends-on): Add restrict and strcase.
19918 2003-10-10 Simon Josefsson <jas@extundo.com>
19920 * m4/argp.m4: Add AC_C_INLINE.
19922 2003-10-08 Paul Eggert <eggert@twinsun.com>
19924 Merge getpass from libc, plus a few fixes.
19926 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
19927 Include <stdbool.h>.
19928 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
19929 __fsetlocking to empty.
19930 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
19931 do include <bits/libc-lock.h>.
19932 Do not include <fcntl.h>; not needed.
19933 [_LIBC]: Include <wchar.h>.
19934 (NOTCANCEL_MODE): New macro.
19935 (flockfile, funlockfile) [_LIBC]: New macros.
19936 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
19937 [!_LIBC]: New macros.
19938 (call_fclose): New function.
19939 (getpass): Use it. Save tty stream separately; this simplifies the
19940 code and makes it more reliable if stdin happens to equal stdout.
19941 Invoke __fsetlocking on tty.
19942 Handle thread cancellation if needed.
19943 Namespace cleanup (use __tcgetattr, __getline).
19944 Use bool for Booleans.
19945 [USE_IN_LIBIO]: Handle wide streams.
19946 [!_LIBC]: Unconditionally do the fseek, since we don't know what
19947 stream might go where.
19949 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
19950 doesn't have to include <stdio.h> before us.
19951 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
19952 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
19953 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
19954 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
19955 if not declared, so that we can use getpass.c code from libc without
19957 (flockfile, ftrylockfile, funlockfile): New macros.
19959 2003-10-08 Paul Eggert <eggert@twinsun.com>
19961 * modules/getpass: Depend on stdbool.
19963 2003-10-08 Paul Eggert <eggert@twinsun.com>
19965 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
19967 2003-10-07 Karl Berry <karl@gnu.org>
19969 * config/config.{guess,sub}: update from config.
19971 2003-10-06 Jim Meyering <jim@meyering.net>
19972 Bruno Haible <bruno@clisp.org>
19974 This lets translators provide better translations for the
19975 "Written by ..." part of --version output.
19976 * lib/version-etc.h: Include stdarg.h.
19977 (version_etc_copyright): Declare as readonly.
19978 (version_etc): Make this function variadic with a NULL-terminated list
19979 of author name strings.
19980 (version_etc_va): New declaration.
19981 * lib/version-etc.c: Include stdarg.h, stdlib.h.
19982 (version_etc_copyright): Declare as readonly.
19983 (version_etc_va): New function. Provide a different translatable string
19984 for each possible number of authors < 10. Abbreviate when there are 10
19986 (version_etc): Make this function variadic. Call version_etc_va.
19987 Suggestion from Gary V. Vaughan.
19989 * lib/long-options.h (parse_long_options): Change prototype: the
19990 authors string is moved to the end and becomes variadic.
19991 * lib/long-options.c: Include stdarg.h.
19992 (parse_long_options): Make this function variadic, too.
19993 Call version_etc_va, not version_etc.
19995 2003-10-06 Bruno Haible <bruno@clisp.org>
19997 * modules/version-etc-2: Remove file.
19998 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
20000 2003-10-06 Bruno Haible <bruno@clisp.org>
20002 * modules/fatal-signal: New file.
20003 * MODULES.html.sh (func_all_modules): Add fatal-signal.
20005 2003-10-06 Bruno Haible <bruno@clisp.org>
20007 * m4/fatal-signal.m4: New file.
20008 * m4/signalblocking.m4: New file, from GNU gettext.
20010 2003-10-06 Bruno Haible <bruno@clisp.org>
20012 * lib/version-etc-2.h: Remove file.
20013 * lib/version-etc-2.c: Remove file.
20015 2003-10-06 Bruno Haible <bruno@clisp.org>
20017 * lib/fatal-signal.h: New file, from GNU gettext.
20018 * lib/fatal-signal.c: New file, from GNU gettext.
20020 2003-10-05 Paul Eggert <eggert@twinsun.com>
20022 * README: Rework advice for preventing empty .o files.
20023 Don't recommend ELIDE constructs. Recommend <stddef.h>,
20026 2003-10-04 Karl Berry <karl@gnu.org>
20028 * lib/argp*: update from libc.
20030 2003-10-04 Karl Berry <karl@gnu.org>
20032 * config/config.{guess,sub}: update from config.
20034 2003-10-02 Bruno Haible <bruno@clisp.org>
20036 * modules/lchown (Include): Add lchown.h.
20037 * modules/time_r (Include): Use "..." syntax.
20038 * modules/xgetdomainname (Include): Add xgetdomainname.h.
20040 2003-10-01 Simon Josefsson <jas@extundo.com>
20042 * MODULES.html.sh (func_all_modules): Move gethostname from section
20043 'based on' to section 'lacking' POSIX:2001.
20045 2003-10-01 Larry Jones <lawrence.jones@eds.com>
20047 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
20048 to output mode on the same stream.
20050 2003-09-29 Paul Eggert <eggert@twinsun.com>
20052 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
20053 Fix arg typo in previous patch.
20055 2003-09-28 Jim Meyering <jim@meyering.net>
20057 * lib/error.c: Correct cpp indentation.
20059 2003-09-27 Paul Eggert <eggert@twinsun.com>
20061 * modules/free: New file.
20063 2003-09-27 Paul Eggert <eggert@twinsun.com>
20065 * m4/free.m4: New file.
20067 2003-09-27 Paul Eggert <eggert@twinsun.com>
20069 * lib/minmax.h (MIN, MAX)
20070 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
20071 Omit the special code that used __typeof__, since we worry that
20072 it could be more trouble than it's worth. See:
20073 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
20074 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
20076 * lib/free.c: New file.
20078 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
20080 Trivial fixes to Makefile.am parts of module listings.
20081 * modules/strstr: Append strstr.h to lib_SOURCES.
20082 * modules/strcase: Likewise, for strcase.h.
20084 2003-09-27 Karl Berry <karl@gnu.org>
20086 * config/mkinstalldirs: update from automake.
20088 2003-09-26 Paul Eggert <eggert@twinsun.com>
20090 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
20091 (error_tail): Do not loop, reallocating temporary buffer, since
20092 the output cannot contain more wide characters than the input
20093 contains bytes, the size must be big enough already. This avoids
20094 one potential size overflow calculation. Check for size overflow
20095 when calculating temporary buffer size. Free temporary buffer
20096 when done, if it was allocated with malloc; this plugs a memory
20097 leak. Remove casts from void * to pointers, that are no longer
20098 needed now that we're assuming C89 or better.
20100 Merge error changes from glibc.
20102 * lib/error.c, error.h: Update copyright notice header to match glibc.
20103 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
20104 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
20105 Disable cancellation while printing error.
20106 * lib/error.h: Prepend __ to parameter names.
20108 2003-09-26 Jim Meyering <jim@meyering.net>
20110 * lib/error.c (error_tail): Move some declarations
20111 into inner scope where the local variables are used.
20113 2003-09-26 Bruno Haible <bruno@clisp.org>
20115 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
20117 Don't define stpncpy through config.h; it's now done through stpncpy.h.
20119 2003-09-26 Bruno Haible <bruno@clisp.org>
20121 * lib/stpncpy.h (gnu_stpncpy): New declaration.
20122 (stpncpy): Define as alias for gnu_stpncpy.
20123 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
20125 2003-09-25 Simon Josefsson <jas@extundo.com>
20127 * lib/xgetdomainname.h: New file.
20128 * lib/xgetdomainname.c: New file.
20130 2003-09-25 Simon Josefsson <jas@extundo.com>
20131 Bruno Haible <bruno@clisp.org>
20133 * modules/getdomainname: New file.
20134 * modules/xgetdomainname: New file.
20135 * MODULES.html.sh (func_all_modules): Add getdomainname,
20138 2003-09-25 Simon Josefsson <jas@extundo.com>
20139 Bruno Haible <bruno@clisp.org>
20141 * m4/getdomainname.m4: New file.
20143 2003-09-25 Simon Josefsson <jas@extundo.com>
20144 Bruno Haible <bruno@clisp.org>
20146 * lib/getdomainname.h: New file.
20147 * lib/getdomainname.c: New file.
20149 2003-09-25 Karl Berry <karl@gnu.org>
20151 * lib/argp-fmtstream.c, argp-help.c: update from libc.
20153 2003-09-25 Karl Berry <karl@gnu.org>
20155 * config/install-sh: update from automake.
20157 2003-09-25 Bruno Haible <bruno@clisp.org>
20159 * modules/version-etc-2: New file, from modules/version-etc with
20161 * MODULES.html.sh (func_all_modules): Add version-etc-2.
20163 2003-09-25 Bruno Haible <bruno@clisp.org>
20165 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
20166 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
20168 2003-09-24 Simon Josefsson <jas@extundo.com>
20170 * modules/xgethostname: Add xgethostname.h.
20172 2003-09-24 Paul Eggert <eggert@twinsun.com>
20174 * lib/linebuffer.c (freebuffer): Don't free the argument, just
20175 the buffer associated with the argument. Bug reported by
20178 2003-09-24 Paul Eggert <eggert@twinsun.com>
20180 * README: Document assumptions that 'int' is at least 32 bits
20181 wide, that integer arithmetic is 2's complement without overflow,
20182 that there are no holes in integer values, that adding sizes of
20183 two nonoverlapping objects can't overflow, and that all-bits-zero
20184 yields scalar zero. Fix spelling and capitalization typos.
20186 2003-09-19 Karl Berry <karl@gnu.org>
20188 * lib/argp.h: update from libc.
20190 2003-09-17 Paul Eggert <eggert@twinsun.com>
20192 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
20193 to avoid spurious warnings like "AC_RUN_IFELSE was called before
20194 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
20196 2003-09-17 Paul Eggert <eggert@twinsun.com>
20198 * gnulib-tool: Use "test -h", not "test -L", for portability
20199 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
20200 (tags_regexp): Remove, since \| doesn't conform to POSIX.
20201 (sed_extract_prog): Issue s commands one-by-one, rather than
20202 using \| in one s command.
20204 2003-09-16 Paul Eggert <eggert@twinsun.com>
20206 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
20207 input error, instead of returning NULL the next time we are called
20208 (and therefore losing track of errno).
20210 2003-09-16 Bruno Haible <bruno@clisp.org>
20212 * gnulib-tool (func_create_testdir): Warn about duplicated
20215 2003-09-15 Paul Eggert <eggert@twinsun.com>
20217 * modules/argmatch, modules/fatal, modules/obstack,
20218 modules/xalloc, modules/xgethostname: Sort dependencies by
20219 importance, not alphabetically.
20221 2003-09-15 Paul Eggert <eggert@twinsun.com>
20223 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
20224 fails, so that the caller gets the proper errno.
20226 * lib/readutmp.c (read_utmp): Likewise.
20227 Check for fstat error. Close stream and free storage
20230 2003-09-14 Karl Berry <karl@gnu.org>
20232 * config/srclist.txt (strdup.c): disable for c89 changes.
20234 2003-09-14 Jim Meyering <jim@meyering.net>
20236 * lib/getloadavg.c: Correct cpp indentation.
20237 * lib/strdup.c: Likewise.
20238 * lib/vasnprintf.c: Likewise.
20240 2003-09-14 Bruno Haible <bruno@clisp.org>
20242 * modules/fwriteerror: New file.
20243 * MODULES.html.sh (func_all_modules): Add fwriteerror.
20245 2003-09-14 Bruno Haible <bruno@clisp.org>
20247 * lib/fwriteerror.h: New file.
20248 * lib/fwriteerror.c: New file.
20250 2003-09-12 Paul Eggert <eggert@twinsun.com>
20252 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
20253 modules/xgethostname, modules/xalloc: Depend on exit.
20255 2003-09-12 Paul Eggert <eggert@twinsun.com>
20257 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
20259 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
20260 and AC_MINIX, too, so that their extensions are available.
20262 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
20263 This macro has been superseded by gl_BACKUPFILE.
20265 More patches to assume C89 or better.
20267 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
20269 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
20271 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
20272 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
20273 Include <string.h>, <stdlib.h> unconditionally.
20274 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
20275 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
20276 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
20277 headers or for string.h.
20278 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
20281 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
20283 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
20284 * m4/userspec.m4 (gl_USERSPEC): Likewise.
20285 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
20286 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
20287 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
20288 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
20290 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
20291 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
20292 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
20294 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
20295 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
20296 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
20299 2003-09-12 Paul Eggert <eggert@twinsun.com>
20301 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
20302 * lib/obstack.c [!defined _LIBC]: Likewise.
20303 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
20304 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
20305 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
20307 More changes to assume C89 or better.
20309 * lib/error.c (error_tail): Assume vprintf.
20311 * lib/argmatch.c (getenv): Remove decl.
20312 * lib/progreloc.c (get_full_program_name): Define via prototype.
20313 * lib/setenv.c (clearenv): Likewise.
20314 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
20316 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
20317 (malloc, memcpy): Remove decls.
20318 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
20319 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
20320 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
20321 (memcpy): Remove macro.
20322 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
20323 (__P): Remove. All uses removed.
20324 (PTR): Remove. All uses changed to void *.
20325 (CHAR_BIT, NULL): Remove.
20326 (spaces, zeros, memset_space, memset_zero)
20327 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
20329 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
20330 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
20331 Define with prototype.
20332 Remove now-unnecessary prototype decl.
20333 (extra_args_spec): Assume ANSI C. All uses changed.
20334 (extra_args_spec_iso): Remove.
20335 (my_strftime, emacs_strftimeu): Define via prototype.
20336 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
20338 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
20339 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
20340 (strtoul, strtol): Remove decls.
20341 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
20343 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
20344 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
20345 (LOCALE_PARAM_PROTO): New macro.
20346 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
20347 (INTERNAL (strtol), strtol): Define with a prototype.
20348 (PARAMS): Remove. All uses removed.
20349 * lib/tempname.c: Include <string.h> unconditionally.
20350 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
20351 * lib/xgethostname.c (main): Define with a prototype.
20352 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
20353 Include <stdlib.h> unconditionally.
20354 (calloc, malloc, realloc, free): Remove decls.
20355 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
20356 Include <stdlib.h> unconditionally. Sort include file names.
20358 (xstrtod): Define with a prototype.
20359 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
20360 (strtol, strtoul): Remove decls.
20362 2003-09-11 Paul Eggert <eggert@twinsun.com>
20364 More patches to assume C89 or better.
20365 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
20366 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
20367 string.h, memchr, STDC_HEADERS.
20369 2003-09-11 Paul Eggert <eggert@twinsun.com>
20371 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
20372 Include <stdlib.h>, <string.h> unconditionally.
20373 Remove now-unnecessary cast to char *.
20374 * lib/strnlen.c: Include <string.h> unconditionally.
20375 * lib/yesno.c (yesno): Define with a prototype.
20377 2003-09-11 Bruno Haible <bruno@clisp.org>
20379 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
20381 2003-09-10 Jim Meyering <jim@meyering.net>
20383 * lib/error.c: Correct indentation of cpp directives.
20385 2003-09-10 Bruno Haible <bruno@clisp.org>
20387 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
20388 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
20389 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
20390 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
20391 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
20392 <stdlib.h> and <string.h> checks.
20393 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
20394 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
20396 2003-09-10 Bruno Haible <bruno@clisp.org>
20398 * lib/strcspn.c: Include <string.h> unconditionally.
20399 * lib/strpbrk.c: Include <string.h> unconditionally.
20400 * lib/strstr.c: Include <string.h> unconditionally.
20401 * lib/unicodeio.c: Include <string.h> unconditionally.
20402 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
20403 * lib/unsetenv.c: Likewise.
20404 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
20405 * lib/yesno.c: Include <stdlib.h> unconditionally.
20406 (rpmatch): Add prototype.
20408 2003-09-09 Paul Eggert <eggert@twinsun.com>
20410 More patches to assume C89 or better.
20411 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
20412 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
20413 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
20415 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
20417 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
20419 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
20421 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
20422 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
20423 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
20425 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
20426 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
20428 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
20430 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
20431 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
20432 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
20433 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
20434 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
20435 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
20437 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
20438 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
20439 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
20440 C headers, or for string.h.
20441 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
20442 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
20443 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
20444 headers, memory.h, stdlib.h, string.h, strings.h.
20445 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
20446 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
20447 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
20449 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
20450 headers, memory.h, string.h.
20451 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
20452 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
20454 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
20456 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
20457 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
20458 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
20459 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
20460 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
20462 2003-09-09 Paul Eggert <eggert@twinsun.com>
20466 * lib/acosl.c (main): Use a prototype.
20467 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
20470 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
20472 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
20473 (getopt, etopt_long, getopt_long_only, _getopt_internal)
20474 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
20476 * lib/getopt.c (const): Remove macro.
20477 Include <string.h> unconditionally.
20478 (my_index): Remove; all uses changed to strchr.
20479 (strlen): Remove decl.
20480 (exchange): Remove forward decl; no longer needed.
20481 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
20482 Define with prototype.
20483 * lib/getopt1.c (const): Remove macro.
20484 (getopt_long, getopt_long_only, main): Define with prototype.
20486 * lib/getugroups.c: Include <string.h> unconditionally.
20488 * lib/getusershell.c: Include <stdlib.h> unconditionally.
20489 (getusershell, setusershell, endusershell, readname, main):
20490 Define with prototypes.
20492 * lib/group-member.c: Include group-member.h first.
20493 Include <stdlib.h> unconditionally.
20495 * lib/hard-locale.c: Include hard-locale.h first.
20496 Include <stdlib.h>, <string.h> unconditionally.
20498 * lib/hash.c (free, malloc): Remove decls.
20499 Include <stdlib.h> unconditionally.
20501 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
20502 (getenv): Do not declare.
20504 * lib/idcache.c: Include <string.h> unconditionally.
20506 * lib/long-options.c: Include long-options.h first, to test interface.
20507 Include <stdlib.h> unconditionally.
20509 * lib/makepath.c: Include makepath.h first, to test interface.
20510 Include <stdlib.h> and <string.h> unconditionally.
20512 * lib/linebuffer.c: Include <stdlib.h>.
20513 (free): Remove decl.
20515 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
20516 stddef.h. rpl_malloc returns void *, not char *.
20517 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
20520 * lib/md5.h: Include <limits.h> unconditionally.
20521 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
20522 (__P): Remove; all uses removed.
20523 * lib/md5.c: Include "md5.h" first.
20524 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
20525 md5_buffer, md5_process_bytes, md5_process_block):
20526 Define with prototypes.
20527 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
20528 * lib/sha.c: Include "sha.h" first.
20529 Include <stdlib.h>, <string.h> unconditionally.
20531 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
20532 * lib/memcmp.c (__ptr_t): Likewise.
20533 * lib/memrchr.c (__ptr_t): Likewise.
20534 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
20535 Include <string.h> unconditionally.
20536 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
20537 * lib/memchr.c: Include <stdlib.h> unconditionally.
20538 * lib/memchr.c (LONG_MAX): Remove.
20539 * lib/memrchr.c (LONG_MAX): Likewise.
20540 * lib/memchr.c (__memchr): Define via a prototype.
20541 * lib/memrchr.c (__memrchr): Likewise.
20542 * lib/memcmp.c (__P): Remove, and remove all uses.
20543 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
20544 Remove forward decls; no longer needed.
20545 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
20546 Use types required by C89 in prototype.
20548 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
20549 * lib/savedir.c: Likewise.
20550 * lib/mkdir.c (free): Remove decl.
20551 * lib/rmdir.c (rmdir): Define with a prototype.
20552 * lib/savedir.c: Include savedir.h first, to test interface.
20554 * lib/mktime.c (STDC_HEADERS): Remove.
20555 Include <stdlib.h>, <string.h> unconditionally.
20557 * lib/modechange.c: Include <stdlib.h> unconditionally.
20558 (malloc): Remove decl.
20560 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
20561 (free): Remove decl.
20563 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
20564 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
20565 (This type really should be intptr_t, but that's a C99ism.)
20566 (_obstack_memcpy): Remove: all uses changed to memcpy.
20567 Include <string.h> unconditionally.
20568 (struct obstack): Assume __STDC__ for types of members
20569 chunkfun, freefun, extra_arg.
20570 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
20571 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
20572 obstack_begin, obstack_specify_allocation,
20573 obstack_specify_allocation_with_arg, obstack_chunkfun,
20574 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
20575 Remove unprototyped decls and the macros that use them.
20576 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
20577 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
20578 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
20579 (defined __STDC__ && __STDC__)]:
20580 Remove nonprototyped code.
20581 Include <stdlib.h> unconditionally.
20582 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
20583 _obstack_allocated_p, _obstack_free, obstack_free,
20584 _obstack_memory_used, print_and_abort):
20585 Define using prototypes.
20586 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
20587 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
20588 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
20589 obstack_next_free, obstack_object_size, obstack_room) [0]:
20590 Remove unused, unprototyped code.
20592 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
20594 * lib/physmem.c (physmem_total, physmem_available, main): Define
20597 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
20598 (main): Define with a prototype.
20600 * lib/posixver.c (getenv): Remove decl.
20602 * lib/putenv.c (malloc): Returns void *, not char *.
20603 Include <string.h> unconditionally.
20604 (strchr, memcpy, NULL): Do not define.
20606 * lib/readtokens.c: Include readtokens.h first, to test interface.
20607 Include <stdlib.h>, <string.h> unconditionally.
20608 (init_tokenbuffer): Define with a prototype.
20610 * lib/regex.c (PARAMS): Remove. All uses removed.
20611 All uses of _RE_ARGS removed, too.
20612 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
20614 (bzero): Assume memset exists.
20615 (memcmp, memcpy, NULL): Remove.
20616 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
20617 char, or assignments to local vars of type signed char.
20618 (init_syntax_once, PREFIX(extract_number_and_incr),
20619 PREFIX(print_partial_compiled_pattern),
20620 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
20621 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
20622 PREFIX(regex_grow_registers), PREFIX(regex_compile),
20623 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
20624 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
20625 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
20626 wcs_compile_range, byte_compile_range, truncate_wchar,
20627 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
20628 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
20629 count_mbs_length, wcs_re_match_2_internal,
20630 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
20631 PREFIX(alt_match_null_string_p),
20632 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
20633 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
20634 regfree, PREFIX(extract_number)): Define with prototype. Remove
20635 now-unnecessary declaration, if any.
20636 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
20638 Remove now-unnecessary casts among pointer types.
20639 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
20641 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
20642 (free): Remove decl.
20644 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
20646 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
20647 (free): Remove decl.
20649 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
20650 * lib/xgetcwd.c: Likewise.
20652 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
20653 (free): Remove decl.
20655 * lib/strchrnul.c (strchrnul): Define with a prototype.
20656 Fix bug: c_in was not converted to char before searching.
20658 The following changes are not K&R related:
20660 * lib/group-member.h: Include <sys/types.h>, so that this file is
20662 * lib/makepath.h: Likewise.
20664 * lib/getusershell.c (readname, default_index, line_size, readname):
20665 Use size_t, not int, for sizes.
20666 (readname): If the size overflows, report an error instead of
20669 2003-09-09 Paul Eggert <eggert@twinsun.com>
20671 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
20674 2003-09-09 Paul Eggert <eggert@twinsun.com>
20676 * README: New section: portability guidelines.
20678 2003-09-09 Derek Robert Price <derek@ximbiot.com>
20680 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
20683 2003-09-09 Derek Robert Price <derek@ximbiot.com>
20685 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
20687 2003-09-08 Paul Eggert <eggert@twinsun.com>
20689 Assume C89 or better; remove K&R cruft.
20690 A few of these changes were first proposed by Derek Robert Price
20691 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
20693 * lib/addext.c: Include <string.h> unconditionally.
20694 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
20695 Don't declare getenv or malloc.
20697 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
20698 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
20700 (find_stack_direction, alloca): Use prototypes.
20702 * lib/atexit.c (atexit): Define using a prototype.
20704 * lib/basename.c, dirname.c, stripslash.c:
20705 Include <string.h> unconditionally.
20707 * lib/bcopy.c: Include <stddef.h>.
20708 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
20710 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
20712 * lib/error.h (error, error_at_line, error_print_progname)
20713 [! (defined (__STDC__) && __STDC__)]: Remove decls.
20714 * lib/error.c: Include error.h first, to check interface.
20715 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
20716 (VA_START): Remove; all uses changeed to va_start.
20717 (exit, strerror): Remove decls.
20718 (error_print_progname): Prototype uncondionally.
20719 Don't include <errno.h>; no longer needed.
20720 (private_strerror): Remove.
20721 (error_tail): Always define.
20722 (error, error_at_line): Assume C89 or better; always use prototypes.
20723 * lib/fatal.c: Include "fatal.h" first, to test interface.
20724 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
20725 (VA_START): Remove; all uses changed to va_start.
20726 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
20728 (exit): Remove decl.
20729 (fatal): Prototype unconditionally. Assume va_start works.
20730 Abort at end, to pacify gcc.
20732 * lib/euidaccess.c (main): Define with a prototype.
20734 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
20736 * lib/exitfail.c: Include <stdlib.h> unconditionally.
20738 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
20740 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
20741 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
20742 (getenv): Remove decl.
20743 (fnmatch): Define using a prototype.
20744 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
20745 (FCT): Define using a prototype.
20747 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
20749 * lib/gethostname.c: Include <stddef.h>.
20750 (gethostname): Define with prototype. Length is size_t, not int.
20752 2003-09-08 Paul Eggert <eggert@twinsun.com>
20754 Assume C89 or better; remove K&R cruft.
20755 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
20756 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
20757 string.h, getenv, malloc.
20758 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
20760 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
20761 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
20762 do not check for strerror.
20763 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
20764 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
20765 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
20766 do not check for doprnt or vprintf.
20767 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
20768 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
20770 2003-09-08 Paul Eggert <eggert@twinsun.com>
20772 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
20773 getversion.c should have been removed then, but was accidentally
20776 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
20777 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
20779 2003-09-08 Karl Berry <karl@gnu.org>
20781 * config/config.sub, config.guess, srclistvars.sh: update from savannah
20782 config, forget about prep.
20784 * config/depcomp, missing: update from automake.
20786 2003-09-07 Paul Eggert <eggert@twinsun.com>
20788 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
20789 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
20791 2003-09-07 Paul Eggert <eggert@twinsun.com>
20793 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
20794 copy_tm_result. Bug reported by Simon Josefsson in
20795 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
20797 2003-09-06 Paul Eggert <eggert@twinsun.com>
20799 * m4/time_r.m4: New file.
20800 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
20801 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
20802 is. Check for timegm declaration.
20803 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
20804 Do not check for gmtime_r.
20805 Replace mktime if __mktime_internal does not exist and if mktime
20806 hasn't been replaced already.
20808 2003-09-06 Paul Eggert <eggert@twinsun.com>
20810 * lib/time_r.c, lib/time_r.h: New files.
20812 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
20814 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
20815 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
20817 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
20819 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
20820 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
20821 Include <time_r.h>.
20823 * lib/timegm.c: Switch to glibc implementation, with the following
20825 [defined HAVE_CONFIG_H]: Include <config.h>.
20826 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
20827 (__mktime_internal) [!defined _LIBC]: New decl.
20828 (__gmtime_r) [!defined _LIBC]: New macro and function.
20829 (timegm): Use a prototype, since gnulib assumes C89.
20830 Do not bother declaring tmp to be const, as it's not really usefu.
20831 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
20832 (timegm): Declare only if HAVE_DECL_TIMEGM.
20834 2003-09-06 Paul Eggert <eggert@twinsun.com>
20836 * MODULES.html.sh (func_all_modules): Add time_r.
20837 * modules/time_r: New file.
20838 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
20839 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
20841 2003-09-03 Paul Eggert <eggert@twinsun.com>
20843 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
20844 Bug reported by Lute Kamstra in
20845 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
20847 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
20848 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
20849 course with correspondingly smaller numbers for tomorrow and
20850 yesterday. From Tadayoshi Funaba. Originally installed into
20851 sh-utils on 1999-08-07, but the patch got lost (I guess during the
20854 2003-08-31 Simon Josefsson <jas@extundo.com>
20856 * modules/timegm: New file.
20857 * MODULES.html.sh (func_all_modules): Add timegm.
20859 2003-08-31 Simon Josefsson <jas@extundo.com>
20861 * m4/timegm.m4: New file.
20863 2003-08-31 Simon Josefsson <jas@extundo.com>
20865 * lib/timegm.h: New file.
20866 * lib/timegm.c: New file. Based on
20867 wget-1.8.2/src/http.c:mktime_from_utc.
20869 2003-08-31 Karl Berry <karl@gnu.org>
20871 * lib/argp.h: update from libc.
20873 2003-08-28 Bruno Haible <bruno@clisp.org>
20875 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
20876 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
20877 followed by '#define fnmatch fnmatch_posix' gives an error.
20879 2003-08-28 Bruno Haible <bruno@clisp.org>
20881 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
20882 warning on QNX, which defines O_BINARY to 000000.
20884 2003-08-27 Jim Meyering <jim@meyering.net>
20886 * m4/mkstemp.m4: Require that the system mkstemp be able to create
20887 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
20888 would fail after 32. Reported by Danny Levinson. Details here:
20889 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
20891 2003-08-24 Bruno Haible <bruno@clisp.org>
20893 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
20894 MSVC7 <stdio.h> is included later.
20896 2003-08-22 Simon Josefsson <jas@extundo.com>
20898 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
20900 2003-08-20 Karl Berry <karl@gnu.org>
20902 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
20904 2003-08-20 Bruno Haible <bruno@clisp.org>
20906 * modules/progname: New file.
20907 * MODULES.html.sh (func_all_modules): Add progname.
20909 2003-08-20 Bruno Haible <bruno@clisp.org>
20911 * lib/progname.h: New file, from GNU gettext.
20912 * lib/progname.c: New file, from GNU gettext.
20913 * lib/progreloc.c: New file, from GNU gettext.
20915 2003-08-19 Jim Meyering <jim@meyering.net>
20917 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
20918 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
20920 2003-08-19 Bruno Haible <bruno@clisp.org>
20922 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
20925 2003-08-19 Bruno Haible <bruno@clisp.org>
20927 * lib/xstrdup.c: Assume <string.h> exists.
20929 2003-08-18 Paul Eggert <eggert@twinsun.com>
20931 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
20934 2003-08-18 Jim Meyering <jim@meyering.net>
20936 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
20937 * m4/lib-ld.m4: Likewise.
20939 2003-08-18 Jim Meyering <jim@meyering.net>
20941 * lib/setenv.h: Indent nested cpp directive.
20942 * lib/vasnprintf.c: Remove trailing blanks.
20944 2003-08-17 Simon Josefsson <jas@extundo.com>
20946 * modules/xstrndup: New file.
20947 * MODULES.html.sh (func_all_modules): Add xstrndup.
20949 2003-08-17 Simon Josefsson <jas@extundo.com>
20951 * modules/argp: Fix autoconf macro name. Add more dependencies.
20953 2003-08-17 Simon Josefsson <jas@extundo.com>
20955 * m4/xstrndup.m4: New file.
20957 2003-08-17 Simon Josefsson <jas@extundo.com>
20959 * m4/argp.m4: New file.
20961 2003-08-17 Simon Josefsson <jas@extundo.com>
20962 Bruno Haible <bruno@clisp.org>
20964 * lib/xstrndup.h: New file.
20965 * lib/xstrndup.c: New file.
20967 2003-08-17 Bruno Haible <bruno@clisp.org>
20969 * modules/strndup (Files, Include): Add lib/strndup.h.
20971 2003-08-17 Bruno Haible <bruno@clisp.org>
20973 * modules/euidaccess (Files): Add lib/euidaccess.h.
20975 2003-08-17 Bruno Haible <bruno@clisp.org>
20977 * lib/strndup.h: New file.
20979 2003-08-17 Bruno Haible <bruno@clisp.org>
20981 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
20982 like AC_GNU_SOURCE.
20983 * modules/extensions (configure.ac): Comment out the invocation of
20984 gl_USE_SYSTEM_EXTENSIONS.
20986 2003-08-16 Paul Eggert <eggert@twinsun.com>
20988 Merges from coreutils, etc.
20989 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
20990 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
20991 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
20993 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
20994 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
20996 2003-08-16 Paul Eggert <eggert@twinsun.com>
20998 Document merge from coreutils.
20999 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
21000 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
21001 * modules/utime: Add m4/utimes-null.m4.
21003 2003-08-16 Paul Eggert <eggert@twinsun.com>
21005 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
21006 space, undoing this 2003-08-12 change:
21007 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
21009 2003-08-16 Paul Eggert <eggert@twinsun.com>
21011 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
21012 strtoul.c from libc, undoing this 2003-08-12 change:
21013 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
21015 2003-08-16 Jim Meyering <jim@meyering.net>
21017 Merges from coreutils.
21018 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
21019 prefix. Adjust cache variables similarly. Create 500 rather than
21020 just 300 files, to exercise bug on Darwin6.5, too.
21021 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
21023 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
21024 AM_SYS_POSIX_TERMIOS.
21025 Reported by mkc@mathdogs.com.
21026 Also change use of $am_cv_sys_posix_termios
21027 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
21028 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
21029 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
21030 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
21031 in /proc/mounts until it finds one with matching device number. This
21032 is unnecessary when the FILE argument *is* a mount point. No stat call
21033 is necessary in that case. So, disable the statvfs-testing code on
21034 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
21035 as RedHat bug# 84846.
21036 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
21037 to 1MB, so as not to render systems with no stack size limit (e.g.,
21038 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
21039 Include <unistd.h>. On some systems,
21040 it is required for the definition of _SC_PAGESIZE.
21042 2003-08-16 Jim Meyering <jim@meyering.net>
21044 Merge from coreutils.
21045 * lib/xstrtoimax.c: #else #if -> #elif.
21046 * lib/xstrtoumax.c: Likewise.
21048 2003-08-16 Jim Meyering <jim@meyering.net>
21050 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
21051 * m4/utimes.m4: Removed.
21052 * m4/utimes-null.m4: Renamed from utimes.m4.
21054 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
21055 to 1MB, so as not to render systems with no stack size limit (e.g.,
21056 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
21057 Include <unistd.h>. On some systems,
21058 it is required for the definition of _SC_PAGESIZE.
21060 2003-08-16 Jim Meyering <jim@meyering.net>
21061 and Paul Eggert <eggert@cs.ucla.edu>
21063 Merges from coreutils, etc.
21065 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
21066 using the latest version from cvs. This avoids problems with #line
21067 directives using a vendor (Sun) compiler.
21068 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
21069 Don't set GETGROUPS_LIB here; now it's
21070 done via getgroups.m4's wrapper function.
21071 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
21072 rather than just in sh-util/configure.in, so that the
21073 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
21075 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
21076 AC_FUNC_GETLOADAVG where to find getloadavg.c.
21077 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
21078 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
21079 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
21080 Remove code that is now done by the newly-required macros.
21081 Append $(EXEEXT) to DF_PROG.
21082 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
21083 Do not invoke or require the following here,
21084 since prereq.m4 or some gnulib .m4 now does this for us:
21085 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
21086 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
21087 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
21088 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
21089 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
21090 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
21091 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
21093 Do not replace the following functions, as this is now the job
21094 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
21095 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
21096 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
21097 atexit getpass, strdup, getpagesize.
21099 Do not check for the following functions, as this is now the job
21100 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
21101 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
21103 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
21104 Check for sys/sysctl.h.
21105 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
21106 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
21107 of checking for ssize_t ourselves.
21109 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
21110 Require every macro that gnulib/modules/* suggests for us.
21111 (jm_PREREQ_ADDEXT): New macro.
21112 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
21113 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
21115 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
21116 (gl_PHYSMEM): Use it.
21117 Also check for `table' function.
21118 Check for new headers and functions.
21119 Add check for sys/sysmp.h.
21120 With suggestions from Kaveh Ghazi.
21121 Ignore headers that are present but cannot be compiled. This
21122 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
21125 2003-08-15 Paul Eggert <eggert@twinsun.com>
21127 Document merge from coreutils.
21128 * modules/userspec: Depend on posixver.
21129 * modules/strftime: Depend on tzset.
21131 2003-08-15 Paul Eggert <eggert@twinsun.com>
21133 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
21134 rather than tab, after '#' in shell-script copyright notices.
21135 Suggested by Bruno Haible.
21137 2003-08-15 Paul Eggert <eggert@twinsun.com>
21139 * config/srclist-update: Use three spaces, rather than tab, after '#'
21140 in shell-script copyright notices. Suggested by Bruno Haible.
21141 Remove unnecessary parenthesization in regular expression.
21143 2003-08-15 Jim Meyering <jim@meyering.net>
21145 Merge from coreutils.
21146 * lib/xgethostname.c: Include <stdlib.h>.
21147 (xghostname): Don't exit for anything other than memory-related
21148 failure; just return NULL.
21149 * lib/userspec.c: Include "posixver.h".
21150 (parse_user_spec): Accept `.' as a separator only
21151 in pre-POSIX-200112 mode.
21152 * lib/strtoimax.c: Use #elif rather than #else #if.
21153 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
21154 Remove function, now that we can rely on a working tzset function.
21155 [!_LIBC]: Ensure that the required autoconf test has been run.
21156 [!defined _NL_CURRENT && HAVE_STRFTIME]:
21157 Use underlying_strftime for %r.
21158 * lib/sha.c: Merge in some clean-up and optimization changes from
21160 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
21161 Ensure that it is a multiple of 64.
21162 Rearrange loop exit tests so as to avoid performing an
21163 additional fread after encountering an error or EOF.
21164 * lib/realloc.c: Update copyright date.
21166 2003-08-15 Jim Meyering <jim@meyering.net>
21167 and Paul Eggert <eggert@twinsun.com>
21169 Merge from coreutils.
21170 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
21171 member but strut utmpx does not. Needed for AIX 4.3.3.
21172 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
21174 2003-08-15 Jim Meyering <jim@meyering.net>
21175 and Paul Eggert <eggert@cs.ucla.edu>
21177 Merges from coreutils, etc.
21178 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
21179 Require gl_FUNC_TZSET_CLOBBER.
21180 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
21181 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
21184 2003-08-14 Paul Eggert <eggert@twinsun.com>
21186 Help the merge from coreutils.
21187 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
21188 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
21189 * m4/tzset.m4: Use it too.
21191 2003-08-14 Paul Eggert <eggert@twinsun.com>
21193 * modules/tzset: New file.
21195 2003-08-14 Jim Meyering <jim@meyering.net>
21197 Merges from coreutils.
21198 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
21199 variable names, rather than @FNMATCH_H@.
21200 * modules/alloca: Likewise for $(ALLOCA_H).
21202 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
21203 the three copies of the literal target, `fnmatch.h'.
21204 * modules/alloca (alloca.h): Likewise.
21206 2003-08-14 Jim Meyering <jim@meyering.net>
21208 Merge from coreutils.
21209 * m4/tzset.m4: New file.
21210 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
21211 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
21212 otherwise, AIX 5.1 systems would end up using the latter.
21213 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
21214 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
21215 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
21216 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
21218 2003-08-14 Jim Meyering <jim@meyering.net>
21220 Merge from coreutils.
21221 * lib/obstack.h: Whitespace changes.
21222 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
21223 and xcalloc return values.
21224 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
21225 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
21226 hang on OSF/1 5.1 for DIR on both local and remote file systems.
21227 Reported by (and fix confirmed by) Nelson H. F. Beebe.
21228 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
21230 Use mntctl's return value to drive the entry-processing loop, since
21231 we can't rely on the value of the vmt_length member in the last
21232 entry. On some systems doing so could result in exhausting
21233 virtual memory. Based in part on a patch from Mike Jetzer.
21235 2003-08-14 Jim Meyering <jim@meyering.net>
21236 and Paul Eggert <eggert@twinsun.com>
21238 Merges from coreutils, plus other fixes.
21239 * lib/physmem.c: Merge in portability changes from gcc/libiberty
21240 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
21241 for credits and details. Thanks to Kaveh Ghazi for helping
21242 to keep these files in sync.
21243 (ARRAY_SIZE): Define it.
21244 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
21245 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
21246 (memcasecmp): Don't assume size_t fits in unsigned int.
21247 Remove casts and duplicate code.
21248 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
21249 (memcpy): Remove definition.
21250 Merge in some clean-up and optimization changes from glibc.
21251 [BLOCKSIZE]: Move definition to top of file.
21252 Ensure that it is a multiple of 64.
21253 Rearrange loop exit tests so as to avoid performing an
21254 additional fread after encountering an error or EOF.
21255 * lib/md5.h (md5_uintptr): Define.
21256 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
21257 return to the initial working directory. Preserve errno
21259 * lib/idcache.c: Include "xalloc.h".
21260 (xmalloc, xrealloc): Remove decls.
21261 (getuser): Remove casts no longer required in C89.
21262 * lib/human.c: Include stdio.h, for sprintf.
21263 * lib/group-member.c: Include "xalloc.h".
21264 (xmalloc, xrealloc): Remove decls.
21265 (get_group_info): Remove casts no longer required in C89.
21266 * lib/getusershell.c (readname): Remove casts no longer required in
21268 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
21269 * lib/getline.c: Whitespace fix, from coreutils.
21271 2003-08-13 Paul Eggert <eggert@twinsun.com>
21273 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
21276 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
21277 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
21278 Undo previous (whitespace-only) change.
21280 2003-08-13 Paul Eggert <eggert@twinsun.com>
21282 * lib/exclude.c: Include <ctype.h>
21283 (IN_CTYPE_DOMAIN): New macro.
21284 (is_space): New fn.
21285 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
21288 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
21289 Undo previous (whitespace-only) change.
21291 2003-08-13 Paul Eggert <eggert@twinsun.com>
21293 * config/srclist-update: Change update back to the old behavior,
21294 leaving whitespace alone. Use one 'sed' command rather than a
21296 (fixlicense): Now a variable, not a function.
21297 (remove_trailing_blanks): Remove.
21298 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
21299 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
21300 Undo previous (whitespace-only) change.
21302 2003-08-12 Paul Eggert <eggert@twinsun.com>
21304 Merge from coreutils.
21305 * modules/euidaccess: Add lib_SOURCES, include for new
21308 2003-08-12 Paul Eggert <eggert@twinsun.com>
21310 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
21311 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
21312 Normalize leading white space and remove trailing white space.
21314 Merge from coreutils
21315 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
21317 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
21318 0.12.1. These files are now being upgraded automatically by
21319 ../config/srclist-update.
21321 2003-08-12 Paul Eggert <eggert@twinsun.com>
21323 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
21324 Normalize leading white space and remove trailing white space.
21325 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
21326 notice, as per ../config/srclist-update.
21328 Merge from coreutils.
21329 * lib/euidaccess.h: New file.
21330 * lib/euidaccess.c: Include it.
21331 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
21332 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
21333 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
21335 2003-08-12 Paul Eggert <eggert@twinsun.com>
21337 * config/srclist-update: Add copyright notice.
21338 (remove_id_lines, remove_trailing_blanks): New constants.
21339 (fixfile): Use them to normalize spacing a bit in copied files.
21340 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
21341 Normalize leading white space and remove trailing white space.
21343 * config/texinfo.tex: Sync with texinfo.
21345 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
21346 strtoul.c from libc, to merge coreutils whitespace changes.
21348 * config/srclist.txt: Get the following m4 files from gettext:
21349 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
21350 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
21351 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
21354 2003-08-12 Karl Berry <karl@gnu.org>
21356 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
21359 2003-08-11 Paul Eggert <eggert@twinsun.com>
21361 * modules/gnu-source, m4/gnu-source.m4:
21362 Remove; we're assuming Autoconf 2.54 or later now.
21363 Suggested by Bruno Haible.
21364 * MODULES.html.sh (func_all_modules): Remove gnu-source.
21366 2003-08-11 Bruno Haible <bruno@clisp.org>
21368 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
21370 2003-08-11 Bruno Haible <bruno@clisp.org>
21372 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
21373 (vasnprintf): Use it instead of wcslen.
21375 2003-08-11 Bruno Haible <bruno@clisp.org>
21377 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
21378 value to ensure that _Bool promotes to int. Use #define for _Bool when
21379 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
21381 2003-08-10 Karl Berry <karl@gnu.org>
21383 * lib/regex.h: update from libc (whitespace fix).
21385 2003-08-09 Paul Eggert <eggert@twinsun.com>
21387 Merge some files from coreutils. These changes were
21388 originally made by Jim Meyering.
21389 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
21390 many older Unixes require this.
21391 * lib/alloca.c (alloca): Remove cast to argument of free;
21392 no longer needed in C89.
21393 * lib/alloca_.h, regex.h: Fix white space to match
21394 what GNU indent does.
21396 2003-08-09 Paul Eggert <eggert@twinsun.com>
21398 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
21399 apparently Emacs's Unicode mode got confused before my 2003-08-05
21402 2003-08-08 Paul Eggert <eggert@twinsun.com>
21404 * m4/extensions.m4: New file.
21405 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
21406 Require gl_USE_SYSTEM_EXTENSIONS.
21407 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
21408 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
21410 2003-08-08 Paul Eggert <eggert@twinsun.com>
21412 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
21413 * modules/extensions, modules/gnu-source: New files.
21414 * modules/timespec, modules/unlocked-io: Depend on extensions.
21416 2003-08-07 Paul Eggert <eggert@twinsun.com>
21418 * modules/restrict: New file.
21419 * MODULES.html.sh (func_all_modules): Add restrict.
21420 * modules/regex: Depend on restrict.
21422 2003-08-07 Paul Eggert <eggert@twinsun.com>
21424 * m4/restrict.m4: New file.
21425 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
21427 2003-08-07 Bruno Haible <bruno@clisp.org>
21429 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
21430 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
21432 2003-08-07 Bruno Haible <bruno@clisp.org>
21434 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
21435 makes the module 'getndelim2' compatible with the module 'getline'.
21437 2003-08-05 Paul Eggert <eggert@twinsun.com>
21439 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
21440 byte with "\201" to avoid glitches when editing that source file
21441 with multi-gnome-terminal.
21443 2003-08-05 Paul Eggert <eggert@twinsun.com>
21445 * lib/bumpalloc.h: Remove.
21447 2003-08-05 Paul Eggert <eggert@twinsun.com>
21449 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
21450 * modules/bumpalloc: Remove.
21452 2003-08-04 Paul Eggert <eggert@twinsun.com>
21454 * lib/getloadavg.c: Change copyright notice and spacing to conform to
21457 Merge from coreutils.
21458 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
21460 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
21461 from Karl Berry, implemented by Jim Meyering.
21462 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
21463 from Dmitry V. Levin.
21464 Remove anachronistic cast of xrealloc.
21465 * lib/fnmatch_.h (__const): Remove. Use 'const'.
21466 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
21467 type. Otherwise, it wouldn't compile with at least /bin/cc on
21468 ymp-cray-unicos9.0.2.X.
21469 Combine two mostly-identical uses of alloca into one.
21470 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
21472 2003-08-04 Dave Love <d.love@dl.ac.uk>
21476 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
21477 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
21478 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
21479 obsolete NLIST_NAME_UNION.
21480 [__GNU__]: Undef BSD and FSCALE.
21481 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
21483 2003-08-03 Paul Eggert <eggert@twinsun.com>
21485 * lib/stdbool_.h (_Bool): Make it signed char, instead of
21486 an enum type, so that it's guaranteed to promote to int. See:
21487 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
21489 2003-08-03 Karl Berry <karl@gnu.org>
21491 * config/depcomp: update from automake.
21493 2003-07-31 Paul Eggert <eggert@twinsun.com>
21495 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
21496 (strerror): Don't assume that a printable int fits in 14 bytes.
21498 2003-07-31 Bruno Haible <bruno@clisp.org>
21500 * modules/getpass-gnu: New file.
21501 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
21503 2003-07-31 Bruno Haible <bruno@clisp.org>
21505 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
21507 2003-07-24 Karl Berry <karl@gnu.org>
21509 * config/missing: update from automake.
21511 2003-07-24 Derek Robert Price <derek@ximbiot.com>
21512 Bruno Haible <bruno@clisp.org>
21514 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
21515 * lib/getline.c (getline, getdelim): Likewise.
21516 Remove _GNU_SOURCE define; now it's defined in config.h through
21519 2003-07-23 Karl Berry <karl@gnu.org>
21521 * config/config.sub: update from prep.
21523 2003-07-22 Paul Eggert <eggert@twinsun.com>
21525 * modules/xalloc (Depends-on): Add exitfail.
21526 * modules/xmemcoll: Likewise.
21528 2003-07-22 Paul Eggert <eggert@twinsun.com>
21530 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
21531 over-parenthesization in macros.
21533 Sync with coreutils.
21535 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
21538 Use `exit_failure' for xalloc and xmemcoll instead of their own
21539 private exit-failure variables.
21540 * lib/xalloc.h (xalloc_exit_failure): Remove.
21541 * lib/xmalloc.c: Likewise. Include exitfail.h.
21542 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
21543 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
21544 * lib/xmemcoll.c: Likewise. Include exitfail.h.
21545 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
21547 2003-07-20 Jim Meyering <jim@meyering.net>
21549 * modules/closeout (Depends-on): Add exitfail.
21550 Suggestion from Bruno Haible.
21552 2003-07-19 Karl Berry <karl@gnu.org>
21554 * config/config.sub: update from prep.
21556 2003-07-18 Paul Eggert <eggert@twinsun.com>
21558 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
21560 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
21561 to test that it can stand by itself. Include "exitfail.h".
21562 Clients should set exit_failure instead.
21563 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
21565 2003-07-18 Bruno Haible <bruno@clisp.org>
21567 * modules/getndelim2: New file.
21568 * modules/getline: Share files with module getndelim2.
21569 * modules/getnline: Depend on getndelim2 instead of sharing files with
21570 it. Add getnline.c to lib_SOURCES.
21571 * MODULES.html.sh (func_all_modules): Add getndelim2.
21573 2003-07-18 Bruno Haible <bruno@clisp.org>
21575 * m4/getndelim2.m4: New file.
21576 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
21577 invoke gl_PREREQ_GETNDELIM2.
21578 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
21579 gl_PREREQ_GETNDELIM2.
21580 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
21583 2003-07-18 Bruno Haible <bruno@clisp.org>
21585 * lib/getndelim2.h: New file.
21586 * lib/getndelim2.c: Make into a module of its own. Include config.h,
21588 (getndelim2): Make non-static. Change return type to ssize_t.
21589 * lib/getline.h: Change argument names.
21590 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
21591 * lib/getnline.c: Include getndelim2.h.
21593 2003-07-18 Andreas Schwab <schwab@suse.de>
21595 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
21597 2003-07-17 Karl Berry <karl@gnu.org>
21599 * config/config.sub: update from prep.
21601 2003-07-17 Bruno Haible <bruno@clisp.org>
21603 * modules/getnline: New file.
21604 * modules/getline: Add lib/getndelim2.c to source file list.
21605 * MODULES.html.sh (func_all_modules): Add getnline.
21607 2003-07-17 Bruno Haible <bruno@clisp.org>
21609 * m4/getnline.m4: New file.
21611 2003-07-17 Bruno Haible <bruno@clisp.org>
21613 * m4/Makefile.am.in: Remove file.
21614 * m4/Makefile.am: Remove file.
21615 * m4/Makefile.in: Remove file.
21617 2003-07-17 Bruno Haible <bruno@clisp.org>
21619 * lib/getnline.h: New file.
21620 * lib/getnline.c: New file.
21621 * lib/getndelim2.c: New file, extracted from getline.c.
21622 (getndelim2): Renamed from getdelim2, with added nmax argument.
21623 * lib/getline.c: Include getndelim2.c.
21624 (getdelim2): Moved out to getndelim2.c.
21625 (getline, getdelim): Update.
21627 2003-07-17 Bruno Haible <bruno@clisp.org>
21629 * lib/Makefile.am: Remove file.
21630 * lib/Makefile.in: Remove file.
21632 2003-07-17 Bruno Haible <bruno@clisp.org>
21634 * configure.in: Remove file.
21635 * Makefile.in: Remove file.
21637 2003-07-17 Bruno Haible <bruno@clisp.org>
21639 * MODULES.html.sh: Put the </BODY> right before </HTML>.
21641 2003-07-16 Karl Berry <karl@gnu.org>
21643 * config/srclist-update: was running fixlicense twice, which caused
21644 texinfo.tex to be nullified for some reason. Simplify,
21645 $gplsrc is no longer needed as far as I can see?
21647 2003-07-16 Jim Meyering <jim@meyering.net>
21649 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
21651 2003-07-15 Paul Eggert <eggert@twinsun.com>
21653 * config/srclist.txt: Get the following files from gettext-runtime/intl
21654 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
21655 ref-del.sin. From Bruno Haible.
21656 * config/srclist-update (fixfile): Change grep pattern again, since the
21657 previous fix didn't work (there was another trailing $). Use
21658 '[$]' to escape the $s.
21660 2003-07-15 Karl Berry <karl@gnu.org>
21662 * lib/vasnprintf.c: update from gettext.
21664 2003-07-15 Karl Berry <karl@gnu.org>
21666 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
21667 gets expanded when surrounded by '$'.
21669 2003-07-15 Jim Meyering <jim@meyering.net>
21671 * modules/save-cwd: Don't depend on error. From Derek Price.
21673 2003-07-15 Jim Meyering <jim@meyering.net>
21675 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
21677 2003-07-14 Simon Josefsson <jas@extundo.com>
21679 * modules/mempcpy: New file.
21680 * MODULES.html.sh (func_all_modules): Add mempcpy.
21682 2003-07-14 Simon Josefsson <jas@extundo.com>
21684 * m4/mempcpy.m4: New file.
21686 2003-07-14 Simon Josefsson <jas@extundo.com>
21688 * lib/mempcpy.h: New file.
21689 * lib/mempcpy.c: New file.
21691 2003-07-14 Paul Eggert <eggert@twinsun.com>
21693 * modules/getdate, modules/posixtm: Depend on mktime.
21695 2003-07-14 Paul Eggert <eggert@twinsun.com>
21697 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
21698 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
21699 unicodeio.c, unicodeio.h, unlocked-io.h:
21700 Switch from LGPL to GPL.
21702 2003-07-14 Paul Eggert <eggert@twinsun.com>
21704 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
21705 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
21706 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
21707 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
21708 vasprintf.c, vasprintf.h: Regenerate. These files are now being
21709 updated automatically by ../config/srclist-update. This changes
21710 their license from LPGL to GPL.
21712 2003-07-14 Paul Eggert <eggert@twinsun.com>
21714 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
21715 assumed to refer to the root of the most recent stable gettext version.
21716 * config/srclistvars.sh: Add defaults for eggert.
21717 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
21718 Match "This program" as well as "The program". This is needed
21721 2003-07-14 Jim Meyering <jim@meyering.net>
21723 Don't emit diagnostics. Let callers do that.
21724 * lib/save-cwd.c: Don't include "error.h".
21725 (save_cwd): Don't call error. Ensure that errno is valid
21726 when returning nonzero.
21728 * lib/save-cwd.h (restore_cwd): Update prototype.
21729 * lib/save-cwd.c (restore_cwd): Remove two parameters.
21730 Simplify. Don't call error upon failure. Let callers do that.
21731 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
21732 when auditing is enabled. But don't bother updating the #if.
21734 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
21736 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
21737 it breaks C++ compilation.
21738 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
21740 2003-07-10 Simon Josefsson <jas@extundo.com>
21742 * modules/strchrnul (Makefile.am): Add strchrnul.h.
21744 2003-07-10 Jim Meyering <jim@meyering.net>
21746 * m4/clock_time.m4: Remove trailing blank.
21747 * m4/intmax_t.m4: Likewise.
21749 2003-07-10 Jim Meyering <jim@meyering.net>
21751 * lib/vasnprintf.c: Remove trailing blanks.
21752 Make cpp indentation consistent.
21754 2003-07-09 Paul Eggert <eggert@twinsun.com>
21756 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
21757 posixver.c, strftime.c, strnlen.c, strverscmp.c:
21758 Switch from LGPL to GPL.
21760 2003-07-09 Paul Eggert <eggert@twinsun.com>
21762 * config/srclist.txt: Sort sublists. Add
21763 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
21764 that differ from gnulib for one reason or another; we'd like this list
21765 to be smaller but for now let's document what we have.
21767 2003-07-08 Paul Eggert <eggert@twinsun.com>
21769 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
21770 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
21771 and sweeter "eval x=$x".
21772 * config/srclist.txt: Get lib/argp* from glibc.
21774 2003-07-07 Paul Eggert <eggert@twinsun.com>
21776 * lib/mktime.c: Fix some boundary cases and remove need for floating
21779 Issue a compile-time diagnostic if time_t is floating point, or if
21780 two's complement arithmetic is not in effect, or if arithmetic
21781 right shift does not propagate the sign. These assumptions were
21782 all in the original code but they weren't checked.
21784 (TIME_T_MIDPOINT, verify): New macros.
21785 (__isleap): Remove; it has integer overflow problems.
21786 (leapyear): New function, without those problems.
21787 (ydhms_tm_diff): Remove; splitting into two parts.
21788 (ydhms_diff): New function, containing the arithmetic part of
21789 the old ydhms_tm_diff function. Issue a compile-time
21790 diagnostic if we are not using C99 integer division.
21791 Avoid casts when possible.
21792 (guess_time_tm): New function, containing the checking part of
21793 the old ydhms_tm_diff function. Return the new value, rather than
21794 the difference between it and the old. Accept a new argument T
21795 so that *T specifies the old value. Check for overflow in the result.
21797 (__mktime_internal): Use a time_t offset, not a long int offset.
21798 This undoes the 2003-06-04 change, which is no longer needed now
21799 that we have better overflow checking.
21800 (localtime_offset): Likewise.
21802 (__mktime_internal): Avoid harmful overflow on hosts where time_t
21803 and long are 64-bit but int is only 32-bit.
21804 (ydhms_diff): Use long int to store year1 and yday1.
21805 Issue a compile-time diagnostic if long int is not wide enough.
21807 (__mktime_internal): Use long int to store adjusted year and yday.
21808 Use plain C rather than preprocessor commands, if that doesn't
21810 Check for overflow (and try to repair) after each probe
21811 rather than checking only at the very end. This avoids some bugs
21812 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
21813 does not equal GMT offset at maximum time).
21814 Use integer to check for overflow rather than floating point; this
21815 is more portable to non-IEEE hosts, and is a tad faster.
21816 When we detect that we are oscillating between two values,
21817 don't check whether tm_isdst has the requested value, since
21818 we already know the answer. When tm_isdst has the wrong value,
21819 use a different heuristic to find the right one, based on the
21820 extreme values actually observed in practice in tz2003a,
21821 rather than the (overly optimistic) "previous 3 calendar quarters".
21823 (not_equal_tm, print_tm, check_result): Use "const T" rather than
21824 "T const" to accommodate glibc style.
21825 (check_result): Use less-confusing report format. "long" -> "long int.
21827 Don't loop if the iteration overflows time_t.
21828 Allow a negative step in the iteration.
21830 2003-07-06 Karl Berry <karl@gnu.org>
21832 * config/depcomp: update from automake.
21833 * config/config.sub: update from prep.
21835 2003-07-03 Karl Berry <karl@gnu.org>
21837 * config/config.guess: update from prep.
21839 2003-07-01 Paul Eggert <eggert@twinsun.com>
21841 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
21842 xreadlink.c now includes it unconditionally.
21844 2003-07-01 Paul Eggert <eggert@twinsun.com>
21846 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
21847 having it depend on HAVE_SYS_TYPES_H.
21849 2003-07-01 Bruno Haible <bruno@clisp.org>
21851 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
21852 <sys/types.h> should be sufficient.
21853 Reported by Paul Eggert.
21855 2003-06-26 Karl Berry <karl@gnu.org>
21857 * config/depcomp: update from automake.
21859 2003-06-26 Bruno Haible <bruno@clisp.org>
21861 * modules/human: Depend on module stdbool.
21863 2003-06-25 Bruno Haible <bruno@clisp.org>
21865 * modules/readlink: New file.
21866 * modules/xreadlink: Depend on it.
21867 * MODULES.html.sh (func_all_modules): Add readlink.
21869 2003-06-25 Bruno Haible <bruno@clisp.org>
21871 * m4/readlink.m4: New file.
21873 2003-06-25 Bruno Haible <bruno@clisp.org>
21875 * lib/readlink.c: New file.
21877 2003-06-22 Karl Berry <karl@gnu.org>
21879 * config/srclist.txt: update mkinstalldirs from automake.
21880 * config/mkinstalldirs: update.
21882 2003-06-22 Bruno Haible <bruno@clisp.org>
21884 Portability to mingw32.
21885 * m4/ssize_t.m4: New file, from GNU gettext.
21886 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
21887 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
21889 2003-06-22 Bruno Haible <bruno@clisp.org>
21891 * modules/safe-read: Add m4/ssize_t.m4.
21892 * modules/xreadlink: Add m4/ssize_t.m4.
21894 2003-06-20 Bruno Haible <bruno@clisp.org>
21896 Assume C89, so PARAMS isn't needed.
21897 * lib/unicodeio.h (PARAMS): Remove.
21898 * lib/unicodeio.c: Don't use PARAMS.
21900 2003-06-18 Karl Berry <karl@gnu.org>
21902 * config/config.{guess,sub}: update from prep.
21904 2003-06-18 Jim Meyering <jim@meyering.net>
21906 Merge changes from coreutils.
21907 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
21908 Remove explicit declarations of xmalloc and realloc.
21910 (read_utmp): Remove anachronistic cast of xmalloc.
21912 2003-06-17 Paul Eggert <eggert@twinsun.com>
21914 Assume C89, so PARAMS isn't needed.
21915 * lib/backupfile.h (PARAMS): Remove. All uses removed.
21916 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
21917 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
21918 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
21919 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
21920 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
21921 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
21922 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
21923 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
21924 lib/xstrtod.h, lib/xstrtol.h: Likewise.
21925 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
21926 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
21927 no longer needed. Anyway, config.h should always be included before any
21930 2003-06-11 Simon Josefsson <jas@extundo.com>
21932 * modules/sysexits: New file.
21933 * MODULES.html.sh (func_all_modules): Add sysexits.
21935 2003-06-11 Simon Josefsson <jas@extundo.com>
21937 * lib/sysexit_.h: New file.
21939 2003-06-11 Derek Price <derek@ximbiot.com>
21941 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
21944 2003-06-11 Bruno Haible <bruno@clisp.org>
21946 * m4/sysexits.m4: New file.
21948 2003-06-10 Simon Josefsson <jas@extundo.com>
21950 * lib/argp.h: New file, from glibc.
21951 * lib/argp-ba.c: New file, from glibc.
21952 * lib/argp-eexst.c: New file, from glibc.
21953 * lib/argp-fmtstream.c: New file, from glibc.
21954 * lib/argp-fmtstream.h: New file, from glibc.
21955 * lib/argp-fs-xinl.c: New file, from glibc.
21956 * lib/argp-help.c: New file, from glibc.
21957 * lib/argp-namefrob.h: New file, from glibc.
21958 * lib/argp-parse.c: New file, from glibc.
21959 * lib/argp-pv.c: New file, from glibc.
21960 * lib/argp-pvh.c: New file, from glibc.
21961 * lib/argp-xinl.c: New file, from glibc.
21963 2003-06-10 Simon Josefsson <jas@extundo.com>
21965 * modules/strchrnul: New file.
21967 2003-06-10 Simon Josefsson <jas@extundo.com>
21969 * modules/argp: New file.
21971 2003-06-10 Simon Josefsson <jas@extundo.com>
21973 * m4/strchrnul.m4: New file.
21975 2003-06-10 Simon Josefsson <jas@extundo.com>
21977 * lib/strchrnul.h: New file.
21978 * lib/strchrnul.c: New file.
21980 2003-06-10 Bruno Haible <bruno@clisp.org>
21982 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
21984 2003-06-07 Karl Berry <karl@gnu.org>
21986 * config/config.{guess,sub}: update from prep.
21988 2003-06-07 Jim Meyering <jim@meyering.net>
21990 * modules/strtod: Use $(...) notation, not @...@ for
21991 AC_REPLACE'd variables.
21992 * modules/localcharset: Likewise.
21994 2003-06-07 Jim Meyering <jim@meyering.net>
21996 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
21997 in place of my name in the copyright comment.
21998 Remove definition and uses of __P.
22001 * lib/stat.c: Don't declare xmalloc explicitly.
22002 Instead, include "xalloc.h".
22003 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
22004 xrealloc, and xcalloc return values.
22005 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
22007 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
22009 2003-06-07 Bruno Haible <bruno@clisp.org>
22011 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
22012 avoid AC_CONFIG_LINKS.
22013 * modules/fnmatch (Makefile.am): Use explicit creation rule for
22014 fnmatch.h, to avoid AC_CONFIG_LINKS.
22015 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
22017 2003-06-07 Bruno Haible <bruno@clisp.org>
22019 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
22020 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
22021 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
22023 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
22024 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
22027 2003-06-06 Jim Meyering <jim@meyering.net>
22029 Merge from coreutils.
22030 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
22031 Consolidate declarations and initializations of *_base* locals.
22033 Merge from coreutils.
22034 This avoids a core dump on systems without GNU putenv,
22035 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
22036 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
22037 (unsetenv): New static function, from GNU libc.
22038 (rpl_putenv): Use it.
22040 * lib/modechange.c: Remove trailing blanks.
22042 Merge from coreutils.
22043 * lib/fsusage.c: Remove declaration of statfs.
22044 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
22046 * lib/posixtm.c: Include <stdbool.h> unconditionally.
22048 2003-06-06 Jim Meyering <jim@meyering.net>
22050 * lib/stdbool_.h: Renamed from stdbool.h.in.
22052 2003-06-06 Jim Meyering <jim@meyering.net>
22053 Bruno Haible <bruno@clisp.org>
22055 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
22056 Adjust Makefile.am snippet not to redirect directly to target.
22057 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
22059 2003-06-05 Paul Eggert <eggert@twinsun.com>
22061 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
22062 mismatch, look in future quarters as well as past. This fixes a
22063 bug when processing fall-backwards gaps immediately after a long
22064 period of daylight-saving time.
22066 * lib/mktime.c: Assume freestanding C89 or better.
22067 (HAVE_LIMITS_H): Remove. Assume it's 1.
22068 (__P): Remove; not used.
22069 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
22070 (mktime, not_equal_tm, print_tm, check_result,
22071 main): Use prototypes. Use const * where appropriate.
22072 (main): Fix typo in testing code that uncovered by above changes.
22073 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
22075 2003-06-04 Paul Eggert <eggert@twinsun.com>
22077 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
22078 locale.h, localeconv. This merges changes from coreutils.
22080 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
22081 It can be removed after the next Autoconf is released.
22082 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
22085 2003-06-04 Paul Eggert <eggert@twinsun.com>
22087 * lib/mktime.c: Fix Debian bug 177940
22088 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
22089 (localtime_offset): Now long int, not time_t, because we want it
22090 to be guaranteed to be signed. All uses changed.
22091 (__mktime_internal): If overflow would occur when adding offset,
22094 Merge 'human' changes from coreutils. Rewrite to support
22095 locale-specific notations like thousands separators.
22096 * lib/human.c: Simplify authorship notice.
22097 Include human.h immediately after config.h.
22098 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
22099 <limits.h>: Do not include, since human.h does.
22100 (SIZE_MAX, UINTMAX_MAX): New macros.
22101 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
22102 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
22103 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
22104 (power_letter): Renamed from suffixes.
22105 (generate_suffix_backwards): Remove.
22106 (adjust_value): Now takes int style (because of human.h changes)
22107 and long double value (for greater precision on some platforms).
22108 (group_number): New function.
22109 (human_readable): Use it. Use integer options, not enum.
22110 Put the options before the sizes in the arg list.
22111 Support all the new options.
22112 The old human_readable function has been removed;
22113 use inttostr.h instead.
22114 (human_readable, default_block_size, humblock):
22115 Use uintmax_t, not int, for block sizes.
22116 (human_readable_inexact, block_size_types): Remove.
22117 (block_size_opts): New constant.
22118 (human_options): Renamed from human_block_size, with new signature
22119 that allows block sizes up to UINTMAX_MAX. All callers changed.
22120 * lib/human.h: Add copyright and authorship notice.
22121 Include <limits.h> and <stdbool.h> unconditionally.
22122 (PARAMS): Remove. All uses removed.
22123 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
22124 (enum human_inexact_style): Remove tag; now a nameless enum.
22125 (human_floor, human_ceiling, human_round_to_even): Now have
22126 values 2, 0, 1 rather than -1, 1, 0.
22127 (human_group_digits, human_suppress_point_zero, human_autoscale,
22128 human_base_1024, human_SI, human_B): New constants.
22129 (human_readable_inexact, human_block_size): Remove.
22130 (human_readable): Size args are now uintmax_t, not int.
22131 (human_options): New decl.
22133 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
22134 unnecessary now that we assume C89 or better. This change
22135 imported from coreutils.
22137 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
22138 arbitrarily. This is the same patch as 2003-05-28, but it got lost
22139 in the 2003-05-30 sync from glibc.
22141 .h files should stand alone, but we shouldn't include <sys/types.h>
22142 if we can get away with just <stddef.h>.
22144 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
22145 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
22146 rather than <sys/types.h>, as we merely need size_t.
22147 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
22149 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
22150 Include <stdio.h>, to get FILE.
22151 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
22152 memcasecmp.h has included <stddef.h> and all we need is size_t.
22153 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
22154 our interface, instead of including <sys/types.h>
22156 2003-06-04 Paul Eggert <eggert@twinsun.com>
22158 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
22159 now, as glibc mktime is buggy on non-glibc systems.
22161 2003-06-03 Karl Berry <karl@gnu.org>
22163 * config/config.sub: update from prep.
22165 2003-06-02 Paul Eggert <eggert@twinsun.com>
22168 Fix some minor time-related bugs with POSIX time arguments.
22169 Some valid time stamps were being rejected (notably -1, and
22170 time stamps before 1900 on 64-bit hosts). And some invalid
22171 time stamps were being accepted, e.g. September 31.
22173 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
22174 that we can return (time_t) -1 successfully.
22175 * lib/posixtm.c: Likewise.
22176 [HAVE_STDBOOL_H]: Include <stdbool.h>.
22177 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
22178 (t): Remove static var.
22179 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
22180 of static var. All uses changed.
22181 (year): Do not reject years before 1900; they can occur with
22183 (posix_time_parse): Do not check for out-of-range components;
22184 that is now the caller's responsibility, since our checks were
22185 only approximations.
22186 (posixtime): Use mktime to check for out-of-range components,
22187 since it knows them exactly.
22188 If mktime returns (time_t) -1, check whether an error actually occurred
22189 by invoking localtime on -1.
22190 (main) [TEST_POSIXTIME]: Check for input data errors, and report
22191 posixtime failures better.
22192 Improve the test data (in comments only).
22194 2003-06-02 Karl Berry <karl@gnu.org>
22196 * config/mkinstalldirs (version): new variable.
22197 (--version): new option.
22198 (usage): improve message.
22200 2003-05-30 Karl Berry <karl@gnu.org>
22202 * lib/mktime.c: update from libc.
22204 2003-05-30 Bruno Haible <bruno@clisp.org>
22206 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
22207 * config/config.rpath: Upgrade to gettext-0.12.1.
22209 2003-05-30 Bruno Haible <bruno@clisp.org>
22211 * m4/gettext.m4: Upgrade to gettext-0.12.1.
22212 * m4/nls.m4: New file, from gettext-0.12.1.
22213 * m4/po.m4: New file, from gettext-0.12.1.
22214 * m4/progtest.m4: Upgrade to gettext-0.12.1.
22216 2003-05-30 Bruno Haible <bruno@clisp.org>
22218 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
22219 * lib/localcharset.h: Likewise.
22220 * lib/localcharset.c: Likewise.
22222 2003-05-29 Karl Berry <karl@gnu.org>
22224 * config/config.rpath: update from gettext.
22226 2003-05-28 Paul Eggert <eggert@twinsun.com>
22228 Assume the headers required for C89 freestanding compilers.
22229 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
22230 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
22231 * m4/human.m4 (gl_HUMAN): Likewise.
22232 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
22233 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
22234 * m4/userspec.m4 (gl_USERSPEC): Likewise.
22235 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
22236 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
22237 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
22239 2003-05-28 Paul Eggert <eggert@twinsun.com>
22241 Assume the headers required for C89 freestanding compilers.
22242 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
22243 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
22244 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
22245 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
22246 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
22247 define, since <limits.h> is guaranteed to do that.
22248 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
22249 * lib/exclude.c: Include <stdbool.h> unconditionally.
22250 * lib/tempname.c: Include <stddef.h> unconditionally.
22251 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
22252 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
22253 <stddef.h> does that.
22254 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
22255 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
22256 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
22258 * lib/xstrtol.c: Likewise.
22259 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
22260 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
22262 * lib/addext.c (addext): Use assignment rather than cast, to avoid
22263 warnings on some platforms.
22265 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
22268 2003-05-26 Jim Meyering <jim@meyering.net>
22270 Merge in a change from coreutils:
22271 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
22272 that is guaranteed to be `no'. Use `no_such_member' to indicate
22273 that condition, rather than `-1' which is slightly misleading.
22274 Change the name of the cache variable to have the gl_ prefix.
22275 Prompted by a patch from Richard Dawe for DJGPP.
22277 2003-05-24 Karl Berry <karl@gnu.org>
22279 * config/config.guess: update from prep.
22281 2003-05-22 Karl Berry <karl@gnu.org>
22283 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
22285 2003-05-20 Karl Berry <karl@gnu.org>
22287 * config/config.guess: update from prep.
22289 2003-05-18 Karl Berry <karl@gnu.org>
22291 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
22292 might actually be set by the user.
22294 * config/depcomp, install-sh, mdate-sh: update from automake.
22296 2003-05-17 Bruno Haible <bruno@clisp.org>
22298 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
22299 invalid expansion for AC_EGREP_CPP.
22300 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
22301 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22302 Suggested by Akim Demaille <akim@epita.fr> in
22303 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
22305 2003-05-12 Jim Meyering <jim@meyering.net>
22307 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
22308 the space-padded-by-default conversion specifiers, %e, %k, %l.
22310 2003-05-12 Bruno Haible <bruno@clisp.org>
22312 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
22313 the string is longer than 4 KB.
22315 2003-05-11 Karl Berry <karl@gnu.org>
22317 * config/config.{guess,sub}: update from prep.
22319 2003-05-09 Bruno Haible <bruno@clisp.org>
22321 * modules/error: Add m4/strerror_r.m4 to file list.
22323 2003-05-03 Bruno Haible <bruno@clisp.org>
22325 Upgrade to Unicode-4.0.
22326 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
22327 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
22328 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
22329 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
22330 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
22331 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
22332 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
22333 Change width of U+E0100..U+E01EF from 1 to 0.
22335 2003-04-25 Jim Meyering <jim@meyering.net>
22337 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
22338 of type size_t, not int.
22340 2003-04-25 Bruno Haible <bruno@clisp.org>
22342 * lib/copy-file.c: Include <stddef.h>, for size_t.
22344 2003-04-21 Paul Eggert <eggert@twinsun.com>
22346 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
22347 code which expansion is under static control. Patch imported from
22348 Akim Demaille's patch to Bison; see
22349 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
22351 2003-04-14 Bruno Haible <bruno@clisp.org>
22353 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
22355 2003-04-11 Jim Meyering <jim@meyering.net>
22357 Merge changes from Coreutils.
22359 2003-03-22 Jim Meyering <jim@meyering.net>
22361 * lib/strftime.c (widen): Cast alloca return value to proper type.
22363 2003-01-19 Ulrich Drepper <drepper@redhat.com>
22366 * lib/strftime.c (my_strftime): Handle very large width
22367 specifications for numeric values correctly. Improve checks for
22370 2003-01-19 Jim Meyering <jim@meyering.net>
22372 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
22374 (nl_get_alt_digit) [! defined my_strftime]: Define.
22375 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
22376 _nl_get_alt_digit and _nl_get_walt_digit.
22378 * lib/strftime.c (my_strftime): Merge in locale-related changes from
22379 libc. These changes have no effect outside of _LIBC.
22381 2003-04-10 Bruno Haible <bruno@clisp.org>
22383 * modules/findprog: New file.
22384 * MODULES.html.sh (func_all_modules): Add it.
22386 2003-04-10 Bruno Haible <bruno@clisp.org>
22388 * m4/findprog.m4: New file.
22389 * m4/eaccess.m4: New file.
22391 2003-04-10 Bruno Haible <bruno@clisp.org>
22393 * lib/findprog.h: New file, from GNU gettext.
22394 * lib/findprog.c: New file, from GNU gettext.
22396 2003-04-05 Jim Meyering <jim@meyering.net>
22398 Merge changes from Coreutils.
22400 * lib/exclude.h (PARAMS): Remove definition and uses.
22401 * lib/exclude.c: Remove uses of `PARAMS'.
22403 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
22404 Add test-cases for DOS filenames. Declare program_name.
22405 (main): Set up program_name. Patch by Rich Dawe.
22407 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
22409 Use mntctl's return value to drive the entry-processing loop, since
22410 we can't rely on the value of the vmt_length member in the last
22411 entry. On some systems doing so could result in exhausting
22412 virtual memory. Based in part on a patch from Mike Jetzer.
22414 2003-04-04 Bruno Haible <bruno@clisp.org>
22416 * modules/linebreak: New file.
22417 * MODULES.html.sh (func_all_modules): Add it.
22419 2003-04-04 Bruno Haible <bruno@clisp.org>
22421 * m4/linebreak.m4: New file.
22423 2003-04-04 Bruno Haible <bruno@clisp.org>
22425 * lib/linebreak.h: New file, from GNU gettext.
22426 * lib/linebreak.c: New file, from GNU gettext with slight
22428 * lib/lbrkprop.h: New file, from GNU gettext.
22430 2003-04-03 Bruno Haible <bruno@clisp.org>
22432 * modules/utf8-ucs4: New file.
22433 * modules/utf16-ucs4: New file.
22434 * modules/ucs4-utf8: New file.
22435 * modules/ucs4-utf16: New file.
22436 * MODULES.html.sh (func_all_modules): Add them.
22438 2003-04-03 Bruno Haible <bruno@clisp.org>
22440 * m4/utf-ucs4.m4: New file.
22441 * m4/ucs4-utf.m4: New file.
22443 2003-04-03 Bruno Haible <bruno@clisp.org>
22445 * lib/utf8-ucs4.h: New file, from GNU gettext.
22446 * lib/utf16-ucs4.h: New file, from GNU gettext.
22447 * lib/ucs4-utf8.h: New file, from GNU gettext.
22448 * lib/ucs4-utf16.h: New file, from GNU gettext.
22450 2003-04-02 Bruno Haible <bruno@clisp.org>
22452 * modules/binary-io: New file.
22453 * MODULES.html.sh (func_all_modules): Add it.
22455 2003-04-02 Bruno Haible <bruno@clisp.org>
22457 * lib/binary-io.h: New file, from GNU gettext.
22459 2003-04-01 Bruno Haible <bruno@clisp.org>
22461 * modules/pathname: New file.
22462 * MODULES.html.sh (func_all_modules): Add it.
22464 2003-04-01 Bruno Haible <bruno@clisp.org>
22466 * lib/pathname.h: New file, from GNU gettext.
22467 * lib/concatpath.c: New file, from GNU gettext.
22469 2003-03-30 Bruno Haible <bruno@clisp.org>
22471 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
22473 2003-03-30 Bruno Haible <bruno@clisp.org>
22475 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
22476 function chown() doesn't exist.
22478 2003-03-28 Bruno Haible <bruno@clisp.org>
22480 * modules/copy-file: New file.
22481 * MODULES.html.sh (func_all_modules): Add it.
22483 2003-03-28 Bruno Haible <bruno@clisp.org>
22485 * m4/copy-file.m4: New file.
22487 2003-03-28 Bruno Haible <bruno@clisp.org>
22489 * lib/copy-file.h: New file, from GNU gettext.
22490 * lib/copy-file.c: New file, from GNU gettext.
22492 2003-03-18 Jim Meyering <jim@meyering.net>
22494 * lib/quote.c (quote_n): Fix typo in comment.
22496 2003-03-18 Bruno Haible <bruno@clisp.org>
22498 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
22500 * m4/onceonly_2_57.m4: Likewise.
22502 2003-03-17 Bruno Haible <bruno@clisp.org>
22504 * m4/onceonly.m4: Require autoconf 2.54 or newer.
22505 (m4_quote): Remove macro.
22506 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
22508 2003-03-14 Jim Meyering <jim@meyering.net>
22510 Merge changes from Coreutils.
22511 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
22512 to be const, in order to avoid warnings.
22513 (obstack_room): Likewise.
22514 (obstack_empty_p): Likewise.
22516 2003-03-14 Bruno Haible <bruno@clisp.org>
22518 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
22519 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
22521 2003-03-13 Paul Eggert <eggert@twinsun.com>
22523 Merge changes from Bison.
22524 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
22525 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
22526 when compiling Bison 1.875's `bitset bset = obstack_alloc
22527 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
22528 * lib/hash.c: Include <stdbool.h> unconditionally.
22530 2003-03-13 Paul Eggert <eggert@twinsun.com>
22532 * m4/onceonly.m4 (m4_quote): New macro.
22533 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
22534 Quote AC_FOREACH variable-expansions properly.
22536 2003-03-13 Paul Eggert <eggert@twinsun.com>
22538 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
22540 2003-03-09 Paul Eggert <eggert@twinsun.com>
22542 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
22543 Reported by Bruce Becker; see:
22544 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
22546 2003-03-03 Paul Eggert <eggert@twinsun.com>
22547 Bruno Haible <bruno@clisp.org>
22549 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
22550 Reported by John Hughes, see
22551 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
22553 2003-02-20 Bruno Haible <bruno@clisp.org>
22555 * MODULES.html.sh (func_all_modules): Add poll.
22557 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
22559 * modules/poll: New file.
22561 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
22563 * lib/poll_.h: New file.
22564 * lib/poll.c: New file.
22566 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
22568 * m4/poll.m4: New file.
22570 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
22572 * modules/mathl: New file.
22574 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
22576 * lib/mathl.h: New file.
22577 * lib/acosl.c: New file.
22578 * lib/asinl.c: New file.
22579 * lib/atanl.c: New file.
22580 * lib/ceill.c: New file.
22581 * lib/cosl.c: New file.
22582 * lib/expl.c: New file.
22583 * lib/floorl.c: New file.
22584 * lib/frexpl.c: New file.
22585 * lib/ldexpl.c: New file.
22586 * lib/logl.c: New file.
22587 * lib/sincosl.c: New file.
22588 * lib/sinl.c: New file.
22589 * lib/sqrtl.c: New file.
22590 * lib/tanl.c: New file.
22591 * lib/trigl.c: New file.
22592 * lib/trigl.h: New file.
22594 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
22596 * m4/mathl.m4: New file.
22598 2003-02-18 Bruno Haible <bruno@clisp.org>
22600 * MODULES.html.sh (func_all_modules): Add mathl.
22602 2003-02-17 Bruno Haible <bruno@clisp.org>
22604 * modules/mkdtemp: New module.
22605 * MODULES.html.sh (func_all_modules): Add it.
22607 2003-02-17 Bruno Haible <bruno@clisp.org>
22609 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
22611 2003-02-17 Bruno Haible <bruno@clisp.org>
22613 * lib/mkdtemp.h: New file, from GNU gettext.
22614 * lib/mkdtemp.c: New file, from GNU gettext.
22616 2003-02-02 Jim Meyering <jim@meyering.net>
22618 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
22621 2003-01-31 Bruno Haible <bruno@clisp.org>
22623 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
22625 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
22627 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
22629 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
22632 2003-01-31 Bruno Haible <bruno@clisp.org>
22634 * lib/rename.c: #undef rename before defining rpl_rename.
22635 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
22637 2003-01-30 Bruno Haible <bruno@clisp.org>
22639 * modules/vasnprintf, modules/vasprintf: New modules.
22640 * MODULES.html.sh (func_all_modules): Add them.
22642 2003-01-30 Bruno Haible <bruno@clisp.org>
22644 * m4/signed.m4: New file, from GNU gettext.
22645 * m4/longdouble.m4: New file, from GNU gettext.
22646 * m4/wchar_t.m4: New file, from GNU gettext.
22647 * m4/wint_t.m4: New file, from GNU gettext.
22648 * m4/vasnprintf.m4: New file.
22649 * m4/vasprintf.m4: New file.
22651 2003-01-30 Bruno Haible <bruno@clisp.org>
22653 * lib/printf-args.h: New file, from GNU gettext.
22654 * lib/printf-args.c: New file, from GNU gettext.
22655 * lib/printf-parse.h: New file, from GNU gettext.
22656 * lib/printf-parse.c: New file, from GNU gettext.
22657 * lib/vasnprintf.h: New file, from GNU gettext.
22658 * lib/vasnprintf.c: New file, from GNU gettext.
22659 * lib/asnprintf.c: New file, from GNU gettext.
22660 * lib/vasprintf.h: New file, from GNU gettext with modifications.
22661 * lib/vasprintf.c: New file, from GNU gettext.
22662 * lib/asprintf.c: New file, from GNU gettext.
22664 2003-01-29 Bruno Haible <bruno@clisp.org>
22666 * modules/stpncpy: New module.
22667 * MODULES.html.sh (func_all_modules): Add it.
22669 2003-01-29 Bruno Haible <bruno@clisp.org>
22671 * m4/stpncpy.m4: New file.
22673 2003-01-29 Bruno Haible <bruno@clisp.org>
22675 * lib/stpncpy.h: New file, from GNU gettext with modifications.
22676 * lib/stpncpy.c: New file, from GNU gettext with modifications.
22678 2003-01-28 Bruno Haible <bruno@clisp.org>
22680 * modules/c-ctype: New module.
22681 * MODULES.html.sh (func_all_modules): Add it.
22683 2003-01-28 Bruno Haible <bruno@clisp.org>
22685 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
22687 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
22690 2003-01-27 Bruno Haible <bruno@clisp.org>
22692 * modules/xsetenv: New module.
22693 * MODULES.html.sh (func_all_modules): Add it.
22695 2003-01-27 Bruno Haible <bruno@clisp.org>
22697 * lib/xsetenv.h: New file, from GNU gettext.
22698 * lib/xsetenv.c: New file, from GNU gettext.
22700 2003-01-23 Jim Meyering <jim@meyering.net>
22702 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
22703 from working on systems without dirfd (at least Irix and OSF1/Tru64).
22705 2003-01-23 Bruno Haible <bruno@clisp.org>
22707 * modules/minmax: New module.
22708 * MODULES.html.sh (func_all_modules): Add it.
22710 2003-01-23 Bruno Haible <bruno@clisp.org>
22712 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
22715 2003-01-22 Bruno Haible <bruno@clisp.org>
22717 * modules/exit: New module.
22718 * MODULES.html.sh (func_all_modules): Add it.
22720 2003-01-22 Bruno Haible <bruno@clisp.org>
22722 * lib/exit.h: New file, from GNU gettext.
22724 2003-01-19 Bruno Haible <bruno@clisp.org>
22726 * gnulib-tool: Recognize option --extract-maintainer.
22727 (func_get_maintainer): New function.
22728 * modules/*: Add Maintainer entry.
22730 2003-01-16 Jim Meyering <jim@meyering.net>
22732 * m4/regex.m4: The `regex' struct is both input and output.
22733 Initialize it before each use. Patch by Tim Waugh.
22735 2003-01-16 Bruno Haible <bruno@clisp.org>
22737 * MODULES.html.sh: Add a table of contents. Add the module name as
22738 leftmost column. Add hyperlinks.
22740 2003-01-15 Bruno Haible <bruno@clisp.org>
22742 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
22744 2003-01-15 Bruno Haible <bruno@clisp.org>
22746 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
22747 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
22750 2003-01-15 Bruno Haible <bruno@clisp.org>
22752 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
22754 2003-01-15 Bruno Haible <bruno@clisp.org>
22756 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
22757 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
22759 2003-01-14 Jim Meyering <jim@meyering.net>
22761 * lib/same.c (same_name): Tweak a comment.
22763 2003-01-14 Bruno Haible <bruno@clisp.org>
22765 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
22766 when a string comparison is sufficient.
22768 2003-01-14 Bruno Haible <bruno@clisp.org>
22770 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
22773 2003-01-14 Bruno Haible <bruno@clisp.org>
22775 * lib/hash-pjw.c: Add comment about low quality of this function.
22777 2003-01-13 Bruno Haible <bruno@clisp.org>
22779 * modules/stpcpy: Distribute lib/stpcpy.h.
22780 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
22782 2003-01-13 Bruno Haible <bruno@clisp.org>
22784 * modules/*: Add a description.
22785 * modules/strpbrk: Fix Makefile.am snippet.
22786 * modules/strtoimax: Fix dependencies.
22787 * modules/strtoumax: Likewise.
22789 2003-01-13 Bruno Haible <bruno@clisp.org>
22791 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
22792 * modules/alloca (Makefile.am): All object files depend on alloca.h.
22793 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
22795 2003-01-13 Bruno Haible <bruno@clisp.org>
22797 * gnulib-tool (func_create_testdir): Store config/* files in the main
22799 * config.rpath: Move to ...
22800 * config/config.rpath: ... here.
22801 * modules/gettext: Contains config/config.rpath, not config.rpath.
22802 * modules/iconv: Likewise.
22804 2003-01-12 Paul Eggert <eggert@twinsun.com>
22806 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
22807 to avoid collisions with libcurses and libreadline.
22809 * m4/getstr.m4: Remove.
22810 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
22812 2003-01-12 Paul Eggert <eggert@twinsun.com>
22814 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
22815 to avoid collisions with libcurses and libreadline.
22817 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
22818 * lib/getstr.h, getstr.c: Remove.
22819 * lib/getline.c: Include "getline.h", to check interface.
22820 Move body of old getstr.c here: this defines MIN_CHUNK and
22821 declares getdelim2, which is renamed from getstr.
22822 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
22824 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
22826 * lib/linebuffer.h: Likewise.
22827 (readline): Remove backward-compatibility macro.
22829 2003-01-12 Paul Eggert <eggert@twinsun.com>
22831 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
22832 to avoid collisions with libcurses and libreadline.
22834 * MODULES.html.sh: Remove getstr.
22835 * modules/getline: Depend on unlocked-io, not getstr.
22837 2003-01-12 Jim Meyering <jim@meyering.net>
22839 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
22841 2003-01-10 Bruno Haible <bruno@clisp.org>
22843 * modules/alloca: Change Makefile.am requirements. Simplify Include
22844 requirements. Add lib/alloca_.h to file list.
22846 2003-01-10 Bruno Haible <bruno@clisp.org>
22848 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
22850 2003-01-10 Bruno Haible <bruno@clisp.org>
22852 * lib/alloca_.h: New file.
22853 * lib/getdate.y: Unconditionally include alloca.h.
22854 * lib/makepath.c: Likewise.
22855 * lib/setenv.c: Likewise.
22856 * lib/userspec.c: Likewise.
22858 2003-01-09 Karl Berry <karl@gnu.org>
22860 * MODULES.html.sh: include `dirname $0` in PATH, to find
22863 2003-01-09 Bruno Haible <bruno@clisp.org>
22865 * modules/stdbool: Change configure.ac, Makefile.am requirements.
22866 Simplify Include requirements. Add lib/stdbool.h.in to file list.
22868 2003-01-09 Bruno Haible <bruno@clisp.org>
22870 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
22872 2003-01-09 Bruno Haible <bruno@clisp.org>
22874 * lib/stdbool.h.in: New file.
22876 2003-01-09 Bruno Haible <bruno@clisp.org>
22878 * gnulib-tool (func_all_modules): Ignore files ending in ~.
22879 * MODULES.html.sh: Likewise.
22881 2003-01-08 Jim Meyering <jim@meyering.net>
22883 * lib/full-write.c: Undefine and define-away `const' after inclusion
22884 of errno.h, not before. Suggestion from Bruno Haible.
22886 2003-01-08 Bruno Haible <bruno@clisp.org>
22888 * modules/full-read: Depend on full-write.
22890 2003-01-08 Bruno Haible <bruno@clisp.org>
22892 * lib/safe-read.c: Include specification header first, to ensure its
22894 * lib/full-write.c: Likewise.
22896 2003-01-07 Jim Meyering <jim@meyering.net>
22898 * lib/full-write.c: Rework so that it may serve to define full_read,
22900 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
22902 2003-01-07 Bruno Haible <bruno@clisp.org>
22904 * lib/strtoimax.c: Include <stdint.h> as an alternative to
22906 * lib/xstrtol.h: Likewise.
22907 * lib/xstrtoimax.c: Likewise.
22908 * lib/xstrtoumax.c: Likewise.
22909 * lib/human.h: Likewise.
22911 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
22912 on systems that have <inttypes.h> but not <stdint.h>.
22914 2003-01-07 Bruno Haible <bruno@clisp.org>
22916 * MODULES.html.sh: Add copyright notice.
22917 (missed_files): Omit CVS directory entries.
22918 (func_module): Make it work with sed-3.02.
22919 * MODULES.txt: Remove file.
22921 2003-01-06 Jim Meyering <jim@meyering.net>
22923 * lib/version-etc.c: Update year in translatable copyright string.
22925 2003-01-03 Karl Berry <karl@gnu.org>
22927 * config/config.{guess,sub}: update from prep.
22929 2003-01-02 Karl Berry <karl@gnu.org>
22931 * doc/COPYING.DOC: belatedly updated to 1.2.
22933 2003-01-01 Karl Berry <karl@gnu.org>
22935 * gnulib-tool (func_verify_module): report module name $module in
22936 error message, not $1.
22937 * gnulib-tool (create-testdir): don't complain if destdir couldn't
22938 be created, only if it doesn't exist.
22939 * gnulib-tool (last_checkin_date): don't expand the $Date here.
22941 2002-12-31 Paul Eggert <eggert@twinsun.com>
22943 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
22945 2002-12-31 Paul Eggert <eggert@twinsun.com>
22947 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
22948 memcmp if strcoll doesn't work.
22950 2002-12-31 Bruno Haible <bruno@clisp.org>
22952 * lib/utime.c (utime_null): No need to call ftruncate if the file was
22955 2002-12-31 Bruno Haible <bruno@clisp.org>
22957 * lib/memcoll.c (STRCOLL): New macro.
22960 2002-12-31 Bruno Haible <bruno@clisp.org>
22962 * lib/localcharset.h: New file.
22963 * lib/localcharset.c: Include it.
22964 * lib/unicodeio.c: Likewise.
22966 2002-12-31 Bruno Haible <bruno@clisp.org>
22968 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
22969 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
22971 2002-12-31 Bruno Haible <bruno@clisp.org>
22973 * lib/getline.h: Include <stddef.h>, for size_t.
22975 * lib/unicodeio.h: Include <stddef.h>, for size_t.
22976 * lib/unicodeio.c: Don't include <stddef.h>.
22978 2002-12-31 Bruno Haible <bruno@clisp.org>
22980 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
22983 2002-12-24 Karl Berry <karl@gnu.org>
22985 * config/config.guess: update from prep.
22987 2002-12-24 Bruno Haible <bruno@clisp.org>
22989 General infrasructure.
22990 * m4/README: Rewritten.
22991 * m4/onceonly.m4: New file.
22992 * m4/onceonly_2_57.m4: New file.
22995 * m4/atexit.m4: New file.
22998 * m4/strtod.m4: New file.
23001 * m4/strtol.m4: New file.
23004 * m4/strtoul.m4: New file.
23007 * m4/memchr.m4: New file.
23010 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
23011 (jm_FUNC_MEMCMP): Invoke it.
23014 * m4/memcpy.m4: New file.
23017 * m4/memmove.m4: New file.
23020 * m4/memset.m4: New file.
23023 * m4/strcspn.m4: New file.
23026 * m4/strpbrk.m4: New file.
23029 * m4/strstr.m4: New file.
23032 * m4/strerror.m4: New file.
23035 * m4/mktime.m4: Renamed from jm-mktime.m4.
23036 (gl_PREREQ_MKTIME): New macro.
23037 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
23040 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
23041 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
23042 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
23045 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
23046 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
23047 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
23050 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
23051 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
23052 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
23054 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
23057 * m4/xalloc.m4: New file.
23060 * m4/alloca.m4: New file.
23063 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
23064 (jm_FUNC_PUTENV): Invoke it.
23067 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
23068 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
23069 when invoked twice.
23070 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
23074 * m4/memrchr.m4: New file.
23077 * m4/stpcpy.m4: New file.
23080 * m4/strcase.m4: New file.
23083 * m4/strdup.m4: New file.
23086 * m4/strnlen.m4: New file.
23089 * m4/strndup.m4: New file.
23092 * m4/xstrtod.m4: New file.
23095 * m4/xstrtol.m4: New file.
23098 * m4/getdate.m4: New file.
23100 Module unlocked-io.
23101 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
23102 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
23103 * m4/jm-glibc-io.m4n: Remove file.
23105 Module long-options.
23106 * m4/long-options.m4: New file.
23109 * m4/md5.m4: New file.
23112 * m4/sha.m4: New file.
23115 * m4/getstr.m4: New file.
23118 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
23119 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
23120 <sys/types.h>, for size_t. Use the function name gnu_getline, not
23121 simply getline. Infoke gl_PREREQ_GETLINE.
23124 * m4/obstack.m4: New file.
23127 * m4/hash.m4: New file.
23130 * m4/readtokens.m4: New file.
23133 * m4/strverscmp.m4: New file.
23136 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
23140 * m4/strtoll.m4: New file.
23143 * m4/strtoull.m4: New file.
23146 * m4/strtoimax.m4: New file.
23149 * m4/strtoumax.m4: New file.
23152 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
23153 jm_AC_PREREQ_XSTRTOIMAX.
23154 Moved the strtol prerequisites to strtol.m4.
23155 Moved the strtoll prerequisites to strtoll.m4.
23156 Moved the strtoimax prerequisites to strtoimax.m4.
23159 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
23160 jm_AC_PREREQ_XSTRTOUMAX.
23161 Moved the strtoul prerequisites to strtoul.m4.
23162 Moved the strtoull prerequisites to strtoull.m4.
23163 Moved the strtoumax prerequisites to strtoumax.m4.
23166 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
23167 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
23170 * m4/dup2.m4: New file.
23173 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
23174 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
23177 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
23178 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
23180 Module gettimeofday.
23181 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
23182 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
23183 gl_PREREQ_GETTIMEOFDAY.
23186 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
23187 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
23190 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
23191 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
23192 jm_AC_TYPE_UINTMAX_T.
23193 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
23196 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
23197 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
23200 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
23201 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
23204 * m4/timespec.m4 (gl_TIMESPEC): New macro.
23205 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
23206 * m4/st_mtim.m4: Indentation.
23209 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
23210 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
23211 gl_PREREQ_NANOSLEEP.
23214 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
23215 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
23216 (gl_REGEX): New macro.
23219 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
23220 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
23223 * m4/rmdir.m4: New file.
23226 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
23227 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
23228 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
23231 * m4/dirname.m4: New file.
23234 * m4/getopt.m4: New file.
23236 Module unistd-safer.
23237 * m4/unistd-safer.m4: New file.
23240 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
23242 (gl_PREREQ_FNMATCH_EXTRA): New macro.
23243 (gl_FUNC_FNMATCH_POSIX): New macro.
23244 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
23245 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
23249 * m4/exclude.m4: New file.
23252 * m4/human.m4: New file.
23258 * m4/backupfile.m4: New file.
23259 * m4/d-ino.m4: Indentation.
23262 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
23263 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
23264 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
23267 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
23271 * m4/euidaccess.m4: New file.
23274 * m4/file-type.m4: New file.
23277 * m4/fileblocks.m4: New file.
23280 * m4/filemode.m4: New file.
23283 * m4/isdir.m4: New file.
23286 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
23287 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
23290 * m4/makepath.m4: New file.
23293 * m4/modechange.m4: New file.
23296 * m4/mountlist.m4: New file.
23297 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
23300 Module path-concat.
23301 * m4/path-concat.m4: New file.
23304 * m4/pathmax.m4: New file.
23307 * m4/same.m4: New file.
23310 * m4/save-cwd.m4: New file.
23313 * m4/savedir.m4: New file.
23316 * m4/xgetcwd.m4: New file.
23317 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
23320 * m4/xreadlink.m4: New file.
23323 * m4/safe-read.m4: New file.
23326 * m4/safe-write.m4: New file.
23329 * m4/closeout.m4: New file.
23331 Module stdio-safer.
23332 * m4/stdio-safer.m4: New file.
23335 * m4/getpass.m4: New file.
23338 * m4/getugroups.m4: New file.
23340 Module group-member.
23341 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
23342 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
23345 * m4/idcache.m4: New file.
23348 * m4/userspec.m4: New file.
23351 * m4/clock_time.m4: New file.
23352 * m4/gettime.m4: New file.
23355 * m4/settime.m4: New file.
23358 * m4/posixtm.m4: New file.
23360 Module gethostname.
23361 * m4/gethostname.m4: New file.
23364 * m4/canon-host.m4: New file.
23367 * m4/codeset.m4: New file, from gettext-0.11.5.
23368 * m4/gettext.m4: New file, from gettext-0.11.5.
23369 * m4/glibc21.m4: New file, from gettext-0.11.5.
23370 * m4/iconv.m4: New file, from gettext-0.11.5.
23371 * m4/intdiv0.m4: New file, from gettext-0.11.5.
23372 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
23373 * m4/inttypes.m4: New file, from gettext-0.11.5.
23374 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
23375 * m4/isc-posix.m4: New file, from gettext-0.11.5.
23376 * m4/lcmessage.m4: New file, from gettext-0.11.5.
23377 * m4/lib-ld.m4: New file, from gettext-0.11.5.
23378 * m4/lib-link.m4: New file, from gettext-0.11.5.
23379 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
23380 * m4/progtest.m4: New file, from gettext-0.11.5.
23381 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
23382 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
23383 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
23385 Module localcharset.
23386 * m4/localcharset.m4: New file.
23388 Module hard-locale.
23389 * m4/hard-locale.m4: New file.
23392 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
23394 * m4/mbrtowc.m4: Add comment.
23397 * m4/memcasecmp.m4: New file.
23400 * m4/memcoll.m4: New file.
23403 * m4/unicodeio.m4: New file.
23406 * m4/rpmatch.m4: New file.
23409 * m4/yesno.m4: New file.
23412 * m4/exitfail.m4: New file.
23415 * m4/c-stack.m4 (gl_C_STACK): New macro.
23416 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
23419 * m4/error.m4 (gl_ERROR): New macro.
23420 (jm_PREREQ_ERROR): Use onceonly macros.
23423 * m4/fatal.m4: New file.
23426 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
23427 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
23429 Module getpagesize.
23430 * m4/getpagesize.m4: New file.
23432 Module getusershell.
23433 * m4/getusershell.m4: New file.
23436 * m4/physmem.m4: New file.
23439 * m4/posixver.m4: New file.
23442 * m4/quotearg.m4: New file.
23445 * m4/quote.m4: New file.
23448 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
23451 * m4/sig2str.m4: New file.
23454 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
23456 * m4/intmax_t.m4: New file.
23457 * m4/d-type.m4: Indentation.
23458 * m4/jm-macros.m4: Update.
23459 * m4/prereq.m4 (jm_PREREQ): Update.
23460 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
23461 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
23462 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
23463 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
23464 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
23465 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
23466 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
23467 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
23468 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
23469 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
23470 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
23471 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
23472 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
23473 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
23474 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
23475 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
23476 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
23477 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
23478 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
23480 2002-12-24 Bruno Haible <bruno@clisp.org>
23482 * MODULES.txt: Update according to m4/ changes.
23485 * config.rpath: New file, from gettext-0.11.5.
23487 * modules/*: New module descriptions.
23488 * gnulib-tool: New file.
23489 * MODULES.html.sh: New file.
23491 2002-12-21 Karl Berry <karl@gnu.org>
23493 * doc/fdl.texi: update to version 1.2.
23495 2002-12-19 Karl Berry <karl@gnu.org>
23497 * config/config.guess: update from prep.
23499 2002-12-18 Bruno Haible <bruno@clisp.org>
23501 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
23502 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
23504 2002-12-17 Bruno Haible <bruno@clisp.org>
23506 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
23507 stdlib.h, string.h.
23509 2002-12-17 Bruno Haible <bruno@clisp.org>
23511 * lib/canon-host.c (strdup): Remove unused declaration.
23513 * lib/fsusage.c: Include full_read.h.
23514 (get_fs_usage): Use full_read instead of safe_read.
23516 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
23518 2002-12-12 Karl Berry <karl@gnu.org>
23520 * config/config.guess: update from prep.
23522 2002-12-11 Bruno Haible <bruno@clisp.org>
23524 * m4/setenv.m4: New file, from gettext-0.11.5.
23526 2002-12-11 Bruno Haible <bruno@clisp.org>
23528 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
23530 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
23533 2002-12-11 Bruno Haible <bruno@clisp.org>
23535 * setenv.c (alloca): Fall back to malloc.
23536 (freea): New macro.
23537 (setenv): Use freea() to free memory allocated with alloca().
23539 2002-11-13 Bruno Haible <bruno@clisp.org>
23541 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
23542 function declarations.
23543 * unsetenv.c (unsetenv): Likewise.
23545 2002-03-04 Bruno Haible <bruno@clisp.org>
23547 Portability to AIX 4.3.3.
23548 * unsetenv.c: New file, extracted from setenv.c.
23549 * setenv.c: Move the unsetenv() function to unsetenv.c.
23551 2001-12-20 Bruno Haible <bruno@clisp.org>
23553 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
23554 use malloc instead. For SunOS 4.
23556 2001-12-11 Bruno Haible <bruno@clisp.org>
23558 * setenv.c: Declare alloca.
23559 (compar_fn_t): New typedef.
23560 (KNOWN_VALUE, STORE_VALUE): Use it.
23562 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
23565 2002-12-10 Paul Eggert <eggert@twinsun.com>
23567 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
23568 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
23569 Choose values that are less likely to collide with system fnmatch
23571 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
23572 defined (e.g., a pure POSIX system).
23573 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
23574 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
23576 2002-12-06 Paul Eggert <eggert@twinsun.com>
23578 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
23579 a pain in practice to deal with generated m4 files. This change
23580 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
23582 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
23583 and jm-glibc-io.m4, as they are no longer a special case.
23584 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
23585 kludge and the auto-generation stuff. Check only whether the
23586 functions are declared, not whether they exist, since older hosts
23587 that don't declare the functions can't use the optimization anyway.
23589 2002-12-06 Jim Meyering <jim@meyering.net>
23591 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
23593 Merge in changes from libc's misc/error.c, in preparation
23594 for the merge of gnulib's changes back into libc.
23596 * lib/error.c (_): Define only if not already defined.
23597 Move definition to follow all #include directives.
23598 Include unlocked-io.h only if !_LIBC.
23599 [_LIBC]: Include <libio/libioP.h>.
23600 [USE_IN_LIBIO]: Include <libio/iolibio.h>
23601 (fflush): Tweak definition to use INTUSE.
23604 2002-12-05 Paul Eggert <eggert@twinsun.com>
23606 * lib/alloca.c [defined emacs]: Include "lisp.h".
23607 (xalloc_die) [defined emacs]: New macro.
23608 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
23609 [! defined emacs]: Include <xalloc.h>.
23610 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
23611 (pointer): Typedef to POINTER_TYPE *.
23612 (malloc): Remove decl; we now always use xmalloc.
23613 (alloca): Use old-style definition, since Emacs needs this.
23614 Check for arithmetic overflow when computing combined size.
23616 2002-12-04 Paul Eggert <eggert@twinsun.com>
23618 Do not generate unlocked-io.h automatically, since it's easier to
23619 maintain it by hand.
23621 * lib/unlocked-io.h: New file, from GNU diffutils,
23622 but with proper copyright notice and attribution.
23623 * lib/gen-uio: Remove.
23624 * lib/Makefile.am: Add copyright notice.
23625 (libfetish_a_SOURCES): Add unlocked-io.h.
23626 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
23627 (DISTCLEANFILES, io_functions): Remove macros.
23628 (EXTRA_DIST): Remove gen_uio.
23629 (unlocked-io.h): Remove rule.
23631 2002-12-04 Jim Meyering <jim@meyering.net>
23633 Reflect the fact that stat.c and lstat.c are no longer generated.
23634 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
23635 (DISTCLEANFILES): Likewise.
23636 (EXTRA_DIST): Likewise.
23637 (all_local): Don't depend on stat.c or lstat.c.
23638 (stat.c, lstat.c): Remove rules.
23639 (EXTRA_DIST): Remove xstat.in.
23641 * lib/xstat.in: Remove file. Contents moved into stat.c.
23642 * lib/stat.c: New file. Contents mostly from xstat.in.
23643 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
23644 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
23646 * lib/safe-read.c: Rework so that it may serve to define safe_write,
23648 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
23650 2002-12-03 Jim Meyering <jim@meyering.net>
23652 * lib/safe-read.c, safe-write.c: Change variable names and comments,
23653 but not semantics, to minimize the differences between these two files.
23654 (safe_read): Change comment to mention SAFE_READ_ERROR.
23656 * lib/safe-read.c (IS_EINTR): Define.
23657 (safe_read): Use IS_EINTR in place of in-function cpp directives.
23659 2002-12-02 Jim Meyering <jim@meyering.net>
23661 * lib/safe-read.c (EINTR): Define.
23662 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
23663 (INT_MAX): Provide fallback.
23664 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
23666 * lib/safe-read.h (SAFE_READ_ERROR): Define.
23668 2002-12-02 Bruno Haible <bruno@clisp.org>
23670 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
23671 Define, taken from safe-read.c.
23672 (INT_MAX): Provide fallback.
23673 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
23674 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
23676 * lib/safe-read.c (EINTR): Remove definition.
23677 (safe_read): Don't use EINTR if it is absent.
23679 2002-12-01 Jim Meyering <jim@meyering.net>
23681 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
23683 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
23685 2002-11-27 Paul Eggert <eggert@twinsun.com>
23687 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
23688 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
23689 with `if (! (value < limit)) abort ();', for readability.
23691 2002-11-26 Karl Berry <karl@gnu.org>
23693 * lib/strdup.c: copy from libc again, with jim's ok.
23694 * lib/.cppi-disable: re-add strdup.c
23696 2002-11-25 Karl Berry <karl@gnu.org>
23698 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
23699 instead of "strtol.c".
23701 2002-11-25 Karl Berry <karl@gnu.org>
23703 * config/install-sh: update from automake for variable quoting, $0 in
23706 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
23707 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
23710 2002-11-25 Jim Meyering <jim@meyering.net>
23712 * lib/mktime.c: Sync from libc, now that it has the latest fix.
23714 2002-11-24 Karl Berry <karl@gnu.org>
23716 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
23717 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
23719 2002-11-24 Jim Meyering <jim@meyering.net>
23721 Update from coreutils:
23723 * lib/mktime.c: Merge in changes from libc.
23725 Avoid a link-time failure on some Linux systems.
23726 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
23728 (__mon_yday): Declare with the STATIC attribute.
23729 (__mktime_internal): Likewise.
23730 Based on a report from Greg Schafer.
23732 2002-11-23 Jim Meyering <jim@meyering.net>
23734 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
23735 Use `unsigned', not `int', as type of index.
23737 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
23739 * lib/fsusage.c: Remove unneeded parentheses around operands of
23742 2002-11-22 Paul Eggert <eggert@twinsun.com>
23744 * lib/quotearg.h: Allow multiple inclusion by surrounding with
23745 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
23746 so that we can be included first.
23747 (PARAMS): Remove; we now assume C89 or later. All uses removed.
23748 * lib/quotearg.c: Include quotearg.h immediately after config.h.
23749 No need to include stddef.h or sys/types.h any more.
23750 Surround local include files with "", not "<>".
23751 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
23752 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
23753 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
23754 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
23755 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
23756 (ISPRINT): Remove; no longer needed now that we assume C89.
23758 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
23761 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
23762 quotearg_char): Use SIZE_MAX rather than
23763 (size_t) -1 when we are talking about "infinity".
23765 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
23767 2002-11-22 Paul Eggert <eggert@twinsun.com>
23769 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
23770 hint that one should use `if (! x) abort ();' rather than `assert
23771 (x);', and anyway it's one less thing to worry about configuring.
23772 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
23773 hash_rehash, hash_insert): Use abort rather than assert.
23775 2002-11-22 Bruno Haible <bruno@clisp.org>
23777 * lib/safe-read.h: Assume C89. Add comments.
23778 (safe_read): Change return type to size_t.
23779 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
23780 byte counts > SSIZE_MAX correctly.
23781 * lib/safe-write.h: New file.
23782 * lib/safe-write.c: New file.
23783 * lib/full-read.h: New file.
23784 * lib/full-read.c: New file.
23785 * lib/full-write.h: Assume C89. Add comments.
23786 * lib/full-write.c: Include safe-write.h.
23787 (full_write): Rewritten to use safe_write.
23788 Suggested by Jim Meyering and Paul Eggert.
23790 2002-11-21 Jim Meyering <jim@meyering.net>
23792 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
23794 Merge in changes from the coreutils.
23796 2002-09-25 Paul Eggert <eggert@twinsun.com>
23797 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
23799 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
23800 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
23801 int. Work more efficiently if X is the same width as uintmax_t.
23802 Do not compare X to -1, to avoid bogus compiler warning.
23803 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
23804 Don't assume that f_frsize and f_bsize are the same type.
23806 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
23807 warning on FreeBSD.
23809 * lib/makepath.c (make_path): Restore umask *before* creating the final
23811 (make_path): Minor reformatting.
23813 * lib/xmalloc.c: Adjust to work with new autoconf macros,
23814 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
23815 HAVE_MALLOC/HAVE_REALLOC.
23817 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
23818 dummy ones. At least on GNU/Linux systems, `auto' means something
23820 From Michael Stone.
23822 2002-11-21 Bruno Haible <bruno@clisp.org>
23824 Remove case insensitive option matching.
23825 * lib/argmatch.h (argcasematch): Remove declaration.
23826 (ARGCASEMATCH): Remove macro.
23827 (__xargmatch_internal): Remove case_sensitive argument.
23828 (XARGMATCH): Update.
23829 (XARGCASEMATCH): Remove macro.
23830 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
23831 case_sensitive argument.
23832 (argcasematch): Remove function.
23833 (__xargmatch_internal): Remove case_sensitive argument.
23834 (main): Use XARGMATCH instead of XARGCASEMATCH.
23836 * lib/xmalloc.c: Change compile-time error message. Add comment about
23837 required autoconf version.
23839 2002-11-20 Paul Eggert <eggert@twinsun.com>
23841 Merge argmatch cleanups from Bison. Assume C89.
23843 * lib/argmatch.c: Include config.h here, not in argmatch.h.
23844 Include stdlib.h, for EXIT_FAILURE.
23845 Always include <string.h>, since we assume C89.
23846 (EXIT_FAILURE): Remove pre-C89 bug workaround.
23847 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
23848 Include <stddef.h> instead, since it's all we need for size_t.
23849 (PARAMS): Remove. All uses removed.
23850 (ARRAY_CARDINALITY): Do not bother to #undef.
23851 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
23852 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
23853 Remove unnecessary parentheses.
23854 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
23855 Insert necessary parentheses.
23856 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
23857 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
23859 2002-11-19 Bruno Haible <bruno@clisp.org>
23861 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
23862 * lib/mbswidth.h: Include <stddef.h>, for size_t.
23864 * lib/mbswidth.h (PARAMS): Remove macro.
23865 (mbswidth, mbsnwidth): Use ANSI C function declarations.
23866 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
23868 * lib/gcd.h (PARAMS): Remove macro.
23869 (gcd): Use ANSI C function declarations.
23870 * lib/gcd.c (gcd): Likewise.
23872 2002-11-15 Bruno Haible <bruno@clisp.org>
23874 * lib/strcspn.c: Include <stddef.h>.
23875 (strcspn): Use ANSI C function declaration. Change return type to
23877 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
23878 (strpbrk): Use NULL.
23879 * lib/strpbrk.h (PARAMS): Remove macro.
23880 (strpbrk): Use ANSI C function declaration.
23881 * lib/strstr.c: Don't include <sys/types.h>.
23882 * lib/strstr.h (PARAMS): Remove macro.
23883 (strstr): Use ANSI C function declarations.
23885 2002-11-14 Karl Berry <karl@gnu.org>
23887 * config/mkinstalldirs: `do' on separate line, instead of
23890 2002-11-06 Bruno Haible <bruno@clisp.org>
23892 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
23893 * lib/gcd.c (gcd): Likewise.
23895 2002-11-05 Bruno Haible <bruno@clisp.org>
23897 * lib/gcd.h: New file, from gettext-0.11.5.
23898 * lib/gcd.c: New file, from gettext-0.11.5.
23900 2002-11-05 Bruno Haible <bruno@clisp.org>
23902 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
23903 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
23904 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
23905 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
23907 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
23909 * lib/makepath.c: Include gettext.h instead of <locale.h> and
23912 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
23913 * lib/human.c: Include gettext.h instead of <libintl.h>.
23914 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
23915 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
23916 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
23917 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
23918 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
23919 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
23920 (textdomain): Remove definition.
23921 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
23923 * lib/long-options.c: Remove include of <libintl.h> and definition of
23925 * lib/same.c: Remove include of <libintl.h> and definition of _.
23927 2002-11-04 Owen Taylor <otaylor@redhat.com>
23929 * lib/config.charset: A few additions for Solaris.
23931 2002-11-04 Bruno Haible <haible@clisp.cons.org>
23933 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
23934 * lib/localcharset.c (locale_charset): Declare as extern "C".
23936 2002-11-04 Bruno Haible <haible@clisp.cons.org>
23938 * lib/config.charset: msdos in uk_UA uses CP1125.
23940 2002-11-04 Bruno Haible <bruno@clisp.org>
23942 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
23943 * lib/strcase.h: New file, from GNU gettext-0.11.5.
23944 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
23945 * lib/strstr.h: New file, from GNU gettext-0.11.5.
23946 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
23948 2002-11-04 Bruno Haible <bruno@clisp.org>
23950 * lib/localcharset.c (locale_charset): Don't return an empty string.
23952 2002-11-04 Bruno Haible <bruno@clisp.org>
23954 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
23957 2002-11-04 Bruno Haible <bruno@clisp.org>
23959 * lib/config.charset: Update for newest glibc. Add canonical names
23960 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
23962 2002-11-04 Bruno Haible <bruno@clisp.org>
23964 * lib/config.charset: Add support for NetBSD.
23966 2002-11-04 Bruno Haible <bruno@clisp.org>
23968 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
23970 2002-11-01 Bruno Haible <bruno@clisp.org>
23972 * configure.in: Add AC_CONFIG_AUX_DIR call.
23973 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
23975 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
23977 2002-09-28 Karl Berry <karl@gnu.org>
23979 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
23980 installed automake until the next release, since changes have been
23983 2002-09-25 Karl Berry <karl@gnu.org>
23985 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
23986 * lib/getopt*: copy from libc/posix.
23987 * lib/gettext.h: copy from gettext.
23988 * lib/.cppi-disable: add strdup.c, gettext.h.
23990 2002-09-25 Karl Berry <karl@gnu.org>
23992 * config/srclist.txt: enable gettext.h check.
23993 * config/config.{guess,sub}: update from prep.
23994 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
23995 from automake 1.6.3.
23998 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
24000 * regex.c (PATFETCH): Remove the translating fetch.
24001 (PATFETCH_RAW): Rename to PATFETCH.
24002 (set_image_of_range): New fun.
24003 (SET_RANGE_TABLE_WORK_AREA): Use it.
24004 (regex_compile): Don't translate the pattern chars so eagerly.
24005 Only do it when inserting an `exactn' bytecode or when handling
24007 (mutually_exclusive_p): Avoid empty statement.
24009 2002-07-06 Jim Meyering <meyering@lucent.com>
24011 * m4/README: Don't mention Makefile.am.in.
24012 Outline how I've tested changes to .m4 files. Yep, it's a pain.
24014 2002-07-01 Jim Meyering <meyering@lucent.com>
24016 * lib/c-stack.c: Include sys/time.h.
24017 From Volker Borchert.
24019 2002-06-26 Paul Eggert <eggert@twinsun.com>
24021 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
24023 2002-06-26 Paul Eggert <eggert@twinsun.com>
24025 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
24026 New macro. Use it uniformly instead of
24027 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
24028 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
24029 reported by Vin Shelton.
24031 2002-06-22 Paul Eggert <eggert@twinsun.com>
24033 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
24034 Do not assume SA_SIGINFO behavior.
24035 Bug reported by Jim Meyering on NetBSD 1.5.2.
24037 2002-06-22 Jim Meyering <meyering@lucent.com>
24039 * m4/c-stack.m4: New file, from diffutils-2.8.2.
24040 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
24042 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
24043 now that configure.ac uses AC_GNU_SOURCE.
24044 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
24045 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
24047 Update to latest tools. Suggestions from Paul Eggert.
24048 * m4/stdbool.m4: New file, from diffutils-2.8.2.
24049 * m4/gnu-source.m4: Update from diffutils-2.8.2.
24050 * m4/fnmatch.m4: Likewise.
24051 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
24052 to AC_HEADER_STDBOOL
24054 2002-06-22 Jim Meyering <meyering@lucent.com>
24056 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
24057 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
24059 2002-06-22 Jim Meyering <meyering@lucent.com>
24061 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
24063 * lib/exitfail.c, exitfail.h: Likewise.
24064 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
24066 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
24068 (EXTRA_DIST): Add fnmatch_loop.c.
24069 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
24071 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
24072 * lib/fnmatch.c: Update from diffutils-2.8.2.
24073 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
24074 * lib/fnmatch.h: Remove file.
24076 2002-06-21 Jim Meyering <meyering@lucent.com>
24078 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
24079 * m4/mbrtowc.m4: Likewise.
24081 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
24082 * m4/mbswidth.m4: Reflect name change:
24083 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
24084 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
24086 * m4/lib-link.m4: Update from gettext-0.11.2.
24087 * m4/gettext.m4: Likewise.
24089 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
24090 From Alfred M. Szmidt.
24092 2002-06-18 Paul Eggert <eggert@twinsun.com>
24094 * lib/file-type.h: Report an error if neither S_ISREG nor
24095 S_IFREG is defined, instead of using a test specific to glibc
24096 2.2. This should be safe, since POSIX requires S_ISREG and
24097 Unix Version 7 had S_IFREG. We don't need to check for
24098 <sys/types.h> since we don't use any symbols that it defines.
24100 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
24102 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
24103 $@-t, so that each temporary file name is unique and valid in the first
24104 8 characters, for operation under DOS.
24106 2002-06-15 Paul Eggert <eggert@twinsun.com>
24108 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
24110 2002-06-15 Jim Meyering <meyering@lucent.com>
24112 Work even with DJGPP 2.03, which lacks support for symlinks.
24114 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
24116 * lib/lchown.c (S_ISLNK): Likewise.
24118 2002-06-15 Jim Meyering <meyering@lucent.com>
24120 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
24121 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
24122 have been included before this file.
24124 2002-06-14 Jim Meyering <meyering@lucent.com>
24126 * lib/file-type.h: Use the version from diffutils-2.8.2.
24127 * lib/file-type.c: Likewise.
24129 2002-06-07 Jim Meyering <meyering@lucent.com>
24131 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
24132 They're needed at least for NetBSD 1.5.2.
24133 ($statxfs_includes): Include those same headers.
24134 ($statxfs_includes): Include sys/vfs.h if available.
24135 ($statxfs_includes): Likewise for sys/statvfs.h.
24136 Check for the following members in both structs statfs and statvfs:
24137 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
24139 2002-06-01 Jim Meyering <meyering@lucent.com>
24141 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
24142 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
24144 2002-05-28 Jim Meyering <meyering@lucent.com>
24146 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
24147 Reported by Volker Borchert.
24149 2002-05-27 Jim Meyering <meyering@lucent.com>
24151 Fix a problem seen only on nonconforming systems whereby ls.c's
24152 use of localtime, and then of gettimeofday would cause trouble:
24153 the localtime call used to initialize rpl_gettimeofday's save
24154 mechanism would clobber ls's current local time information so
24155 that in any long listing the first file would always be listed
24156 with date 1970-01-01. Analysis by Volker Borchert.
24158 * lib/gettimeofday.c (localtime): Undefine.
24159 (rpl_localtime): New function.
24161 2002-05-27 Jim Meyering <meyering@lucent.com>
24163 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
24166 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
24167 use the replacement function; it wouldn't resolve at link time.
24168 Reported by Volker Borchert.
24170 2002-05-22 Jim Meyering <meyering@lucent.com>
24172 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
24174 * lib/file-type.h: New file.
24175 * lib/file-type.c (file_type): New file/function. Extracted from
24178 2002-04-30 Jim Meyering <meyering@lucent.com>
24180 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
24182 2002-04-29 Paul Eggert <eggert@twinsun.com>
24184 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
24186 2002-04-29 Paul Eggert <eggert@twinsun.com>
24188 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
24189 Do not check for alloca.h (no longer used) or stdbool.h (was never
24190 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
24192 2002-04-29 Paul Eggert <eggert@twinsun.com>
24194 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
24196 2002-04-29 Jim Meyering <meyering@lucent.com>
24198 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
24199 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
24200 Use AC_FUNC_STRNLEN here instead.
24202 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
24203 With autoconf-2.53a, it's part of AC_PROG_CC.
24205 2002-04-28 Paul Eggert <eggert@twinsun.com>
24207 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
24208 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
24210 2002-04-28 Paul Eggert <eggert@twinsun.com>
24212 * lib/sig2str.h, lib/sig2str.c: New files.
24213 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
24215 2002-04-28 Paul Eggert <eggert@twinsun.com>
24217 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
24218 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
24219 of 127, since 64 is the largest conceivable number for ancient
24221 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
24223 2002-04-28 Jim Meyering <meyering@lucent.com>
24225 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
24227 2002-04-24 Jim Meyering <meyering@lucent.com>
24229 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
24230 (jm_PREREQ): Use it.
24232 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
24233 mach/mach.h fcntl.h.
24234 Check for this function: setlocale.
24236 2002-04-24 Jim Meyering <meyering@lucent.com>
24238 * lib/gettext.h: New file, from Gettext.
24239 * lib/Makefile.am (INCLUDES): Remove -I../intl.
24240 (libfetish_a_SOURCES): Add gettext.h.
24242 2002-04-16 Jim Meyering <meyering@lucent.com>
24244 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
24245 ut_pid, ut_id, ut_exit.
24247 2002-04-16 Jim Meyering <meyering@lucent.com>
24249 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
24250 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
24251 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
24253 2002-04-12 Jim Meyering <meyering@lucent.com>
24255 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
24256 now-bogus check for f_type in sys/mount.h. Instead, just test for the
24257 existence of the getmntinfo function. Needed for Darwin 5.3.
24259 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
24260 This is necessary at least on Darwin 5.3.
24262 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
24263 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
24264 strnlen.o in the library, and that makes some versions of ranlib
24267 2002-04-12 Jim Meyering <meyering@lucent.com>
24269 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
24271 2002-04-09 Jim Meyering <meyering@lucent.com>
24273 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
24274 to be more precise. Rather than saying we're checking whether the
24275 function `works', say what we're testing.
24276 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
24277 Reported by Bruno Haible.
24279 2002-03-10 Jim Meyering <meyering@lucent.com>
24281 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
24282 Suggestion from Santiago Vila.
24284 2002-03-08 Jim Meyering <meyering@lucent.com>
24286 * lib/rename.c: Mention that this wrapper is needed also on
24287 mips-dec-ultrix4.4 systems.
24289 2002-03-02 Jim Meyering <meyering@lucent.com>
24291 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
24292 not HAVE_CLOCK_SETTIME.
24294 2002-02-27 Paul Eggert <eggert@twinsun.com>
24296 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
24297 Check for clock_settime.
24299 2002-02-27 Paul Eggert <eggert@twinsun.com>
24301 * lib/nanosleep.h: Rename to....
24302 * lib/timespec.h: New name for nanosleep.h. All uses changed.
24304 * lib/gettime.c: New file.
24305 * lib/settime.c: New file.
24306 * lib/stime.c: Remove.
24308 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
24309 timespec.h. Remove nanosleep.h.
24311 2002-02-25 Paul Eggert <eggert@twinsun.com>
24313 * m4/acl.m4: New file.
24314 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
24315 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
24317 2002-02-25 Paul Eggert <eggert@twinsun.com>
24319 * lib/acl.c, lib/acl.h: New files.
24320 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
24322 2002-02-24 Jim Meyering <meyering@lucent.com>
24324 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
24325 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
24326 cause trouble. Reported by Nelson Beebe.
24328 2002-02-23 Paul Eggert <eggert@twinsun.com>
24330 * lib/path-concat.c (xpath_concat): Reorder code to pacify
24331 compilers that don't know that xalloc_die never returns.
24333 2002-02-20 Jim Meyering <meyering@lucent.com>
24335 * lib/getdate.c: Regenerate using bison-1.33.
24337 2002-02-17 Jim Meyering <meyering@lucent.com>
24339 * config/config.guess (main): Don't use `head -1'; it's no longer
24340 portable. Use `sed 1q' instead.
24342 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
24344 * m4/codeset.m4: Upgrade to gettext-0.11.
24345 * m4/gettext.m4: Upgrade to gettext-0.11.
24346 * m4/glibc21.m4: Upgrade to gettext-0.11.
24347 * m4/iconv.m4: Upgrade to gettext-0.11.
24348 * m4/isc-posix.m4: Upgrade to gettext-0.11.
24349 * m4/lcmessage.m4: Upgrade to gettext-0.11.
24350 * m4/lib-ld.m4: New file, from gettext-0.11.
24351 * m4/lib-link.m4: New file, from gettext-0.11.
24352 * m4/lib-prefix.m4: New file, from gettext-0.11.
24353 * m4/progtest.m4: Upgrade to gettext-0.11.
24355 2002-02-15 Paul Eggert <eggert@twinsun.com>
24357 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
24358 (jm_PREREQ): Use it.
24360 2002-02-15 Paul Eggert <eggert@twinsun.com>
24362 * lib/posixver.c, lib/posixver.h: New files.
24363 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
24365 2002-02-02 Paul Eggert <eggert@twinsun.com>
24366 Bruno Haible <bruno@clisp.org>
24368 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
24369 (fwrite_success_callback): New declaration.
24370 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
24371 print_unicode_char. Call failure callback instead of error.
24372 (fwrite_success_callback): New function.
24373 (exit_failure_callback): New function.
24374 (fallback_failure_callback): New function.
24375 (print_unicode_char): Call unicode_to_mb.
24377 2002-01-26 Jim Meyering <meyering@lucent.com>
24379 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
24380 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
24382 2002-01-26 Jim Meyering <meyering@lucent.com>
24384 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
24386 2002-01-22 Paul Eggert <eggert@twinsun.com>
24388 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
24390 2002-01-22 Jim Meyering <meyering@lucent.com>
24392 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
24393 Otherwise, some versions of automake would omit the rule that makes
24394 Makefile from Makefile.in.
24396 2002-01-21 Paul Eggert <eggert@twinsun.com>
24398 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
24399 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
24400 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
24401 (memcoll): Set errno to zero if there is no error.
24403 * lib/quotearg.c (quotearg_buffer_restyled):
24404 Fix bug with quoting buffers containing NUL when backslashing escapes.
24405 This bug was exposed by the other changes in this patch.
24406 (quotearg_n_options): New arg ARGSIZE.
24407 All callers changed.
24408 (quoting_options_from_style): New function.
24409 (quotearg_n_style): Use it.
24410 (quotearg_n_style_mem): New function.
24412 * lib/quotearg.h (quotearg_n_style_mem): New function.
24414 2002-01-19 Jim Meyering <meyering@lucent.com>
24416 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
24417 Remove useless quotes: DF_PROG="df".
24418 * m4/strnlen.m4: New file.
24420 2002-01-16 Paul Eggert <eggert@twinsun.com>
24422 * lib/backupfile.c (ISDIGIT): Comment fix.
24423 * lib/getdate.y (ISDIGIT): Likewise.
24424 * lib/posixtm.c (ISDIGIT, year): Likewise.
24425 * lib/strverscmp.c (ISDIGIT): Likewise.
24426 * lib/userspec.c (ISDIGIT): Likewise.
24428 2002-01-16 Jim Meyering <meyering@lucent.com>
24430 * lib/getdate.y: Add three semicolons, each just before a closing
24431 brace. Bison (as of version 1.31) no longer papers over that mistake.
24433 2002-01-05 Jim Meyering <meyering@lucent.com>
24435 * lib/version-etc.c (version_etc_copyright): Update copyright year.
24437 2001-12-19 Paul Eggert <eggert@twinsun.com>
24439 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
24440 not silently exit merely because the output buffer happens to
24441 have nothing pending.
24443 2001-12-18 Paul Eggert <eggert@twinsun.com>
24445 See the big note in ../ChangeLog.
24446 * lib/human.c (suffixes): Prefer K to k for 1024.
24447 (generate_suffix_backwards): New function.
24448 (human_readable_inexact): Use it.
24449 * lib/xstrtol.c (__xstrtol): If there is no number but there
24450 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
24451 Accept 'K' as well as 'k'.
24453 2001-12-15 Jim Meyering <meyering@lucent.com>
24455 * lib/regex.h (__restrict_arr): Update from libc.
24457 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
24458 as `remote' if the name starts with `//'. Suggested by Michael Stone.
24461 2001-12-14 Jim Meyering <meyering@lucent.com>
24463 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
24464 Suggestion from Bruno Haible.
24466 2001-12-10 Jim Meyering <meyering@lucent.com>
24468 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
24469 xrealloc, Instead, include "xalloc.h".
24470 (initbuffer): Don't cast xmalloc return value to char*.
24471 (readline): Reword comment.
24472 Don't cast xrealloc return value to char*
24473 Return NULL, not 0.
24475 2001-12-09 Jim Meyering <meyering@lucent.com>
24477 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
24478 about `signed and unsigned type in conditional expression'.
24479 * lib/posixtm.c (posix_time_parse): Likewise.
24481 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
24483 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
24484 to avoid a pedantic warning.
24486 * lib/getstr.c: Don't include assert.h.
24487 (getstr): Remove warning-evoking assertions.
24488 Return -1 if offset parameter is out of bounds.
24489 Change the type of a local from int to size_t.
24491 * lib/strftime.c (my_strftime_localtime_r): Include this function
24492 definition in the `#if ! HAVE_TM_GMTOFF' block.
24494 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
24495 Include xalloc.h instead.
24497 2001-12-02 Jim Meyering <meyering@lucent.com>
24499 * lib/tempname.c: Don't declare getenv, thus reverting the change of
24500 2001-11-18. It's no longer necessary, now that stdlib.h is always
24503 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
24504 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
24506 2001-11-30 Akim Demaille <akim@epita.fr>
24508 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
24509 before being defined.
24511 2001-11-27 Paul Eggert <eggert@twinsun.com>
24513 * lib/quotearg.h (quotearg_n, quotearg_n_style):
24514 First arg is int, not unsigned.
24515 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
24516 (SIZE_MAX, UINT_MAX): New macros.
24517 (quotearg_n_options): Abort if N is negative.
24518 Avoid overflow check on hosts where size_t is 64 bits and int
24519 is 32 bits, as overflow is impossible there.
24520 Fix off-by-one typo that caused unnecessary reallocation.
24522 2001-11-27 Jim Meyering <meyering@lucent.com>
24524 * lib/tempname.c: Merge with version from libc.
24525 * lib/regex.c: Likewise.
24527 * lib/tempname.c: Include stdlib.h unconditionally. On some old
24528 systems for which STDC_HEADERS is 0, it was not included, resulting in
24529 a warning about an integer-to-pointer conversion problem with getenv.
24530 Reported by Volker Borchert.
24532 2001-11-26 Jim Meyering <meyering@lucent.com>
24534 * lib/gtod.h: Remove file.
24535 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
24536 * lib/gettimeofday.c: Don't include gtod.h.
24537 (GTOD_init): Remove function.
24538 (rpl_gettimeofday): Do its job here instead, rather than aborting.
24539 Suggestion from Volker Borchert.
24541 2001-11-23 Jim Meyering <meyering@lucent.com>
24543 * lib/hash.h (struct hash_table): Don't define here. Merely declare
24545 * lib/hash.c (struct hash_table): Define it here instead.
24547 2001-11-22 Jim Meyering <meyering@lucent.com>
24549 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
24551 2001-11-20 Jim Meyering <meyering@lucent.com>
24553 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
24554 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
24556 2001-11-19 Jim Meyering <meyering@lucent.com>
24558 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
24559 directory. Use "conftestXXXXXX" as the template.
24560 Suggestion from Paul Eggert.
24562 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
24563 immediately, so the test doesn't mistakenly hit the max-open-files
24566 2001-11-18 Paul Eggert <eggert@twinsun.com>
24568 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
24569 (TEMPORARIES): New macro.
24570 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
24571 removes an artificial limitation (e.g. HP-UX 10.20, where
24574 2001-11-18 Jim Meyering <meyering@lucent.com>
24576 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
24578 2001-11-18 Jim Meyering <meyering@lucent.com>
24580 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
24583 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
24584 files will be created before anything else.
24586 2001-11-17 Paul Eggert <eggert@twinsun.com>
24588 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
24589 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
24591 2001-11-17 Jim Meyering <meyering@lucent.com>
24593 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
24594 Prompted by a report from Bob Proulx.
24596 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
24597 Instead, require UTILS_FUNC_MKSTEMP.
24599 2001-11-17 Jim Meyering <meyering@lucent.com>
24601 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
24602 Now, that's done as part of AC_FUNC_STRTOD.
24604 2001-11-17 Jim Meyering <meyering@lucent.com>
24606 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
24607 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
24608 rather than group writable. Patch by Juan F. Codagnone.
24610 * lib/readtokens.c: Remove explicit declarations of xmalloc and
24611 xrealloc, Instead, include "xalloc.h".
24613 * lib/mountlist.c: Include unlocked-io.h after all system headers.
24614 Remove explicit declarations of xmalloc, xrealloc,
24615 and xstrdup. Instead, include "xalloc.h".
24617 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
24619 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
24621 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
24623 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
24624 Reported by Padraig Brady.
24626 * lib/mkstemp.c: #undef mkstemp.
24628 (rpl_mkstemp): Rename from mkstemp.
24631 2001-11-16 Jim Meyering <meyering@lucent.com>
24633 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
24634 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
24635 determine the amount of total physical memory, use pstat_getstatic.
24636 HPUX-11 doesn't define _SC_PHYS_PAGES.
24637 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
24638 If sysconf couldn't be used to determine the amount of available
24639 physical memory, use both pstat_getstatic and pstat_getdynamic.
24640 Based on a patch from Bob Proulx.
24642 2001-11-10 Jim Meyering <meyering@lucent.com>
24644 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
24645 (jm_PREREQ): Use it.
24647 2001-11-09 Jim Meyering <meyering@lucent.com>
24649 * m4/jm-macros.m4: Require autoconf-2.52f.
24650 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
24651 Use these AC_-prefixed names, not the AM_-prefixed ones.
24653 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
24655 2001-11-05 Jim Meyering <meyering@lucent.com>
24657 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
24659 2001-11-04 Jim Meyering <meyering@lucent.com>
24661 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
24664 2001-11-03 Jim Meyering <meyering@lucent.com>
24666 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
24669 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
24670 know the name of the variable in the macro definition.
24672 2001-11-03 Jim Meyering <meyering@lucent.com>
24674 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
24675 in argmatch_to_argument call.
24677 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
24680 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
24681 e.g., a fault due to an attempt to free a NULL pointer.
24683 2001-11-01 Jim Meyering <meyering@lucent.com>
24685 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
24686 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
24688 2001-11-01 Jim Meyering <meyering@lucent.com>
24690 * lib/dirfd.c, lib/dirfd.h: New files.
24691 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
24693 * lib/hash.c (hash_print) [TESTING]: Clean up.
24695 2001-10-22 Paul Eggert <eggert@twinsun.com>
24697 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
24698 to avoid a warning if -Wall.
24700 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
24703 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
24704 (per RMS's instructions, this is now the canonical source)
24705 * lgpl/, gpl/: New directories.
24707 2001-10-21 Paul Eggert <eggert@twinsun.com>
24709 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
24711 2001-10-21 Jim Meyering <meyering@lucent.com>
24713 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
24714 this code would end up calling gettext even in packages built
24715 with --disable-nls.
24716 * lib/getopt.c (_): Likewise.
24717 * lib/regex.c (_): Likewise.
24719 2001-10-20 Paul Eggert <eggert@twinsun.com>
24721 * m4/error.m4 (jm_PREREQ_ERROR):
24722 Do not invoke AC_CHECK_FUNCS with strerror_r, as
24723 AC_FUNC_STRERROR_R does that.
24724 Check for strerror declaration.
24726 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
24727 are supposed to have them these days.
24728 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
24729 Merge changes from latest Autoconf CVS.
24730 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
24731 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
24732 POSIX decided to standardize on the int flavor of strerror_r.
24734 2001-10-20 Paul Eggert <eggert@twinsun.com>
24736 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
24737 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
24738 Use strerror_r that is only a macro, even if it is not a function.
24739 (strerror): Check for HAVE_DECL_STRERROR before declaring.
24740 (private_strerror): Use prototypes, not old-style function definition.
24741 (print_errno_message): New function.
24742 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
24743 char*-flavored one.
24744 (error_tail, error, error_at_line): Use it.
24746 2001-10-11 Jim Meyering <meyering@lucent.com>
24748 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
24749 and quote_n (1, ... to avoid clobbering a buffer.
24751 2001-10-05 Jim Meyering <meyering@lucent.com>
24753 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
24755 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
24756 * lib/hash-pjw.h: New file.
24758 2001-09-30 Jim Meyering <meyering@lucent.com>
24760 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
24761 `struct fsstat' has the `f_fstypename' member.
24762 Use that to define FS_TYPE, which is now used to make
24763 the getfsstat link test tighter.
24765 2001-09-30 Jim Meyering <meyering@lucent.com>
24767 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
24768 Include <sys/ucred.h>, for Apple Darwin.
24769 Include sys/mount.h and sys/fs_types.h only if available.
24771 (read_filesystem_list): Use FS_TYPE.
24773 2001-09-29 Paul Eggert <eggert@twinsun.com>
24775 * lib/exclude.c (excluded_filename): 0 -> false, since it's
24778 2001-09-29 Jim Meyering <meyering@lucent.com>
24780 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
24781 [one-argument getmntent function]): Include stdio.h before mntent.h.
24782 SunOS 4.1.x needs it for the declaration of `FILE'.
24783 Patch by Volker Borchert.
24785 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
24786 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
24787 sys/fs_types.h, and make the link-test for getfsstat guard #include
24788 directives with appropriate #if HAVE_*_H tests so that we can
24789 detect getfsstat on Apple Darwin1.3.7 systems.
24790 Reported by Nelson Beebe.
24791 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
24793 2001-09-28 Paul Eggert <eggert@twinsun.com>
24795 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
24796 #defines strtoimax. Also treat the other strto* functions
24799 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
24800 Check for strtoul and strtoumax,
24801 as those declarations are made even in the signed case.
24802 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
24803 Likewise, for strtol and strtoimax.
24805 2001-09-28 Paul Eggert <eggert@twinsun.com>
24807 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
24808 #defines strtoimax. Also treat the other strto* functions
24811 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
24812 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
24813 (strtoimax, strtoumax): Do not declare if already defined as a macro.
24815 2001-09-26 Jim Meyering <meyering@lucent.com>
24817 Most macros in unlocked-io.h had the wrong number of arguments.
24818 * lib/gen-uio: New script.
24819 (USE_UNLOCKED_IO): Define to 1 if not already defined.
24820 * lib/unlocked-io.hin: Remove file.
24821 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
24822 rather than trying to embed it here.
24823 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
24824 Reported by Padraig Brady.
24826 2001-09-25 Volker Borchert <bt@teknon.de>
24828 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
24831 2001-09-24 Jim Meyering <meyering@lucent.com>
24833 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
24835 2001-09-23 Jim Meyering <meyering@lucent.com>
24837 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
24838 instead of the mere test for existence of mntent.h. The latter
24839 would get a false-positive on AIX 3.4 systems.
24840 In the outer getmntent if-block, don't die if neither of the getmntent
24841 tests succeeds. Instead, just fall through and continue with the
24844 2001-09-23 Jim Meyering <meyering@lucent.com>
24846 * lib/mountlist.c: Remove useless parentheses in #if directives.
24847 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
24848 the deprecated MOUNTED symbol is no longer defined in mntent.h.
24850 2001-09-22 Jim Meyering <meyering@lucent.com>
24852 * m4/gettext.m4: New file. From gettext.
24853 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
24854 * m4/progtest.m4: Likewise
24855 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
24856 * m4/glibc21.m4: Likewise.
24858 * m4/libintl.m4: Remove. No longer used.
24860 2001-09-22 Jim Meyering <meyering@lucent.com>
24862 * lib/localcharset.c: Update from latest gettext.
24863 * lib/config.charset: Likewise.
24865 2001-09-20 Jim Meyering <meyering@lucent.com>
24867 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
24869 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
24872 2001-09-20 Jim Meyering <meyering@lucent.com>
24874 * lib/xstrtol.c (strtoimax): Guard declaration with
24875 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
24876 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
24877 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
24878 (strtoumax): Likewise, for completeness (it wasn't necessary).
24880 2001-09-17 Paul Eggert <eggert@twinsun.com>
24882 * lib/strtoimax.c (HAVE_LONG_LONG):
24883 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
24884 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
24885 to work around bug in IBM C compiler.
24887 2001-09-17 Jim Meyering <meyering@lucent.com>
24889 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
24890 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
24891 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
24892 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
24893 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
24894 whenever the right hand side need not be expanded by the shell.
24896 2001-09-16 Paul Eggert <eggert@twinsun.com>
24898 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
24899 library. It's not correct, as some older glibcs are buggy.
24900 fnmatch wasn't fixed until glibc 2.2.
24902 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
24903 special shell magic here.
24905 2001-09-16 Jim Meyering <meyering@lucent.com>
24907 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
24908 * m4/jm-macros.m4: Require it.
24910 2001-09-16 Jim Meyering <meyering@lucent.com>
24912 * lib/mkdir.c: New file.
24914 2001-09-15 Jim Meyering <meyering@lucent.com>
24916 * m4/jm-macros.m4: Check for help2man.
24918 2001-09-11 Jim Meyering <meyering@lucent.com>
24920 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
24921 The body, by Paul Eggert, was moved here from configure.in.
24922 * m4/jm-macros.m4: Require UTILS_HOST_OS.
24924 2001-09-04 Paul Eggert <eggert@twinsun.com>
24926 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
24927 (jm_PREREQ): Use it.
24929 2001-09-04 Paul Eggert <eggert@twinsun.com>
24931 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
24932 Use ssize_t, not int, to store result of readlink.
24933 Check for ssize_t overflow as well as size_t overflow,
24934 as POSIX says the result of readlink is implementation-defined
24935 when ssize_t overflows.
24936 Remove unnecessary cast to char*.
24937 Use free+malloc instead of realloc, as the storage doesn't need
24938 to be preserved and it's clearer and can be more efficient that way.
24939 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
24940 * lib/xreadlink.h (xreadlink): Update prototype.
24942 2001-09-04 Paul Eggert <eggert@twinsun.com>
24944 * lib/xgetcwd.c: Revert some of the previous change; intead,
24945 fix the HAVE_GETCWD_NULL code to behave more like the
24946 !HAVE_GETCWD_NULL code used to.
24948 Include "xalloc.h".
24949 (xgetcwd): Do not return NULL when memory is exhausted; instead,
24952 2001-09-03 Paul Eggert <eggert@twinsun.com>
24954 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
24955 sys/param.h, as pathmax.h includes them.
24957 2001-09-03 Paul Eggert <eggert@twinsun.com>
24959 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
24960 (jm_PREREQ_XGETCWD): New macro.
24962 * m4/getcwd.m4: New file.
24964 2001-09-03 Paul Eggert <eggert@twinsun.com>
24966 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
24967 like the HAVE_GETCWD_NULL code.
24968 Include pathmax.h if not HAVE_GETCWD.
24969 Do not include xalloc.h.
24970 (INITIAL_BUFFER_SIZE): New symbol.
24971 Do not use xmalloc / xrealloc, since the caller is responsible for
24972 handling errors. Preserve errno around `free' during failure.
24973 Do not overrun buffer when using getwd.
24975 2001-09-03 Paul Eggert <eggert@twinsun.com>
24977 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
24978 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
24981 2001-09-03 Paul Eggert <eggert@twinsun.com>
24983 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
24984 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
24985 spotted by Jim Meyering.
24987 2001-09-03 Jim Meyering <meyering@lucent.com>
24989 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
24992 2001-09-02 Jim Meyering <meyering@lucent.com>
24994 * lib/error.c: Update from GNU libc.
24996 2001-09-01 Jim Meyering <meyering@lucent.com>
24998 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
25001 2001-09-01 Jim Meyering <meyering@lucent.com>
25003 * lib/xreadlink.c: New file.
25004 * lib/xreadlink.h: New file.
25005 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
25008 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
25009 doesn't conflict with sparc Solaris 7's definition in
25010 /usr/include/sys/int_types.h.
25012 * lib/exclude.c: Use `""', not `<>' to #include non-system header
25014 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
25015 and strncasecmp as r-values. Unixware didn't have declarations.
25017 2001-08-31 Paul Eggert <eggert@twinsun.com>
25019 * lib/xstrtol.h: Add copyright notice.
25020 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
25021 LONGINT_INVALID_SUFFIX_CHAR.
25023 2001-08-31 Paul Eggert <eggert@twinsun.com>
25025 * lib/xstrtol.c (strtoimax): New decl.
25027 2001-08-31 Paul Eggert <eggert@twinsun.com>
25029 * lib/xgetcwd.c: Don't include pathmax.h.
25030 Include stdlib.h and unistd.h if available.
25032 (xmalloc, xstrdup, free): Remove decls.
25033 (xgetcwd): Don't assume sizes fit in unsigned.
25034 Check for overflow when computing sizes.
25035 Simplify reallocation code.
25037 2001-08-31 Paul Eggert <eggert@twinsun.com>
25039 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
25040 a directory's st_size can have an arbitrary value, so the old
25041 usage could waste an arbitrary amount of memory. All uses
25043 * lib/savedir.h: Update prototype.
25045 2001-08-31 Paul Eggert <eggert@twinsun.com>
25047 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
25049 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
25052 Also, make the following further changes to make this file's
25053 configuration more similar to that of strtol.c:
25054 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
25055 (strtoumax, uintmax_t, strtoull, strtol): Remove.
25056 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
25057 (strtoimax): Renamed from strtoumax. All uses of unsigned values
25058 changed to signed values.
25060 And make the following changes as well:
25061 Fix copyright notice, as 1999 was missing.
25062 (verify): New macro.
25063 (strtoimax): Check sizes at compile-time, not run-time.
25064 Prefer strtol to strtoll if both work.
25065 (main): Remove; it was not that useful and was a pain to maintain.
25067 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
25069 2001-08-31 Jim Meyering <meyering@lucent.com>
25071 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
25072 Use an initial, malloc'd, buffer of length 128 rather than
25073 a statically allocated one of length 1024.
25075 2001-08-30 Paul Eggert <eggert@twinsun.com>
25077 Simplify code, partly by assuming autoconf 2.52 semantics.
25079 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
25081 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
25082 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
25084 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
25085 Move AC_REQUIRE to next-to-top level, to avoid confusion.
25086 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
25087 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
25088 jm_AC_HEADER_INTTYPES_H.
25089 * m4/jm-macros.m4 (jm_MACROS): Likewise.
25091 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
25093 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
25094 Quote first arg of AC_DEFUN.
25095 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
25096 since they are needed to parse the include file even if we need
25097 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
25098 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
25099 but with opposite signedness.
25101 2001-08-30 Paul Eggert <eggert@twinsun.com>
25103 Merge 'exclude' changes from tar 1.13.22.
25104 This fixes one or two unlikely storage allocation overflow bugs,
25105 but doesn't change user-visible behavior otherwise.
25107 2001-08-30 Paul Eggert <eggert@twinsun.com>
25109 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
25110 (jm_PREREQ_EXCLUDE): New macro.
25112 2001-08-30 Paul Eggert <eggert@twinsun.com>
25114 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
25117 2001-08-30 Paul Eggert <eggert@twinsun.com>
25119 * lib/hash.c: Remove '2001' from copyright notice.
25121 2001-08-30 Paul Eggert <eggert@twinsun.com>
25123 * lib/full-write.h: New file.
25124 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
25125 * lib/full-write.c: Correct credits, as cccp.c no longer
25126 exists and anyway it was so heavily changed from the old cccp
25127 code as to be unrecognizable. Include full-write.h.
25128 (full_write) Return size_t, with short writes meaning failure.
25129 All callers changed. This fixes a bug with large buffers
25131 * lib/utime.c: Include full-write.h.
25133 2001-08-30 Paul Eggert <eggert@twinsun.com>
25135 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
25136 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
25137 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
25138 Include if available.
25139 (<xalloc.h>): Include
25140 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
25141 (verify): New macro. Use it to verify that EXCLUDE macros do not
25142 collide with FNM macros.
25143 (struct patopts): New struct.
25144 (struct exclude): Use it, as exclude patterns now come with options.
25145 (new_exclude): Support above changes.
25146 (new_exclude, add_exclude_file):
25147 Initial size must now be a power of two to simplify overflow checking.
25148 (free_exclude, fnmatch_no_wildcards): New function.
25149 (excluded_filename): No longer requires options arg, as the options
25150 are determined by add_exclude. Now returns bool, not int.
25151 (excluded_filename, add_exclude):
25152 Add support for the fancy new exclusion options.
25153 (add_exclude, add_exclude_file): Now takes int options arg.
25154 Check for arithmetic overflow when computing sizes.
25155 (add_exclude_file): xrealloc might modify errno, so don't
25156 realloc until after errno might be used.
25158 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
25160 (free_exclude): New decl.
25161 (add_exclude, add_exclude_file): Now takes int options arg.
25162 (excluded_filename): No longer requires options arg, as the options
25163 are determined by add_exclude. Now returns bool, not int.
25165 2001-08-30 Paul Eggert <eggert@twinsun.com>
25167 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
25169 2001-08-27 Jim Meyering <meyering@lucent.com>
25171 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
25173 * lib/version-etc.c (N_): Remove definition.
25174 Revert most of last change.
25175 Instead, simply don't mark the `Copyright...' string for translation.
25176 Based on advice from Paul Eggert.
25178 * lib/strtoxmax.c: Tweak comment.
25180 2001-08-26 Jim Meyering <meyering@lucent.com>
25182 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
25184 * m4/xstrtoimax.m4: New file.
25185 * m4/xstrtoumax.m4: Add comments explaining why we
25186 AC_REPLACE_FUNCS(strtol).
25188 2001-08-26 Jim Meyering <meyering@lucent.com>
25190 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
25191 of copyright with `%s' so translators don't get an untranslated
25193 (COPYRIGHT_YEAR): Define.
25194 (version_etc): Use fprintf rather than fputs.
25195 Suggestion from Ulrich Drepper.
25197 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
25199 * lib/strtoll.c: New file, from GNU libc.
25200 * lib/xstrtoimax.c: New file.
25202 * lib/xstrtol.h: Add xstrtoimax.
25203 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
25204 * lib/strtoimax.c: New file. Likewise, but first define
25207 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
25209 * lib/strtoxmax.c: ... then renamed to this.
25211 2001-08-18 Paul Eggert <eggert@twinsun.com>
25213 * m4/inttypes.m4: Add AC_PREREQ(2.13).
25214 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
25215 (jm_AC_TYPE_INTMAX_T): New macro.
25216 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
25218 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
25220 * m4/longlong.m4: Renamed from ulonglong.m4.
25221 * m4/inttypes.m4: Renamed from inttypes_h.m4.
25222 * m4/uintmax_t.m4: Removed.
25224 2001-08-13 Paul Eggert <eggert@twinsun.com>
25226 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
25227 Port to Solaris 8, where 'sed' requires a space after the 'r'
25228 command, and where sh dislikes "$/". Clean up the spacing a bit.
25229 Redirect output to $tmp just once.
25231 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
25233 * lib/addext.c (<errno.h>): Include.
25234 (errno): Declare if not defined.
25235 (addext): Work correctly when pathconf returns -1 and leaves
25236 errno alone because there is no limit. Also, work even if
25237 pathconf returns a value greater than SIZE_MAX.
25239 2001-08-12 Jim Meyering <meyering@lucent.com>
25241 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
25242 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
25243 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
25244 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
25245 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
25246 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
25247 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
25248 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
25249 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
25250 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
25251 utime.m4, utimes.m4, xstrtoumax.m4:
25252 Quote the first argument in each use of AC_DEFUN.
25254 2001-08-12 Jim Meyering <meyering@lucent.com>
25256 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
25257 Simply `return getcwd (NULL, 0);'.
25258 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
25259 Use 1300 as initial value for length, not PATH_MAX.
25261 * lib/pathmax.h: Clean up cpp syntax.
25263 2001-08-12 Jim Meyering <meyering@lucent.com>
25265 * lib/gettimeofday.c: New file.
25266 * lib/gtod.h: New file.
25267 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
25269 2001-08-05 Jim Meyering <meyering@lucent.com>
25271 * m4/jm-macros.m4: Require autoconf-2.52.
25273 2001-08-04 Jim Meyering <meyering@lucent.com>
25275 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
25276 stmt, to get in sync with glibc.
25278 2001-08-03 Paul Eggert <eggert@twinsun.com>
25280 The following changes are from gettext 0.10.39 as maintained by
25283 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
25284 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
25285 with inverted sense. All uses changed.
25287 * lib/mbswidth.c: Don't include <limits.h>.
25288 Include <stdlib.h> and <string.h> unconditionally.
25289 (iswcntrl, mbsinit, ISCNTRL): New macros.
25290 (mbsnwidth): Use K&R style function declarations.
25291 Don't bother checking for MB_LEN_MAX == 1, since the compiler
25292 can optimize it when MB_CUR_MAX == 1.
25293 The width of control characters is zero, not 1.
25295 2001-08-03 Paul Eggert <eggert@twinsun.com>
25297 The following changes are from gettext 0.10.39 as maintained by
25298 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
25300 * m4/codeset.m4: Upgrade to serial AM1.
25301 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
25302 all uses changed. Quote first arg of AC_DEFUN.
25303 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
25305 * m4/iconv.m4: Upgrade to serial AM2.
25306 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
25307 Add --with-libconv-prefix.
25308 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
25309 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
25310 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
25311 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
25312 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
25314 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
25315 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
25316 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
25317 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
25318 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
25319 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
25320 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25321 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
25322 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
25324 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
25327 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
25328 not the default value.
25330 2001-06-25 Bruno Haible <haible@clisp.cons.org>
25331 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
25332 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
25333 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
25334 Also check for iswcntrl, used for wcwidth fallback.
25335 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
25338 2001-08-03 Jim Meyering <meyering@lucent.com>
25340 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
25341 as it was in the original. Reported by Paul Eggert.
25343 2001-07-16 Jim Meyering <meyering@lucent.com>
25345 * m4/gettimeofday.m4: New file.
25346 Prompted by a report from Bernhard Baehr.
25348 2001-07-15 Jim Meyering <meyering@lucent.com>
25350 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
25351 stuff. Now it's in ../Makefile.cfg.
25353 2001-07-15 Jim Meyering <meyering@lucent.com>
25355 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
25356 (BUILT_SOURCES): Add unlocked-io.h.
25357 (io_functions): Define.
25358 (unlocked-io.h): New rule.
25359 (DISTCLEANFILES): Add unlocked-io.h.
25360 (all-local): Depend on unlocked-io.h, to ensure it is created.
25362 * lib/unlocked-io.hin: New file
25364 * lib/regex.c: Update from glibc.
25366 2001-07-05 Jim Meyering <meyering@lucent.com>
25368 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
25370 (libfetish_a_SOURCES): Put all .h files here instead.
25371 Remove a thus-exposed (better checks in automake) duplicate and
25372 two unnecessary .h files.
25374 2001-07-04 Jim Meyering <meyering@lucent.com>
25376 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
25377 that generates jm-glibc-io.m4 so that it doesn't trigger any make
25380 2001-07-02 Jim Meyering <meyering@lucent.com>
25382 The following changes were prompted by suggestions from Bruno Haible.
25384 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
25386 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
25387 definition of EXTRA_DIST.
25388 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
25389 ensure that the generated file is created/updated whenever the list
25390 of $(unlocked_functions) is changed.
25391 (jm-glibc-io.m4): New rule.
25392 (unlocked-io.h): New rule -- currently unused.
25394 2001-06-24 Jim Meyering <meyering@lucent.com>
25396 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
25397 unmatched right bracket, rather than kludging it with an extra,
25398 falsely-matching quote in a comment. Patch by Akim Demaille.
25400 2001-06-11 Jim Meyering <meyering@lucent.com>
25402 * lib/regex.c: Update from GNU libc.
25404 2001-05-27 Jim Meyering <meyering@lucent.com>
25406 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
25407 Check for ut_type in struct utmp.
25409 2001-05-27 Jim Meyering <meyering@lucent.com>
25411 * lib/readutmp.h (UT_TYPE): Define.
25413 2001-05-24 Jim Meyering <meyering@lucent.com>
25415 * lib/argmatch.c: Include "quote.h".
25416 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
25417 quote function. Reported by Göran Uddeborg.
25419 2001-05-22 Jim Meyering <meyering@lucent.com>
25421 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
25422 now that we use the package-supplied version unconditionally.
25423 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
25425 2001-05-21 Jim Meyering <meyering@lucent.com>
25427 * m4/regex.m4: Change a couple backticks to single quotes to avoid
25428 shell syntax errors.
25430 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
25432 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
25434 2001-05-20 Paul Eggert <eggert@twinsun.com>
25436 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
25437 Don't bother to check library strftime, since
25438 we'll be using our own my_strftime function anyway.
25439 Define my_strftime instead of strftime.
25441 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
25443 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
25444 which is not yet declared.
25446 2001-05-15 Jim Meyering <meyering@lucent.com>
25448 * m4/regex.m4: Use proper quoting so brackets appear in the test
25450 Reported by, and with help from, Bruno Haible.
25452 2001-05-13 Jim Meyering <meyering@lucent.com>
25454 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
25457 2001-05-11 Paul Eggert <eggert@twinsun.com>
25459 dirname code cleanup. base_name now behaves more compatibly
25460 with POSIX basename when given file names that have trailing
25461 slashes, and similarly for dir_name. Add new primitives
25462 base_len and dir_len. Put the directory-name-related decls
25465 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
25466 * lib/backupfile.c (base_name): Likewise.
25467 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
25468 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
25469 * lib/makepath.c (strip_trailing_slashes): Likewise.
25470 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
25471 ISSLASH): Likewise.
25472 * lib/rename.c (strip_trailing_slashes): Likewise.
25473 * lib/same.c (base_name): Likewise.
25474 * lib/stripslash.c (ISSLASH): Likewise.
25476 * lib/addext.c: Include <dirname.h> after size_t is defined.
25477 * lib/backupfile.c: Likewise.
25479 * lib/addext.c (addext): Use base_len to trim redundant
25480 trailing slashes instead of doing it ourselves.
25481 But do not trim the last slash if it is not redundant.
25483 * lib/backupfile.c (find_backup_file_name,
25484 max_backup_version): Use base_len instead of rolling it ourselves.
25485 Handle the case of "" and (on DOS) "C:" correctly.
25487 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
25488 needed. Include <string.h>, <dirname.h>.
25489 (base_name): Allow file names ending in slashes, other than names
25490 that are all slashes. In this case, return the basename followed
25491 by the slashes. This is more general, and can be used in places
25492 where the original base_name purposely had an assertion failure.
25493 (base_len): New function.
25495 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
25496 Do not include <assert.h>; no longer needed.
25498 (memrchr): Remove decl.
25499 (dir_name_r): Remove.
25500 (dir_len): Renamed from dirlen. All callers changed.
25501 Rewrite in terms of base_name, for simplicity and consistency.
25502 (dir_name): Never return NULL. All callers changed.
25503 Do not include <stdlib.h> in test program; no longer needed.
25504 return 0; is fine for test program.
25506 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
25508 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
25510 * lib/path-concat.c (path_concat): Use base_len to compute
25511 base length, not strlen; this means we cannot rely on memcpy
25514 * lib/same.c (STREQ): Remove.
25515 (same_name): Handle the case where the basename ends in trailing '/'.
25517 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
25518 a slash was stripped. Do not strip the last slash after a
25519 file system prefix.
25521 2001-05-11 Paul Eggert <eggert@twinsun.com>
25523 * lib/Makefile.am (libfetish_a_SOURCES):
25524 Add strftime.c, since we now compile it on all hosts.
25526 * lib/strftime.c (my_strftime):
25527 Define to nstrftime if emacs, but only if my_strftime is not defined.
25528 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
25529 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
25530 Add one more extra argument: a nanoseconds value.
25533 (my_strftime function): Add %N format.
25534 (emacs_strftimeu): Renamed from emacs_strftime,
25535 with extra ut argument.
25537 2001-05-09 Paul Eggert <eggert@twinsun.com>
25539 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
25541 2001-04-21 Jim Meyering <meyering@lucent.com>
25543 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
25546 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
25548 * m4/ftruncate.m4: Check for chsize.
25549 Link with ftruncate.o unconditionally if ftruncate is missing.
25550 This was required when cross-compiling to i586-mingw32msvc.
25552 2001-04-08 Jim Meyering <meyering@lucent.com>
25554 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
25555 recomputed; that's necessary when the offset spans a DST transition.
25556 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
25558 2001-04-02 Jim Meyering <meyering@lucent.com>
25560 * lib/regex.h, regex.c: Update from GNU libc.
25562 2001-03-24 Jim Meyering <meyering@lucent.com>
25564 * m4/jm-macros.m4: Require autoconf-2.49d.
25566 2001-03-20 Bruno Haible <haible@clisp.cons.org>
25568 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
25570 2001-03-19 Paul Eggert <eggert@twinsun.com>
25572 * lib/version-etc.c (version_etc_copyright): Update to 2001.
25574 2001-03-17 Jim Meyering <meyering@lucent.com>
25576 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
25577 now that the version in autoconf is equivalent.
25578 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
25580 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
25581 Suggestion from Akim Demaille.
25583 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
25584 (jm_PREREQ_TEMPNAME): New function.
25586 2001-03-16 Paul Eggert <eggert@twinsun.com>
25588 * lib/tempname.c (uint64_t): Define to uintmax_t if
25589 not defined, and if UINT64_MAX is not defined.
25590 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
25591 Reported by John David Anglin.
25593 2001-03-15 Bruno Haible <haible@clisp.cons.org>
25595 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
25596 resolve alias if codeset is empty.
25597 * lib/config.charset (BeOS): Use wildcard syntax.
25599 2001-03-13 Jim Meyering <meyering@lucent.com>
25601 * lib/path-concat.c (path_concat)
25602 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
25603 concatenating e.g., `C:' and `foo'.
25606 2001-03-06 Bruno Haible <haible@clisp.cons.org>
25608 * lib/localcharset.c (locale_charset): Don't use
25609 setlocale(LC_CTYPE,NULL). Don't return NULL.
25610 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
25612 2001-03-06 Bruno Haible <haible@clisp.cons.org>
25614 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
25615 support for DOS/DJGPP.
25617 2001-03-01 Paul Eggert <eggert@twinsun.com>
25619 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
25620 lacks mkstemp. Compile our own tempname.c if we compile our own
25621 mkstemp.c, as mkstemp relies on tempname.
25623 2001-03-01 Jim Meyering <meyering@lucent.com>
25625 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
25626 AH_VERBATIM really does output its argument verbatim.
25628 2001-02-28 Paul Eggert <eggert@twinsun.com>
25630 * lib/Makefile.am (libfetish_a_SOURCES):
25631 Add dup-safer.c, fopen-safer.c.
25632 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
25634 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
25635 * lib/unistd-safer.h: New files.
25637 2001-02-25 Paul Eggert <eggert@twinsun.com>
25639 The mkstemp replacement is taken from glibc 2.2.2, with some
25640 portability fixes for use outside glibc, as follows:
25642 * lib/tempname.c (struct_stat64): New macro.
25643 (direxists, __gen_tempname): Use it.
25644 This avoids a portability problem with Solaris 8.
25646 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
25647 (<stddef.h>, <stdint.h>, <string.h>):
25648 Include only if STDC_HEADERS || _LIBC.
25649 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
25650 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
25651 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
25652 (__set_errno): Define this macro if <errno.h> doesn't.
25653 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
25654 Define these macros if <stdio.h> doesn't.
25655 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
25656 Define these macros if <sys/stat.h>
25657 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
25658 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
25659 __xstat64): Define if not _LIBC.
25660 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
25661 (__gen_tempname): Invoke gettimeofday only if
25662 HAVE_GETTIMEOFDAY || _LIBC;
25663 otherwise, fall back on plain "time".
25664 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
25666 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
25668 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
25670 2001-02-18 Paul Eggert <eggert@twinsun.com>
25672 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
25674 2001-02-17 Paul Eggert <eggert@twinsun.com>
25676 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
25677 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
25678 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
25679 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
25681 2001-02-17 Paul Eggert <eggert@twinsun.com>
25683 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
25684 Remove workaround macros for hosts that have mbrtowc but not
25685 mbstate_t, as we now insist on proper declarations for both
25686 before using mbrtowc.
25688 2001-02-17 Jim Meyering <meyering@lucent.com>
25690 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
25691 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
25692 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
25695 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
25696 rather than AC_CACHE_VAL.
25698 2001-02-17 Jim Meyering <meyering@lucent.com>
25700 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
25701 around included file name.
25703 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
25705 * lib/strftime.c: Update from GNU libc (the only changes were to
25708 2001-02-17 Jim Meyering <meyering@lucent.com>
25710 * lib/regex.c: Update from libc.
25712 2001-02-17 Bruno Haible <haible@clisp.cons.org>
25714 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
25717 2001-02-16 Paul Eggert <eggert@twinsun.com>
25719 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
25720 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
25721 Reported by Mark Hounschell via Paul Eggert.
25723 2001-02-07 Jim Meyering <meyering@lucent.com>
25725 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
25727 2001-02-05 Jim Meyering <meyering@lucent.com>
25729 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
25730 it includes the patch required for `large file' support with at least
25731 HP-UX's 10.20 /bin/cc.
25733 2001-02-03 Jim Meyering <meyering@lucent.com>
25735 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
25736 AS_IF, now that it works once again (mysteriously).
25737 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
25739 2001-01-30 Jim Meyering <meyering@lucent.com>
25741 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
25742 * m4/chown.m4: Rename conftestchown to conftest.chown.
25743 * m4/rename.m4: s/conftestdir/conftest.d1/ and
25744 s/conftestdir2/conftest.d2/.
25745 * m4/utimes.m4: s/conftestdata/conftest.data/
25746 Inspired by Pavel Roskin's change in autoconf.
25748 2001-01-30 Bruno Haible <haible@clisp.cons.org>
25750 * lib/config.charset: Update for FreeBSD 4.2.
25752 2001-01-27 Jim Meyering <meyering@lucent.com>
25754 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
25756 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
25758 2001-01-26 Jim Meyering <meyering@lucent.com>
25760 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
25761 quotearg.c includes it.
25763 2001-01-26 Jim Meyering <meyering@lucent.com>
25765 * lib/quotearg.c: Include stddef.h.
25766 * lib/quote.c: Include stddef.h.
25767 Reported by Axel Kittenberger.
25769 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
25770 line in double quotes so that it evokes a better diagnostic.
25771 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
25772 Reported by Axel Kittenberger.
25774 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
25776 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
25777 as if it was a `charset'.
25779 2001-01-21 Bruno Haible <haible@clisp.cons.org>
25781 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
25784 2001-01-21 Bruno Haible <haible@clisp.cons.org>
25786 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
25787 to avoid a warning. Add back 'const' to inptr.
25789 2001-01-20 Jim Meyering <meyering@lucent.com>
25791 Be sure that headers are checked before used in code compiled
25792 for the type checks.
25793 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
25794 In place of that, invoke jm_CHECK_ALL_TYPES.
25795 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
25796 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
25797 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
25798 The check for ssize_t was mistakenly run before the test for unistd.h.
25800 The configure-time check for stdbool.h was missing.
25801 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
25802 (jm_PREREQ_HASH): New function.
25804 2001-01-17 Jim Meyering <meyering@lucent.com>
25806 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
25807 for autoconf-2.49c.
25808 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
25810 2001-01-16 Jim Meyering <meyering@lucent.com>
25812 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
25815 2001-01-14 Jim Meyering <meyering@lucent.com>
25817 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
25818 foo and bar. Create conftestdir/ in the script, not in the C code.
25819 Remove directories in the script, not in the C code.
25820 Remove conftestdir{,2} before trying to create the directory.
25821 Make the entire configure script fail if the mkdir fails.
25823 2001-01-14 Jim Meyering <meyering@lucent.com>
25825 * lib/rename.c: New file. From Volker Borchert.
25826 Include stdlib.h, string.h or strings.h, and xalloc.h.
25827 Use strip_trailing_slashes rather than open-coding it.
25829 2001-01-03 Paul Eggert <eggert@twinsun.com>
25831 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
25833 2001-01-03 Jim Meyering <meyering@lucent.com>
25835 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
25836 of local `inptr' to avoid warning with some system declarations of
25839 2001-01-02 Volker Borchert <bt@teknon.de>
25841 * m4/rename.m4: New file.
25842 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
25844 2001-01-01 Jim Meyering <meyering@lucent.com>
25846 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
25847 even on systems with utmpx.h. It's necessary for the declaration of
25848 utmp's ut_user member. Reported by Andreas Jaeger.
25850 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
25851 available. They are required for the declarations of getgrgid and
25853 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
25854 Reported by Andreas Jaeger.
25856 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
25858 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
25859 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
25860 so `make install' also works in VPATH builds.
25862 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
25864 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
25865 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
25866 can be used in subdirectories.
25868 2000-12-29 Paul Eggert <eggert@twinsun.com>
25870 * lib/modechange.c: Do not assume that mode_t uses the
25871 traditional octal encoding. E.g. "chmod 1 FOO" should set
25872 the other-execute bit of FOO even if S_IXOTH != 1.
25874 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
25875 WOTH, XOTH, ALLM): New macros.
25876 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
25877 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
25879 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
25880 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
25882 No need to use uintmax_t; unsigned long is long enough.
25883 Don't bother to get suffix since we don't use it.
25885 2000-12-26 Jim Meyering <meyering@lucent.com>
25887 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
25888 better with autoheader.
25890 2000-12-24 Jim Meyering <meyering@lucent.com>
25892 * lib/hash.c (is_prime): Return explicit boolean values.
25893 (hash_get_first): Return NULL to appease Irix5.6's 89.
25894 Reported by Nelson Beebe.
25896 2000-12-19 Bruno Haible <haible@clisp.cons.org>
25898 * lib/localcharset.c (locale_charset): Add support for Win32.
25900 2000-12-18 Paul Eggert <eggert@twinsun.com>
25902 * lib/physmem.h, lib/physmem.c: New files.
25904 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
25905 (noinst_HEADERS): Add physmem.h.
25907 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
25908 't' for compatibility with Solaris 8 sort.
25910 2000-12-18 Bruno Haible <haible@clisp.cons.org>
25912 * lib/config.charset: Add support for BeOS.
25914 2000-12-17 Jim Meyering <meyering@lucent.com>
25916 * m4/dos.m4 (jm_AC_DOS): New file and macro.
25917 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
25919 2000-12-16 Jim Meyering <meyering@lucent.com>
25921 This bug had a serious impact on chown: `chown N:M FILE' (for integer
25922 N and M) would have treated it like `chown N:N FILE'.
25924 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
25926 2000-12-16 Jim Meyering <meyering@lucent.com>
25928 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
25929 SHELLS_FILE to a file name that's useful on djgpp systems.
25931 (ADDITIONAL_DEFAULT_SHELLS): Define.
25932 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
25933 Based mostly on a patch from Prashant TR.
25935 2000-12-16 Bruno Haible <haible@clisp.cons.org>
25937 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
25938 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
25939 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
25941 2000-12-08 Andreas Schwab <schwab@suse.de>
25943 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
25944 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
25946 2000-12-07 Jim Meyering <meyering@lucent.com>
25948 * lib/stripslash.c (ISSLASH): Define.
25949 (strip_trailing_slashes): Use ISSLASH rather than comparing against
25953 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
25954 (dir_name_r): Declare this function as static.
25955 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
25956 manifest itself on a name containing a mix of slashes and
25958 Make this function work with names starting with a DOS-style
25959 drive letter and colon prefix.
25960 (dir_name): Append `.' if necessary.
25961 Based mostly on patches from Prashant TR and Eli Zaretskii.
25963 * lib/dirname.h (dir_name_r): Remove prototype.
25965 2000-12-06 Paul Eggert <eggert@twinsun.com>
25967 * m4/off_t-format.m4: Remove this file.
25968 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
25970 2000-12-06 Jim Meyering <meyering@lucent.com>
25972 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
25973 replacement strtoull, we may well need the replacement strtoul, too.
25974 Check for declarations of strtoul and strtoull.
25975 Check for strtol. Mainly as a cue to cause automake to include
25976 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
25977 Check for limits.h -- strtol.c needs it.
25979 2000-12-05 Jim Meyering <meyering@lucent.com>
25981 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
25983 2000-12-04 Jim Meyering <meyering@lucent.com>
25985 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
25986 Also include memory.h, stdlib.h, unistd.h if appropriate.
25987 Reported by Andreas Jaeger (conflicting declaration of malloc).
25989 2000-12-02 Jim Meyering <meyering@lucent.com>
25991 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
25992 * m4/jm-macros.m4 (jm_MACROS): require it.
25994 2000-12-02 Jim Meyering <meyering@lucent.com>
25996 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
25998 2000-12-01 Paul Eggert <eggert@twinsun.com>
26000 * lib/memrchr.c: Include <config.h> before any system include file.
26002 2000-11-30 Jim Meyering <meyering@lucent.com>
26004 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
26006 2000-11-30 Jim Meyering <meyering@lucent.com>
26008 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
26010 2000-11-29 Paul Eggert <eggert@twinsun.com>
26012 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
26014 2000-11-26 Jim Meyering <meyering@lucent.com>
26016 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
26018 2000-11-22 Paul Eggert <eggert@twinsun.com>
26020 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
26021 size of (size_t) -1; it's not portable.
26023 2000-11-17 Jim Meyering <meyering@lucent.com>
26025 * lib/strstr.c: Update from GNU libc.
26027 2000-11-17 Akim Demaille <akim@epita.fr>
26029 * lib/obstack.h: Formatting changes.
26030 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
26031 prevent type checking.
26032 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
26033 cast the value to (void *): assigning a `foo *' to a `void *'
26035 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
26037 2000-11-16 Jim Meyering <meyering@lucent.com>
26039 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
26041 2000-11-11 Jim Meyering <meyering@lucent.com>
26043 * lib/error.c: Add a couple #includes, merging from GNU libc version.
26045 2000-11-10 Jim Meyering <meyering@lucent.com>
26047 * lib/obstack.h: Update from GNU libc.
26048 * lib/obstack.c: Likewise.
26050 2000-11-08 Bruno Haible <haible@clisp.cons.org>
26052 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
26054 2000-11-06 Paul Eggert <eggert@twinsun.com>
26056 * lib/getusershell.c (setusershell): Use rewind rather than
26057 fseek/fseeko, to avoid configuration hassles with fseeko.
26058 Don't bother opening SHELLS_FILE if shellstream is NULL;
26059 it's not necessary.
26061 2000-11-05 Jim Meyering <meyering@lucent.com>
26063 * lib/makepath.h (make_dir): Declare.
26064 * lib/makepath.c (make_dir): Remove `static' attribute.
26067 2000-11-04 Jim Meyering <meyering@lucent.com>
26069 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
26071 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
26073 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
26074 last one in a bucket, advance to the next bucket.
26076 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
26078 * lib/fnmatch.c: Do not comment out all the code if we are using
26079 the GNU C library, because in some cases we are replacing buggy
26080 code in the GNU C library itself.
26082 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
26084 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
26085 (regex_compile): Catch bogus \(\1\).
26087 2000-10-30 Paul Eggert <eggert@twinsun.com>
26089 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
26090 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
26091 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
26093 2000-10-30 Paul Eggert <eggert@twinsun.com>
26095 * lib/error.h, getline.h, modechange.h:
26096 Remove "2000" from Copyright line, as the file hasn't been
26097 changed this year other than in the copyright notice.
26099 * lib/xalloc.h: Add "2000" to Copyright line, as this file
26100 was changed this year.
26102 2000-10-29 Jim Meyering <meyering@lucent.com>
26104 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
26106 * m4/ls-mntd-fs.m4: Likewise
26108 2000-10-29 Jim Meyering <meyering@lucent.com>
26110 * lib/xstat.in: Fix grammar in comment.
26112 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
26114 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
26115 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
26116 doesn't define __restrict_arr.
26118 2000-10-28 Jim Meyering <meyering@lucent.com>
26120 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
26121 (jm_PREREQ_MEMCHR): New function.
26123 2000-10-28 Jim Meyering <meyering@lucent.com>
26125 * lib/memchr.c: Update from libc.
26126 Adjust for portability:
26127 [HAVE_STDLIB_H]: Include stdlib.h.
26128 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
26129 Undef __memchr, too.
26130 [!weak_alias]: Define __memchr to memchr.
26132 * lib/regex.c: Update from libc.
26133 * lib/regex.h: Likewise.
26134 * lib/getopt1.c: Likewise.
26135 * lib/memcmp.c: Likewise.
26137 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
26138 Avoid using fseek, when possible -- it's broken by design.
26139 Patch by Ulrich Drepper.
26141 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
26143 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
26144 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
26145 Giving in to popular pressure to shut up the compiler with casts.
26147 2000-10-26 Jim Meyering <meyering@lucent.com>
26149 * lib/strftime.c: Update from libc.
26151 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
26153 * regex.c: More `unsigned char' -> `re_char' changes.
26154 Also change several `int' into `re_wchar_t'.
26155 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
26156 (PUSH_FAILURE_POINTER): Don't cast any more.
26157 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
26158 We want GCC to complain, since this piece of code makes
26159 re_match non-reentrant, which *should* be fixed.
26160 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
26161 (EXTEND_BUFFER): Use RETALLOC.
26162 (SET_LIST_BIT): Don't cast.
26163 (re_wchar_t): New type.
26164 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
26165 that those two functions will always properly return.
26166 (IMMEDIATE_QUIT_CHECK): Cast to void.
26167 (analyse_first): Use recursion rather than an explicit stack.
26168 (re_compile_fastmap): Can't fail anymore.
26169 (re_search_2): Don't check re_compile_fastmap for failure.
26170 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
26171 Now also sets the new value (passed in a new argument).
26172 (re_match_2_internal): Use it.
26173 Also, use a new var `reg' of type size_t when looping through regs
26174 rather than reuse the inappropriate `mcnt'.
26176 2000-10-25 Jim Meyering <meyering@lucent.com>
26178 * lib/obstack.c: Update from libc.
26180 2000-10-24 Kenichi Handa <handa@etl.go.jp>
26182 * regex.c (regex_compile): Change the way of handling a range from
26183 a char less than 256 to a char not less than 256.
26185 2000-10-24 Andrew Innes <andrewi@gnu.org>
26187 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
26189 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
26190 so that re_search functions only quit when callers expect them to.
26192 2000-10-23 Jim Meyering <meyering@lucent.com>
26194 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
26195 wrong. That set_locale call must not have any side effects.
26198 2000-10-22 Jim Meyering <meyering@lucent.com>
26200 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
26201 [CYCLIC]: Remove now-unused definition.
26203 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
26204 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
26205 Suggestion from Ulrich Drepper.
26207 2000-10-21 Jim Meyering <meyering@lucent.com>
26209 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
26210 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
26211 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
26213 2000-10-21 Jim Meyering <meyering@lucent.com>
26215 * lib/dirname.c (memrchr): Declare if necessary.
26216 (dir_name): Remove the restriction that there be no
26217 trailing slashes. Now, this code skips past them, effectively
26219 [TEST_DIRNAME] (main): New unit tests.
26221 * lib/memrchr.c: New file from GNU libc.
26222 Undef __memrchr, too.
26223 [!weak_alias]: Define __memrchr to memrchr.
26224 Guard weak_alias use with `#ifdef weak_alias'.
26226 2000-10-21 Jim Meyering <meyering@lucent.com>
26228 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
26229 (dir_name): Use dir_name_r.
26230 * lib/dirname.h (dir_name_r): Declare it.
26232 2000-10-17 Jim Meyering <meyering@lucent.com>
26234 * lib/quote.h (PARAMS): Define and use.
26235 Reported by Akim Demaille.
26237 * lib/getopt.c: Update from libc.
26239 2000-10-16 Jim Meyering <meyering@lucent.com>
26241 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
26245 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
26247 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
26249 2000-09-25 Jim Meyering <meyering@lucent.com>
26251 * lib/md5.h (rol): Define (from GnuPG).
26253 * lib/sha.c: Give credit (GnuPG) where due.
26254 (M): Use rol rather than open-coding it.
26255 Add a FIXME comment.
26257 2000-09-21 Jim Meyering <meyering@lucent.com>
26259 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
26260 Reported by Michael Stone.
26262 2000-09-20 Jim Meyering <meyering@lucent.com>
26264 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
26265 (noinst_HEADERS): Add sha.h.
26266 Based on code from Scott G. Miller and from GnuPG.
26268 2000-09-18 Jim Meyering <meyering@lucent.com>
26270 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
26271 LIBS. Otherwise, everyone ends up linking with -lelf for some
26273 Reported by Mike Stone.
26275 2000-09-15 Jim Meyering <meyering@lucent.com>
26277 * lib/regex.c: Update from libc.
26279 2000-09-10 Jim Meyering <meyering@lucent.com>
26281 * lib/getopt.c (_getopt_internal): Update from glibc.
26283 2000-09-09 Jim Meyering <meyering@lucent.com>
26285 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
26286 think it should be used as a general replacement for isascii.
26287 * lib/fnmatch.c: Likewise.
26288 * lib/mbswidth.c: Likewise
26289 * lib/regex.c: Likewise.
26292 * lib/userspec.c: Include sys/param.h and limits.h.
26294 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
26295 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
26296 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
26297 UID, GID. Check range.
26299 2000-09-06 Jim Meyering <meyering@lucent.com>
26301 * lib/getopt.c (_getopt_internal): Update from glibc.
26303 2000-08-30 Jim Meyering <meyering@lucent.com>
26305 * lib/strftime.c: Merge in changes from GNU libc.
26307 2000-08-26 Jim Meyering <meyering@lucent.com>
26309 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
26310 * m4/fpending.m4: New file.
26312 2000-08-26 Jim Meyering <meyering@lucent.com>
26314 * lib/closeout.c: Include "__fpending.h".
26315 (close_stdout_status): Return right away if there's nothing to flush.
26317 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
26318 * lib/__fpending.c: New file.
26319 * lib/__fpending.h: New file.
26321 2000-08-20 Jim Meyering <meyering@lucent.com>
26323 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
26324 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
26325 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
26327 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
26329 Improve fileutils installation on systems where running
26330 programs (like install) can't be unlinked.
26331 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
26332 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
26334 2000-08-07 Paul Eggert <eggert@twinsun.com>
26336 Standardize on "memory exhausted" instead of "Memory exhausted"
26337 or "virtual memory exhausted".
26338 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
26339 "virtual memory exhausted".
26340 * lib/same.c (same_name): Invoke xalloc_die instead of printing
26342 * lib/userspec.c (parse_user_spec): Likewise.
26343 * lib/bumpalloc.h: comment fix
26344 * lib/same.c, userspec.c: Include xalloc.h.
26346 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
26347 not char *const and pointing to a constant array.
26348 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
26349 (xrealloc): Comment fix.
26351 * lib/userspec.c (parse_user_spec):
26352 Don't translate a message until just before returning,
26353 to avoid unnecessary translation.
26355 2000-08-07 Jim Meyering <meyering@lucent.com>
26357 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
26358 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
26359 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
26360 getgroups.c, gethostname.c, getopt.h, group-member.c,
26361 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
26362 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
26363 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
26364 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
26365 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
26366 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
26367 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
26368 yesno.c: Back out Copyright date changes for each file with no change
26369 this year. This eases coordination with other programs using the same
26370 source code modules. From Paul Eggert.
26372 2000-08-06 Paul Eggert <eggert@twinsun.com>
26374 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
26375 not char, for compatibility with glibc 2.1.3 strftime.c.
26377 2000-08-03 Greg McGary <greg@mcgary.org>
26379 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
26380 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
26381 (EXTEND_BUFFER): Use them.
26383 2000-08-01 Jim Meyering <meyering@lucent.com>
26385 * lib/dirname.c (ISSLASH): Define.
26386 (BACKSLASH_IS_PATH_SEPARATOR): Define.
26387 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
26388 both `\' and `/' may be use as path separators.
26389 Based on a patch from Prashant TR.
26391 2000-07-31 Paul Eggert <eggert@twinsun.com>
26393 * lib/quotearg.c (quotearg_n_options): Don't make the initial
26394 slot vector a constant, since it might get modified.
26396 2000-07-31 Jim Meyering <meyering@lucent.com>
26398 * lib/xmalloc.c: Use `virtual memory exhausted', not
26399 `Memory exhausted'.
26400 * lib/obstack.c (print_and_abort): Likewise.
26402 2000-07-30 Paul Eggert <eggert@twinsun.com>
26404 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
26405 buffer, so that the caller can always quote one small
26406 component of a "memory exhausted" message in slot 0.
26407 From a suggestion by Jim Meyering.
26409 2000-07-30 Jim Meyering <meyering@lucent.com>
26411 * lib/makepath.c (make_path): Quote the other instance, too.
26413 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
26414 (STATIC_BUF_SIZE): Define.
26415 (quotearg_n_options): Use only statically allocated storage when
26416 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
26417 than STATIC_BUF_SIZE.
26419 2000-07-29 Jim Meyering <meyering@lucent.com>
26421 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
26422 * lib/dirname.c (dir_name): Likewise.
26424 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
26427 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
26428 (dir_name): Assert that there are no trailing slashes.
26430 2000-07-29 Bruno Haible <haible@clisp.cons.org>
26432 * lib/mbswidth.h (mbswidth): Add a flags argument.
26433 (mbswidth): New declaration.
26434 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
26435 * lib/mbswidth.c (mbswidth): Add a flags argument.
26436 (mbsnwidth): New function.
26438 2000-07-24 Jim Meyering <meyering@lucent.com>
26440 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
26442 2000-07-23 Paul Eggert <eggert@twinsun.com>
26444 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
26446 2000-07-23 Paul Eggert <eggert@twinsun.com>
26448 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
26449 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
26450 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
26451 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
26452 invoke multibyte primitives.
26454 2000-07-23 Paul Eggert <eggert@twinsun.com>
26457 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
26458 so that mbstate_t is always defined.
26460 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
26461 be 1 in at least one GCC installation, and this configuration
26462 error is likely to be common. Ignoring MB_LEN_MAX hurts
26463 performance on hosts that have mbrtowc but have only unibyte
26464 locales, but I assume these hosts are rare.
26466 2000-07-23 Paul Eggert <eggert@twinsun.com>
26468 * lib/mbswidth.c (_XOPEN_SOURCE):
26469 Don't define; this causes problems on Solaris 7.
26470 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
26472 2000-07-23 Jim Meyering <meyering@lucent.com>
26474 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
26475 too: getgrgid, getpwuid, getuid.
26477 2000-07-23 Jim Meyering <meyering@lucent.com>
26479 * lib/basename.c (base_name): Add an assertion.
26481 2000-07-23 Bruno Haible <haible@clisp.cons.org>
26483 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
26484 shadow its mbsinit function.
26486 2000-07-17 Bruno Haible <haible@clisp.cons.org>
26488 * lib/mbswidth.h: New file.
26489 * lib/mbswidth.c: New file.
26490 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
26491 (noinst_HEADERS): Add mbswidth.h.
26493 2000-07-17 Bruno Haible <haible@clisp.cons.org>
26495 * lib/config.charset: Add support for FreeBSD. Improve support for
26498 2000-07-16 Bruno Haible <haible@clisp.cons.org>
26500 * m4/mbswidth.m4: New file.
26501 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
26503 2000-07-15 Jim Meyering <meyering@lucent.com>
26505 * lib/makepath.c: Include quote.h.
26506 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
26507 corresponding argument in a `quote (...)' call.
26508 Give better diagnostics.
26510 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
26511 (noinst_HEADERS): Add quote.h.
26513 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
26514 from tar's src/misc.c.
26515 * lib/quote.h: New file. Prototypes for same.
26517 2000-07-14 Paul Eggert <eggert@twinsun.com>
26519 From a suggestion by Bruno Haible.
26520 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
26521 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
26522 to decide whether to define the BeOS workaround macro;
26523 this adjusts to the change to AC_MBSTATE_T.
26525 2000-07-14 Jim Meyering <meyering@lucent.com>
26527 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
26528 jm_AC_TYPE_UINTMAX_T.
26530 2000-07-13 Paul Eggert <eggert@twinsun.com>
26532 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
26534 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
26535 quotearg_buffer_restyled): Add support for
26536 clocale_quoting_style. Undo previous change to
26537 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
26538 and "{RIGHT QUOTATION MARK}" msgids.
26540 2000-07-10 Paul Eggert <eggert@twinsun.com>
26542 From a suggestion by Bruno Haible.
26543 * m4/mbstate_t.m4 (AC_MBSTATE_T):
26544 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
26545 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
26546 and mbstate_t, to a single-part test that simply defines mbstate_t.
26547 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
26548 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
26550 2000-07-10 Jim Meyering <meyering@lucent.com>
26552 * m4/strerror_r.m4: Mirror the correction made in autoconf.
26554 * m4/gnu-source.m4: Output to confdefs.h directly.
26555 Suggestion from Akim Demaille.
26557 2000-07-09 Paul Eggert <eggert@twinsun.com>
26559 The old behavior of quoting `like this' doesn't look good with
26560 newer, ISO-style fonts. See:
26561 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
26563 Instead, quote "like this" by default. Let the translator
26564 tailor the locale-specific quoting behavior by providing
26565 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
26567 * lib/quotearg.c (N_): New macro.
26568 (gettext_default): New function.
26569 (quotearg_buffer_restyled): Use
26570 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
26571 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
26573 2000-07-09 Jim Meyering <meyering@lucent.com>
26575 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
26576 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
26578 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
26579 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
26581 2000-07-09 Jim Meyering <meyering@lucent.com>
26583 * lib/Most files: Update copyright dates to include 2000.
26585 2000-07-08 Jim Meyering <meyering@lucent.com>
26587 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
26589 (xgethostname): Remove now-unnecessary #ifdef.
26590 Move declaration of `err' into loop where it's used.
26592 2000-07-05 Paul Eggert <eggert@twinsun.com>
26593 and Bruno Haible <haible@clisp.cons.org>
26595 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
26596 only if the test for an object-type mbstate_t fails. This
26597 prevents us from mistakenly reporting that mbstate_t is a
26598 system object type after we "#define mbstate_t int" to work
26601 2000-07-05 Paul Eggert <eggert@twinsun.com>
26602 and Bruno Haible <haible@clisp.cons.org>
26604 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
26606 2000-07-05 Bruno Haible <haible@clisp.cons.org>
26608 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
26610 Include <ctype.h> for use of isalpha.
26612 2000-07-05 Bruno Haible <haible@clisp.cons.org>
26614 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
26615 by allocating a larger buffer. Test the gethostname return value for
26616 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
26617 returns an error and ENAMETOOLONG isn't defined.
26619 2000-07-05 Bruno Haible <haible@clisp.cons.org>
26621 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
26624 2000-07-04 Jim Meyering <meyering@lucent.com>
26626 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
26627 of the deprecated AC_CHECKING.
26629 2000-07-04 Jim Meyering <meyering@lucent.com>
26631 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
26632 Reported by Bruno Haible.
26634 2000-07-04 Jim Meyering <meyering@lucent.com>
26636 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
26637 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
26640 2000-07-03 Paul Eggert <eggert@twinsun.com>
26642 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
26643 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
26645 2000-07-03 Paul Eggert <eggert@twinsun.com>
26646 and Bruno Haible <haible@clisp.cons.org>
26648 * lib/quotearg.c (mbrtowc):
26649 Assign to *pwc, and return 1 only if result is nonzero.
26650 (iswprint): Use ISPRINT when substituting our own mbrtowc.
26652 2000-07-03 Jim Meyering <meyering@lucent.com>
26654 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
26656 2000-07-03 Jim Meyering <meyering@lucent.com>
26658 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
26659 This is necessary to get a definition of e.g., UTMP_FILE on
26663 2000-07-02 Jim Meyering <meyering@lucent.com>
26665 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
26667 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
26668 AC_LIBOBJ(function_name).
26669 * m4/chown.m4: Likewise.
26670 * m4/fnmatch.m4: Likewise.
26671 * m4/ftruncate.m4: Likewise.
26672 * m4/getgroups.m4: Likewise.
26673 * m4/getline.m4: Likewise.
26674 * m4/group-member.m4: Likewise.
26675 * m4/jm-macros.m4: Likewise.
26676 * m4/lstat.m4: Likewise.
26677 * m4/malloc.m4: Likewise.
26678 * m4/memcmp.m4: Likewise.
26679 * m4/nanosleep.m4: Likewise.
26680 * m4/putenv.m4: Likewise.
26681 * m4/realloc.m4: Likewise.
26682 * m4/regex.m4: Likewise.
26683 * m4/stat.m4: Likewise.
26684 * m4/strftime.m4: Likewise.
26686 2000-07-02 Jim Meyering <meyering@lucent.com>
26688 * lib/quotearg.c (mbstate_t): Don't define here.
26690 2000-07-02 Jim Meyering <meyering@lucent.com>
26692 * lib/nanosleep.c (SIGCONT): Define if not already defined.
26694 2000-07-01 Jim Meyering <meyering@lucent.com>
26696 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
26698 2000-07-01 Jim Meyering <meyering@lucent.com>
26700 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
26703 2000-07-01 Bruno Haible <haible@clisp.cons.org>
26705 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
26706 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
26708 2000-07-01 Bruno Haible <haible@clisp.cons.org>
26710 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
26711 per change in ../m4/ls-mntd-fs.m4.
26712 (read_filesystem_list): Ignore symbolic links.
26714 2000-06-29 Jim Meyering <meyering@lucent.com>
26716 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
26717 for declaration of strcmp.
26719 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
26721 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
26722 Avoid warning by casting result to `char *' to remove `const'.
26724 2000-06-28 Jim Meyering <meyering@lucent.com>
26726 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
26727 included by quotearg.c, for which we perform this test. From
26730 2000-06-27 Bruno Haible <haible@clisp.cons.org>
26732 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
26733 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
26734 <utmpx.h> exists, put readutmp.o into LIBOBJS.
26736 2000-06-27 Bruno Haible <haible@clisp.cons.org>
26738 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
26740 2000-06-26 Paul Eggert <eggert@twinsun.com>
26742 savedir now sets errno on failure and invokes xmalloc to get memory.
26743 Fix a couple of other minor bugs while we're at it.
26745 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
26746 (NAMLEN): Remove macro.
26747 (malloc, realloc): Remove decls.
26748 (stpcpy): Likewise.
26749 ("xalloc.h"): Include.
26750 (NAME_SIZE_DEFAULT): New macro.
26751 (savedir): Use xmalloc / xrealloc to allocate memory.
26752 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
26753 Skip "" directory entries.
26754 Use strlen to calculate directory entry length, since the old method
26755 is rarely used these days and isn't worth supporting.
26756 Don't use a pointer after freeing it.
26757 Check for integer overflow when calculating allocation size.
26758 Use memcpy to copy entries, instead of stpcpy.
26759 Set errno properly when returning NULL.
26760 Check for readdir error.
26762 2000-06-26 Jim Meyering <meyering@lucent.com>
26764 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
26766 2000-06-25 Jim Meyering <meyering@lucent.com>
26768 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
26769 Linux header bug when _XOPEN_SOURCE is defined to 500.
26771 2000-06-25 Bruno Haible <haible@clisp.cons.org>
26773 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
26776 2000-06-25 Bruno Haible <haible@clisp.cons.org>
26778 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
26780 Don't include <stdlib.h>. Don't declare malloc, realloc.
26782 2000-06-24 Jim Meyering <meyering@lucent.com>
26784 * m4/strerror_r.m4: Revive this file -- to try out an experimental
26785 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
26786 for which strerror does return char*, but which lacks a conveniently
26787 accessible declaration of the function. If the compile-test says
26788 strerror_r doesn't work, then resort to a `run'-test that works on
26789 BeOS and segfaults on DEC Unix.
26791 2000-06-24 Jim Meyering <meyering@lucent.com>
26793 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
26795 2000-06-23 Paul Eggert <eggert@twinsun.com>
26797 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
26798 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
26800 2000-06-23 Paul Eggert <eggert@twinsun.com>
26802 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
26803 (mbrtowc, mbstate_t): Define substitutes if
26804 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
26805 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
26806 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
26808 2000-06-23 Jim Meyering <meyering@lucent.com>
26810 * m4/afs.m4: Add missing AC_MSG_RESULT.
26811 Reported by Bruno Haible.
26813 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
26814 Suggestion from Bruno Haible.
26816 2000-06-23 Jim Meyering <meyering@lucent.com>
26818 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
26820 2000-06-21 Jim Meyering <meyering@lucent.com>
26822 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
26824 2000-06-21 Jim Meyering <meyering@lucent.com>
26826 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
26827 (noinst_HEADERS): Add getstr.h.
26829 * lib/getline.c (getstr): Move into a separate file.
26830 * lib/getstr.c (getstr): New file, extracted from getline.c, with
26831 the following changes: new parameter, delim2; both delim[12]
26832 parameters have type `int', not `char'. The latter would lose
26833 with 8-bit delimiters.
26834 * lib/getstr.h: New file.
26836 2000-06-21 Bruno Haible <haible@clisp.cons.org>
26838 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
26839 than 1024, return a memory chunk of least possible size, instead
26840 of size PATH_MAX + 2. In the loop, increment the size proportionally.
26841 Use free/xmalloc instead of xrealloc to avoid copying for very long
26844 2000-06-21 Bruno Haible <haible@clisp.cons.org>
26846 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
26849 2000-06-21 Bruno Haible <haible@clisp.cons.org>
26851 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
26852 address, not strdup. Include <stdlib.h> and don't declare free().
26854 2000-06-19 Jim Meyering <meyering@lucent.com>
26856 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
26858 2000-06-18 Jim Meyering <meyering@lucent.com>
26860 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
26862 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
26863 `checking whether...' message to be consistent with that of the
26866 2000-06-18 Jim Meyering <meyering@lucent.com>
26868 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
26869 Besides, these days every porting target provides a mkdir function.
26871 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
26872 needed. (this snippet comes from src/system.h).
26874 2000-06-16 Bruno Haible <haible@clisp.cons.org>
26876 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
26878 2000-06-15 Paul Eggert <eggert@twinsun.com>
26880 * lib/human.c (adjust_value): New function.
26881 (human_readable_inexact): Apply rounding style even when
26882 printing approximate values.
26884 2000-06-14 Paul Eggert <eggert@twinsun.com>
26886 * lib/human.c (human_readable_inexact): Allow an input block
26887 size that is not a multiple of the output block size, and vice versa.
26888 Reported by Piergiorgio Sartor.
26890 2000-06-14 Paul Eggert <eggert@twinsun.com>
26892 * lib/getdate.y (get_date): Apply relative times after time
26893 zone indicator, not before. Reported by Todd A. Jacobs.
26895 2000-06-13 Jim Meyering <meyering@lucent.com>
26897 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
26899 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
26901 2000-06-12 Paul Eggert <eggert@twinsun.com>
26903 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
26905 2000-06-12 Jim Meyering <meyering@lucent.com>
26907 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
26908 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
26910 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
26911 the optional argument, `lib'.
26913 2000-06-08 Jim Meyering <meyering@lucent.com>
26915 * m4/largefile.m4: Remove file (now that it's part of autoconf).
26917 2000-06-04 Paul Eggert <eggert@twinsun.com>
26919 Rewrite largefile configuration so that we don't need to run
26920 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
26921 AC_CANONICAL_HOST in configure.in -- jmm]
26923 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
26924 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
26925 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
26926 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
26927 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
26929 Instead of inspecting the output of getconf, try to compile the
26930 test program without and with the macro definition.
26931 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
26932 for getconf. Instead, check for the needed flags by compiling
26935 2000-06-04 Paul Eggert <eggert@twinsun.com>
26937 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
26939 2000-06-04 Jim Meyering <meyering@lucent.com>
26941 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
26942 SunOS 4.1.4 for which gid_t is an unsigned type.
26944 2000-06-03 Jim Meyering <meyering@lucent.com>
26946 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
26947 now that autoconf requires that.
26949 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
26950 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
26951 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
26953 2000-06-03 Jim Meyering <meyering@lucent.com>
26955 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
26957 2000-06-03 Bruno Haible <haible@clisp.cons.org>
26959 * m4/glibc21.m4: New file.
26960 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
26962 2000-06-03 Bruno Haible <haible@clisp.cons.org>
26964 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
26965 newer, don't install charset.alias.
26966 * lib/config.charset: Change the Linux/glibc rules so they become empty
26967 on glibc-2.1 or newer.
26969 2000-06-02 Jim Meyering <meyering@lucent.com>
26971 * lib/mountlist.c: Back out last change. Instead, do this...
26972 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
26973 me_dummy member using the same `ignore'-testing code.
26974 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
26978 2000-05-29 Jim Meyering <meyering@lucent.com>
26980 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
26981 mounts with the `ignore' attribute. Based on a patch from
26984 2000-05-28 Jim Meyering <meyering@lucent.com>
26986 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
26987 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
26988 * m4/stat.m4: Likewise.
26989 * m4/lstat.m4: Likewise.
26990 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
26992 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
26993 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
26995 2000-05-26 Jim Meyering <meyering@lucent.com>
26997 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
26999 2000-05-24 Jim Meyering <meyering@lucent.com>
27001 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
27002 autoconf requires that.
27003 * m4/lib-check.m4: Likewise.
27004 * m4/jm-macros.m4: Likewise.
27005 * m4/strftime.m4: Likewise.
27007 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
27008 AC_CHECK_DECLS, now that autoconf requires that.
27010 2000-05-22 Jim Meyering <meyering@lucent.com>
27012 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
27013 * m4/lstat.m4: Likewise.
27015 2000-05-22 Jim Meyering <meyering@lucent.com>
27017 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
27019 2000-05-20 Jim Meyering <meyering@lucent.com>
27021 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
27022 (jm_PREREQ): Use it.
27024 2000-05-18 Jim Meyering <meyering@lucent.com>
27026 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
27027 back, too, since it may have been modified by allocate_entry.
27028 (hash_delete): Rewrite to use neither the assignment operator
27029 nor the comma operator in an if-expression.
27031 2000-05-15 Paul Eggert <eggert@twinsun.com>
27034 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
27035 Remove; no longer needed.
27036 "quotearg.h": Add include.
27037 (file_name): Do not bother to explicitly initialize to NULL; it's less
27038 efficient on some hosts.
27039 (close_stdout_status): Remove test as to whether stdout was already
27040 closed; it breaks for the case "echo x | sort >&-".
27041 Quote file name colons.
27042 Do not assume that _("write error") lacks format strings.
27044 2000-05-15 Jim Meyering <meyering@lucent.com>
27046 * lib/version-etc.c (version_etc_copyright): Update the copyright
27047 string used in all --version output.
27049 2000-05-14 Jim Meyering <meyering@lucent.com>
27051 * lib/closeout.c (close_stdout_set_file_name): New function.
27052 (close_stdout_status): Use new file-scoped global.
27053 Return right away if fstat says the stdout file descriptor is invalid.
27054 * lib/closeout.h (close_stdout_set_file_name): Declare.
27056 2000-05-10 Jim Meyering <meyering@lucent.com>
27058 * lib/closeout.c [default_exit_status]: New file-scoped variable.
27059 (close_stdout_set_status): New function.
27060 * lib/closeout.h (close_stdout_set_status): Declare.
27062 2000-05-09 Jim Meyering <meyering@lucent.com>
27064 * m4/gettext.m4: Rename this...
27065 * m4/libintl.m4: ...to this.
27067 2000-05-08 Jim Meyering <meyering@lucent.com>
27069 * lib/long-options.c: Don't include closeout.h.
27070 (parse_long_options): Don't call close_stdout for --version.
27072 2000-05-06 Paul Eggert <eggert@twinsun.com>
27074 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
27075 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
27076 2.1.3 bug. This avoids a clash when files like regex.c define
27079 2000-05-06 Jim Meyering <meyering@lucent.com>
27081 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
27082 (AC_REPLACE_FUNCS): Add strnlen.
27084 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
27085 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
27087 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
27088 AC_SEARCH_LIBS call for nanosleep.
27089 (LIB_NANOSLEEP): Set and AC_SUBST.
27091 2000-05-06 Jim Meyering <meyering@lucent.com>
27093 * lib/strnlen.c: Undefine __strnlen and strnlen.
27094 [!weak_alias]: Define __strnlen to strnlen.
27096 * lib/atexit.c: New file, from libiberty.
27098 2000-05-06 Jim Meyering <meyering@lucent.com>
27100 * lib/closeout.c (close_stdout_status): Also check for errors on the
27103 2000-05-05 Jim Meyering <meyering@lucent.com>
27105 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
27106 AC_SEARCH_LIBS call for clock_gettime.
27107 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
27109 * m4/search-libs.m4: Update from autoconf.
27111 su doesn't work on Solaris 2.6.
27112 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
27113 <shadow.h>. Reported by Dragos Harabor.
27115 2000-05-05 Bruno Haible <haible@clisp.cons.org>
27117 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
27118 memcpy instead of xmalloc, xrealloc, path_concat.
27119 (locale_charset): Treat empty environment variables as absent.
27120 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
27122 2000-05-04 Jim Meyering <meyering@lucent.com>
27124 * lib/getopt.c: Update from glibc.
27125 * lib/obstack.c: Likewise.
27126 * lib/obstack.h: Likewise.
27127 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
27130 * lib/regex.h: Likewise.
27131 * lib/strndup.c: Likewise.
27132 * lib/strnlen.c: New file, from glibc.
27134 2000-05-03 Jim Meyering <meyering@lucent.com>
27136 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
27138 2000-05-02 Paul Eggert <eggert@twinsun.com>
27140 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
27141 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
27142 compile-time test, rather than inspecting host and OS, to
27143 decide whether to define _LARGEFILE_SOURCE.
27145 2000-05-01 Jim Meyering <meyering@lucent.com>
27147 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
27149 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
27150 Based on a patch from Bruno Haible.
27152 2000-05-01 Jim Meyering <meyering@lucent.com>
27154 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
27156 2000-04-29 Jim Meyering <meyering@lucent.com>
27158 * lib/path-concat.c: Declare strdup only if it's not defined.
27159 * lib/canon-host.c: Likewise.
27161 2000-04-28 Jim Meyering <meyering@lucent.com>
27163 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
27164 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
27165 is included first, then limits.h is included by locale.h by libintl.h.
27166 From John David Anglin.
27168 2000-04-25 Jim Meyering <meyering@lucent.com>
27170 * lib/makepath.c (S_IRWXUGO): Define.
27171 (make_path): Always perform explicit chmod if MODE specifies any
27172 of the `special' permission bits. Prompted by a bug report against
27173 install from Mate Wierdl and Joost van Baal.
27175 2000-04-18 Jim Meyering <meyering@lucent.com>
27177 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
27178 (jm_PREREQ): Use it.
27180 2000-04-18 Jim Meyering <meyering@lucent.com>
27182 * lib/README: New file.
27184 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
27185 getpagesize. For BeOS. Based on a patch from Bruno Haible.
27187 2000-04-17 Jim Meyering <meyering@lucent.com>
27190 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
27191 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
27192 Suggestion from Akim Demaille.
27194 2000-04-17 Jim Meyering <meyering@lucent.com>
27196 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
27197 the definition of it to rpl_strftime also defined-away the system's
27200 2000-04-15 Jim Meyering <meyering@lucent.com>
27202 Use `C' to denote so-called `contiguous' files, the same way
27204 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
27205 (ftypelet): Use S_ISCTG.
27206 From Michael Deutschmann.
27208 2000-04-14 Jim Meyering <meyering@lucent.com>
27210 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
27211 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
27214 2000-04-14 Jim Meyering <meyering@lucent.com>
27216 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
27218 2000-04-13 Jim Meyering <meyering@lucent.com>
27220 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
27221 AH_VERBATIM to insert required #ifndef into config.h.in.
27222 Suggestion from Akim Demaille.
27224 2000-04-12 Jim Meyering <meyering@lucent.com>
27226 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
27227 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
27228 Christian Krackowizer.
27230 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
27231 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
27232 (AC_SYS_LARGEFILE): Require.
27233 (AM_C_PROTOTYPES): Require.
27235 2000-04-08 Jim Meyering <meyering@lucent.com>
27237 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
27238 names don't conflict. Reported by Eli Zaretskii.
27240 2000-04-07 Jim Meyering <meyering@lucent.com>
27242 * lib/putenv.c: Move inclusion of errno.h so it follows that of
27243 sys/types.h, to work around system header problems on AIX 3.2.5.
27246 2000-04-07 Bruno Haible <haible@clisp.cons.org>
27248 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
27249 bug. Deal with the different error behavior of Irix iconv.
27251 2000-04-05 Paul Eggert <eggert@twinsun.com>
27253 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
27254 IRIX if the installer said otherwise.
27256 2000-04-05 Jim Meyering <meyering@lucent.com>
27258 Portability tweaks required for ultrix4.3.
27259 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
27260 (jm_CHECK_DECLS): Add getutent to the list of functions.
27261 (_jm_DECL_HEADERS): Add utmpx.h.
27262 From John David Anglin.
27264 * m4/strftime.m4: Back out the 2000-04-02 change.
27265 Instead of that change, simply undefine putenv in the test program.
27267 2000-04-05 Jim Meyering <meyering@lucent.com>
27269 Portability tweaks required for ultrix4.3.
27270 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
27272 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
27273 * lib/canon-host.c: Declare strdup.
27274 * lib/path-concat.c: Likewise.
27275 From John David Anglin.
27277 2000-04-04 Jim Meyering <meyering@lucent.com>
27279 Be more DOS 8.3-friendly.
27280 * lib/ref-add.sin: Renamed from ref-add.sed.in.
27281 * lib/ref-del.sin: Renamed from ref-del.sed.in.
27282 * lib/Makefile.am: Reflect renaming.
27283 Reported by Eli Zaretskii.
27285 Use a temporary file name that won't clash with `charset.alias'
27286 in the DOS 8.3 name space.
27287 * lib/Makefile.am (charset_tmp): Define.
27288 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
27289 (uninstall-local): Likewise.
27290 Reported by Eli Zaretskii.
27292 2000-04-03 Jim Meyering <meyering@lucent.com>
27294 * m4/gettext.m4: Fix typo in comment.
27296 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
27297 textutils/configure.in). Suggestion from Paul Eggert.
27298 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
27300 2000-04-02 Paul Eggert <eggert@twinsun.com>
27302 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
27303 variable in the shell rather than using putenv, which isn't
27304 portable. This avoids the configure-time inter-test dependency
27305 on the potentially-renamed putenv function.
27307 2000-03-30 Paul Eggert <eggert@twinsun.com>
27309 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
27310 before checking struct stat.st_blksize, so that
27311 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
27313 2000-03-29 Paul Eggert <eggert@twinsun.com>
27315 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
27316 since strftime.c uses HAVE_STRFTIME to decide whether to use
27317 the underlying strftime.
27319 2000-03-29 Paul Eggert <eggert@twinsun.com>
27321 * lib/time/strftime.c (my_strftime): Make sure we call the system
27322 strftime, not ourselves, when invoking the underlying strftime.
27324 2000-03-24 Jim Meyering <meyering@lucent.com>
27326 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
27327 (charset_alias): Define.
27328 (install-exec-local): Factor out common code.
27329 (uninstall-local): Split lines longer than 80.
27330 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
27331 (SUFFIXES): Define.
27332 (.sed.in.sed): New rule. Don't redirect directly to $@.
27333 (CLEANFILES): Add ref-add.sed and ref-del.sed.
27335 2000-03-19 Bruno Haible <haible@clisp.cons.org>
27337 * lib/config.charset: Output a line containing "Packages using this
27339 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
27340 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
27341 ref-del.sed): New rules.
27343 2000-03-17 Jim Meyering <meyering@lucent.com>
27345 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
27346 Otherwise, include <strings.h>
27348 2000-03-17 Bruno Haible <haible@clisp.cons.org>
27350 * lib/unicodeio.c (utf8_wctomb): New function.
27351 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
27352 format instead of in UCS-4 with platform dependent endianness.
27354 2000-03-10 Jim Meyering <meyering@lucent.com>
27356 * m4/lib-check.m4: Look for getspnam in -lgen, too.
27357 From Marco Franzen.
27359 2000-03-07 Paul Eggert <eggert@twinsun.com>
27361 * lib/savedir.c (savedir): Work even if directory size is
27362 negative; this can happen with some screwy NFS configurations.
27364 2000-03-06 Jim Meyering <meyering@lucent.com>
27366 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
27367 if it's NULL (because we ran out of memory). From Bruno Haible.
27369 2000-03-05 Jim Meyering <meyering@lucent.com>
27371 * lib/localcharset.c ("path-concat.h"): Include.
27372 (get_charset_aliases): Use path_concat instead of ANSI string
27375 * lib/unicodeio.h (PARAMS): Define.
27376 Use it to guard prototype.
27378 2000-03-04 Jim Meyering <meyering@lucent.com>
27380 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
27381 for lib/localcharset.c.
27383 2000-03-04 Jim Meyering <meyering@lucent.com>
27385 * lib/Makefile.am (install-exec-local): Create $(libdir) before
27386 installing into it.
27387 (uninstall-local): Uncomment this rule so `make distcheck' works
27390 * lib/unicodeio.c (<errno.h>): Include it.
27391 (errno): Declare if not defined.
27393 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
27395 * lib/config.charset: New version, incorporating remarks from a linux
27396 i18n mailing list. From Bruno Haible.
27398 2000-03-04 Bruno Haible <haible@clisp.cons.org>
27400 * m4/codeset.m4: New file.
27401 * m4/iconv.m4: New file.
27402 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
27404 2000-03-03 Jim Meyering <meyering@lucent.com>
27406 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
27408 2000-03-02 Jim Meyering <meyering@lucent.com>
27410 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
27411 the messages come out on separate lines.
27413 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
27414 rather than jm_CHECK_DECLARATIONS.
27415 * m4/decl.m4: Remove now-unused file.
27417 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
27420 2000-03-02 Jim Meyering <meyering@lucent.com>
27422 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
27424 2000-03-01 Jim Meyering <meyering@lucent.com>
27426 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
27427 * lib/unicodeio.c: Likewise.
27429 2000-03-01 Bruno Haible <haible@clisp.cons.org>
27431 * lib/config.charset: New file.
27432 * lib/localcharset.c: New file.
27433 * lib/unicodeio.h, lib/unicodeio.c: New files.
27434 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
27435 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
27436 (noinst_HEADERS): Add unicodeio.h.
27437 (all-local, install-exec-local, charset.alias): New targets.
27439 2000-02-28 Paul Eggert <eggert@twinsun.com>
27441 * lib/quotearg.c (ALERT_CHAR): New macro.
27442 (quotearg_buffer_restyled): Use it.
27444 2000-02-27 Jim Meyering <meyering@lucent.com>
27446 * m4/check-decl.m4: Add getenv to the list.
27448 2000-02-27 Jim Meyering <meyering@lucent.com>
27450 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
27451 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
27453 * lib/backupfile.c: Guard inclusion of stdlib.h with
27454 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
27455 Declare malloc if needed.
27457 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
27458 `#ifndef HAVE_DECL..'
27459 now that autoconf always defines the HAVE_DECL_ symbols.
27460 * lib/human.c: Likewise.
27461 * lib/same.c: Likewise.
27462 * lib/strtoumax.c: Likewise.
27464 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
27465 declaration check was not run.
27466 * lib/hash.c: Likewise.
27467 * lib/human.c: Likewise.
27468 * lib/same.c: Likewise.
27469 * lib/strtoumax.c: Likewise.
27471 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
27472 `.', then first look up the entire `.'-containing string as a login
27475 2000-02-23 Jim Meyering <meyering@lucent.com>
27477 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
27478 in place of my hack.
27480 2000-02-18 Paul Eggert <eggert@twinsun.com>
27482 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
27483 (textint): New typedef.
27484 (parser_control): Member year changed from int to textint.
27486 (YYSTYPE): Removed; replaced by %union with int and textint members.
27487 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
27488 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
27489 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
27490 (tSNUMBER, tUNUMBER): Now of type <textintval>.
27491 (date, number, to_year): Use width of number in digits, not its value,
27492 to determine whether it's a 2-digit year, or a 2-digit time.
27493 (yylex): Store number of digits of numeric tokens.
27494 Reported by John Kendall.
27496 (parser_control): Changed from struct parser_control to typedef (for
27497 consistency). All uses changed.
27499 (tID): Removed; not used.
27500 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
27502 2000-02-14 Paul Eggert <eggert@twinsun.com>
27504 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
27505 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
27507 2000-02-12 Jim Meyering <meyering@lucent.com>
27509 * lib/userspec.c (ISDIGIT): Define it.
27510 (isdigit): Remove definition.
27511 (is_number): Use ISDIGIT, not isdigit.
27512 <libintl.h>: Include.
27513 (_ and N_): Define.
27514 (parse_user_spec): Mark translatable strings.
27516 2000-02-10 Jim Meyering <meyering@lucent.com>
27518 With these changes, nanosleep.[ch] are finally enough like the other
27519 lib/* replacement files to compile on a few more losing systems.
27521 * lib/nanosleep.h: Don't include config.h.
27522 Remove prototype from declaration of nanosleep.
27523 (PARAMS): Remove now-unneeded definition.
27524 * lib/nanosleep.c: #undef nanosleep.
27525 (rpl_nanosleep): Rename from nanosleep.
27527 2000-02-10 Jim Meyering <meyering@lucent.com>
27529 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
27530 gnu_nanosleep to rpl_nanosleep.
27532 2000-02-09 Jim Meyering <meyering@lucent.com>
27534 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
27535 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
27537 2000-02-08 Akim Demaille <akim@epita.fr>
27539 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
27540 `[' and `]' and remove uses of `changequote'.
27541 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
27542 (AC_SYS_LARGEFILE): Likewise.
27543 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27544 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
27546 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
27547 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
27548 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
27549 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
27551 2000-02-05 Jim Meyering <meyering@lucent.com>
27553 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
27554 Remove explicit use of AC_HEADER_TIME. It is required by
27555 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
27556 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
27557 in autoconf whereby the expansion of the latter ended up preceding
27558 the expansion of its prerequisite, AC_HEADER_TIME.
27559 Reported by Volker Borchert.
27561 2000-02-03 Jim Meyering <meyering@lucent.com>
27563 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
27565 2000-02-03 Jim Meyering <meyering@lucent.com>
27567 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
27568 rather than with `#if HAVE_UTMPNAME'.
27570 2000-02-02 Jim Meyering <meyering@lucent.com>
27572 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
27573 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
27574 Reported by Eli Zaretskii.
27576 2000-02-01 Jim Meyering <meyering@lucent.com>
27578 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
27580 2000-01-31 Jim Meyering <meyering@lucent.com>
27582 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
27583 functions. Add the time.h and sys/time.h headers along with the
27584 AC_REQUIRE'ment of AC_HEADER_TIME.
27586 2000-01-31 Jim Meyering <meyering@lucent.com>
27588 * lib/nanosleep.h (nanosleep): Guard declaration with
27589 `#if ! HAVE_DECL_NANOSLEEP'.
27590 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
27591 the declaration in that vendor's sys/timers.h.
27592 Reported by Christian Krackowizer.
27594 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
27595 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
27596 (ISPRINT): Likewise.
27597 Reported by Tom Tromey.
27599 2000-01-30 Jim Meyering <meyering@lucent.com>
27601 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
27603 * m4/prereq.m4 (utmp_includes): Define.
27604 Check for ut_user and ut_name members in both struct utmpx
27607 2000-01-30 Jim Meyering <meyering@lucent.com>
27609 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
27610 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
27611 header files where only utmpx.ut_user is declared.
27613 * lib/readutmp.h (UT_USER): Define.
27615 2000-01-29 Jim Meyering <meyering@lucent.com>
27617 * m4/lib-check.m4: New file containing library-related checks from
27618 fileutils and sh-utils (textutils had none).
27620 2000-01-28 Jim Meyering <meyering@lucent.com>
27622 * m4/perl.m4: Change format of warning message to look more like that
27623 from the missing script. Suggestion from François Pinard.
27625 2000-01-25 Jim Meyering <meyering@lucent.com>
27627 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
27628 well as time.h in the compile check.
27629 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
27630 Fix typo in cross-compiling case: s/yes/no/.
27632 2000-01-23 Jim Meyering <meyering@lucent.com>
27634 * m4/jm-macros.m4: Move df-related tests here from
27635 fileutils/configure.in
27637 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
27638 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
27640 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
27641 s/space/ac_fsusage_space/.
27642 (jm_FILE_SYSTEM_USAGE): Take two parameters.
27644 * m4/ftruncate.m4: New file (derived from part of
27645 fileutils/configure.in).
27646 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
27647 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
27649 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
27650 AC_SUBST these here, rather than just in sh-util/configure.in, so
27651 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
27653 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
27654 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
27655 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
27656 (AC_SUBST(POW_LIBM)): Likewise.
27657 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
27659 2000-01-23 Jim Meyering <meyering@lucent.com>
27661 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
27664 2000-01-22 Jim Meyering <meyering@lucent.com>
27666 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
27668 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
27670 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
27672 (AC_CHECK_HEADERS): Likewise for sh-utils.
27673 (AC_CHECK_HEADERS): Likewise for textutils.
27674 Merge the three lists of headers.
27676 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
27677 from fileutils' configure.in.
27679 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
27680 code. Moved tests into their own function (_jm_DECL_HEADERS) in
27683 * m4/check-decl.m4: Use #if rather than #ifdef.
27684 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
27685 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
27686 (_jm_DECL_HEADERS): Define new function.
27687 (jm_CHECK_DECLARATIONS): Require it.
27689 2000-01-22 Jim Meyering <meyering@lucent.com>
27691 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
27692 [! HAVE_DECL_STRTOULL]: Declare strtoull.
27693 Required for some AIX systems. Reported by Christian Krackowizer.
27694 [TESTING] (main): New function.
27696 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
27697 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
27700 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
27703 * lib/strverscmp.c (ISDIGIT): Define.
27704 (strverscmp): Use ISDIGIT, not isdigit.
27706 2000-01-19 Jim Meyering <meyering@lucent.com>
27708 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
27709 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
27710 defines `struct timespec' in <sys/time.h>
27712 * m4/c-bs-a.m4: Remove uses of changequote altogether.
27713 Thanks to Akim for explaining.
27715 2000-01-17 Paul Eggert <eggert@twinsun.com>
27717 * lib/nanosleep.c (nanosleep):
27718 Don't use SA_INTERRUPT to decide whether to call sigaction, as
27719 POSIX.1 doesn't require SA_INTERRUPT and some systems
27720 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
27721 it's been part of POSIX.1 since day 1 (in 1988).
27723 2000-01-17 Jim Meyering <meyering@lucent.com>
27725 * lib/interlock: Remove unused file. Reported by François Pinard.
27727 2000-01-16 Paul Eggert <eggert@twinsun.com>
27729 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
27730 alert, backslash, formfeed, and vertical tab unnecessarily in
27731 shell quoting style.
27733 2000-01-16 Jim Meyering <meyering@lucent.com>
27735 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
27736 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
27737 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
27738 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
27740 2000-01-16 Jim Meyering <meyering@lucent.com>
27742 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
27743 because the latter didn't work.
27745 2000-01-15 Jim Meyering <meyering@lucent.com>
27747 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
27748 (AC_REPLACE_FUNCS): Add memcpy and memset.
27749 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
27751 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
27753 2000-01-12 Jim Meyering <meyering@lucent.com>
27755 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
27756 (jm_PREREQ): Use it.
27757 (jm_PREREQ_READUTMP): New macro.
27758 (jm_PREREQ): Use it.
27760 2000-01-11 Paul Eggert <eggert@twinsun.com>
27762 Quote multibyte characters correctly.
27763 * m4/c-bs-a.m4: New file.
27764 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
27765 (jm_PREREQ): Use it.
27767 2000-01-11 Paul Eggert <eggert@twinsun.com>
27769 * m4/uintmax_t.m4: Port to autoconf 2.13.
27771 2000-01-08 Jim Meyering <meyering@ascend.com>
27773 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
27774 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
27776 2000-01-04 Jim Meyering <meyering@ascend.com>
27778 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
27779 jm_STRUCT_DIRENT_D_TYPE.
27780 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
27781 jm_STRUCT_DIRENT_D_INO.
27782 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
27784 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
27786 * m4/utime.m4: Likewise.
27788 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
27789 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
27791 2000-01-03 Paul Eggert <eggert@twinsun.com>
27793 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
27794 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
27796 2000-01-02 Jim Meyering <meyering@ascend.com>
27798 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
27799 remember if this is necessary.
27801 1999-12-26 Jim Meyering <meyering@ascend.com>
27803 * m4/jm-macros.m4: Use it here.
27804 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
27806 1999-12-23 Jim Meyering <meyering@ascend.com>
27808 * m4/jm-macros.m4: Check for clock_gettime (moved from
27809 fileutils/configure.in)
27810 Check for gettimeofday.
27812 1999-12-20 Jim Meyering <meyering@ascend.com>
27814 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
27815 autoconf-2.14a-1999-12-20.
27817 1999-12-19 Jim Meyering <meyering@ascend.com>
27819 * m4/lstat-slash.m4: New file.
27820 * m4/jm-macros.m4: Use the new macro:
27821 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
27823 1999-12-07 Jim Meyering <meyering@ascend.com>
27825 * m4/perl.m4: Require that File::Compare be available, too.
27826 Too many systems seem to lack it.
27828 * m4/strftime.m4: Add checks for most of the cpp macros tested in
27829 GNU's strftime.c. Prompted by a patch from Paul Eggert.
27831 1999-11-18 Paul Eggert <eggert@twinsun.com>
27833 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
27834 problem with the QNX 4.25 shell, which doesn't propagate exit
27835 status of failed commands inside shell assignments.
27837 1999-11-17 Jim Meyering <meyering@ascend.com>
27839 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
27841 1999-11-07 Jim Meyering <meyering@ascend.com>
27843 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
27845 1999-11-06 Jim Meyering <meyering@ascend.com>
27847 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
27848 * m4/jm-macros.m4 (jm_MACROS): Use it here.
27850 1999-11-05 Jim Meyering <meyering@ascend.com>
27852 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
27853 configure.in of textutils, fileutils, and sh-utils into this one
27854 (shared between those packages) file.
27855 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
27856 AC_STRUCT_ST_BLKSIZE.
27858 1999-11-03 Jim Meyering <meyering@ascend.com>
27860 * m4/ssize_t.m4: Remove file. No longer needed since the new version
27861 of AC_CHECK_TYPE checks includes unistd.h.
27862 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
27863 Suggestion from Akim Demaille.
27865 1999-10-30 Jim Meyering <meyering@ascend.com>
27867 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
27869 * m4/ls-mntd-fs.m4: Likewise.
27870 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
27871 * m4/jm-winsz1.m4: Likewise.
27873 * m4/const.m4: Remove file, since the fix made it into the experimental
27874 version of autoconf.
27875 * m4/mktime.m4: Likewise.
27877 * m4/check-type.m4: Remove file, now that the latest version of
27878 AC_CHECK_TYPE takes a third arg to specify additional #includes.
27880 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
27881 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
27884 1999-10-04 Jim Meyering <meyering@ascend.com>
27886 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
27888 1999-09-22 Paul Eggert <eggert@twinsun.com>
27890 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
27891 2.95.1 bug with HP-UX 10.20.
27893 1999-09-17 Jim Meyering <meyering@ascend.com>
27895 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
27896 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
27897 due to missing strdup (against sh-utils-2.0).
27899 1999-08-29 Jim Meyering <meyering@ascend.com>
27901 * m4/jm-macros.m4: Require jm_BISON.
27902 * m4/bison.m4: New file.
27904 1999-08-17 Paul Eggert <eggert@twinsun.com>
27906 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
27907 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
27909 1999-08-05 Jim Meyering <meyering@ascend.com>
27911 * m4/getline.m4: Rename test file from conftestdata to conftest.data
27912 to avoid conflicts with `conftest' on 8+3 filesystems.
27913 Suggestion from Eli Zaretskii.
27915 1999-08-04 Jim Meyering <meyering@ascend.com>
27917 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
27918 fileutils and sh-utils (textutils's getline test was inadequate).
27919 (AM_FUNC_GETLINE): Run this test.
27920 (AC_CHECK_FUNCS): Check for getdelim.
27921 Reported by Bob Proulx.
27923 1999-08-02 Jim Meyering <meyering@ascend.com>
27925 * m4/jm-macros.m4: Add a comment.
27927 1999-08-01 Paul Eggert <eggert@twinsun.com>
27929 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
27930 <inttypes.h> defines strtoumax as a macro (and not as a
27933 1999-08-01 Paul Eggert <eggert@twinsun.com>
27935 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
27936 that we can shift, multiply and divide unsigned long long
27937 values; Ultrix cc can't do it.
27939 1999-08-01 Paul Eggert <eggert@twinsun.com>
27941 * m4/mktime.m4: New file, which is a preview of what should appear
27942 in the next public autoconf release.
27944 1999-08-01 Paul Eggert <eggert@twinsun.com>
27946 * m4/lfs.m4: Remove this file.
27947 * m4/largefile.m4: New file. It contains the old contents of
27948 lfs.m4, except that all names with prefix AC_LFS have been
27949 changed to use the prefix AC_SYS_LARGEFILE instead, to be
27950 compatible with future autoconf versions. Also, some minor m4
27951 quoting problems have been fixed.
27953 1999-08-01 Paul Eggert <eggert@twinsun.com>
27955 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
27956 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
27957 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
27958 and simplify the shell code.
27960 1999-08-01 Jim Meyering <meyering@ascend.com>
27962 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
27965 1999-07-20 Jim Meyering <meyering@ascend.com>
27967 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
27969 1999-07-15 Jim Meyering <meyering@ascend.com>
27971 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
27973 1999-05-22 Jim Meyering <meyering@ascend.com>
27975 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
27977 1999-05-20 Jim Meyering <meyering@ascend.com>
27979 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
27980 Add a colon after each `then' in case $4 is empty.
27982 1999-05-16 Jim Meyering <meyering@ascend.com>
27984 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
27986 1999-05-10 Jim Meyering <meyering@ascend.com>
27988 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
27990 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
27993 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
27995 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
27997 1999-05-04 Paul Eggert <eggert@twinsun.com>
27999 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
28000 not CPPFLAGS, so that linking works correctly in IRIX.
28002 1999-04-30 Paul Eggert <eggert@twinsun.com>
28004 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
28006 1999-04-20 Paul Eggert <eggert@twinsun.com>
28008 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
28009 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
28010 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
28011 jm_AC_TYPE_UNSIGNED_LONG_LONG.
28012 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
28014 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
28016 1999-04-20 Jim Meyering <meyering@ascend.com>
28018 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
28019 AC_REPLACE xstroull if necessary. From Paul Eggert.
28020 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
28022 1999-04-18 Jim Meyering <meyering@ascend.com>
28024 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
28025 * m4/jm-macros.m4: Use it.
28027 1999-04-06 Jim Meyering <meyering@ascend.com>
28029 * m4/strftime.m4: Remove test for %f.
28031 1999-03-29 Jim Meyering <meyering@ascend.com>
28033 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
28034 superset of the AC_TYPE_* checks in the textutils, fileutils,
28035 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
28038 1999-03-28 Jim Meyering <meyering@ascend.com>
28040 * m4/jm-macros.m4: Define GNU_PACKAGE here.
28041 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
28042 replaced e.g., in the *.sh files of the sh-utils.
28044 1999-03-20 Jim Meyering <meyering@ascend.com>
28046 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
28047 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
28048 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
28050 1999-03-19 Jim Meyering <meyering@ascend.com>
28052 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
28054 1999-03-12 Jim Meyering <meyering@ascend.com>
28056 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
28058 1999-03-07 Jim Meyering <meyering@ascend.com>
28060 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
28063 1999-02-17 Jim Meyering <meyering@ascend.com>
28065 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
28066 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
28068 1999-02-07 Jim Meyering <meyering@ascend.com>
28070 * m4/group-member.m4: New file -- extracted from sh-utils'
28073 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
28074 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
28076 1999-02-06 Jim Meyering <meyering@ascend.com>
28078 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
28079 * m4/fnmatch.m4: Likewise.
28080 * m4/getgroups.m4: Likewise.
28081 * m4/lstat.m4: Likewise.
28082 * m4/malloc.m4: Likewise.
28083 * m4/putenv.m4: Likewise.
28084 * m4/realloc.m4: Likewise.
28085 * m4/regex.m4: Likewise.
28086 * m4/stat.m4: Likewise.
28087 * m4/strftime.m4: Likewise.
28088 Suggestion from Alain Magloire.
28090 * m4/chown.m4: Use `.$ac_objext', not `.o'.
28091 * m4/fnmatch.m4: Likewise.
28092 * m4/getgroups.m4: Likewise.
28093 * m4/getline.m4: Likewise.
28094 * m4/lstat.m4: Likewise.
28095 * m4/malloc.m4: Likewise.
28096 * m4/memcmp.m4: Likewise.
28097 * m4/putenv.m4: Likewise.
28098 * m4/realloc.m4: Likewise.
28099 * m4/regex.m4: Likewise.
28100 * m4/stat.m4: Likewise.
28101 * m4/strftime.m4: Likewise.
28102 Suggestion from Alain Magloire.
28104 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
28107 * m4/regex.m4: Add a run-time Test for proper operation of
28108 re_compile_pattern.
28110 1999-01-31 Jim Meyering <meyering@ascend.com>
28112 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
28114 1999-01-30 Jim Meyering <meyering@ascend.com>
28116 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
28118 * m4/jm-mktime.m4: Make this a wrapper around the official
28119 AM_FUNC_MKTIME rather than my private copy, now that the official one
28121 * m4/mktime.m4: Remove file.
28123 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
28124 * m4/uptime.m4: Likewise.
28125 * m4/uintmax_t.m4: Likewise.
28127 1999-01-28 Jim Meyering <meyering@ascend.com>
28129 * m4/jm-macros.m4: Use jm_AFS.
28130 * m4/afs.m4: New file (from fileutils' configure.in).
28132 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
28133 * m4/chown.m4: Likewise.
28134 * m4/d-ino.m4: Likewise.
28135 * m4/d-type.m4: Likewise.
28136 * m4/fnmatch.m4: Likewise.
28137 * m4/getgroups.m4: Likewise.
28138 * m4/gettext.m4: Likewise.
28139 * m4/jm-mktime.m4: Likewise.
28140 * m4/jm-winsz2.m4: Likewise.
28141 * m4/lcmessage.m4: Likewise.
28142 * m4/ls-mntd-fs.m4: Likewise.
28143 * m4/malloc.m4: Likewise.
28144 * m4/memcmp.m4: Likewise.
28145 * m4/putenv.m4: Likewise.
28146 * m4/realloc.m4: Likewise.
28147 * m4/st_mtim.m4: Likewise.
28148 * m4/strftime.m4: Likewise.
28150 1999-01-16 Jim Meyering <meyering@ascend.com>
28152 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
28153 (ARGMATCH_DIE_DECL): Define.
28155 1999-01-12 Jim Meyering <meyering@ascend.com>
28157 * m4/Makefile.am.in: Rewrite to avoid using fmt.
28158 Reported by Lars Hecking.
28160 1999-01-10 Jim Meyering <meyering@ascend.com>
28162 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
28164 * m4/inttypes_h.m4: Likewise.
28165 * m4/lstat.m4: Likewise.
28166 * m4/malloc.m4: Likewise.
28167 * m4/readdir.m4: Likewise.
28168 * m4/realloc.m4: Likewise.
28169 * m4/st_dm_mode.m4: Likewise.
28170 * m4/stat.m4: Likewise.
28171 * m4/utimbuf.m4: Likewise.
28172 * m4/utimes.m4: Likewise.
28174 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
28175 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
28176 comments in config.h.in are meaningful.
28178 * m4/jm-macros.m4: Require autoconf-2.13 here.
28180 * m4/regex.m4: By default, don't use the included regex.c on systems
28181 with glibc 2. Suggestion from Uli Drepper.
28183 1999-01-02 Jim Meyering <meyering@ascend.com>
28185 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
28187 1998-12-18 Jim Meyering <meyering@ascend.com>
28189 * m4/Makefile.am.in (Makefile.am): Simplify rule.
28190 Based on a suggestion from Lars Hecking.
28192 1998-11-16 Paul Eggert <eggert@twinsun.com>
28194 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
28196 1998-11-16 Jim Meyering <meyering@ascend.com>
28198 * m4/lfs.m4: Double-quote the `uname...` expression.
28200 1998-11-14 Jim Meyering <meyering@ascend.com>
28202 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
28203 * m4/stat.m4: Likewise.
28205 1998-11-03 Jim Meyering <meyering@ascend.com>
28207 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
28208 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
28210 1998-10-18 Jim Meyering <meyering@ascend.com>
28212 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
28214 1998-10-17 Jim Meyering <meyering@ascend.com>
28216 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
28217 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
28218 calls for those previously hard-coded headers. Instead, take a new
28220 (jm_CHECK_DECLARATIONS): Reflect interface change.
28221 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
28222 (jm_CHECK_DECL_LOCALTIME_R): New macro.
28224 * m4/mktime.m4: Test for spring-forward gap before long-running test.
28226 1998-10-14 Jim Meyering <meyering@ascend.com>
28228 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
28229 instead of "TZ=America/Vancouver". From Paul Eggert.
28231 1998-10-11 Jim Meyering <meyering@ascend.com>
28233 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
28234 This adds a test for a recently added compatibility fix for mktime.c.
28235 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
28237 1998-09-27 Jim Meyering <meyering@ascend.com>
28239 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
28241 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
28242 ../configure.in, including a change from Gordon Matzigkeit to allow
28243 cross-compiling for the Hurd.
28245 * m4/glibc.m4: New file/macro to test for the GNU C Library
28246 versions 1 and 2. From Gordon Matzigkeit.
28249 1998-09-21 Jim Meyering <meyering@ascend.com>
28251 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
28253 1998-08-18 Paul Eggert <eggert@twinsun.com>
28255 Port nanosecond-resolution times to UnixWare 2.1.2 and
28256 pedantic Solaris 2.6.
28258 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
28260 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
28261 Generate name of ns member, instead of just 1 or undef.
28262 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
28264 1998-08-15 Jim Meyering <meyering@ascend.com>
28266 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
28267 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
28268 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
28269 instead of jm_TYPE_SSIZE_T.
28271 1998-08-12 Jim Meyering <meyering@ascend.com>
28273 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
28275 1998-08-02 Jim Meyering <meyering@ascend.com>
28277 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
28278 in acconfig.h manually.
28280 1998-07-31 Paul Eggert <eggert@twinsun.com>
28282 * m4/st_mtim.m4: New file.
28284 1998-07-28 Jim Meyering <meyering@ascend.com>
28286 * m4/utimes.m4: Undef stat.
28288 1998-07-25 Jim Meyering <meyering@ascend.com>
28290 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
28291 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
28293 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
28295 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
28296 uid and gid actually remain unchanged.
28298 1998-07-07 Jim Meyering <meyering@ascend.com>
28300 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
28302 1998-07-04 Jim Meyering <meyering@ascend.com>
28304 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
28305 to prove that this macro can be used in packages without regex.c.
28307 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
28309 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
28312 1998-07-03 Jim Meyering <meyering@ascend.com>
28314 * m4/gettext.m4: Add -lintl if it's found to be necessary.
28316 * m4/gettext.m4: New file -- from gettext-0.10.35.
28317 * m4/lcmessage.m4: Likewise.
28318 * m4/progtest.m4: Likewise.
28320 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
28321 * m4/jm-macros.m4: Require the new macro.
28323 1998-06-29 Jim Meyering <meyering@ascend.com>
28325 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
28326 for the definition of NGROUPS (used in a system header included
28329 1998-06-28 Jim Meyering <meyering@ascend.com>
28331 * m4/ls-mntd-fs.m4: New file.
28332 * m4/fstypename.m4: New file.
28334 * m4/jm-macros.m4: Require the new macro.
28335 * m4/jm-glibc-io.m4: New file.
28337 1998-05-19 Jim Meyering <meyering@ascend.com>
28339 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
28340 * m4/lchown.m4: New file.
28342 * m4/Makefile.am.in: New file.
28343 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
28345 1998-05-14 Jim Meyering <meyering@ascend.com>
28347 * m4/Makefile.am (EXTRA_DIST): Add them.
28348 * m4/jm-macros.m4: New file.
28349 * m4/utimbuf.m4: New file.
28351 1998-05-12 Jim Meyering <meyering@ascend.com>
28353 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
28355 1998-05-11 Jim Meyering <meyering@ascend.com>
28357 * m4/isc-posix.m4: New file.
28359 1998-05-10 Jim Meyering <meyering@ascend.com>
28361 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
28363 1998-05-09 Jim Meyering <meyering@ascend.com>
28365 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
28366 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
28369 * m4/ssize_t.m4: New file.
28370 * m4/mktime.m4: Remove file -- the new automake has this now.
28372 1998-04-26 Jim Meyering <meyering@ascend.com>
28374 * m4/assert.m4: New file.
28375 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
28377 1998-04-05 Jim Meyering <meyering@ascend.com>
28379 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
28380 (jm_PREREQ): Use it here.
28382 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
28384 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
28387 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
28389 * m4/prereq.m4: New file.
28390 * m4/error.m4: New file.
28391 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
28393 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
28395 * m4/getline.m4: Don't set am_cv_func_working_getline before the
28396 cache-check for the same variable -- that defeated the purpose of
28397 the test; the test program was never run. This was a problem only
28398 on systems with losing getline functions -- HP-UX 10.20 is one.
28399 Reported by Bjorn Helgaas.
28401 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
28403 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
28405 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
28407 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
28409 * m4/const.m4: New file. Use an initializer in this declaration
28410 typedef int charset[2]; const charset x;
28411 Reported by Bob Glickstein.
28413 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
28415 * m4/chown.m4: Fix reversed types on -1 args to chown.
28418 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
28420 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
28421 Add lseek and memchr.
28423 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
28424 T.E.Dickey <dickey@clark.net> said that some older preprocessors
28425 have a 20-character limit on names.
28427 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
28429 * m4/inttypes_h.m4: New file.
28430 * m4/uintmax_t.m4: New file.
28431 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
28433 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
28434 Free Software Foundation, Inc.
28435 Copying and distribution of this file, with or without modification,
28436 are permitted provided the copyright notice and this notice are preserved.