1 2007-03-10 Bruno Haible <bruno@clisp.org>
3 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
5 2007-03-10 Bruno Haible <bruno@clisp.org>
7 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
9 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
10 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
11 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
13 2007-03-10 Bruno Haible <bruno@clisp.org>
15 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
17 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
20 2007-03-09 Eric Blake <ebb9@byu.net>
21 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
23 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
24 types are not being provided by gnulib.
25 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
28 2007-03-10 Bruno Haible <bruno@clisp.org>
30 * lib/stdio_.h (__attribute__): New macro.
31 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
32 vsprintf): Specify __attribute__ __format__ for GCC.
33 Suggested by Eric Blake.
35 2007-03-09 Bruno Haible <bruno@clisp.org>
37 * modules/printf-posix-tests: New file.
38 * tests/test-printf-posix.sh: New file.
39 * tests/test-printf-posix.c: New file.
41 * modules/printf-posix: New file.
42 * lib/printf.c: New file.
43 * m4/printf-posix-rpl.m4: New file.
44 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
46 * lib/stdio_.h (printf): New declaration.
47 (format, __format__, ____printf____, ____scanf____, ____strftime____,
48 ____strfmon____): New macros.
49 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
52 2007-03-09 Bruno Haible <bruno@clisp.org>
54 * tests/test-vasnprintf-posix2.sh: New file.
55 * tests/test-vasnprintf-posix2.c: New file.
56 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
57 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
58 (Makefile.am): Activate test-vasnprintf-posix2.sh.
60 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
61 a locale dependent decimal point, rather than always '.'.
63 2007-03-09 Eric Blake <ebb9@byu.net>
65 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
66 spite of platforms like Tandem/NSK that define it to -1.
68 2007-03-08 Bruno Haible <bruno@clisp.org>
70 * modules/vprintf-posix-tests: New file.
71 * tests/test-vprintf-posix.sh: New file.
72 * tests/test-vprintf-posix.c: New file.
73 * tests/test-printf-posix.h: New file.
75 * modules/vprintf-posix: New file.
76 * lib/vprintf.c: New file.
77 * m4/vprintf-posix.m4: New file.
78 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
80 * lib/stdio_.h (vprintf): New declaration.
81 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
84 2007-03-08 Bruno Haible <bruno@clisp.org>
86 * modules/fprintf-posix-tests: New file.
87 * tests/test-fprintf-posix.sh: New file.
88 * tests/test-fprintf-posix.c: New file.
90 * modules/fprintf-posix: New file.
91 * lib/fprintf.c: New file.
92 * m4/fprintf-posix.m4: New file.
93 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
95 * lib/stdio_.h (fprintf): New declaration.
96 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
99 2007-03-08 Bruno Haible <bruno@clisp.org>
101 * modules/vfprintf-posix-tests: New file.
102 * tests/test-vfprintf-posix.sh: New file.
103 * tests/test-vfprintf-posix.c: New file.
104 * tests/test-fprintf-posix.h: New file.
105 * tests/test-fprintf-posix.out: New file.
107 * modules/vfprintf-posix: New file.
108 * lib/vfprintf.c: New file.
109 * m4/vfprintf-posix.m4: New file.
110 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
112 * lib/stdio_.h (vfprintf): New declaration.
113 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
116 2007-03-08 Bruno Haible <bruno@clisp.org>
118 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
120 2007-03-08 Bruno Haible <bruno@clisp.org>
122 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
123 instead of 'expr' invocations.
124 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
125 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
126 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
127 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
128 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
129 Suggested by Paul Eggert.
131 2007-03-08 Bruno Haible <bruno@clisp.org>
133 * modules/fseterr-tests: New file.
134 * tests/test-fseterr.c: New file.
136 * modules/fseterr: New file.
137 * lib/fseterr.h: New file.
138 * lib/fseterr.c: New file.
140 2007-03-08 Bruno Haible <bruno@clisp.org>
142 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
143 * lib/getopt_.h: Likewise.
144 * lib/mbswidth.h: Likewise.
145 * lib/setenv.h: Likewise.
146 * lib/vasnprintf.h: Likewise.
147 * lib/vasprintf.h: Likewise.
148 * lib/verror.h: Likewise.
149 * lib/xsetenv.h: Likewise.
150 * lib/xvasprintf.h: Likewise.
152 2007-03-08 Jim Meyering <jim@meyering.net>
154 * users.txt: Add parted.
156 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
158 2007-03-07 Bruno Haible <bruno@clisp.org>
160 * m4/printf.m4: Make the shell script snippets copy&pastable.
162 2007-03-02 Bruno Haible <bruno@clisp.org>
164 * lib/netinet_in_.h: New file.
165 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
166 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
167 * modules/netinet_in (Files): Add lib/netinet_in_.h.
168 (Depends-on): Add absolute-header.
169 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
172 2007-03-03 Bruno Haible <bruno@clisp.org>
174 * lib/sys_select_.h: New file.
175 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
176 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
177 * modules/sys_select (Files): Add lib/sys_select_.h.
178 (Depends-on): Add absolute-header.
179 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
182 2007-03-02 Bruno Haible <bruno@clisp.org>
184 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
185 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
187 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
188 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
189 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
190 * modules/sys_socket (Depends-on): Add absolute-header.
191 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
192 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
193 (Include): Remove requirement of inclusion of <sys/types.h>.
195 2007-03-02 Bruno Haible <bruno@clisp.org>
197 * lib/byteswap_.h (bswap_32): Fix formula.
199 2007-03-06 Bruno Haible <bruno@clisp.org>
201 * modules/sprintf-posix-tests: New file.
202 * tests/test-sprintf-posix.c: New file.
204 * modules/sprintf-posix: New file.
205 * lib/sprintf.c: New file.
206 * m4/sprintf-posix.m4: New file.
207 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
209 * lib/stdio_.h (sprintf): New declaration.
210 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
213 2007-03-06 Bruno Haible <bruno@clisp.org>
215 * modules/vsprintf-posix-tests: New file.
216 * tests/test-vsprintf-posix.c: New file.
217 * tests/test-sprintf-posix.h: New file.
219 * modules/vsprintf-posix: New file.
220 * lib/vsprintf.c: New file.
221 * m4/vsprintf-posix.m4: New file.
222 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
224 * lib/stdio_.h (vsprintf): New declaration.
225 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
228 2007-03-06 Bruno Haible <bruno@clisp.org>
230 * modules/vsnprintf (Depend-on): Remove minmax.
232 2007-03-06 Bruno Haible <bruno@clisp.org>
234 * modules/snprintf-posix-tests: New file.
235 * tests/test-snprintf-posix.c: New file.
237 * modules/snprintf-posix: New file.
238 * m4/snprintf-posix.m4: New file.
239 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
241 (gl_FUNC_SNPRINTF): Invoke it.
242 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
243 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
245 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
247 2007-03-06 Bruno Haible <bruno@clisp.org>
249 * modules/vsnprintf-posix-tests: New file.
250 * tests/test-vsnprintf-posix.c: New file.
251 * tests/test-snprintf-posix.h: New file.
253 * modules/vsnprintf-posix: New file.
254 * m4/vsnprintf-posix.m4: New file.
255 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
257 (gl_FUNC_VSNPRINTF): Invoke it.
258 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
259 * lib/stdio_.h (vsnprintf): Define as a replacement if
260 REPLACE_VSNPRINTF is set.
261 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
263 2007-03-06 Bruno Haible <bruno@clisp.org>
265 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
266 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
268 2007-03-06 Bruno Haible <bruno@clisp.org>
270 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
271 (asinl): Declare also if HAVE_DECL_ASINL is set.
272 (atanl): Declare also if HAVE_DECL_ATANL is set.
273 (ceill): Declare also if HAVE_DECL_CEILL is set.
274 (cosl): Declare also if HAVE_DECL_COSL is set.
275 (expl): Declare also if HAVE_DECL_EXPL is set.
276 (floorl): Declare also if HAVE_DECL_FLOORL is set.
277 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
278 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
279 (logl): Declare also if HAVE_DECL_LOGL is set.
280 (sinl): Declare also if HAVE_DECL_SINL is set.
281 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
282 (tanl): Declare also if HAVE_DECL_TANL is set.
283 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
284 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
285 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
286 declaration of frexpl, ldexpl.
287 * modules/printf-frexpl (Depends-on): Add math.
288 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
290 2007-03-05 Bruno Haible <bruno@clisp.org>
292 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
293 frexpl and ldexpl are declared.
294 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
296 2007-03-05 Bruno Haible <bruno@clisp.org>
298 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
299 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
301 2007-03-05 Bruno Haible <bruno@clisp.org>
303 * lib/stdio_.h: Include <stddef.h>.
305 2007-03-05 Bruno Haible <bruno@clisp.org>
307 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
309 2007-03-05 Bruno Haible <bruno@clisp.org>
311 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
312 NetBSD 4, from Ralf Wildenhues.
314 2007-03-04 Bruno Haible <bruno@clisp.org>
316 * lib/vasprintf.h: Update #if logic for the case when the functions
317 exist but are overridden.
319 2007-03-04 Bruno Haible <bruno@clisp.org>
321 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
322 implementations: glibc-2.4 and MacOS X 10.3.
323 * tests/test-vasnprintf-posix.c (test_function): Test also the case
324 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
325 * tests/test-vasprintf-posix.c (test_function): Likewise.
327 2007-03-04 Bruno Haible <bruno@clisp.org>
329 * modules/vasprintf-posix-tests: New file.
330 * tests/test-vasprintf-posix.c: New file.
332 * modules/vasprintf-posix: New file.
333 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
335 * m4/vasprintf-posix.m4: New file.
336 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
338 (gl_FUNC_VASPRINTF): Invoke it.
339 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
341 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
343 2007-03-04 Bruno Haible <bruno@clisp.org>
345 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
346 REPLACE_GETTIMEOFDAY.
347 * modules/sys_time (Makefile.am): Likewise.
348 * m4/sys_time_h.m4: Likewise.
349 * m4/gettimeofday.m4: Likewise.
351 2007-03-04 Bruno Haible <bruno@clisp.org>
353 * modules/vasnprintf-posix-tests: New file.
354 * tests/test-vasnprintf-posix.c: New file.
356 * modules/vasnprintf-posix: New file.
357 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
359 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
360 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
361 REPLACE_VASNPRINTF is defined.
362 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
364 (gl_FUNC_VASNPRINTF): Invoke it.
365 * m4/vasnprintf-posix.m4: New file.
366 * m4/printf.m4: New file.
368 2007-03-04 Bruno Haible <bruno@clisp.org>
370 Compile progreloc.c only if --enable-relocatable is specified.
371 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
372 if --enable-relocatable was specified.
373 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
376 2007-03-04 Jim Meyering <jim@meyering.net>
378 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
379 Use it consistently, rather than enumerating errno constants.
381 2007-03-04 Bruno Haible <bruno@clisp.org>
383 * modules/xvasprintf-tests: New file.
384 * tests/test-xvasprintf.c: New file.
386 * modules/vasprintf-tests: New file.
387 * tests/test-vasprintf.c: New file.
389 * modules/vasnprintf-tests: New file.
390 * tests/test-vasnprintf.c: New file.
392 * modules/vsnprintf-tests: New file.
393 * tests/test-vsnprintf.c: New file.
395 * modules/snprintf-tests: New file.
396 * tests/test-snprintf.c: New file.
398 2007-03-04 Bruno Haible <bruno@clisp.org>
400 Compile relocatable.c only if --enable-relocatable is specified.
401 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
402 gl_RELOCATABLE_LIBRARY.
403 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
404 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
405 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
406 gl_RELOCATABLE_LIBRARY.
407 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
408 (Makefile.am): Remove lib_SOURCES.
409 * modules/relocatable-lib-lgpl (configure.ac): Invoke
410 gl_RELOCATABLE_LIBRARY.
411 (Makefile.am): Remove lib_SOURCES.
412 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
414 * modules/relocatable-prog-wrapper (configure.ac): Invoke
415 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
417 2007-03-04 Bruno Haible <bruno@clisp.org>
419 * modules/argmatch-tests: New file.
420 * tests/test-argmatch.c: New file.
422 * tests/test-allocsa.c (main): Halve the number of loop runs.
424 * modules/alloca-opt-tests: New file.
425 * tests/test-alloca-opt.c: New file.
427 2007-03-04 Jim Meyering <jim@meyering.net>
429 Work around difference between Linux ACLs and Solaris 10 ZFS.
430 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
433 2007-03-03 Bruno Haible <bruno@clisp.org>
435 * modules/relocatable-prog (Depends-on): Add back progreloc's
436 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
438 2007-03-03 Bruno Haible <bruno@clisp.org>
440 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
441 * modules/relocatable-lib: New file.
443 2007-03-03 Bruno Haible <bruno@clisp.org>
445 * modules/relocatable-prog: Renamed from modules/relocatable.
446 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
448 2007-03-03 Bruno Haible <bruno@clisp.org>
450 * modules/relocatable-script (Files): Add doc/relocatable.texi,
451 m4/relocatable-lib.m4.
452 (Depends-on): Remove 'relocatable'.
453 (configure.ac): Add gl_RELOCATABLE_NOP.
455 2007-03-03 Bruno Haible <bruno@clisp.org>
457 * modules/relocatable-prog-wrapper: New file.
458 * modules/relocatable (Depends-on): Add it. Remove all other
459 dependencies except progname.
460 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
462 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
463 (gl_FUNC_STRERROR): Nop.
464 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
466 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
467 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
469 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
470 (gl_FUNC_READLINK): Update.
472 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
474 2007-03-03 Bruno Haible <bruno@clisp.org>
476 * lib/xreadlink.c: Include <unistd.h> unconditionally.
477 * modules/xreadlink (Depends-on): Add unistd.
478 * modules/xreadlink-with-size (Depends-on): Likewise.
480 2007-03-03 Bruno Haible <bruno@clisp.org>
482 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
483 extracted from gt_FUNC_SETENV.
484 (gt_FUNC_SETENV): Remove macro.
485 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
486 remove gt_FUNC_SETENV.
488 2007-03-03 Bruno Haible <bruno@clisp.org>
490 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
491 ENABLE_RELOCATABLE here.
492 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
494 2007-03-03 Bruno Haible <bruno@clisp.org>
496 * modules/rbtreehash-list-tests (Depends-on): Add progname.
497 * tests/test-rbtreehash_list.c: Include progname.h.
498 (main): Call set_program_name.
500 * modules/rbtree-oset-tests (Depends-on): Add progname.
501 * tests/test-rbtree_oset.c: Include progname.h.
502 (main): Call set_program_name.
504 * modules/rbtree-list-tests (Depends-on): Add progname.
505 * tests/test-rbtree_list.c: Include progname.h.
506 (main): Call set_program_name.
508 * modules/linked-list-tests (Depends-on): Add progname.
509 * tests/test-linked_list.c: Include progname.h.
510 (main): Call set_program_name.
512 2007-03-03 Bruno Haible <bruno@clisp.org>
514 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
515 All uses of __restrict changed to _Restrict_.
516 * lib/glob_.h (__restrict): Remove macro.
518 2007-03-02 Bruno Haible <bruno@clisp.org>
520 * modules/gettext (configure.ac): Require gettext infrastructure
523 2007-03-02 Bruno Haible <bruno@clisp.org>
525 * modules/linkedhash-list-tests (Depends-on): Add progname.
526 * tests/test-linkedhash_list.c: Include progname.h.
527 (main): Call set_program_name.
529 * modules/carray-list-tests (Depends-on): Add progname.
530 * tests/test-carray_list.c: Include progname.h.
531 (main): Call set_program_name.
533 * modules/avltreehash-list-tests (Depends-on): Add progname.
534 * tests/test-avltreehash_list.c: Include progname.h.
535 (main): Call set_program_name.
537 * modules/avltree-oset-tests (Depends-on): Add progname.
538 * tests/test-avltree_oset.c: Include progname.h.
539 (main): Call set_program_name.
541 * modules/avltree-list-tests (Depends-on): Add progname.
542 * tests/test-avltree_list.c: Include progname.h.
543 (main): Call set_program_name.
545 * modules/array-oset-tests (Depends-on): Add progname.
546 * tests/test-array_oset.c: Include progname.h.
547 (main): Call set_program_name.
549 * modules/array-list-tests (Depends-on): Add progname.
550 * tests/test-array_list.c: Include progname.h.
551 (main): Call set_program_name.
553 * modules/argp-tests (Depends-on): Add progname.
554 * tests/test-argp.c: Include argp.h first. Include progname.h.
555 (main): Call set_program_name.
557 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
559 * doc/gnulib-tool.texi (Initial import): Reword description of
560 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
561 limited effect even if defined after the first system include.
563 2007-03-01 Bruno Haible <bruno@clisp.org>
565 * build-aux/config.libpath: Update to libtool-1.5.22.
566 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
568 2007-03-01 Bruno Haible <bruno@clisp.org>
570 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
572 Reported by Ralf Wildenhues.
574 2007-03-01 Bruno Haible <bruno@clisp.org>
576 * build-aux/install-reloc: Remove object files left over by some
578 Reported by Ralf Wildenhues.
580 2007-03-01 Bruno Haible <bruno@clisp.org>
582 * build-aux/install-reloc: Break long lines.
584 2007-03-01 Bruno Haible <bruno@clisp.org>
586 * doc/relocatable.texi: Document that it may not work on OpenBSD.
587 Reported by Ralf Wildenhues.
589 2007-03-01 Bruno Haible <bruno@clisp.org>
591 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
592 include ordering constraints.
594 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
596 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
597 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
598 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
600 * lib/time_.h: Fix misspelling.
601 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
602 Require gl_HEADER_TIME_H_DEFAULTS.
603 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
604 * m4/time_r.m4 (gl_TIME_R): Likewise.
605 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
607 2007-03-01 Bruno Haible <bruno@clisp.org>
609 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
610 * m4/utimens.m4 (gl_UTIMENS): Likewise.
612 2007-03-01 Jim Meyering <jim@meyering.net>
614 * modules/xreadlink (Maintainer): Add my name.
615 * modules/xreadlink-with-size (Depends-on): Alphabetize.
617 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
618 Bruno Haible <bruno@clisp.org>
620 * build-aux/install-reloc: Compile also c-ctype.c.
621 * build-aux/relocatable.sh.in: New file.
622 * doc/relocatable.texi: New file.
623 * doc/relocatable-maint.texi: New file.
624 * doc/gnulib.texi: Include relocatable-maint.texi.
625 * lib/progreloc.c: Include unistd.h unconditionally.
626 * lib/relocwrapper.c: Include unistd.h unconditionally.
628 (add_dotbin): Use c_tolower.
629 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
630 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
631 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
632 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
633 to m4/relocatable-lib.m4.
634 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
635 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
636 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
637 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
638 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
639 * modules/relocatable: New file.
640 * modules/relocatable-lib: New file.
641 * modules/relocatable-script: New file.
643 2007-02-28 Bruno Haible <bruno@clisp.org>
645 Import --enable-relocatable infrastructure.
646 * build-aux/config.libpath: New file, from GNU gettext.
647 * build-aux/install-reloc: New file, from GNU gettext.
648 * build-aux/reloc-ldflags: New file, from GNU gettext.
649 * lib/relocatable.h: New file, from GNU gettext.
650 * lib/relocatable.c: New file, from GNU gettext.
651 * lib/relocwrapper.c: New file, from GNU gettext.
652 * m4/relocatable.m4: New file, from GNU gettext.
654 2007-02-28 Bruno Haible <bruno@clisp.org>
656 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
658 * modules/xreadlink: New file, from GNU gettext with modifications.
659 * lib/xreadlink.c: New file, from GNU gettext.
660 * lib/xreadlink.h: Add comments.
661 (xreadlink): New declaration.
663 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
664 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
665 lib/xreadlink-with-size.c.
666 (configure.ac): Remove gl_XREADLINK invocation.
667 (Makefile.am): Augment lib_SOURCES.
668 * m4/xreadlink.m4: Remove file.
669 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
670 (xreadlink_with_size): Renamed from xreadink.
671 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
672 * modules/canonicalize (Depends-on): Replace xreadlink with
674 * lib/canonicalize.c (canonicalize_filename_mode): Update.
676 2007-02-25 Jim Meyering <jim@meyering.net>
678 * build-aux/announce-gen: When complaining about excess arguments,
681 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
683 * README: Document signed integer overflow situation more
686 2007-02-25 Bruno Haible <bruno@clisp.org>
688 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
689 'a' or 'A' conversion.
691 2007-02-25 Bruno Haible <bruno@clisp.org>
693 * modules/filename: Renamed from modules/pathname.
694 (Files): Replace lib/pathname.h with lib/filename.h. Replace
695 lib/concatpath.c with lib/concat-filename.c.
696 (Makefile.am): Update.
697 (Include): Replace pathname.h with filename.h.
698 * lib/filename.h: Renamed from lib/pathname.h.
699 (concatenated_filename): Renamed from concatenated_pathname.
700 * lib/concat-filename.c: Renamed from lib/concatpath.c.
701 (concatenated_filename): Renamed from concatenated_pathname.
702 * lib/findprog.c: Include filename.h instead of pathname.h.
703 (find_in_path): Update.
704 * lib/javacomp.c: Include filename.h instead of pathname.h.
705 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
706 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
707 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
708 is_oldgcj_14_13_usable, is_javac_usable): Update.
709 * lib/javaexec.c: Include filename.h instead of pathname.h.
710 (execute_java_class): Update.
711 * modules/findprog: Update.
712 * modules/javacomp: Update.
713 * modules/javaexec: Update.
714 * MODULES.html.sh (File system functions): Add 'filename', remove
717 2007-02-25 Bruno Haible <bruno@clisp.org>
719 * modules/printf-frexpl-tests: New file.
720 * tests/test-printf-frexpl.c: New file.
722 * modules/printf-frexpl: New file.
723 * lib/printf-frexpl.h: New file.
724 * lib/printf-frexpl.c: New file.
725 * m4/printf-frexpl.m4: New file.
727 2007-02-25 Bruno Haible <bruno@clisp.org>
729 * modules/printf-frexp-tests: New file.
730 * tests/test-printf-frexp.c: New file.
732 * modules/printf-frexp: New file.
733 * lib/printf-frexp.h: New file.
734 * lib/printf-frexp.c: New file.
735 * m4/printf-frexp.m4: New file.
737 2007-02-25 Bruno Haible <bruno@clisp.org>
739 Assume automake >= 1.10 for the tests.
740 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
741 * modules/arctwo-tests: Likewise.
742 * modules/argp-tests: Likewise.
743 * modules/avltree-list-tests: Likewise.
744 * modules/avltree-oset-tests: Likewise.
745 * modules/avltreehash-list-tests: Likewise.
746 * modules/carray-list-tests: Likewise.
747 * modules/crc-tests: Likewise.
748 * modules/des-tests: Likewise.
749 * modules/gc-arcfour-tests: Likewise.
750 * modules/gc-arctwo-tests: Likewise.
751 * modules/gc-des-tests: Likewise.
752 * modules/gc-hmac-md5-tests: Likewise.
753 * modules/gc-hmac-sha1-tests: Likewise.
754 * modules/gc-md2-tests: Likewise.
755 * modules/gc-md4-tests: Likewise.
756 * modules/gc-md5-tests: Likewise.
757 * modules/gc-pbkdf2-sha1-tests: Likewise.
758 * modules/gc-rijndael-tests: Likewise.
759 * modules/gc-sha1-tests: Likewise.
760 * modules/gc-tests: Likewise.
761 * modules/getaddrinfo-tests: Likewise.
762 * modules/hmac-md5-tests: Likewise.
763 * modules/hmac-sha1-tests: Likewise.
764 * modules/linked-list-tests: Likewise.
765 * modules/linkedhash-list-tests: Likewise.
766 * modules/lock-tests: Likewise.
767 * modules/md2-tests: Likewise.
768 * modules/md4-tests: Likewise.
769 * modules/md5-tests: Likewise.
770 * modules/rbtree-list-tests: Likewise.
771 * modules/rbtree-oset-tests: Likewise.
772 * modules/rbtreehash-list-tests: Likewise.
773 * modules/read-file-tests: Likewise.
774 * modules/rijndael-tests: Likewise.
775 * modules/stdint-tests: Likewise.
776 * modules/tls-tests: Likewise.
778 2007-02-24 Bruno Haible <bruno@clisp.org>
780 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
781 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
782 function; instead check whether isnan with a double argument links.
783 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
784 function; instead check whether isnan with a 'long double' argument
786 Reported by Eric Blake <ebb9@byu.net>.
788 2007-02-24 Bruno Haible <bruno@clisp.org>
790 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
792 * lib/isnanl.c: Remove all code. Just include isnan.c.
793 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
795 2007-02-25 Jim Meyering <jim@meyering.net>
797 Avoid conflicting types for 'unsetenv' on FreeBSD.
798 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
799 conflicting with FreeBSD's (5.0 and 6.1) function declaration
802 2007-02-24 Bruno Haible <bruno@clisp.org>
804 * modules/isnanl-nolibm-tests: New file.
805 * tests/test-isnanl.c: New file.
807 * modules/isnanl-nolibm: New file.
808 * lib/isnanl.h: New file.
809 * lib/isnanl.c: New file.
810 * m4/isnanl.m4: New file.
812 2007-02-24 Bruno Haible <bruno@clisp.org>
814 * modules/isnan-nolibm-tests: New file.
815 * tests/test-isnan.c: New file.
817 * modules/isnan-nolibm: New file.
818 * lib/isnan.h: New file.
819 * lib/isnan.c: New file.
820 * m4/isnan.m4: New file.
822 2007-02-24 Bruno Haible <bruno@clisp.org>
824 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
825 assume that an exponent fits in 20 bits.
827 2007-02-24 Jim Meyering <jim@meyering.net>
829 * m4/regex.m4: Update the description of the configure-time option,
830 --without-included-regex, to state accurately what the defaults are,
831 and perhaps to give people an idea why using this option is risky.
833 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
835 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
836 loops on small arguments. This attempts to avoid the problem
837 Bruno Haible reported for AIX 4.3.2 in
838 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
840 2007-02-23 Bruno Haible <bruno@clisp.org>
842 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
845 2007-02-23 Karl Berry <karl@gnu.org>
847 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
848 exists, foo.h should be cvs-ignored, not committed.
850 2007-02-23 Eric Blake <ebb9@byu.net>
852 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
853 * lib/stat-time.h (includes): Likewise.
854 * lib/utimecmp.c (includes): Likewise.
855 * lib/utimens.h (includes): Likewise.
856 * lib/getdate.y (includes): Also include "timespec.h" for use
857 internal to the module.
858 * modules/utimens (Depends-on): Revert yesterday's patch.
859 * modules/nanosleep (Depends-on): Add missing dependency.
861 2007-02-22 Bruno Haible <bruno@clisp.org>
863 * lib/glob.c: Don't include getlogin_r.h.
865 2007-02-22 Jim Meyering <jim@meyering.net>
867 * modules/utimens (Depends-on): Add timespec, required for
868 utimens.h's inclusion of timespec.h.
870 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
872 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
873 long unreadable paths in GNU/Linux. Problem reported by Andreas
875 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
876 I'll try to think of a better way to fix the Solaris problem.
878 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
879 like glibc; on Solaris 10, it fails with errno == EINVAL.
880 POSIX says the behavior is unspecified if the first argument is NULL,
881 so play it safe and never pass NULL to the system getcwd.
883 2007-02-21 Jim Meyering <jim@meyering.net>
885 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
886 of gettimeofday. It would conflict with the one now always
887 provided via sys_time_.h. Reported by Matthew Woehlke, as
888 an IRIX 6.5 build failure.
890 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
892 Minor fixups to port to Solaris 10 with Sun C 5.8.
893 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
894 * modules/getcwd (Depends-on): Add dirfd.
895 * lib/putenv.c (putenv): #undef it.
896 (rpl_putenv): New decl.
897 (malloc, free): Include <stdlib.h> rather than prototyping separately.
899 2007-02-20 Bruno Haible <bruno@clisp.org>
901 * modules/stdio-tests: New file.
902 * tests/test-stdio.c: New file.
904 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
905 (Depends-on): Add stdio.
906 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
907 (Include): Use <stdio.h> instead of vsnprintf.h.
908 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
910 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
912 * modules/snprintf (Files): Remove lib/snprintf.h.
913 (Depends-on): Add stdio.
914 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
915 (Include): Use <stdio.h> instead of snprintf.h.
916 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
918 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
919 * lib/getaddrinfo.c: Likewise.
921 * modules/stdio: New file.
922 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
923 * lib/snprintf.h: Remove file.
924 * lib/vsnprintf.h: Remove file.
925 * lib/.cppi-disable: Remove snprintf.h.
926 * m4/stdio_h.m4: New file.
927 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
929 2007-02-20 Jim Meyering <jim@meyering.net>
931 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
932 used by e.g., mingw. From Bruno Haible.
934 2007-02-19 Bruno Haible <bruno@clisp.org>
936 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
938 Reported by Ben Pfaff <blp@cs.stanford.edu>.
940 2007-02-19 Bruno Haible <bruno@clisp.org>
942 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
945 2007-02-19 Bruno Haible <bruno@clisp.org>
947 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
949 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
951 2007-02-19 Jim Meyering <jim@meyering.net>
953 Don't use FD after a successful "fdopendir (fd)".
954 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
955 Reset it by calling dirfd on the just-obtained DIR*.
957 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
958 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
960 2007-02-18 Bruno Haible <bruno@clisp.org>
962 * lib/readlink.c: Include <unistd.h>.
963 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
965 * modules/readlink (Depends-on): Add unistd.
966 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
967 (Include): Add <unistd.h>.
969 * lib/getlogin_r.h: Remove file.
970 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
971 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
972 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
973 HAVE_DECL_GETLOGIN_R.
974 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
975 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
976 (Include): Use <unistd.h> instead of getlogin_r.h.
978 * lib/getcwd.h: Remove file.
979 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
980 * lib/xgetcwd.c: Likewise.
981 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
982 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
983 * modules/getcwd (Files): Remove lib/getcwd.h.
984 (Depends-on): Add unistd.
985 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
986 (Include): Use <unistd.h> instad of getcwd.h.
988 * lib/ftruncate.c: Include <unistd.h> first.
989 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
991 * modules/ftruncate (Depends-on): Add unistd.
992 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
994 * lib/fchdir.c: Include <unistd.h> first.
995 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
996 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
997 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
998 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
999 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
1001 * lib/dup2.c: Include <unistd.h> first.
1002 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
1004 * modules/dup2 (Depends-on): Add unistd.
1005 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1007 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
1008 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
1009 REPLACE_CHOWN. Don't define chown as a macro here.
1010 * modules/chown (Depends-on): Add unistd.
1011 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1013 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
1014 Add definition for GL_LINK_WARNING.
1015 (chown, dup2): New declarations.
1016 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
1018 (ftruncate): New declaration.
1019 (getcwd): New declaration, taken from old getcwd.h.
1020 (getlogin_r): New declaration, taken from old getlogin_r.h.
1021 (readlink): New declaration.
1022 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
1023 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
1024 (gl_PREREQ_UNISTD): Remove macro.
1025 (gl_UNISTD_MODULE_INDICATOR): New macro.
1026 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
1027 many new variables. Don't set UNISTD_H.
1028 * modules/unistd (Description): Change.
1029 (Depends-on): Add link-warning.
1030 (configure.ac): Update.
1031 (Makefile.am): Create unistd.h always. Substitute many new variables
1034 2007-02-18 Bruno Haible <bruno@clisp.org>
1036 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
1037 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
1039 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
1040 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
1041 * lib/getsubopt.h: Remove file.
1042 * modules/getsubopt (Files): Remove lib/getsubopt.h.
1043 (Depends-on): Add stdlib.
1044 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1045 (Includes): Use <stdlib.h> instead of getsubopt.h.
1046 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
1048 * lib/getsubopt.c: Don't include getsubopt.h.
1050 2007-02-18 Bruno Haible <bruno@clisp.org>
1052 * modules/fchdir (Depends-on): Add dup2.
1054 2007-02-18 Bruno Haible <bruno@clisp.org>
1056 * lib/stdlib_.h: Handle glibc's special invocation convention
1059 2007-02-18 Bruno Haible <bruno@clisp.org>
1061 * modules/stdlib-tests: New file.
1062 * tests/test-stdlib.c: New file.
1064 * modules/mkstemp (Files): Remove lib/mkstemp.h.
1065 (Depends-on): Add stdlib.
1066 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1067 (Includes): Use <stdlib.h> instead of mkstemp.h.
1068 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
1069 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
1070 * lib/mkstemp.c: Don't include mkstemp.h.
1071 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
1072 * lib/stdlib--.h: Don't include mkstemp.h.
1074 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
1075 (Depends-on): Add stdlib.
1076 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1077 (Includes): Use <stdlib.h> instead of mkdtemp.h.
1078 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
1080 * lib/mkdtemp.c: Don't include mkdtemp.h.
1081 * lib/clean-temp.c: Don't include mkdtemp.h.
1083 * modules/exit (Files): Remove lib/exit.h.
1084 (Depends-on): Add stdlib.
1085 (Makefile.am): Remove lib_SOURCES.
1086 (Include): Use <stdlib.h> instead of exit.h.
1087 * lib/argmatch.c: Don't include exit.h.
1088 * lib/execute.c: Likewise.
1089 * lib/pagealign_alloc.c: Likewise.
1090 * lib/pipe.c: Likewise.
1091 * lib/wait-process.c: Likewise.
1092 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
1093 * lib/exitfail.c: Likewise.
1094 * lib/savewd.c: Likewise.
1095 * lib/xsetenv.c: Likewise.
1097 * modules/stdlib: New file.
1098 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
1099 and extra comments about mkstemp().
1100 * lib/exit.h: Remove file.
1101 * lib/mkdtemp.h: Remove file.
1102 * lib/mkstemp.h: Remove file.
1103 * m4/stdlib_h.m4: New file.
1104 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
1106 2007-02-18 Bruno Haible <bruno@clisp.org>
1108 * modules/math-tests: New file.
1109 * tests/test-math.c: New file.
1111 * modules/math: New file.
1112 * modules/mathl (Files): Remove lib/mathl.h.
1113 (Depends-on): Add math.
1114 (Makefile.am): Don't mention mathl.h.
1115 (Include): Use <math.h> instead of mathl.h.
1116 * lib/math_.h: New file.
1117 * lib/mathl.h: Remove file.
1118 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
1120 * lib/asinl.c: Likewise.
1121 * lib/atanl.c: Likewise.
1122 * lib/ceill.c: Likewise.
1123 * lib/cosl.c: Likewise.
1124 * lib/expl.c: Likewise.
1125 * lib/floorl.c: Likewise.
1126 * lib/frexpl.c: Likewise.
1127 * lib/ldexpl.c: Likewise.
1128 * lib/logl.c: Likewise.
1129 * lib/sincosl.c: Likewise.
1130 * lib/sinl.c: Likewise.
1131 * lib/sqrtl.c: Likewise.
1132 * lib/tanl.c: Likewise.
1133 * lib/trigl.c: Likewise.
1134 * m4/math_h.m4: New file.
1135 * MODULES.html.sh (Mathematics): Add math.
1137 2007-02-17 Bruno Haible <bruno@clisp.org>
1139 * modules/wctype-tests: New file.
1140 * tests/test-wctype.c: New file.
1142 * modules/wchar-tests: New file.
1143 * tests/test-wchar.c: New file.
1145 * modules/unistd-tests: New file.
1146 * tests/test-unistd.c: New file.
1148 * modules/time-tests: New file.
1149 * tests/test-time.c: New file.
1151 * modules/sysexits-tests: New file.
1152 * tests/test-sysexits.c: New file.
1154 * modules/sys_time-tests: New file.
1155 * tests/test-sys_time.c: New file.
1157 * modules/sys_stat-tests: New file.
1158 * tests/test-sys_stat.c: New file.
1160 * modules/sys_socket-tests: New file.
1161 * tests/test-sys_socket.c: New file.
1163 * modules/sys_select-tests: New file.
1164 * tests/test-sys_select.c: New file.
1166 * modules/string-tests: New file.
1167 * tests/test-string.c: New file.
1169 * modules/stdbool-tests: New file.
1170 * tests/test-stdbool.c: New file.
1172 * modules/netinet_in-tests: New file.
1173 * tests/test-netinet_in.c: New file.
1175 * modules/inttypes-tests: New file.
1176 * tests/test-inttypes.c: New file.
1178 * modules/fcntl-tests: New file.
1179 * tests/test-fcntl.c: New file.
1181 * modules/byteswap-tests: New file.
1182 * tests/test-byteswap.c: New file.
1184 * modules/arpa_inet-tests: New file.
1185 * tests/test-arpa_inet.c: New file.
1187 2007-02-17 Bruno Haible <bruno@clisp.org>
1189 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
1190 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
1191 if the corresponding module is not enabled. Emit link warnings if
1192 the function is used nevertheless.
1193 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
1194 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
1195 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
1196 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
1197 * modules/inttypes (Depends-on): Add link-warning.
1198 (Makefile.am): Copy the contents of build-aux/link-warning.h into
1199 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
1200 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
1201 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
1202 * modules/imaxdiv (configure.ac): Likewise.
1203 * modules/strtoimax (configure.ac): Likewise.
1204 * modules/strtoumax (configure.ac): Likewise.
1206 2007-02-17 Bruno Haible <bruno@clisp.org>
1208 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
1209 gl_STRING_MODULE_INDICATOR_DEFAULTS.
1210 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
1211 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
1213 2007-02-17 Bruno Haible <bruno@clisp.org>
1215 * modules/link-warning: New file.
1216 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
1217 * lib/string_.h (GL_LINK_WARNING): Remove definition.
1218 * modules/string (Depends-on): Add link-warning.
1219 (Makefile.am): Copy the contents of build-aux/link-warning.h into
1221 * MODULES.html.sh (Support for building libraries and executables): Add
1224 2007-02-17 Bruno Haible <bruno@clisp.org>
1226 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
1227 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
1228 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
1231 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
1232 Bruno Haible <bruno@clisp.org>
1234 * modules/tmpfile: New file.
1235 * lib/tmpfile.c: New file.
1236 * m4/tmpfile.m4: New file.
1237 * MODULES.html.sh (func_all_modules): New section "Input/output".
1239 2007-02-15 Bruno Haible <bruno@clisp.org>
1241 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
1242 (supports_delete_on_close): New function.
1243 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
1245 2007-02-14 Bruno Haible <bruno@clisp.org>
1247 * modules/mbspcasecmp-tests: New file.
1248 * tests/test-mbspcasecmp.sh: New file.
1249 * tests/test-mbspcasecmp.c: New file.
1251 New module mbspcasecmp.
1252 * modules/mbspcasecmp: New file.
1253 * lib/mbspcasecmp.c: New file.
1254 * lib/string_.h (strncasecmp): Change warning message.
1255 (mbspcasecmp): New declaration.
1256 * m4/mbspcasecmp.m4: New file.
1257 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1259 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
1260 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
1262 2007-02-14 Bruno Haible <bruno@clisp.org>
1264 * modules/mbsncasecmp-tests: New file.
1265 * tests/test-mbsncasecmp.sh: New file.
1266 * tests/test-mbsncasecmp.c: New file.
1268 New module mbsncasecmp.
1269 * modules/mbsncasecmp: New file.
1270 * lib/mbsncasecmp.c: New file.
1271 * lib/string_.h (mbsncasecmp): New declaration.
1272 * m4/mbsncasecmp.m4: New file.
1273 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1275 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
1276 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
1278 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
1280 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
1281 Verify that it doesn't overlap with our flags.
1282 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
1283 do not have the desired effect in multibyte locales; instead, use
1285 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
1286 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
1287 we don't require GNU fnmatch ourselves (if our users require it, they
1288 should do so explicitly).
1290 Fix regex code so it doesn't rely on strcasecmp.
1291 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
1292 Otherwise, include gnulib's langinfo.h.
1293 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
1294 undesirable behavior in non-C locales. Instead, rely on localecharset.
1295 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
1296 * modules/regex (FILES): Remove m4/codeset.m4.
1297 (Depends-on): Add localcharset. Remove strcase.
1299 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1301 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
1302 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
1304 2007-02-13 Bruno Haible <bruno@clisp.org>
1306 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
1307 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1309 2007-02-12 Bruno Haible <bruno@clisp.org>
1311 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
1312 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
1313 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
1314 time warning rather than a link error.
1316 2007-02-12 Bruno Haible <bruno@clisp.org>
1318 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
1319 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1320 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1322 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
1324 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
1327 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
1329 New module 'time', so that apps can include <time.h> as per
1330 POSIX and GNU instead of separate include files like time_r.h
1331 and timegm.h. This implementation tries out a simpler approach
1332 for replacing decls in standard include files (as compared to
1333 the string module), somewhat as an experiment.
1335 * config/srclist.txt: Comment out mktime.c for now.
1336 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
1337 since it doesn't apply any more. Use generic wording instead.
1338 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
1340 * lib/time_.h, m4/time_h.m4, modules/time: New files.
1341 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
1342 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
1343 Don't include <sys/types.h>; no longer needed since we assume C89.
1344 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
1345 * lib/strftime.c: Likewise.
1346 * lib/time_r.c: Likewise.
1347 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
1348 * lib/nanosleep.c: Include <time.h> first, to check interface.
1349 * lib/strptime.c: Likewise.
1350 * lib/time_r.c: Likewise.
1351 * lib/timegm.c: Likewise.
1352 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
1354 * lib/timegm.c: Don't include timegm.h; no longer needed.
1355 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
1356 time.h now handles any problems in that area.
1357 (struct timespec, nanosleep): Remove; time.h now arranges for these.
1358 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
1359 that time.h defines struct timespec.
1360 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
1361 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
1363 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
1364 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
1365 needed. Set REPLACE_LOCALTIME.
1366 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
1367 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
1368 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
1369 nanosleep; time_h.m4 now does that. Don't require
1370 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
1371 module handles this now.
1372 * modules/getdate (Depends-on): Remove timespec. Add time.
1373 * modules/nanosleep (Depends-on): Likewise.
1374 * modules/stat-time (Depends-on): Likewise.
1375 * modules/nanosleep (Include): Include time.h, not timespec.h.
1376 * modules/strptime (Files): Remove lib/strptime.h.
1377 (Depends-on): Add extensions, time.
1378 (Include): Include time.h, not strptime.h.
1379 * modules/time_r (Files): Remove lib/time_r.h.
1380 (Depends-on): Add time.
1381 (Include): Include time.h, not time_r.h.
1382 * modules/timegm: Likewise.
1383 * modules/timespec (Description): Now does timespec-related decls
1384 of our own, instead of struct timespec itself.
1385 (Depends-on): Add time; remove extensions.
1386 (Maintainer): Add self.
1387 * modules/utimecmp (Depends-on): Add time; remove timespec.
1388 * modules/utimens (Depends-on): Likewise.
1389 * modules/xnanosleep (Depends-on): Likewise.
1391 2007-02-11 Bruno Haible <bruno@clisp.org>
1393 * lib/c-strstr.c: Include allocsa.h.
1394 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
1395 * lib/c-strcasestr.c: Include allocsa.h.
1396 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
1397 * lib/strcasestr.c: Include allocsa.h.
1398 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
1399 * lib/mbsstr.c: Include allocsa.h.
1400 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
1401 allocsa/freesa instead of malloc/free.
1402 * lib/mbscasestr.c: Include allocsa.h.
1403 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
1404 allocsa/freesa instead of malloc/free.
1405 * modules/c-strstr (Depends-on): Add allocsa.
1406 * modules/c-strcasestr (Depends-on): Likewise.
1407 * modules/strcasestr (Depends-on): Likewise.
1408 * modules/mbsstr (Depends-on): Likewise.
1409 * modules/mbscasestr (Depends-on): Likewise.
1411 2007-02-11 Bruno Haible <bruno@clisp.org>
1413 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
1415 * modules/mbsspn-tests: New file.
1416 * tests/test-mbsspn.sh: New file.
1417 * tests/test-mbsspn.c: New file.
1419 2007-02-11 Bruno Haible <bruno@clisp.org>
1421 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
1423 * modules/mbspbrk-tests: New file.
1424 * tests/test-mbspbrk.sh: New file.
1425 * tests/test-mbspbrk.c: New file.
1427 2007-02-11 Bruno Haible <bruno@clisp.org>
1429 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
1432 * modules/mbscspn-tests: New file.
1433 * tests/test-mbscspn.sh: New file.
1434 * tests/test-mbscspn.c: New file.
1436 2007-02-11 Bruno Haible <bruno@clisp.org>
1438 * modules/mbscasecmp-tests: New file.
1439 * tests/test-mbscasecmp.sh: New file.
1440 * tests/test-mbscasecmp.c: New file.
1442 2007-02-11 Bruno Haible <bruno@clisp.org>
1444 Ensure O(n) worst-case complexity of mbscasestr.
1445 * lib/mbscasestr.c: Include stdbool.h.
1446 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
1448 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
1449 the bookkeeping indicates that it's worth it.
1450 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
1452 * modules/mbscasestr-tests: New file.
1453 * tests/test-mbscasestr1.c: New file.
1454 * tests/test-mbscasestr2.sh: New file.
1455 * tests/test-mbscasestr2.c: New file.
1456 * tests/test-mbscasestr3.sh: New file.
1457 * tests/test-mbscasestr3.c: New file.
1458 * tests/test-mbscasestr4.sh: New file.
1459 * tests/test-mbscasestr4.c: New file.
1460 * m4/locale-tr.m4: New file.
1462 2007-02-11 Bruno Haible <bruno@clisp.org>
1464 Ensure O(n) worst-case complexity of mbsstr.
1465 * lib/mbsstr.c: Include stdbool.h.
1466 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
1468 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
1469 bookkeeping indicates that it's worth it.
1470 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
1472 * modules/mbsstr-tests: New file.
1473 * tests/test-mbsstr1.c: New file.
1474 * tests/test-mbsstr2.sh: New file.
1475 * tests/test-mbsstr2.c: New file.
1476 * tests/test-mbsstr3.sh: New file.
1477 * tests/test-mbsstr3.c: New file.
1478 * m4/locale-fr.m4: New file.
1480 2007-02-11 Bruno Haible <bruno@clisp.org>
1482 * lib/mbsrchr.c (mbsrchr): Fix bug.
1484 * modules/mbsrchr-tests: New file.
1485 * tests/test-mbsrchr.sh: New file.
1486 * tests/test-mbsrchr.c: New file.
1488 2007-02-11 Bruno Haible <bruno@clisp.org>
1490 * lib/mbschr.c (mbschr): Fix bug.
1492 * modules/mbschr-tests: New file.
1493 * tests/test-mbschr.sh: New file.
1494 * tests/test-mbschr.c: New file.
1495 * m4/locale-zh.m4: New file.
1497 2007-02-11 Bruno Haible <bruno@clisp.org>
1499 Support for copying multibyte string iterators.
1500 * lib/mbiter.h: Include <string.h>.
1501 (mbiter_multi_copy): New function.
1502 (mbi_copy): New macro.
1503 * lib/mbuiter.h: Include <string.h>.
1504 (mbuiter_multi_copy): New function.
1505 (mbui_copy): New macro.
1507 2007-02-11 Bruno Haible <bruno@clisp.org>
1510 * modules/mbslen: New file.
1511 * lib/mbslen.c: New file.
1512 * lib/string_.h (mbslen): New declaration.
1513 * m4/mbslen.m4: New file.
1514 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1516 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
1517 * MODULES.html.sh (Internationalization functions): Add mbslen.
1519 2007-02-11 Bruno Haible <bruno@clisp.org>
1521 Ensure O(n) worst-case complexity of strcasestr substitute.
1522 * lib/strcasestr.c: Include stdbool.h.
1523 (knuth_morris_pratt): New function.
1524 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
1525 bookkeeping indicates that it's worth it.
1526 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
1528 * modules/strcasestr-tests: New file.
1529 * tests/test-strcasestr.c: New file.
1531 2007-02-11 Bruno Haible <bruno@clisp.org>
1533 Ensure O(n) worst-case complexity of c_strcasestr.
1534 * lib/c-strcasestr.c: Include stdbool.h, string.h.
1535 (knuth_morris_pratt): New function.
1536 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
1537 the bookkeeping indicates that it's worth it.
1538 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
1540 * modules/c-strcasestr-tests: New file.
1541 * tests/test-c-strcasestr.c: New file.
1543 2007-02-11 Bruno Haible <bruno@clisp.org>
1545 Ensure O(n) worst-case complexity of c_strstr.
1546 * lib/c-strstr.c: Include stdbool.h, string.h.
1547 (knuth_morris_pratt): New function.
1548 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
1549 bookkeeping indicates that it's worth it.
1550 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
1552 * lib/c-strstr.c: Complete rewrite for maintainability.
1554 * modules/c-strstr-tests: New file.
1555 * tests/test-c-strstr.c: New file.
1557 2007-02-11 Bruno Haible <bruno@clisp.org>
1559 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
1560 5.2.1 and earlier, whereby \055 was treated just like the range
1562 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
1564 2007-02-08 Bruno Haible <bruno@clisp.org>
1566 * modules/regex (Depends-on): Add stdbool.
1567 Reported by Dalibor Topic <robilad@kaffe.org>.
1569 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
1571 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
1572 Prefer returning from main to exiting from it.
1573 Remove unnecessary parens after sizeof.
1575 2007-02-05 Bruno Haible <bruno@clisp.org>
1578 * modules/mbssep: New file.
1579 * lib/mbssep.c: New file.
1580 * lib/string_.h (strsep): Add a conditional link warning.
1581 (mbssep): New declaration.
1582 * m4/mbssep.m4: New file.
1583 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1585 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
1586 * MODULES.html.sh (Internationalization functions): Add mbssep.
1588 2007-02-05 Bruno Haible <bruno@clisp.org>
1590 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
1591 Optimize search in case of 1 delimiter.
1593 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
1595 * lib/acl.h: Include sys/types.h before sys/acl.h.
1597 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
1599 Merge upstream fix for glibc bugzilla #3957:
1601 2007-02-05 Jakub Jelinek <jakub@redhat.com>
1603 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
1604 bit for RE_HAT_LISTS_NOT_NEWLINE.
1605 (build_charclass_op): Remove bogus comment.
1607 2007-02-05 Simon Josefsson <simon@josefsson.org>
1609 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
1611 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
1613 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
1614 * lib/memmem.c [!defined _LIBC]: Include config.h.
1616 2007-02-04 Bruno Haible <bruno@clisp.org>
1618 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
1621 2007-02-04 Bruno Haible <bruno@clisp.org>
1623 New module mbstok_r.
1624 * modules/mbstok_r: New file.
1625 * lib/mbstok_r.c: New file.
1626 * lib/string_.h (strtok_r): Change argument names to match the
1627 comments. Add a conditional link warning.
1628 (mbstok_r): New declaration.
1629 * m4/mbstok_r.m4: New file.
1630 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1632 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
1633 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
1635 2007-02-04 Bruno Haible <bruno@clisp.org>
1638 * modules/mbsspn: New file.
1639 * lib/mbsspn.c: New file.
1640 * lib/string_.h (strspn): Add a conditional link warning.
1641 (mbsspn): New declaration.
1642 * m4/mbsspn.m4: New file.
1643 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1645 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
1646 * MODULES.html.sh (Internationalization functions): Add mbsspn.
1648 2007-02-04 Bruno Haible <bruno@clisp.org>
1651 * modules/mbspbrk: New file.
1652 * lib/mbspbrk.c: New file.
1653 * lib/string_.h (strpbrk): Add a conditional link warning.
1654 (mbspbrk): New declaration.
1655 * m4/mbspbrk.m4: New file.
1656 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1658 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
1659 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
1661 2007-02-04 Bruno Haible <bruno@clisp.org>
1664 * modules/mbscspn: New file.
1665 * lib/mbscspn.c: New file.
1666 * lib/string_.h (strcspn): Add a conditional link warning.
1667 (mbscspn): New declaration.
1668 * m4/mbscspn.m4: New file.
1669 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1671 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
1672 * MODULES.html.sh (Internationalization functions): Add mbscspn.
1674 2007-02-04 Bruno Haible <bruno@clisp.org>
1676 New module mbscasestr, reduced goal of strcasestr.
1677 * modules/mbscasestr: New file.
1678 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
1679 (mbscasestr): Renamed from strcasestr.
1680 * lib/strcasestr.c: Don't include mbuiter.h.
1681 (strcasestr): Remove support for multibyte locales.
1682 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
1683 Change the conditional link warning.
1684 (mbscasestr): New declaration.
1685 * m4/mbscasestr.m4: New file.
1686 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
1687 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
1689 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
1690 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1691 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
1692 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
1693 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
1694 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
1695 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
1696 (Depends-on): Remove mbuiter.
1697 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
1699 2007-02-04 Bruno Haible <bruno@clisp.org>
1701 Simplify handling of strncasecmp.
1702 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
1703 the conditional link warning.
1704 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1705 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
1706 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
1707 * modules/strcase (configure.ac): Don't invoke
1708 gl_STRING_MODULE_INDICATOR.
1709 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
1711 2007-02-04 Bruno Haible <bruno@clisp.org>
1713 New module mbscasecmp, reduced goal of strcasecmp.
1714 * modules/mbscasecmp: New file.
1715 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
1716 (mbscasecmp): Renamed from strcasecmp.
1717 * lib/strcasecmp.c: Don't include mbuiter.h.
1718 (strcasecmp): Remove support for multibyte locales.
1719 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
1720 Change the conditional link warning.
1721 (mbscasecmp): New declaration.
1722 * m4/mbscasecmp.m4: New file.
1723 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
1724 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
1726 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
1727 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1729 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
1730 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
1731 * modules/strcase (Files): Remove m4/mbrtowc.m4.
1732 (Depends-on): Remove mbuiter.
1733 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
1735 2007-02-04 Bruno Haible <bruno@clisp.org>
1737 New module mbsstr. Remove module strstr.
1738 * modules/mbsstr: New file.
1739 * modules/strstr: Remove file.
1740 * lib/mbsstr.c: Renamed from lib/strstr.c.
1741 (mbsstr): Renamed from strstr.
1742 * lib/string_.h (strstr): Remove declaration. Change the conditional
1744 (mbsstr): New declaration.
1745 * m4/mbsstr.m4: New file.
1746 * m4/strstr.m4: Remove file.
1747 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
1749 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
1750 Don't initialize GNULIB_STRSTR.
1751 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
1752 substitute GNULIB_STRSTR and REPLACE_STRSTR.
1753 * MODULES.html.sh (Internationalization functions): Add mbsstr.
1754 (Support for systems lacking ANSI C 89): Remove strstr.
1756 2007-02-04 Bruno Haible <bruno@clisp.org>
1759 * modules/mbsrchr: New file.
1760 * lib/mbsrchr.c: New file.
1761 * lib/string_.h (strrchr): Add a conditional link warning.
1762 (mbsrchr): New declaration.
1763 * m4/mbsrchr.m4: New file.
1764 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1766 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
1767 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
1769 2007-02-04 Bruno Haible <bruno@clisp.org>
1772 * modules/mbschr: New file.
1773 * lib/mbschr.c: New file.
1774 * lib/string_.h (strchr): Add a conditional link warning.
1775 (mbschr): New declaration.
1776 * m4/mbschr.m4: New file.
1777 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1779 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
1780 * MODULES.html.sh (Internationalization functions): Add mbschr.
1782 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
1784 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
1786 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
1788 2007-02-04 Bruno Haible <bruno@clisp.org>
1790 New module description section 'configure.ac-early'.
1791 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
1792 (func_get_autoconf_early_snippet): New function.
1793 (func_import, func_create_testdir): Use it. Remove special cases for
1794 modules 'extensions' and 'lock'.
1795 * modules/extensions (configure.ac-early): Require
1796 gl_USE_SYSTEM_EXTENSIONS.
1797 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
1799 2007-02-04 Bruno Haible <bruno@clisp.org>
1801 Make use of gcj-4.3's -fsource and -ftarget option.
1802 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
1803 and if so try the options -fsource and -ftarget.
1804 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
1805 source_version, ftarget_option, target_version arguments.
1806 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
1807 (is_envjavac_oldgcj_14_14_usable): Renamed from
1808 is_envjavac_gcj_14_14_usable.
1809 (is_envjavac_oldgcj_14_13_usable): Renamed from
1810 is_envjavac_gcj_14_13_usable.
1811 (is_gcj_present): Update.
1812 (is_gcj_43, is_gcj43_usable): New functions.
1813 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
1814 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
1815 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
1816 try the options -fsource and -ftarget.
1818 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
1820 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
1821 checking code. Set N = ceil (1.5 * N) rather than to a slightly
1824 2007-02-03 Jim Meyering <jim@meyering.net>
1826 Give tools a better chance to allocate space for very large buffers.
1827 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
1829 Make pwd and readlink work also when run with an unreadable parent dir
1830 on systems with openat support.
1831 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
1832 provided getcwd function, even when we have openat support.
1833 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
1835 2007-02-02 Bruno Haible <bruno@clisp.org>
1837 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
1838 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
1839 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
1840 portability problems if one of these functions is only used on specific
1842 Reported by Paul Eggert.
1844 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
1846 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
1847 is causing more trouble than it's curing.
1848 * lib/regex_internal.h (__mempcpy): Remove.
1849 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
1850 (and make the code a tad smaller to boot).
1851 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
1853 2007-02-02 Jim Meyering <jim@meyering.net>
1855 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
1856 section, not in the Makefile.am: one.
1858 2007-02-02 Eric Blake <ebb9@byu.net>
1860 * lib/strchrnul.c: Always include config.h first.
1862 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
1863 gnulib strstr is not necessary here.
1865 2007-02-02 Simon Josefsson <simon@josefsson.org>
1867 * m4/socklen.m4: Fix typo.
1869 2007-02-02 Eric Blake <ebb9@byu.net>
1871 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
1872 * modules/netinet_in (Makefile.am): Likewise.
1874 2007-02-01 Bruno Haible <bruno@clisp.org>
1876 * lib/string_.h (GL_LINK_WARNING): New macro.
1877 (strcasecmp, strstr, strcasestr): If provided by the system,
1878 conditionally define as a macro that leads to a warning instead of to
1880 (strncasecmp): Conditionally define as a macro that leads to a warning.
1882 2007-02-01 Karl Berry <karl@gnu.org>
1884 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
1886 2007-02-01 Bruno Haible <bruno@clisp.org>
1888 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
1891 2007-02-01 Eric Blake <ebb9@byu.net>
1893 * modules/regex (Depends-on): Revert dependence on mempcpy.
1894 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
1895 module's definition of mempcpy.
1896 Reported by Paul Eggert.
1898 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
1900 * lib/string_.h: If the gnulib module XYZ is not present, undefine
1901 the symbol XYZ before redefining it. This fixes a problem with
1902 programs that don't use XYZ, when compiled on systems that define
1903 XYZ to something else.
1905 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
1907 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
1908 occurs when "mkdir -m foo" creates a setgid directory that is (1)
1909 writeable to group or other and (2) is intended to have a special
1910 mode bit that is set or cleared. In such a case, the directory
1911 should be neither group- nor other-writeable until the special
1912 mode bits are right.
1914 2007-01-31 Eric Blake <ebb9@byu.net>
1916 * modules/mountlist (Depends-on): Add strstr.
1918 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
1920 * modules/string (Makefile.am): Remove redundant replacement.
1921 * modules/regex (Depends-on): Add mempcpy.
1923 2007-01-31 Bruno Haible <bruno@clisp.org>
1925 New module description field 'Link'.
1926 * gnulib-tool (func_usage): Document --extract-link-directive.
1927 (sed_extract_prog): Recognize 'Link' directive.
1928 (func_get_link_directive): New function.
1929 (func_import): Show summary of link directives.
1930 Handle --extract-link-directive option.
1931 * modules/acl (Link): New section.
1932 * modules/clock-time (Link): New section.
1933 * modules/euidaccess (Link): New section.
1934 * modules/gettext (Link): New section.
1935 * modules/iconv (Link): New section.
1936 * modules/lock (Link): New section.
1937 * modules/nanosleep (Link): New section.
1938 * modules/readline (Link): New section.
1940 2007-01-27 Bruno Haible <bruno@clisp.org>
1942 Enforce the use of gnulib modules for unportable <string.h> functions.
1943 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
1944 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
1945 (gl_HEADER_STRING_H_BODY): Require it.
1946 * lib/string_.h: If the gnulib module XYZ is not present, redefine
1947 the symbol XYZ to one that gives a link error.
1948 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
1949 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
1950 * modules/mempcpy (configure.ac): Likewise.
1951 * modules/memrchr (configure.ac): Likewise.
1952 * modules/stpcpy (configure.ac): Likewise.
1953 * modules/stpncpy (configure.ac): Likewise.
1954 * modules/strcase (configure.ac): Likewise.
1955 * modules/strcasestr (configure.ac): Likewise.
1956 * modules/strchrnul (configure.ac): Likewise.
1957 * modules/strdup (configure.ac): Likewise.
1958 * modules/strndup (configure.ac): Likewise.
1959 * modules/strnlen (configure.ac): Likewise.
1960 * modules/strpbrk (configure.ac): Likewise.
1961 * modules/strsep (configure.ac): Likewise.
1962 * modules/strstr (configure.ac): Likewise.
1963 * modules/strtok_r (configure.ac): Likewise.
1965 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
1967 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
1969 2007-01-30 Jim Meyering <jim@meyering.net>
1971 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
1973 2007-01-29 Bruno Haible <bruno@clisp.org>
1975 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
1976 * lib/execute.c: Likewise.
1977 * lib/pipe.c: Likewise.
1978 * lib/printf-args.h: Likewise.
1979 * lib/printf-args.c: Likewise.
1980 * lib/printf-parse.c: Likewise.
1981 * lib/vasnprintf.c: Likewise.
1983 2007-01-29 Eric Blake <ebb9@byu.net>
1985 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
1988 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
1990 * lib/strptime.h (strptime): Use 'restrict' for args where
1991 POSIX requires this.
1992 * lib/strptime.c (strptime): Likewise.
1993 Change license notice from LGPL to GPL, since gnulib-tool will
1994 change this as needed.
1995 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
1997 Include "strptime.h" first, to check interface.
1998 Do not #undef _LIBC and _NL_CURRENT.
1999 Do not include <stdlib.h>; no longer needed.
2000 Include "time_r.h" and declare ptime_locale_status
2001 only if _LIBC is not defined.
2002 (__P): Remove unused macro.
2003 (match_string): Bring back glibc version, but use it only if _LIBC
2005 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
2006 Remove unnecessary assertion and abort() call.
2007 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
2008 * m4/strptime.m4: Fix serial number comment.
2009 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
2010 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
2011 (Depends-on): Add time_r.
2013 2007-01-29 Bruno Haible <bruno@clisp.org>
2015 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
2017 * modules/strptime (Depends-on): Add stdbool.
2018 * lib/strptime.h: Include <time.h> always. Add comments.
2020 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
2022 * modules/strptime: New file.
2023 * lib/strptime.h: New file.
2024 * lib/strptime.c: New file.
2025 * m4/strptime.m4: New file.
2027 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
2029 * MODULES.html.sh: New module mpsort.
2030 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
2032 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
2033 a circularity problem with HP-UX ia64 reported by Bob Proulx in
2034 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
2036 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
2038 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
2040 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
2041 the parameter matches the prototype.
2043 2007-01-28 Jim Meyering <jim@meyering.net>
2045 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
2046 sys/time.h here, reverting that part of the previous patch:
2047 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
2049 2007-01-28 Bruno Haible <bruno@clisp.org>
2051 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
2052 value of $(SYS_TIME_H).
2053 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
2054 remove it conditionally, too. [added by Jim Meyering]
2055 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
2056 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
2057 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
2058 GETTIMEOFDAY_REPLACEMENT to 1.
2060 2007-01-28 Bruno Haible <bruno@clisp.org>
2062 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
2063 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
2064 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
2065 Set UNISTD_H instead of UNISTD_H2.
2066 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
2068 2007-01-28 Bruno Haible <bruno@clisp.org>
2070 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
2071 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
2073 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2075 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
2076 (func_create_testdir): Ensure C locale for `grep' and `tr'
2078 (func_create_megatestdir): Avoid one `grep'. Fix bug in
2079 ACLOCAL_AMFLAGS parsing state machine.
2081 2007-01-27 Bruno Haible <bruno@clisp.org>
2083 * modules/unistr/base: Update.
2085 2007-01-27 Bruno Haible <bruno@clisp.org>
2087 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
2088 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
2089 * modules/unistr/u32-mbtouc-unsafe: Renamed from
2090 modules/unistr/u32-mbtouc.
2091 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
2092 * lib/unistr.h: Update.
2093 * lib/linebreak.c: Update.
2094 * modules/unistr/u32-mbtouc: Renamed from
2095 modules/unistr/u32-mbtouc-safe.
2096 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
2097 * lib/unistr.h: Update.
2098 * lib/unistr/u32-to-u8.c: Update.
2099 * lib/unistr/u32-to-u16.c: Update.
2101 2007-01-27 Bruno Haible <bruno@clisp.org>
2103 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
2104 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
2105 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
2106 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
2107 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
2108 * modules/unistr/u16-mbtouc-unsafe: Renamed from
2109 modules/unistr/u16-mbtouc.
2110 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
2111 * lib/unistr.h: Update.
2112 * lib/linebreak.c: Update.
2113 * modules/linebreak: Update.
2114 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
2115 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
2116 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
2117 * modules/unistr/u16-mbtouc: Renamed from
2118 modules/unistr/u16-mbtouc-safe.
2119 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
2120 * lib/unistr.h: Update.
2121 * lib/unistr/u16-to-u8.c: Update.
2122 * modules/unistr/u16-to-u8: Update.
2123 * lib/unistr/u16-to-u32.c: Update.
2124 * modules/unistr/u16-to-u32: Update.
2126 2007-01-27 Bruno Haible <bruno@clisp.org>
2128 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
2129 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
2130 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
2131 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
2132 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
2133 * modules/unistr/u8-mbtouc-unsafe: Renamed from
2134 modules/unistr/u8-mbtouc.
2135 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
2136 * lib/unistr.h: Update.
2137 * lib/striconveh.c: Update.
2138 * modules/striconveh: Update.
2139 * lib/linebreak.c: Update.
2140 * modules/linebreak: Update.
2141 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
2142 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
2143 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
2144 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
2145 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
2146 * lib/unistr.h: Update.
2147 * lib/striconveh.c: Update.
2148 * modules/striconveh: Update.
2149 * lib/unistr/u8-to-u16.c: Update.
2150 * modules/unistr/u8-to-u16: Update.
2151 * lib/unistr/u8-to-u32.c: Update.
2152 * modules/unistr/u8-to-u32: Update.
2154 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2157 * lib/argz.c: Do not include strings.h nor memory.h, include
2158 string.h unconditionally. Patch by Simon Josefsson.
2160 2007-01-27 Bruno Haible <bruno@clisp.org>
2162 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
2163 from gl_HEADER_STRING_H_BODY.
2164 (gl_HEADER_STRING_H_BODY): Require it.
2165 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
2166 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
2167 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
2168 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
2169 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2170 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
2171 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2172 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
2173 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
2174 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
2175 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
2176 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
2177 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
2178 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2179 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
2181 2007-01-27 Bruno Haible <bruno@clisp.org>
2183 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
2184 check_PROGRAMS into noinst_PROGRAMS.
2185 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
2186 check_PROGRAMS in this case.
2187 (func_import): Set for_test to false.
2188 (func_create_testdir): Set for_test to true.
2190 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2191 Bruno Haible <bruno@clisp.org>
2193 * modules/strcasestr (Files): Remove lib/strcasestr.h.
2194 (Depends-on): Add string.
2195 (Includes): Use <string.h> instead of strcasestr.h.
2196 * modules/string (Makefile.am): Also substitute the value of
2198 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
2199 assume strcasestr is declared in <string.h> not <strings.h>. Also
2200 set REPLACE_STRCASESTR.
2201 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
2203 * lib/strcasestr.h: Remove file.
2204 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
2205 * lib/string_.h (strcasestr): New declaration.
2207 2007-01-27 Bruno Haible <bruno@clisp.org>
2209 * lib/string_.h: Use 'extern'.
2211 2007-01-27 Jim Meyering <jim@meyering.net>
2213 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
2214 of set-but-not-used local, "q".
2216 * lib/mempcpy.c: Include <config.h> before <string.h>.
2217 This fixes a compilation error on HP-UX, due to the system's
2218 "restrict"-using mempcpy prototype.
2220 2007-01-26 Bruno Haible <bruno@clisp.org>
2223 * lib/javacomp.c: Include c-strstr.h.
2224 (is_envjavac_gcj): Use c_strstr instead of strstr.
2225 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
2227 2007-01-26 Bruno Haible <bruno@clisp.org>
2229 * MODULES.html.sh (Unicode string functions): Add the new modules.
2231 * modules/uniconv/u32-strconv-to-locale: New file.
2232 * lib/uniconv/u32-strconv-to-locale.c: New file.
2234 * modules/uniconv/u16-strconv-to-locale: New file.
2235 * lib/uniconv/u16-strconv-to-locale.c: New file.
2237 * modules/uniconv/u8-strconv-to-locale: New file.
2238 * lib/uniconv/u8-strconv-to-locale.c: New file.
2240 * modules/uniconv/u32-strconv-from-locale: New file.
2241 * lib/uniconv/u32-strconv-from-locale.c: New file.
2243 * modules/uniconv/u16-strconv-from-locale: New file.
2244 * lib/uniconv/u16-strconv-from-locale.c: New file.
2246 * modules/uniconv/u8-strconv-from-locale: New file.
2247 * lib/uniconv/u8-strconv-from-locale.c: New file.
2249 * modules/uniconv/u32-strconv-to-enc: New file.
2250 * lib/uniconv/u32-strconv-to-enc.c: New file.
2251 * modules/uniconv/u32-strconv-to-enc-tests: New file.
2252 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
2254 * modules/uniconv/u16-strconv-to-enc: New file.
2255 * lib/uniconv/u16-strconv-to-enc.c: New file.
2256 * lib/uniconv/u-strconv-to-enc.h: New file.
2257 * modules/uniconv/u16-strconv-to-enc-tests: New file.
2258 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
2260 * modules/uniconv/u8-strconv-to-enc: New file.
2261 * lib/uniconv/u8-strconv-to-enc.c: New file.
2262 * modules/uniconv/u8-strconv-to-enc-tests: New file.
2263 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
2265 * modules/uniconv/u32-strconv-from-enc: New file.
2266 * lib/uniconv/u32-strconv-from-enc.c: New file.
2267 * modules/uniconv/u32-strconv-from-enc-tests: New file.
2268 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
2270 * modules/uniconv/u16-strconv-from-enc: New file.
2271 * lib/uniconv/u16-strconv-from-enc.c: New file.
2272 * modules/uniconv/u16-strconv-from-enc-tests: New file.
2273 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
2275 * modules/uniconv/u8-strconv-from-enc: New file.
2276 * lib/uniconv/u8-strconv-from-enc.c: New file.
2277 * lib/uniconv/u-strconv-from-enc.h: New file.
2278 * modules/uniconv/u8-strconv-from-enc-tests: New file.
2279 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
2281 * modules/uniconv/u32-conv-from-enc: New file.
2282 * lib/uniconv/u32-conv-from-enc.c: New file.
2283 * modules/uniconv/u32-conv-from-enc-tests: New file.
2284 * tests/uniconv/test-u32-conv-from-enc.c: New file.
2286 * modules/uniconv/u16-conv-from-enc: New file.
2287 * lib/uniconv/u16-conv-from-enc.c: New file.
2288 * lib/uniconv/u-conv-from-enc.h: New file.
2289 * modules/uniconv/u16-conv-from-enc-tests: New file.
2290 * tests/uniconv/test-u16-conv-from-enc.c: New file.
2292 * modules/uniconv/u8-conv-from-enc: New file.
2293 * lib/uniconv/u8-conv-from-enc.c: New file.
2294 * modules/uniconv/u8-conv-from-enc-tests: New file.
2295 * tests/uniconv/test-u8-conv-from-enc.c: New file.
2297 * modules/uniconv/base: New file.
2298 * lib/uniconv.h: New file.
2300 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
2302 * doc/gnulib-tool.texi (Initial import): Update to match current
2303 behavior with strdup module.
2304 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
2305 * lib/memmem.h: Remove; all uses removed. This is now done
2307 * lib/mempcpy.h: Likewise.
2308 * lib/memrchr.h: Likewise.
2309 * lib/stpcpy.h: Likewise.
2310 * lib/stpncpy.h: Likewise.
2311 * lib/strcase.h: Likewise.
2312 * lib/strchrnul.h: Likewise.
2313 * lib/strdup.h: Likewise.
2314 * lib/strndup.h: Likewise.
2315 * lib/strnlen.h: Likewise.
2316 * lib/strpbrk.h: Likewise.
2317 * lib/strsep.h: Likewise.
2318 * lib/strstr.h: Likewise.
2319 * lib/strtok_r.h: Likewise.
2320 * lib/string_.h: New file.
2321 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
2322 Rely on <string.h> instead.
2323 * lib/canon-host.c: Likewise.
2324 * lib/chdir-long.c: Likewise.
2325 * lib/concatpath.c: Likewise.
2326 * lib/exclude.c: Likewise.
2327 * lib/fchdir.c: Likewise.
2328 * lib/getaddrinfo.c: Likewise.
2329 * lib/getcwd.c: Likewise.
2330 * lib/getsubopt.c: Likewise.
2331 * lib/glob.c: Likewise.
2332 * lib/hard-locale.c: Likewise.
2333 * lib/iconvme.c: Likewise.
2334 * lib/javacomp.c: Likewise.
2335 * lib/mempcpy.c: Likewise.
2336 * lib/memrchr.c: Likewise.
2337 * lib/regex_internal.h: Likewise.
2338 * lib/stpncpy.c: Likewise.
2339 * lib/strcasecmp.c: Likewise.
2340 * lib/strchrnul.c: Likewise.
2341 * lib/strdup.c: Likewise.
2342 * lib/striconv.c: Likewise.
2343 * lib/striconveh.c: Likewise.
2344 * lib/striconveha.c: Likewise.
2345 * lib/strncasecmp.c: Likewise.
2346 * lib/strndup.c: Likewise.
2347 * lib/strnlen.c: Likewise.
2348 * lib/strsep.c: Likewise.
2349 * lib/strstr.c: Likewise.
2350 * lib/strtok_r.c: Likewise.
2351 * lib/userspec.c: Likewise.
2352 * lib/w32spawn.h: Likewise.
2353 * lib/xstrndup.c: Likewise.
2354 * lib/mountlist.c (strstr): Remove decl.
2355 * m4/string_h.m4: New file.
2356 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
2357 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
2358 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
2359 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
2360 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
2361 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
2362 Set REPLACE_STRCASECMP if necessary.
2363 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
2364 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
2365 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
2366 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
2367 HAVE_DECL_STRDUP if necessary.
2368 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
2369 since gl_FUNC_STRNDUP does that now.
2370 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
2371 Check for decl here...
2372 (gl_PREREQ_STRNLEN): ... not here.
2373 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
2374 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
2375 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
2376 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
2378 * modules/string: New file.
2379 * modules/memmem (Files): Remove special-purpose include file.
2380 (Depends-on): Add string.
2381 (Include): Include <string.h>, not the removed file.
2382 * modules/mempcpy: Likewise.
2383 * modules/memrchr: Likewise.
2384 * modules/stpcpy: Likewise.
2385 * modules/stpncpy: Likewise.
2386 * modules/strcase: Likewise.
2387 * modules/strchrnul: Likewise.
2388 * modules/strdup: Likewise.
2389 * modules/strndup: Likewise.
2390 * modules/strnlen: Likewise.
2391 * modules/strpbrk: Likewise.
2392 * modules/strsep: Likewise.
2393 * modules/strstr: Likewise.
2394 * modules/strtok_r: Likewise.
2395 * tests/test-dirname.c: Don't include "strdup.h", since
2396 <string.h> now suffices.
2397 * tests/test-memmem.c: Don't include "memmem.h", since
2398 <string.h> now suffices.
2400 2007-01-25 Bruno Haible <bruno@clisp.org>
2402 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
2405 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
2406 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
2407 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
2408 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
2410 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
2411 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
2412 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
2413 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
2414 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
2415 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
2417 2007-01-24 Bruno Haible <bruno@clisp.org>
2419 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
2420 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
2421 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
2422 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
2424 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
2425 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
2426 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
2427 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
2428 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
2429 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
2431 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
2433 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
2434 Reported by Ralf Wildenhues.
2436 2007-01-24 Bruno Haible <bruno@clisp.org>
2438 Drop AC_REQUIRE calls that are redundant with the module dependencies.
2439 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
2441 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
2442 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
2443 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
2445 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
2447 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
2448 Don't use 'exit'; just return from 'main'.
2449 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
2451 * lib/fnmatch_.h: Readjust white space and comments to match
2452 glibc, to avoid spurious diffs.
2454 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
2456 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
2457 2004-12-01 change by Jakub Jelinek, since this code won't compile
2458 if !LIBC. Problem reported by Bob Proulx.
2460 2007-01-23 Bruno Haible <bruno@clisp.org>
2462 * lib/striconveh.c: Include c-strcaseeq.h.
2463 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
2464 * modules/striconveh (Depends-on): Add c-strcaseeq.
2466 2007-01-23 Bruno Haible <bruno@clisp.org>
2468 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
2470 * modules/c-strcaseeq: New file.
2471 * lib/c-strcaseeq.h: New file.
2473 * modules/streq: New file.
2474 * lib/streq.h: New file.
2476 2007-01-23 Bruno Haible <bruno@clisp.org>
2478 * modules/striconveha-tests: New file.
2479 * tests/test-striconveha.c: New file.
2481 * lib/striconveha.h: Include <stdbool.h>.
2482 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
2483 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
2484 (mem_iconveha_notranslit): Renamed from mem_iconveha.
2485 (mem_iconveha): New function.
2486 (str_iconveha_notranslit): Renamed from str_iconveha.
2487 (str_iconveha): New function.
2488 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
2491 2007-01-23 Bruno Haible <bruno@clisp.org>
2493 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
2494 encodings without forgiving before trying any encoding with handler.
2495 (str_iconveha): Try all encodings without forgiving before trying any
2496 encoding with handler.
2498 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
2500 Import the following changes from libc.
2502 2005-10-14 Ulrich Drepper <drepper@redhat.com>
2504 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
2506 2004-12-01 Jakub Jelinek <jakub@redhat.com>
2508 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
2509 normal_bracket label.
2511 2004-09-01 Jakub Jelinek <jakub@redhat.com>
2514 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
2515 to normal_bracket after fetching the next character.
2517 2007-01-22 Bruno Haible <bruno@clisp.org>
2519 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
2521 * lib/striconveh.c (iconv_carefully_1): New function.
2522 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
2524 (str_cd_iconveh): Update.
2525 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
2526 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
2527 * tests/test-striconveh.c (MAGIC): New macro.
2528 (new_offsets): New function.
2529 (main): Test call with and without offsets.
2531 2007-01-22 Bruno Haible <bruno@clisp.org>
2533 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
2534 * modules/sys_select (Makefile.am): Likewise.
2535 * modules/sys_socket (Makefile.am): Likewise.
2536 * modules/sys_time (Makefile.am): Likewise.
2538 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
2540 * modules/gettimeofday (License): Change from GPL to LGPL, since
2541 gettimeofday is a library function.
2543 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2545 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
2547 2007-01-21 Bruno Haible <bruno@clisp.org>
2549 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
2551 2007-01-21 Bruno Haible <bruno@clisp.org>
2553 * modules/striconveha: New file.
2554 * lib/striconveha.h: New file.
2555 * lib/striconveha.c: New file.
2556 * MODULES.html.sh (Internationalization functions): Add striconveha.
2557 * lib/striconv.c (str_iconv): Optimize the case of an empty input
2559 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
2561 2007-01-21 Bruno Haible <bruno@clisp.org>
2563 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
2564 * lib/striconveh.c (str_iconveh): Likewise.
2566 2007-01-21 Bruno Haible <bruno@clisp.org>
2568 * lib/striconveh.h (mem_iconveh): New declaration.
2569 * lib/striconveh.c (mem_iconveh): New function.
2570 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
2572 2007-01-21 Bruno Haible <bruno@clisp.org>
2574 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
2576 * lib/striconveh.h (mem_cd_iconveh): Change specification.
2577 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
2578 original result buffer.
2579 (str_cd_iconveh): Update.
2580 * tests/test-striconveh.c (main): Update.
2582 * lib/striconv.h (mem_cd_iconv): Change specification.
2583 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
2585 (str_cd_iconv): Update.
2586 * tests/test-striconv.c (main): Update.
2588 2007-01-21 Bruno Haible <bruno@clisp.org>
2590 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
2592 2007-01-20 Jim Meyering <jim@meyering.net>
2594 * lib/userspec.c (parse_with_separator): If a user or group string
2595 starts with "+", skip the corresponding name-to-ID look-up, since
2596 such a look-up must fail: user and group names may not include "+".
2598 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
2600 * lib/poll.c: Include sys/time.h and time.h unconditionally,
2601 since we now assume the sys_time module.
2602 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
2603 check for sys/time.h; no longer needed.
2604 * modules/poll (Depends-on): Depend on sys_time.
2606 2007-01-18 Bruno Haible <bruno@clisp.org>
2608 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
2609 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
2611 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
2614 * tests/test-gettimeofday.c: Include <time.h>.
2615 (dummy): Remove variable.
2617 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
2618 gl_HEADER_SYS_TIME_H.
2619 (gl_HEADER_SYS_TIME_H): New macro.
2621 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
2622 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2623 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
2624 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
2625 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2626 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
2627 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
2628 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2629 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
2630 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
2631 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2633 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
2634 last change; it caused a compilation error when cross-compiling to
2637 2007-01-18 Jim Meyering <jim@meyering.net>
2639 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
2640 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
2641 than the race-prone "test -d sys || mkdir sys".
2642 (configure.ac): Use AC_PROG_MKDIR_P.
2643 * modules/sys_select: Likewise.
2644 * modules/sys_socket: Likewise.
2645 * modules/sys_time: Likewise.
2647 2007-01-18 Eric Blake <ebb9@byu.net>
2649 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
2650 replace gettimeofday.
2651 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
2652 name, to avoid infinite recursion.
2654 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
2656 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
2658 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
2659 assume timespec.h defines struct timeval.
2660 * lib/settime.c: Likewise.
2661 * lib/utimens.c: Likewise.
2662 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
2663 since we now assume the gettimeofday module.
2664 * lib/tempname.c (__gen_tempname): Likewise.
2665 * lib/gettimeofday.h: Remove.
2666 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
2667 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
2668 Include <time.h>, for 'time()'.
2669 (localtime_buffer_addr): Also use this workaround if
2670 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
2671 to simplify the uses. All uses changed.
2672 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
2673 that #undef is inside {}, and 'const' follows type name consistently.
2674 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
2675 (gettimeofday): Do not use the maximum possible value for
2676 tv->tv_usec, since that might break usages other than ls.c.
2677 Instead, we'll leave ls.c alone. This undoes today's patch
2678 by Bruno. Add a compile-time warning for 1s-clock resolution;
2679 we've never observed the problem but might as well keep the
2681 * lib/nanosleep.c: Include timespec.h first, for interface check.
2682 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
2683 now assume the sys_time module.
2684 * lib/tempname.c: Likewise.
2685 * lib/timespec.h: Likewise.
2686 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
2688 * lib/strftime.c: Likewise.
2689 * lib/timespec.h: Likewise.
2690 * lib/posixtm.c: Include posixtm.h first, for interface check.
2691 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
2692 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
2693 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
2694 * lib/sys_time_.h: New file.
2695 * lib/timespec.h (struct timespec): Use long int, not long.
2696 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
2697 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
2698 Remove obsolescent call to AC_HEADER_TIME.
2699 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
2700 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2701 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
2702 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
2704 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
2705 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
2706 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
2707 into the sys_time module. Check for gettimeofday just once.
2708 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
2709 for gettimeofday signature to just check the signature. Merely
2710 compile it, since linking doesn't test signature. Improve test for
2711 whether gettimeofday.o is actually needed.
2712 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
2713 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
2714 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
2715 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2716 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
2717 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
2718 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
2719 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
2720 than worrying about sys/time.h.
2721 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
2722 Don't bother worrying about TIME_WITH_SYS_TIME.
2723 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
2724 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
2725 * m4/sys_time_h.m4: New file.
2726 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
2727 Don't include sys/time.h. Return from main rather than exiting.
2728 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
2730 * modules/gethrxtime (Depends-on): Add sys_time.
2731 * modules/gettime (Depends-on): Likewise.
2732 * modules/gettimeofday (Depends-on): Likewise.
2733 * modules/nanosleep (Depends-on): Likewise.
2734 * modules/settime (Depends-on): Likewise.
2735 * modules/tempname (Depends-on): Likewise.
2736 * modules/utimens (Depends-on): Likewise.
2737 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
2738 (Include:) Change back to <sys/time.h>.
2739 (Maintainer:) Add self.
2740 * modules/sys_time: New file.
2741 * modules/tempname (Depends-on): Add gettimeofday.
2742 * tests/test-gettimeofday.c: Include <sys/time.h>
2743 rather than gettimeofday.h.
2745 2007-01-17 Bruno Haible <bruno@clisp.org>
2747 * gnulib-tool (func_get_license): Revert last patch. Instead, let
2748 the license default to GPL.
2749 (func_create_testdir): Don't complain if a module is LGPL and its
2750 tests module depends on GPLed modules.
2752 2007-01-17 Bruno Haible <bruno@clisp.org>
2754 * lib/gettimeofday.c (gettimeofday): Add code for the case
2755 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
2756 maximum possible value for tv->tv_usec, rather than the minimum one.
2758 2005-10-08 Martin Lambers <marlam@marlam.de>
2759 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
2760 2007-01-16 Bruno Haible <bruno@clisp.org>
2762 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
2763 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
2764 gl_FUNC_GETTIMEOFDAY.
2765 (Include): Add gettimeofday.h.
2766 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
2767 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
2768 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
2769 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
2770 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
2771 * lib/gettimeofday.h: New file.
2772 * lib/gettimeofday.c: Include <sys/timeb.h>.
2773 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
2774 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2775 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
2776 fall back on time().
2778 * tests/test-gettimeofday.c: New file.
2779 * modules/gettimeofday-tests: New file.
2781 2007-01-16 Eric Blake <ebb9@byu.net>
2783 * modules/fnmatch (Depends-on): Depend on wchar.
2784 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
2785 * m4/fnmatch.m4: Likewise.
2786 * modules/mbchar (Makefile.am): Assume <wchar.h>.
2787 * m4/mbchar.m4: Likewise.
2788 * modules/mbswidth (Depends-on): Depend on wchar.
2789 * lib/mbswidth.c: Assume <wchar.h>.
2790 * m4/mbswidth.m4: Likewise.
2791 * modules/quotearg (Depends-on): Depend on wchar.
2792 * lib/quotearg.c: Assume <wchar.h>.
2793 * m4/quotearg.m4: Likewise.
2794 * modules/regex (Depends-on): Depend on wchar.
2795 * lib/regex_internal.h: Assume <wchar.h>.
2796 * m4/regex.m4: Likewise.
2797 * modules/stdint (Depends-on): Depend on wchar.
2798 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
2799 * m4/stdint.m4: Likewise.
2800 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
2801 * modules/strftime (Depends-on): Depend on wchar.
2802 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
2803 * modules/strtol (Depends-on): Depend on wchar.
2804 * lib/strtol.c: Assume <wchar.h>.
2805 * modules/wcwidth (Depends-on): Depend on wchar.
2806 * lib/wcwidth.h: Assume <wchar.h>.
2807 * m4/wcwidth.m4: Likewise.
2809 2007-01-16 Bruno Haible <bruno@clisp.org>
2811 * modules/csharpexec-script: New, created from...
2812 * modules/csharpexec: ... this.
2814 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
2816 * modules/javaexec-script: New, created from...
2817 * modules/javaexec: ... this.
2819 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2821 * modules/poll (Dependencies): Add sys_select.
2823 2007-01-15 Jim Meyering <jim@meyering.net>
2825 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
2826 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
2827 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
2828 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
2830 2007-01-15 Bruno Haible <bruno@clisp.org>
2832 * modules/striconveh: New file.
2833 * lib/striconveh.h: New file.
2834 * lib/striconveh.c: New file.
2835 * MODULES.html.sh (Internationalization functions): Add striconveh.
2837 * modules/striconveh-tests: New file.
2838 * tests/test-striconveh.c: New file.
2840 2007-01-15 Bruno Haible <bruno@clisp.org>
2842 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
2843 not from GNU libiconv or GNU libc.
2845 2007-01-15 Bruno Haible <bruno@clisp.org>
2847 * doc/gnulib-intro.texi (Copyright): Explain the different license
2848 terms for module descriptions, autoconf macros, tests, documentation.
2850 2007-01-14 Bruno Haible <bruno@clisp.org>
2852 * modules/striconv-tests: New file.
2853 * tests/test-striconv.c: New file.
2855 2007-01-14 Bruno Haible <bruno@clisp.org>
2857 * modules/iconv-tests: New file.
2858 * tests/test-iconv.c: New file.
2860 2007-01-14 Bruno Haible <bruno@clisp.org>
2862 * gnulib-tool (func_get_license): For test modules, use the license of
2865 2007-01-14 Bruno Haible <bruno@clisp.org>
2867 * modules/iconv (Include): Clarify that <iconv.h> can only be included
2868 if iconv is found to exist.
2870 2007-01-14 Bruno Haible <bruno@clisp.org>
2872 * modules/c-ctype-tests: New file.
2873 * tests/test-c-ctype.c: New file.
2875 2007-01-14 Bruno Haible <bruno@clisp.org>
2877 * modules/binary-io-tests: New file.
2878 * tests/test-binary-io.sh: New file.
2879 * tests/test-binary-io.c: New file.
2881 2007-01-14 Bruno Haible <bruno@clisp.org>
2883 * modules/array-oset-tests: New file.
2884 * tests/test-array_oset.c: New file.
2886 2007-01-14 Bruno Haible <bruno@clisp.org>
2888 * modules/array-list-tests: New file.
2889 * tests/test-array_list.c: New file.
2891 2007-01-14 Bruno Haible <bruno@clisp.org>
2893 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
2895 Reported by Simon Josefsson in
2896 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
2898 2007-01-14 Bruno Haible <bruno@clisp.org>
2900 * modules/allocsa-tests: New file.
2901 * tests/test-allocsa.c: New file.
2903 2007-01-14 Bruno Haible <bruno@clisp.org>
2905 * modules/fchdir (Depends-on): Add absolute-header.
2906 * modules/unistd (Depends-on): Likewise.
2908 2006-12-30 Bruno Haible <bruno@clisp.org>
2910 * modules/fchdir: New file.
2911 * modules/unistd (Files): Add lib/unistd_.h.
2912 (Makefile.am): Generate unistd.h from unistd_.h.
2913 * lib/fchdir.c: New file.
2914 * lib/dirent_.h: New file.
2915 * lib/unistd_.h: New file.
2916 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
2917 * m4/fchdir.m4: New file.
2918 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
2919 (gl_HEADER_UNISTD): Invoke it.
2920 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
2922 * lib/backupfile.c (opendir, closedir): Undefine.
2923 * lib/chown.c (open, close): Undefine.
2924 * lib/clean-temp.c (open, close): Undefine.
2925 * lib/copy-file.c (open, close): Undefine.
2926 * lib/execute.c (open, close): Undefine.
2927 * lib/fsusage.c (open, close): Undefine.
2928 * lib/gc-gnulib.c (open, close): Undefine.
2929 * lib/getcwd.c (opendir, closedir): Undefine.
2930 * lib/glob.c (opendir, closedir): Undefine.
2931 * lib/javacomp.c (open, close): Undefine.
2932 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
2933 * lib/openat-proc.c (open, close): Undefine.
2934 * lib/pagealign_alloc.c (open, close): Undefine.
2935 * lib/pipe.c (open, close): Undefine.
2936 * lib/progreloc.c (open, close): Undefine.
2937 * lib/savedir.c (opendir, closedir): Undefine.
2938 * lib/utime.c (open, close): Undefine.
2939 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
2941 2007-01-10 Bruno Haible <bruno@clisp.org>
2943 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
2945 2007-01-12 Eric Blake <ebb9@byu.net>
2947 Provide a robust <wchar.h>. Further simplifications are now
2948 possible in other modules, but not included here.
2949 * modules/wchar: New module.
2950 * m4/wchar.m4: New file.
2951 * lib/wchar_.h: Likewise.
2952 * modules/mbchar (Depends-on): Depend on wchar, as the first use
2954 * MODULES.html.sh (Extended multibyte and wide character utilities):
2957 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
2959 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
2960 to a reasonable default for memory allocation.
2961 (xreadlink): Don't allocate a huge buffer, to work around a buggy
2962 file system that reports garbage st_size values for symlinks.
2963 Problem reported by Liyang Hu.
2965 2007-01-11 Simon Josefsson <simon@josefsson.org>
2967 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
2968 Emacs .#* auto-save files).
2970 2007-01-11 Bruno Haible <bruno@clisp.org>
2972 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
2975 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
2977 Use @...@ consistently in lib/wctype_.h.
2978 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
2979 on it being set to 1 or 0.
2980 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
2981 go back to AC_SUBSTing it.
2982 * modules/wctype (Makefile.am): Undo previous change.
2984 2007-01-10 Eric Blake <ebb9@byu.net>
2986 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
2987 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
2988 * modules/wctype (Makefile.am): Likewise.
2989 Reported by Chris McGuire.
2991 2007-01-10 Jim Meyering <jim@meyering.net>
2993 fts.c: a small readability/maintainability improvement
2994 * lib/fts.c (fts_read): Make this code slightly more readable and
2995 maintainable by hoisting the "sp->fts_cur = p" assignments to
2996 immediately follow the statements that set P. Derived from
2997 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
2999 2007-01-10 Eric Blake <ebb9@byu.net>
3001 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
3002 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
3003 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3004 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
3005 Reported by Chris McGuire.
3007 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3009 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
3012 2007-01-09 Bruno Haible <bruno@clisp.org>
3014 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
3015 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
3017 (func_module): Use them.
3019 2007-01-09 Bruno Haible <bruno@clisp.org>
3021 * modules/unistr/base: New file.
3022 * lib/unistr.h: New file.
3024 * modules/unistr/u8-to-u16: New file.
3025 * lib/unistr/u8-to-u16.c: New file.
3027 * modules/unistr/u8-to-u32: New file.
3028 * lib/unistr/u8-to-u32.c: New file.
3030 * modules/unistr/u16-to-u8: New file.
3031 * lib/unistr/u16-to-u8.c: New file.
3033 * modules/unistr/u16-to-u32: New file.
3034 * lib/unistr/u16-to-u32.c: New file.
3036 * modules/unistr/u32-to-u8: New file.
3037 * lib/unistr/u32-to-u8.c: New file.
3039 * modules/unistr/u32-to-u16: New file.
3040 * lib/unistr/u32-to-u16.c: New file.
3042 * modules/unistr/u8-check: New file.
3043 * modules/unistr/u16-check: New file.
3044 * modules/unistr/u32-check: New file.
3045 * lib/unistr/u8-check.c: New file.
3046 * lib/unistr/u16-check.c: New file.
3047 * lib/unistr/u32-check.c: New file.
3049 * modules/unistr/u8-chr: New file.
3050 * modules/unistr/u16-chr: New file.
3051 * modules/unistr/u32-chr: New file.
3052 * lib/unistr/u8-chr.c: New file.
3053 * lib/unistr/u16-chr.c: New file.
3054 * lib/unistr/u32-chr.c: New file.
3056 * modules/unistr/u8-cmp: New file.
3057 * modules/unistr/u16-cmp: New file.
3058 * modules/unistr/u32-cmp: New file.
3059 * lib/unistr/u8-cmp.c: New file.
3060 * lib/unistr/u16-cmp.c: New file.
3061 * lib/unistr/u32-cmp.c: New file.
3063 * modules/unistr/u8-cpy: New file.
3064 * modules/unistr/u16-cpy: New file.
3065 * modules/unistr/u32-cpy: New file.
3066 * lib/unistr/u8-cpy.c: New file.
3067 * lib/unistr/u16-cpy.c: New file.
3068 * lib/unistr/u32-cpy.c: New file.
3069 * lib/unistr/u-cpy.h: New file.
3071 * modules/unistr/u8-cpy-alloc: New file.
3072 * modules/unistr/u16-cpy-alloc: New file.
3073 * modules/unistr/u32-cpy-alloc: New file.
3074 * lib/unistr/u8-cpy-alloc.c: New file.
3075 * lib/unistr/u16-cpy-alloc.c: New file.
3076 * lib/unistr/u32-cpy-alloc.c: New file.
3077 * lib/unistr/u-cpy-alloc.h: New file.
3079 * modules/unistr/u8-endswith: New file.
3080 * modules/unistr/u16-endswith: New file.
3081 * modules/unistr/u32-endswith: New file.
3082 * lib/unistr/u8-endswith.c: New file.
3083 * lib/unistr/u16-endswith.c: New file.
3084 * lib/unistr/u32-endswith.c: New file.
3085 * lib/unistr/u-endswith.h: New file.
3087 * modules/unistr/u8-mblen: New file.
3088 * modules/unistr/u16-mblen: New file.
3089 * modules/unistr/u32-mblen: New file.
3090 * lib/unistr/u8-mblen.c: New file.
3091 * lib/unistr/u16-mblen.c: New file.
3092 * lib/unistr/u32-mblen.c: New file.
3094 * modules/unistr/u8-mbtouc: New file.
3095 * modules/unistr/u16-mbtouc: New file.
3096 * modules/unistr/u32-mbtouc: New file.
3097 * lib/unistr/u8-mbtouc.c: New file.
3098 * lib/unistr/u16-mbtouc.c: New file.
3099 * lib/unistr/u32-mbtouc.c: New file.
3101 * modules/unistr/u8-mbtouc-safe: New file.
3102 * modules/unistr/u16-mbtouc-safe: New file.
3103 * modules/unistr/u32-mbtouc-safe: New file.
3104 * lib/unistr/u8-mbtouc-safe.c: New file.
3105 * lib/unistr/u16-mbtouc-safe.c: New file.
3106 * lib/unistr/u32-mbtouc-safe.c: New file.
3108 * modules/unistr/u8-move: New file.
3109 * modules/unistr/u16-move: New file.
3110 * modules/unistr/u32-move: New file.
3111 * lib/unistr/u8-move.c: New file.
3112 * lib/unistr/u16-move.c: New file.
3113 * lib/unistr/u32-move.c: New file.
3114 * lib/unistr/u-move.h: New file.
3116 * modules/unistr/u8-next: New file.
3117 * modules/unistr/u16-next: New file.
3118 * modules/unistr/u32-next: New file.
3119 * lib/unistr/u8-next.c: New file.
3120 * lib/unistr/u16-next.c: New file.
3121 * lib/unistr/u32-next.c: New file.
3123 * modules/unistr/u8-prev: New file.
3124 * modules/unistr/u16-prev: New file.
3125 * modules/unistr/u32-prev: New file.
3126 * lib/unistr/u8-prev.c: New file.
3127 * lib/unistr/u16-prev.c: New file.
3128 * lib/unistr/u32-prev.c: New file.
3130 * modules/unistr/u8-set: New file.
3131 * modules/unistr/u16-set: New file.
3132 * modules/unistr/u32-set: New file.
3133 * lib/unistr/u8-set.c: New file.
3134 * lib/unistr/u16-set.c: New file.
3135 * lib/unistr/u32-set.c: New file.
3136 * lib/unistr/u-set.h: New file.
3138 * modules/unistr/u8-startswith: New file.
3139 * modules/unistr/u16-startswith: New file.
3140 * modules/unistr/u32-startswith: New file.
3141 * lib/unistr/u8-startswith.c: New file.
3142 * lib/unistr/u16-startswith.c: New file.
3143 * lib/unistr/u32-startswith.c: New file.
3144 * lib/unistr/u-startswith.h: New file.
3146 * modules/unistr/u8-stpcpy: New file.
3147 * modules/unistr/u16-stpcpy: New file.
3148 * modules/unistr/u32-stpcpy: New file.
3149 * lib/unistr/u8-stpcpy.c: New file.
3150 * lib/unistr/u16-stpcpy.c: New file.
3151 * lib/unistr/u32-stpcpy.c: New file.
3152 * lib/unistr/u-stpcpy.h: New file.
3154 * modules/unistr/u8-stpncpy: New file.
3155 * modules/unistr/u16-stpncpy: New file.
3156 * modules/unistr/u32-stpncpy: New file.
3157 * lib/unistr/u8-stpncpy.c: New file.
3158 * lib/unistr/u16-stpncpy.c: New file.
3159 * lib/unistr/u32-stpncpy.c: New file.
3160 * lib/unistr/u-stpncpy.h: New file.
3162 * modules/unistr/u8-strcat: New file.
3163 * modules/unistr/u16-strcat: New file.
3164 * modules/unistr/u32-strcat: New file.
3165 * lib/unistr/u8-strcat.c: New file.
3166 * lib/unistr/u16-strcat.c: New file.
3167 * lib/unistr/u32-strcat.c: New file.
3168 * lib/unistr/u-strcat.h: New file.
3170 * modules/unistr/u8-strchr: New file.
3171 * modules/unistr/u16-strchr: New file.
3172 * modules/unistr/u32-strchr: New file.
3173 * lib/unistr/u8-strchr.c: New file.
3174 * lib/unistr/u16-strchr.c: New file.
3175 * lib/unistr/u32-strchr.c: New file.
3177 * modules/unistr/u8-strcmp: New file.
3178 * modules/unistr/u16-strcmp: New file.
3179 * modules/unistr/u32-strcmp: New file.
3180 * lib/unistr/u8-strcmp.c: New file.
3181 * lib/unistr/u16-strcmp.c: New file.
3182 * lib/unistr/u32-strcmp.c: New file.
3184 * modules/unistr/u8-strcpy: New file.
3185 * modules/unistr/u16-strcpy: New file.
3186 * modules/unistr/u32-strcpy: New file.
3187 * lib/unistr/u8-strcpy.c: New file.
3188 * lib/unistr/u16-strcpy.c: New file.
3189 * lib/unistr/u32-strcpy.c: New file.
3190 * lib/unistr/u-strcpy.h: New file.
3192 * modules/unistr/u8-strcspn: New file.
3193 * modules/unistr/u16-strcspn: New file.
3194 * modules/unistr/u32-strcspn: New file.
3195 * lib/unistr/u8-strcspn.c: New file.
3196 * lib/unistr/u16-strcspn.c: New file.
3197 * lib/unistr/u32-strcspn.c: New file.
3198 * lib/unistr/u-strcspn.h: New file.
3200 * modules/unistr/u8-strdup: New file.
3201 * modules/unistr/u16-strdup: New file.
3202 * modules/unistr/u32-strdup: New file.
3203 * lib/unistr/u8-strdup.c: New file.
3204 * lib/unistr/u16-strdup.c: New file.
3205 * lib/unistr/u32-strdup.c: New file.
3206 * lib/unistr/u-strdup.h: New file.
3208 * modules/unistr/u8-strlen: New file.
3209 * modules/unistr/u16-strlen: New file.
3210 * modules/unistr/u32-strlen: New file.
3211 * lib/unistr/u8-strlen.c: New file.
3212 * lib/unistr/u16-strlen.c: New file.
3213 * lib/unistr/u32-strlen.c: New file.
3214 * lib/unistr/u-strlen.h: New file.
3216 * modules/unistr/u8-strmblen: New file.
3217 * modules/unistr/u16-strmblen: New file.
3218 * modules/unistr/u32-strmblen: New file.
3219 * lib/unistr/u8-strmblen.c: New file.
3220 * lib/unistr/u16-strmblen.c: New file.
3221 * lib/unistr/u32-strmblen.c: New file.
3223 * modules/unistr/u8-strmbtouc: New file.
3224 * modules/unistr/u16-strmbtouc: New file.
3225 * modules/unistr/u32-strmbtouc: New file.
3226 * lib/unistr/u8-strmbtouc.c: New file.
3227 * lib/unistr/u16-strmbtouc.c: New file.
3228 * lib/unistr/u32-strmbtouc.c: New file.
3230 * modules/unistr/u8-strncat: New file.
3231 * modules/unistr/u16-strncat: New file.
3232 * modules/unistr/u32-strncat: New file.
3233 * lib/unistr/u8-strncat.c: New file.
3234 * lib/unistr/u16-strncat.c: New file.
3235 * lib/unistr/u32-strncat.c: New file.
3236 * lib/unistr/u-strncat.h: New file.
3238 * modules/unistr/u8-strncmp: New file.
3239 * modules/unistr/u16-strncmp: New file.
3240 * modules/unistr/u32-strncmp: New file.
3241 * lib/unistr/u8-strncmp.c: New file.
3242 * lib/unistr/u16-strncmp.c: New file.
3243 * lib/unistr/u32-strncmp.c: New file.
3245 * modules/unistr/u8-strncpy: New file.
3246 * modules/unistr/u16-strncpy: New file.
3247 * modules/unistr/u32-strncpy: New file.
3248 * lib/unistr/u8-strncpy.c: New file.
3249 * lib/unistr/u16-strncpy.c: New file.
3250 * lib/unistr/u32-strncpy.c: New file.
3251 * lib/unistr/u-strncpy.h: New file.
3253 * modules/unistr/u8-strnlen: New file.
3254 * modules/unistr/u16-strnlen: New file.
3255 * modules/unistr/u32-strnlen: New file.
3256 * lib/unistr/u8-strnlen.c: New file.
3257 * lib/unistr/u16-strnlen.c: New file.
3258 * lib/unistr/u32-strnlen.c: New file.
3259 * lib/unistr/u-strnlen.h: New file.
3261 * modules/unistr/u8-strpbrk: New file.
3262 * modules/unistr/u16-strpbrk: New file.
3263 * modules/unistr/u32-strpbrk: New file.
3264 * lib/unistr/u8-strpbrk.c: New file.
3265 * lib/unistr/u16-strpbrk.c: New file.
3266 * lib/unistr/u32-strpbrk.c: New file.
3267 * lib/unistr/u-strpbrk.h: New file.
3269 * modules/unistr/u8-strrchr: New file.
3270 * modules/unistr/u16-strrchr: New file.
3271 * modules/unistr/u32-strrchr: New file.
3272 * lib/unistr/u8-strrchr.c: New file.
3273 * lib/unistr/u16-strrchr.c: New file.
3274 * lib/unistr/u32-strrchr.c: New file.
3276 * modules/unistr/u8-strspn: New file.
3277 * modules/unistr/u16-strspn: New file.
3278 * modules/unistr/u32-strspn: New file.
3279 * lib/unistr/u8-strspn.c: New file.
3280 * lib/unistr/u16-strspn.c: New file.
3281 * lib/unistr/u32-strspn.c: New file.
3282 * lib/unistr/u-strspn.h: New file.
3284 * modules/unistr/u8-strstr: New file.
3285 * modules/unistr/u16-strstr: New file.
3286 * modules/unistr/u32-strstr: New file.
3287 * lib/unistr/u8-strstr.c: New file.
3288 * lib/unistr/u16-strstr.c: New file.
3289 * lib/unistr/u32-strstr.c: New file.
3290 * lib/unistr/u-strstr.h: New file.
3292 * modules/unistr/u8-strtok: New file.
3293 * modules/unistr/u16-strtok: New file.
3294 * modules/unistr/u32-strtok: New file.
3295 * lib/unistr/u8-strtok.c: New file.
3296 * lib/unistr/u16-strtok.c: New file.
3297 * lib/unistr/u32-strtok.c: New file.
3298 * lib/unistr/u-strtok.h: New file.
3300 * modules/unistr/u8-uctomb: New file.
3301 * modules/unistr/u16-uctomb: New file.
3302 * modules/unistr/u32-uctomb: New file.
3303 * lib/unistr/u8-uctomb.c: New file.
3304 * lib/unistr/u16-uctomb.c: New file.
3305 * lib/unistr/u32-uctomb.c: New file.
3307 * MODULES.html.sh (Unicode string functions): Add the new modules.
3309 2007-01-08 Bruno Haible <bruno@clisp.org>
3311 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
3312 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
3315 2007-01-08 Karl Berry <karl@gnu.org>
3317 * doc/error.texi: mention that main() fns must set program_name
3318 when progname is used.
3320 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
3322 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
3323 WCTYPE_H is empty, for the benefit of builds from non-distclean
3324 directories. Problem reported by Eric Blake in
3325 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
3327 2007-01-08 Bruno Haible <bruno@clisp.org>
3329 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
3330 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
3331 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
3332 PROVIDE_CANONICALIZE_FILENAME_MODE.
3333 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
3335 2007-01-08 Bruno Haible <bruno@clisp.org>
3337 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
3338 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
3339 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
3340 * lib/fts.c: Likewise.
3341 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
3343 2006-12-25 Bruno Haible <bruno@clisp.org>
3345 * modules/utf8-ucs4-safe: New file.
3346 * lib/utf8-ucs4-safe.h: New file.
3347 * lib/unistr/utf8-ucs4-safe.c: New file.
3349 * modules/utf16-ucs4-safe: New file.
3350 * lib/utf16-ucs4-safe.h: New file.
3351 * lib/unistr/utf16-ucs4-safe.c: New file.
3353 * MODULES.html.sh (Unicode string functions): Add the new modules.
3355 2007-01-08 Bruno Haible <bruno@clisp.org>
3357 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
3358 (Depends-on): Add unitypes.
3359 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
3360 (u8_mbtouc_aux): Move out to separate file.
3361 (u8_mbtouc): Use ucs4_t, uint8_t types.
3362 * lib/unistr/utf8-ucs4.c: New file.
3364 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
3365 (Depends-on): Add unitypes.
3366 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
3367 (u16_mbtouc_aux): Move out to separate file.
3368 (u16_mbtouc): Use ucs4_t, uint16_t types.
3369 * lib/unistr/utf16-ucs4.c: New file.
3371 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
3372 (Depends-on): Add unitypes.
3373 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
3374 (u8_uctomb_aux): Move out to separate file.
3375 (u8_uctomb): Use ucs4_t, uint8_t types.
3376 * lib/unistr/ucs4-utf8.c: New file.
3378 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
3379 (Depends-on): Add unitypes.
3380 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
3381 (u16_uctomb_aux): Move out to separate file.
3382 (u16_uctomb): Use ucs4_t, uint16_t types.
3383 * lib/unistr/ucs4-utf16.c: New file.
3385 2006-12-25 Bruno Haible <bruno@clisp.org>
3387 * modules/unitypes: New file.
3388 * lib/unitypes.h: New file.
3389 * MODULES.html.sh (func_all_modules): New section "Unicode string
3390 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
3391 this section. Add unitypes.
3393 2007-01-08 Bruno Haible <bruno@clisp.org>
3395 Avoid variable names that conflict with those from libtool.
3396 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
3397 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
3398 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
3399 library_names_spec to acl_library_names_spec, hardcode_* to
3401 Reported by Ralf Wildenhues.
3403 2007-01-08 Bruno Haible <bruno@clisp.org>
3405 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
3407 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
3409 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
3410 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
3412 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
3414 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
3415 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
3416 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
3417 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
3419 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
3421 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
3422 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
3424 * lib/gc-libgcrypt.c: Likewise.
3425 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
3426 * modules/gc-arctwo (configure.ac): Likewise.
3427 * modules/gc-des (configure.ac): Likewise.
3428 * modules/gc-hmac-md5 (configure.ac): Likewise.
3429 * modules/gc-hmac-sha1 (configure.ac): Likewise.
3430 * modules/gc-md2 (configure.ac): Likewise.
3431 * modules/gc-md4 (configure.ac): Likewise.
3432 * modules/gc-md5 (configure.ac): Likewise.
3433 * modules/gc-random (configure.ac): Likewise.
3434 * modules/gc-rijndael (configure.ac): Likewise.
3435 * modules/gc-sha1 (configure.ac): Likewise.
3437 2007-01-08 Bruno Haible <bruno@clisp.org>
3439 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
3441 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
3443 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
3445 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
3446 * modules/fcntl-safer (configure.ac): Likewise.
3447 * modules/fopen-safer (configure.ac): Likewise.
3448 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
3449 GNULIB_FWRITEERROR macro definition.
3451 2007-01-08 Bruno Haible <bruno@clisp.org>
3453 * m4/gnulib-common.m4: New file.
3454 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
3455 (func_get_filelist): Add m4/gnulib-common.m4.
3457 2007-01-08 Bruno Haible <bruno@clisp.org>
3459 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
3462 2007-01-08 Jim Meyering <jim@meyering.net>
3464 Use a more robust test for a "can't happen" condition.
3465 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
3466 narrowed the st_size value. Presuming the "can't happen" condition
3467 is true, that narrowing could conceivably convert an invalid st_size
3468 value into a valid one. Instead, use a change based on Matthew
3469 Woehlke's original patch.
3471 Slight readability improvement: use an assert-like macro
3472 in place of literal "abort ()" uses.
3473 * lib/fts.c (fts_assert): Define.
3474 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
3475 Use this macro instead of a bare 'abort'.
3477 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
3479 Don't worry about using IRIX 5.3's wctype.h broken definitions;
3480 simply work around them.
3481 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
3482 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
3483 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
3485 Don't bother to define as macros, since the standard doesn't require it.
3486 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
3487 longer worry about IRIX 5.3.
3488 (HAVE_WCTYPE_CTMP_BUG): Remove.
3490 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
3492 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
3493 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
3494 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
3495 Problems reported by Georg Schwarz for IRIX 5.3.
3497 * gnulib-tool (autoconf_minversion): Take the maximum version number
3498 found, not the minimum. Problem reported by James Youngman.
3500 2007-01-03 Karl Berry <karl@gnu.org>
3502 * doc/error.texi: new file, explaining interaction with progname.
3503 * doc/gnulib.texi: include it. Update copyright.
3505 2007-01-03 Simon Josefsson <simon@josefsson.org>
3507 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
3508 AC_CANONICAL_HOST, to improve autobuild outputs.
3510 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
3511 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3513 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
3514 sockets, server sockets, and other file descriptors. Count errors
3515 to compute the return value. Reorder the code a bit to be easier
3516 to follow. Don't set event bits that were not requested (except
3517 POLLERR and POLLHUP).
3519 2007-01-01 Bruno Haible <bruno@clisp.org>
3521 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
3523 2007-01-03 Jim Meyering <jim@meyering.net>
3525 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
3527 2007-01-02 Bruno Haible <bruno@clisp.org>
3529 * modules/settime (Include): Require timespec.h.
3530 * modules/nanosleep (Include): Likewise.
3532 2007-01-01 Bruno Haible <bruno@clisp.org>
3534 * gnulib-tool (func_emit_copyright_notice): Bump year.
3535 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
3537 2007-01-01 Bruno Haible <bruno@clisp.org>
3539 Improve support for OpenBSD.
3540 * build-aux/config.rpath (libname_spec): Export.
3541 (library_names_spec): New variable. Export.
3542 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
3543 library_names_spec from the config.rpath output. Locate shared library
3544 through the name pattern in library_names_spec.
3546 2007-01-01 Eric Blake <ebb9@byu.net>
3548 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
3550 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
3552 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
3553 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
3554 assume the C locale, and avoid an "eval" that could cause trouble.
3555 Problem with SORT reported by Bob Proulx.
3557 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
3558 Define. Trivial patch from Henning Nielsen Lund, originally
3559 sent to bug-grep@gnu.org today.
3561 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
3563 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
3564 struct stat. Problem reported by Henning Nielsen Lund.
3565 * lib/acl.c: Include acl.h first, to check interface. Don't
3566 bother to include sys/types.h and sys/stat.h again.
3568 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
3570 Import the following change from libc; problem reported by
3573 2005-10-13 Ulrich Drepper <drepper@redhat.com>
3576 * lib/argp.h: Remove __NTH for __argp_usage inline function.
3578 2006-12-28 Jim Meyering <jim@meyering.net>
3580 * build-aux/announce-gen: Do not assume that the package
3581 builds any of tar.gz, tar.bz2, and .xdelta files.
3582 Suggestion from Simon Josefsson.
3584 2006-12-28 Simon Josefsson <simon@josefsson.org>
3586 * modules/announce-gen: New file.
3588 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
3590 * lib/mbchar.h: Just include <wctype.h>; the wctype module
3591 handles its gotchas now.
3592 * lib/mbswidth.c: Likewise.
3593 * lib/wcwidth.h: Likewise.
3594 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
3595 and iswcntrl; the wctype module does this stuff now.
3596 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
3597 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3598 * modules/mbchar (Depends-on): Add wctype.
3599 * modules/mbswidth (Depends-on): Likewise.
3600 * modules/wcwidth (Depends-on): Likewise.
3602 2006-12-27 Eric Blake <ebb9@byu.net>
3604 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
3605 module uses more than what <wctype.h> is required to provide.
3607 2006-12-26 Eric Blake <ebb9@byu.net>
3609 * gnulib-tool (sed_extract_prog): Avoid space-tab.
3611 2006-12-26 Eric Blake <ebb9@byu.net>
3613 * modules/absolute-header: New module.
3614 * modules/fcntl (Depends-on): Depend on it.
3615 * modules/inttypes (Depends-on): Likewise.
3616 * modules/stdint (Depends-on): Likewise.
3617 * modules/sys_stat (Depends-on): Likewise.
3618 * modules/wctype (Depends-on): Likewise.
3619 * MODULES.html.sh (Support for building libraries and
3620 executables): Document it.
3622 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
3624 * gnulib-tool (SED): Remove, undoing previous change.
3625 The problem was that it broke coreutils on Solaris, because
3626 "sed --posix" leaked into a makefile.
3627 (sed): New alias, if 'alias' and GNU sed.
3629 2006-12-24 Jim Meyering <jim@meyering.net>
3631 Work around an fchownat bug in glibc-2.4:
3632 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
3633 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
3634 in spite of the -P option.
3635 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
3637 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
3638 * modules/openat (Files): Add lib/fchownat.c.
3639 * lib/openat.c (fchownat): Don't define here. Move to...
3640 * lib/fchownat.c: ...this new file.
3642 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
3644 Fix bug reported by Bruno Haible in
3645 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
3646 where quotearg.c didn't compile on Mac OS X 10.2 because it
3647 lacks <wchar.h> and wint_t.
3648 * lib/wctype_.h (__wctype_wint_t): New type.
3649 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
3650 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
3651 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
3652 Arg is now of type __wctype_wint_t, not wint_t.
3653 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
3654 substitute HAVE_WINT_T.
3655 * modules/wctype (Files): Add m4/wint_t.m4.
3656 (wctype.h): Substitute HAVE_WINT_T.
3658 2006-12-23 Bruno Haible <bruno@clisp.org>
3660 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
3662 2006-12-23 Bruno Haible <bruno@clisp.org>
3664 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
3666 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
3669 2006-12-22 Bruno Haible <bruno@clisp.org>
3671 * lib/copy-file.c: Include acl.h.
3672 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
3673 Close the file descriptors only after being done with copy_acl.
3674 * modules/copy-file (Depends-on): Add acl.
3676 2006-12-22 Bruno Haible <bruno@clisp.org>
3678 * gnulib-tool (SED): New variable.
3679 Use $SED instead of sed everywhere.
3681 2006-12-22 Bruno Haible <bruno@clisp.org>
3683 * modules/no-c++: New file.
3684 * m4/no-c++.m4: New file.
3685 * MODULES.html.sh (Support for building libraries and executables):
3688 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
3690 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
3691 Include <limits.h>, and use its INT_MAX to rewrite the
3692 j loop so that it does not overflow 'int'. Problem reported by
3694 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
3695 Play it safe by shifting left by 1 rather than multiplying by 2,
3696 as GCC is less likely to optimize this away when the value
3697 is signed (when it assumes overflow leads to undefined behavior).
3698 Also, don't assume time_t uses two's complement.
3700 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
3702 * MODULES.html.sh: New module wctype.
3703 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
3704 * lib/fnmatch.c: Don't bother to include <wchar.h> before
3705 <wctype.h>, since the new wctype module should fix this.
3706 * lib/quotearg.c: Include <wctype.h> unconditionally, since
3707 the wctype module should arrange for it.
3708 * lib/regex_internal.h: Likewise.
3709 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
3710 since the wctype module should handle this now.
3711 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
3712 * modules/fnmatch (Depends-on): Add wctype.
3713 * modules/quotearg (Depends-on): Likewise.
3714 * modules/regex (Depends-on): Likewise.
3716 2006-12-19 Bruno Haible <bruno@clisp.org>
3718 * lib/strdup.h [C++]: Wrap definitions in extern "C".
3719 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
3721 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3723 * modules/savewd (Depends-on): Fix dependency on fcntl.
3725 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
3727 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
3728 conforms to C99, rather than relying on the user's environment
3729 setting of STDINT_H.
3731 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
3732 and Eric Blake <ebb9@byu.net>
3734 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
3735 This is more consistent with the other defines here.
3736 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
3737 Port to z/OS. Problem reported by Paul Gilmartin.
3738 Change local vars to use gl_ prefix rather than ac_.
3739 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
3741 * modules/double-slash-root: New module.
3742 * modules/dirname (Files): Remove m4/double-slash-root.m4.
3743 (Depends-on): Add double-slash-root.
3744 * MODULES.html.sh (File system functions): Mention new module.
3746 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
3748 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
3749 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
3750 This is for the benefit of gzip, which doesn't do i18n.
3752 2006-12-12 Jim Meyering <jim@meyering.net>
3754 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
3755 Reported by Andreas Schwab <schwab@suse.de>.
3757 2006-12-12 Bruno Haible <bruno@clisp.org>
3759 Merge these changes.
3760 2006-09-05 Bruno Haible <bruno@clisp.org>
3761 * lib/iconvme.c (iconv_string): No need to save and restore errno when
3762 iconv_alloc succeeded.
3763 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
3764 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
3765 test for " && dest " at the end - dest is always != NULL there. Call
3766 iconv with 4xNULL arguments initially, to reset the state. Call iconv
3767 with 2xNULL arguments, also to flush the state storage. Handle the
3768 IRIX iconv behaviour. Realloc the final result, to throw away unused
3771 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
3773 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
3774 and fchmodat unconditionally, since glibc 2.4 has them.
3775 Problem reported by Arkadiusz Miskiewicz.
3777 2006-12-10 Bruno Haible <bruno@clisp.org>
3779 * gnulib-tool (func_import): Show the include files only for those
3780 modules that are copied and specified.
3781 Reported by Karl Berry.
3783 2006-12-08 Jim Meyering <jim@meyering.net>
3785 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
3786 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
3788 * build-aux/announce-gen: Add two new options, both optional:
3789 --bootstrap-tools=TOOL_LIST
3790 a comma-separated list of tools, e.g.,
3791 autoconf,automake,bison,gnulib
3792 --gnulib-snapshot-date=DATE
3793 if gnulib is in the bootstrap tool list,
3794 then report this as the snapshot date.
3795 If not specified, use the current date/time.
3796 If you specify a date here, be sure it's UTC.
3798 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3800 * tests/test-argp-2.sh: Fix test to match actual output.
3801 (func_compare): Fix sed script to be portable.
3803 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
3805 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
3806 workaround for this case. It is not autoconfigured now; offhand
3807 it's hard to see how to autoconfigure it.
3809 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
3811 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
3812 a directory that is about to be chowned. Such a directory's
3813 initial file permissions should permit the owner only and this
3814 should not be changed until after the chown, since the group and
3815 other bits would be incorrect if they granted permission before
3818 Fix porting problem for iswctype reported by Georg Schwarz in:
3819 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
3820 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
3821 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
3822 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
3823 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3825 2006-12-03 Jim Meyering <jim@meyering.net>
3827 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
3828 p->fts_statp may not yet be defined.
3829 (fts_read): Instead, set it in the caller, once p->fts_statp is
3830 sure to be defined, and corresponds to a top-level directory.
3831 This bug made du -x fail. Here's the coreutils test case:
3832 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
3833 Reported by Mike Frysinger.
3835 2006-12-01 Jim Meyering <jim@meyering.net>
3837 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
3838 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
3839 Reported by Simon Josefsson.
3841 2006-11-30 Jim Meyering <jim@meyering.net>
3843 * m4/warning.m4: Use the all-permissive copyright notice
3844 recommended by RMS (rather than LGPL).
3845 * m4/vararrays.m4: Likewise.
3846 * m4/flexmember.m4: Likewise.
3848 2006-11-29 Bruno Haible <bruno@clisp.org>
3850 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
3851 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
3853 Reported by Simon Josefsson <simon@josefsson.org>.
3855 2006-11-28 James Youngman <jay@gnu.org>
3857 * README: Advise users that they might find the bug-gnulib@gnu.org
3858 and autotools-announce@gnu.org mailing lists useful.
3860 2006-11-28 Bruno Haible <bruno@clisp.org>
3862 * m4/ptrdiff_max.m4: Remove file.
3864 2006-11-21 Bruno Haible <bruno@clisp.org>
3866 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
3868 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
3869 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
3871 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
3872 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
3874 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
3876 2006-11-28 Jim Meyering <jim@meyering.net>
3878 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
3879 warning from "gcc -Wshadow" about shadowing the builtin.
3881 2006-11-27 Bruno Haible <bruno@clisp.org>
3883 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
3885 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
3887 2006-11-27 Bruno Haible <bruno@clisp.org>
3888 Paul Eggert <eggert@cs.ucla.edu>
3890 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
3892 2006-11-26 Bruno Haible <bruno@clisp.org>
3894 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
3897 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
3898 Bruno Haible <bruno@clisp.org>
3900 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
3901 if compiling with "gcc -ansi".
3903 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
3905 Fix some incompatibilities with gcc -ansi -pedantic.
3906 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
3907 if compiling pedantically with GCC, unless it's C99 or later.
3908 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
3909 it mishandles gcc -ansi -pedantic as well.
3910 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
3912 * lib/regexec.c (check_node_accept_bytes): Don't use auto
3913 initializers for struct if -pedantic, unless it's C99 or later.
3915 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
3917 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
3918 Don't close an fd more than once. Identical atimes indicate
3919 success, not failure.
3921 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
3923 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
3925 2006-11-23 Jim Meyering <jim@meyering.net>
3927 * build-aux/announce-gen: New file. From coreutils.
3929 2006-11-22 Jim Meyering <jim@meyering.net>
3931 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
3932 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
3933 (fts_read): Use a temporary to narrow the overused st_size member
3934 before using it in a switch statement. Reported by Matthew Woehlke.
3936 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
3937 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
3939 2006-11-20 Bruno Haible <bruno@clisp.org>
3941 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
3942 changequote instead of pairs of brackets.
3943 Reported by Andreas Schwab <schwab@suse.de>.
3945 2006-11-21 Jim Meyering <jim@meyering.net>
3947 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
3948 so as to remain compatible with older compilers.
3949 Patch from Michael Deutschmann.
3951 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
3953 * MODULES.html.sh (File system functions): Add openat.
3955 * lib/openat.h (rpl_fstatat): New macro, if
3956 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
3957 (fstatat): Define to rpl_fstatat under the same conditions,
3958 unless COMPILING_FSTATAT.
3959 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
3960 seems to have the bug.
3961 * lib/fstatat.c: New file.
3962 * modules/openat (Files): Add it.
3964 2006-11-20 Bruno Haible <bruno@clisp.org>
3966 * Makefile: New file.
3968 2006-11-20 Jim Meyering <jim@meyering.net>
3970 The beginnings of syntax-related checks for gnulib.
3971 * lib/Makefile: New file.
3972 * lib/t-idcache: New script. Ensure that the two halves of
3973 idcache.c stay in sync.
3975 * lib/idcache.c: Adjust comments in user- and group- portions to
3976 be more accurate, and to be consistent with one another.
3978 2006-11-20 Jim Meyering <jim@meyering.net>
3980 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
3981 continue using the flexible array member (thus, this module performs
3982 half as many malloc calls), with the addition that...
3983 (getgroup, getuser): Consistently record a non-match via an empty
3984 "name" string, and map an empty string match to a NULL return value.
3985 * modules/idcache (Depends-on): Re-add flexmember.
3987 * lib/idcache.c (getuser): Remove all uses of the register keyword.
3988 (getuidbyname, getgroup, getgidbyname): Likewise.
3990 Use cleaner syntax: NULL rather than 0.
3991 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
3993 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
3995 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
3996 It mishandled the case where the group was missing.
3997 Problem reported by Greg Schafer.
3998 * modules/idcache: Likewise.
4000 2006-11-18 Jim Meyering <jim@meyering.net>
4002 * check-module (%exempt_header): Add exception for some
4003 conditionally-included headers.
4005 * modules/i-ring (Depends-on): Add verify.
4006 (License): Change to LGPL.
4008 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
4010 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
4011 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
4012 and inttostr.h. Use snprintf rather than uinttostr, so that
4013 LGPLed code doesn't depend on GPLed.
4015 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
4017 * modules/inline (License): Change from GPL to LGPL.
4019 2006-11-17 Jim Meyering <jim@meyering.net>
4021 * modules/d-type (License): Switch to LGPL.
4023 2006-11-15 Bruno Haible <bruno@clisp.org>
4025 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
4027 2006-11-15 Eric Blake <ebb9@byu.net>
4029 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
4030 the module dependency.
4032 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
4033 Bruno Haible <bruno@clisp.org>
4035 * gnulib-tool (func_create_testdir): Add license consistency check.
4037 2006-11-15 Eric Blake <ebb9@byu.net>
4039 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
4040 random "(cached)" in configure output.
4042 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4044 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
4045 test for conforming inttypes.h is both announced and cached.
4047 * MODULES.html.sh (seen_modules, seen_files): New variables.
4048 (func_module): Rewrite to use a few less gnulib-tool and sed
4049 invocations. Avoid a couple of quadratic algorithms for ...
4050 (missed_modules, missed_files): ... these, with ...
4051 (func_append, func_tmpdir): ... these new functions, from
4052 gnulib-tool. Analogously, install traps for cleanup.
4054 * tests/test-gc.c (main): Remove unused variables.
4055 * tests/test-read-file.c: Include stdlib.h, for 'free'.
4057 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
4059 * modules/inttostr (License): Change to LGPL.
4061 2006-11-14 Eric Blake <ebb9@byu.net>
4063 * modules/tempname (License): Change to LGPL.
4065 2006-11-14 Eric Blake <ebb9@byu.net>
4067 * doc/functions.texi (Function Portability): *printf functions on
4068 Cygwin now understand all POSIX size specifiers.
4070 2006-11-14 Bruno Haible <bruno@clisp.org>
4072 * modules/c-ctype (License): Change to LGPL.
4074 2006-11-12 Bruno Haible <bruno@clisp.org>
4076 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
4077 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
4078 for GNOME libraries, for which the include files are installed in
4079 subdirectories of $prefix/include.
4081 2006-11-12 Bruno Haible <bruno@clisp.org>
4083 * m4/lib-link.m4: Require at least autoconf-2.54.
4084 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
4085 name to underscores for the --with option.
4087 2006-11-13 Bruno Haible <bruno@clisp.org>
4089 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
4090 the tests directory.
4091 Reported by Ralf Wildenhues.
4093 2006-11-13 Bruno Haible <bruno@clisp.org>
4095 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
4096 (func_emit_initmacro_end): Undo the override here.
4097 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
4098 Works around the famous automake error in coreutils.
4100 2006-11-13 Eric Blake <ebb9@byu.net>
4102 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
4103 element, not its node.
4105 2006-11-12 Bruno Haible <bruno@clisp.org>
4107 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
4108 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
4110 2006-11-12 Bruno Haible <bruno@clisp.org>
4112 * gnulib-tool: New option --local-symlink.
4113 (func_usage): Document it.
4114 (lsymbolic): New variable.
4115 (func_import, func_create_testdir): If --symlink was not specified,
4116 test whether --local-symlink was specified and the file comes from
4117 the local_gnulib_dir.
4119 2006-11-12 Bruno Haible <bruno@clisp.org>
4121 * gnulib-tool (func_ln): New function.
4122 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
4124 2006-11-12 Bruno Haible <bruno@clisp.org>
4126 Finish support for source files in subdirectories.
4127 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
4128 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
4130 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
4132 2006-11-12 Bruno Haible <bruno@clisp.org>
4134 * gnulib-tool (func_get_automake_snippet): Synthesize also an
4135 EXTRA_lib_SOURCES augmentation.
4136 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
4138 2006-11-12 Jim Meyering <jim@meyering.net>
4140 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
4141 file descriptors. This also averts a failure on systems with
4142 native openat support when a traversed directory lacks "x" access.
4143 * lib/fts_.h: Include "i-ring.h"
4144 (struct FTS) [fts_fd_ring]: New member.
4145 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
4146 (FCHDIR): Add parentheses.
4147 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
4148 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
4149 When descending, rather than simply closing the previous
4150 fts_cwd_fd value, push that file descriptor onto the ring.
4151 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
4152 (fts_open): Initialize the new fd_ring member.
4153 (fts_close): Clear the ring.
4154 (fts_safe_changedir): When possible, use our new fd_ring to skip
4155 the diropen and fstat and dev/ino comparison that would normally
4156 accompany a virtual `chdir ("..")'.
4158 * modules/fts (Depends-on): Add i-ring.
4159 * modules/i-ring: New module.
4160 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
4161 * m4/i-ring.m4: New file.
4163 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4165 * gnulib-tool (func_create_testdir): Fix replacement of
4166 `build-aux' in configure.ac. Run autotools in gltests
4168 (func_create_testdir, func_create_megatestdir, test): There is
4169 no need for '--force' in most autotool invocations in a new
4170 tree. Actually fail the whole test if any of the tools, or the
4171 configure or make stages fail.
4174 * build-aux/gnupload: Revert last change. Add pointer to upload
4175 instructions of the GNU Maintenance Instructions.
4176 Suggestion by Karl Berry.
4178 2006-11-10 Jim Meyering <jim@meyering.net>
4180 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
4182 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
4184 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
4185 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
4186 (bind_textdomain_codeset) [! ENABLE_NLS]:
4187 Evaluate all the arguments. That way, callers get compatible behavior
4188 if the arguments have side effects. Also, it avoids some GCC
4189 diagnostics in some cases; Joel E. Denny reported problems when Bison
4190 was configured with --enable-gcc-warnigs.
4192 2006-11-10 Jim Meyering <jim@meyering.net>
4194 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
4195 relevant options in CFLAGS (like -O, -fno-inline) are taken into
4198 2006-11-10 Jim Meyering <jim@meyering.net>
4200 * modules/inline: New file/module.
4201 * modules/xalloc (Files): Remove m4/inline.m4.
4202 (Depends-on): Add inline, instead.
4203 * modules/oset: Likewise.
4204 * modules/list: Likewise.
4206 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
4208 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
4209 Problem reported by Matthew Woehlke.
4211 2006-11-09 Bruno Haible <bruno@clisp.org>
4213 * lib/tempname.c (gen_tempname): Remove variant that invokes
4215 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
4218 2006-11-08 Bruno Haible <bruno@clisp.org>
4220 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
4221 to 'yes' instead of 'cross-compiling'.
4223 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
4225 * lib/quotearg.h (quotearg_free): New decl.
4226 * lib/quotearg.c (quotearg_free): New function.
4227 (slot0, nslots, slotvec0, slotvec):
4228 Now file-scope so that quotearg_free can get at them.
4230 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4233 * build-aux/gnupload: Add missing 'gnu' to example URL.
4234 Report by Karl Berry.
4236 2006-11-08 Bruno Haible <bruno@clisp.org>
4238 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
4239 Suggested by Paul Eggert.
4241 2006-11-08 Jim Meyering <jim@meyering.net>
4243 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
4244 It's already included if !_LIBC.
4245 (fts_safe_changedir): Add a comment.
4247 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
4249 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
4250 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
4253 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
4254 definitions up, to avoid colliding with change below.
4255 (static_inline) [HAVE_INLINE]: New macro.
4256 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
4257 Provide extern decls when !HAVE_INLINE. Do not define unless
4258 static_inline is defined, either by us or by xmalloc.c. Use
4259 static_inline rather than static inline.
4260 (XCALLOC): Optimize sizeof(T) = 1 case.
4261 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
4263 2006-11-07 Bruno Haible <bruno@clisp.org>
4265 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
4266 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
4268 * modules/xalloc (Files): Add m4/inline.m4.
4270 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4273 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
4274 (Miscellanous Notes): ...from this.
4276 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
4278 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4279 Mention that offsetof should be used instead of sizeof.
4282 2006-11-07 Bruno Haible <bruno@clisp.org>
4284 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
4286 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
4288 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
4289 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
4290 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
4291 (gl_tree_add_before, gl_tree_add_after):
4292 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
4293 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
4294 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
4295 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
4296 (gl_linked_add_after, gl_linked_add_at): Likewise.
4297 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
4298 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
4299 (gl_tree_add_before, gl_tree_add_after): Likewise.
4300 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
4301 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
4302 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
4304 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4306 * lib/gl_oset.h: Use C comment style, not C++ comment style.
4308 2006-11-06 Bruno Haible <bruno@clisp.org>
4310 * m4/inline.m4: New file.
4311 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
4312 * modules/list (Files): Add m4/inline.m4.
4313 * modules/oset (Files): Likewise.
4315 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
4317 * lib/idcache.c: Include <stddef.h>, for offsetof.
4318 (struct userid.name): Change from char * to a flexible array member.
4320 * modules/idcache (Depends-on): Add flexmember.
4322 * MODULES.html.sh (Core language properties): New module flexmember.
4323 * modules/flexmember, m4/flexmember.m4: New files.
4325 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
4326 inline functions that are identical with the old xnmalloc_inline,
4327 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
4328 that we can avoid some unnecessary integer multiplications and
4329 divisions in the common case where the element size is known at
4331 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
4333 (xnboundedmalloc): Remove.
4334 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
4335 arguments, for consistency with rest of this header.
4336 (xcharalloc): Rewrite using XNMALLOC.
4337 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
4338 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
4339 versions have been moved to lib/xalloc.h and renamed to be the
4340 non-*_inline versions.
4341 (xmalloc, xrealloc): Implement without reference to the xnmalloc
4342 and xnrealloc functions, since those functions are now inline and
4344 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
4345 renaming described above.
4346 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
4347 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
4348 captures the dependency in AC_C_INLINE.
4350 New module canonicalize-lgpl, proposed by Charles Wilson in
4351 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
4352 with a few small changes afterwards.
4353 * MODULES.html.sh (File system functions): New module
4355 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
4356 and canonicalize_file_name.
4357 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
4358 * modules/canonicalize-lgpl: New files.
4360 2006-11-05 Bruno Haible <bruno@clisp.org>
4362 * gnulib-tool (func_import, func_create_testdir): Create directories
4363 also for files in subdirectories of lib/.
4365 2006-11-05 Bruno Haible <bruno@clisp.org>
4367 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
4370 2006-11-03 Bruno Haible <bruno@clisp.org>
4372 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
4373 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
4374 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
4375 (xnboundedmalloc): New inline function.
4376 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
4377 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
4379 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
4381 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
4382 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
4383 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
4385 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
4386 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
4388 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
4389 gl_tree_add_after): Use XMALLOC instead of xmalloc.
4390 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
4392 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
4393 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
4394 gl_tree_add_after): Use XMALLOC instead of xmalloc.
4395 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
4396 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
4397 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
4398 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
4400 2006-11-03 Bruno Haible <bruno@clisp.org>
4402 * lib/c-ctype.h [C++]: Define functions without name mangling.
4403 * lib/fwriteerror.h [C++]: Likewise.
4404 * lib/gcd.h [C++]: Likewise.
4405 * lib/linebreak.h [C++]: Likewise.
4407 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
4409 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
4410 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
4411 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
4412 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
4413 Check for functions and headers just once.
4414 Check for declaration of canonicalize_file_name.
4415 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
4417 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
4419 * gnulib-tool (func_import): Fix typo in actioncmd.
4421 2006-11-02 Bruno Haible <bruno@clisp.org>
4423 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
4424 newline sequence in the Makefile.am snippet as a space, like "make"
4426 Reported by Roger Persson <perrog@gmail.com>.
4428 2006-11-01 Bruno Haible <bruno@clisp.org>
4430 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
4431 already declared in <string.h>.
4432 * lib/strcase.h (strncasecmp): Don't declare it if yes.
4434 2006-11-01 Bruno Haible <bruno@clisp.org>
4436 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
4437 * lib/strcase.h: Include <string.h>.
4438 (strcasecmp): Define to rpl_strcasecmp here.
4440 2006-11-01 Bruno Haible <bruno@clisp.org>
4442 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
4444 2006-11-01 Eric Blake <ebb9@byu.net>
4446 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
4448 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
4450 2006-10-29 Bruno Haible <bruno@clisp.org>
4452 Make it compile in C++ mode.
4453 * lib/full-write.c (full_rw): Add a cast.
4455 2006-11-01 Bruno Haible <bruno@clisp.org>
4457 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
4459 Reported by Roger Persson <perrog@gmail.com>.
4461 2006-11-01 Eric Blake <ebb9@byu.net>
4463 * lib/getopt_.h: Fix comments.
4465 2006-10-31 Eric Blake <ebb9@byu.net>
4467 * modules/tmpdir (Depends-on): Add sys_stat.
4468 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
4469 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
4470 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
4471 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
4474 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
4476 Avoid some C++ diagnostics reported by Bruno Haible.
4477 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
4479 (quotearg_alloc): Use xcharalloc rather than xmalloc.
4480 (struct slotvec): Move to top level.
4481 (quotearg_n_options): Rewrite to avoid xmalloc.
4482 * lib/xalloc.h (xcharalloc): New function.
4483 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
4484 [defined __cplusplus]: Add function template that provides result
4485 type propagation. This part of the change is from Bruno Haible.
4487 2006-10-29 Bruno Haible <bruno@clisp.org>
4489 Make it compile in C++ mode.
4490 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
4491 * lib/strnlen1.c (strnlen1): Cast memchr result.
4492 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
4493 * lib/clean-temp.c (string_equals, string_hash): Add casts.
4494 (create_temp_dir): Rename local variable 'template'.
4495 (compile_csharp_using_sscli): Add cast.
4496 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
4497 * lib/findprog.c (find_in_path): Likewise.
4498 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
4499 * lib/wait-process.c (register_slave_subprocess): Likewise.
4501 2006-10-22 Bruno Haible <bruno@clisp.org>
4503 * modules/tsearch: New file.
4504 * lib/tsearch.h: New file.
4505 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
4506 * m4/tsearch.m4: New file.
4507 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
4509 2006-10-29 Eric Blake <ebb9@byu.net>
4511 * lib/arcfour.c: Assume config.h.
4512 * lib/arctwo.c: Likewise.
4513 * lib/base64.c: Likewise.
4514 * lib/check-version.c: Likewise.
4515 * lib/crc.c: Likewise.
4516 * lib/des.c: Likewise.
4517 * lib/gc-gnulib.c: Likewise.
4518 * lib/gc-libgcrypt.c: Likewise.
4519 * lib/gc-pbkdf2-sha1.c: Likewise.
4520 * lib/getaddrinfo.c: Likewise.
4521 * lib/getdelim.c: Likewise.
4522 * lib/getline.c: Likewise.
4523 * lib/hmac-md5.c: Likewise.
4524 * lib/hmac-sha1.c: Likewise.
4525 * lib/iconvme.c: Likewise.
4526 * lib/md2.c: Likewise.
4527 * lib/md4.c: Likewise.
4528 * lib/memxor.c: Likewise.
4529 * lib/read-file.c: Likewise.
4530 * lib/readline.c: Likewise.
4531 * lib/rijndael-alg-fst.c: Likewise.
4532 * lib/rijndael-api-fst.c: Likewise.
4533 * lib/xgetdomainname.c: Likewise.
4535 2006-10-28 Eric Blake <ebb9@byu.net>
4537 * lib/xstrndup.c: Assume config.h.
4539 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
4541 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
4542 stat-macros.h is now for our own macros, whereas stat_h is for
4543 macros in the <sys/stat.h> name space.
4544 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
4545 (STAT_MACROS_H): Remove.
4546 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
4547 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
4548 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
4549 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
4550 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
4551 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
4552 Move these macros to ...
4553 * lib/stat_.h: here. Don't include stat-macros.h.
4554 * lib/canonicalize.c: Don't include stat-macros.h.
4555 * lib/chown.c: Likewise.
4556 * lib/euidaccess.c: Likewise.
4557 * lib/file-type.c: Likewise.
4558 * lib/filemode.c: Likewise.
4559 * lib/glob.c: Likewise.
4560 * lib/isapipe.c: Likewise.
4561 * lib/lchown.c: Likewise.
4562 * lib/lstat.c: Likewise.
4563 * lib/mkdir-p.c: Likewise.
4564 * lib/rmdir.c: Likewise.
4565 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
4566 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
4567 unless mkdir isn't declared, to speed up 'configure'.
4568 Always create sys/stat.h, since it's unlikely any real sys/stat.h
4569 would define all the S_* symbols.
4570 * modules/canonicalize (Depends-on):
4571 Depend on sys_stat, not stat-macros.
4572 * modules/chown: Likewise.
4573 * modules/euidaccess: Likewise.
4574 * modules/filemode: Likewise.
4575 * modules/file-type: Likewise.
4576 * modules/glob: Likewise.
4577 * modules/isapipe: Likewise.
4578 * modules/lchown: Likewise.
4579 * modules/lstat: Likewise.
4580 * modules/mkancesdirs: Likewise.
4581 * modules/rmdir: Likewise.
4582 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
4583 * modules/modechange: Likewise.
4584 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
4585 (configure.ac): Remove gl_STAT_MACROS.
4586 * modules/sys_stat (Depends-on): Remove stat-macros.
4588 2006-10-27 Bruno Haible <bruno@clisp.org>
4590 * m4/signed.m4: Remove file.
4591 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
4593 * modules/vasnprintf (Files): Remove m4/signed.m4.
4595 2006-10-27 Bruno Haible <bruno@clisp.org>
4597 Update to GNU gettext 0.16.
4598 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
4599 m4/inttypes-h.m4, m4/signed.m4.
4600 * m4/gettext.m4: Update to GNU gettext 0.16.
4601 * m4/intl.m4: New file, from GNU gettext.
4602 * m4/intldir.m4: New file, from GNU gettext.
4603 * config/srclist.txt: Update
4605 2006-10-27 Eric Blake <ebb9@byu.net>
4607 * MODULES.html.sh: Document tempname.
4608 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
4610 (Files): Move lib/tempname.c...
4611 * modules/tempname: ...to this new module.
4612 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
4613 (gl_PREREQ_TEMPNAME): Move...
4614 * m4/tempname.m4: ...to this new file.
4615 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
4616 * modules/sys_stat (Depends-on): Add stat-macros.
4617 * lib/stat_.h (includes): Pick up stat macros.
4618 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
4619 if stat macros are broken.
4620 * lib/tempname.c (includes): No need to include "stat-macros.h".
4621 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
4622 (direxists, __path_search) [!_LIBC]: Don't compile these in
4623 gnulib; the tmpdir module covers that.
4624 * lib/tempname.h: New file.
4626 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
4628 * COPYING: Explain how gnulib-tool converts licence headers.
4629 Almost all wording by Eric Blake.
4631 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
4633 * lib/mbchar.h (is_basic_table): Make read-only.
4634 * lib/mbchar.c (is_basic_table): Likewise.
4635 Reported by John Darrington.
4637 2006-10-25 Bruno Haible <bruno@clisp.org>
4639 * lib/progname.h (set_program_name): Undefine before defining.
4641 2006-10-25 Bruno Haible <bruno@clisp.org>
4643 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
4644 false for non-gcc C++ compilers.
4645 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4647 2006-10-24 Bruno Haible <bruno@clisp.org>
4649 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
4650 iconv implementations like Irix iconv.
4652 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
4654 * modules/vararrays: New file.
4655 * m4/vararrays.m4: New file, taken from diffutils.
4656 * MODULES.html.sh: New module vararrays.
4658 2006-10-24 Karl Berry <karl@gnu.org>
4660 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
4661 Don't call GNU Unix.
4663 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4665 * users.txt: Add Libtool.
4669 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
4671 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
4672 to gnulib's policy of including config.h unconditionally.
4674 2006-10-24 Bruno Haible <bruno@clisp.org>
4676 * modules/wcwidth (Files): Add m4/wint_t.m4.
4677 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
4678 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
4680 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
4682 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
4683 to pacify GCC with some -W flags enabled. Problem reported by
4686 2006-10-24 Jim Meyering <jim@meyering.net>
4688 * MODULES.html.sh: Remove uinttostr. It's not a module.
4689 Reported by Karl Berry.
4691 2006-10-23 Bruno Haible <bruno@clisp.org>
4693 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
4695 2006-10-24 Bruno Haible <bruno@clisp.org>
4697 * lib/gl_list.h: Use C comment style, not C++ comment style.
4699 2006-10-23 Eric Blake <ebb9@byu.net>
4701 * lib/getaddrinfo.c (includes): Add missing include.
4703 2006-10-23 Bruno Haible <bruno@clisp.org>
4704 Paul Eggert <eggert@cs.ucla.edu>
4706 Ability to rename obstack_free.
4707 * lib/obstack.h (__obstack_free): New macro. Declare instead of
4709 (obstack_free): Invoke the __obstack_free macro.
4710 * lib/obstack.c (obstack_free): Use __obstack_free macro.
4712 2006-10-23 Bruno Haible <bruno@clisp.org>
4713 Paul Eggert <eggert@cs.ucla.edu>
4715 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
4716 __argc, __argv from the declaration. (They are defined as macros on
4719 2006-10-22 Bruno Haible <bruno@clisp.org>
4721 * doc/gnulib-intro.texi: New file.
4722 * doc/gnulib.texi: Include it.
4724 2006-10-21 Bruno Haible <bruno@clisp.org>
4726 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
4727 "Introduction", "Miscellanous Notes", "Particular Modules".
4729 2006-10-21 Bruno Haible <bruno@clisp.org>
4731 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4732 Change mostlyclean-local rule to avoid sh syntax error from bash
4733 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
4735 2006-10-23 Jim Meyering <jim@meyering.net>
4737 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
4738 in place of snprintf.
4740 * modules/inttostr (Files): Add lib/uinttostr.c.
4741 * lib/uinttostr.c (inttostr): New file/function.
4742 * lib/inttostr.h (uinttostr): Declare.
4743 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
4744 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
4746 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
4748 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
4750 * lib/canonicalize.c (ELOOP): Define if not already defined.
4751 Problem reported by Bruno Haible in
4752 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
4754 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
4756 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
4757 Problem reported by Perry Smith and Ville Laurikari.
4759 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
4762 2006-10-19 Bruno Haible <bruno@clisp.org>
4764 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
4767 2006-10-19 Bruno Haible <bruno@clisp.org>
4769 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
4772 2006-10-19 Bruno Haible <bruno@clisp.org>
4774 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
4776 2006-10-19 Bruno Haible <bruno@clisp.org>
4778 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
4781 2006-10-19 Bruno Haible <bruno@clisp.org>
4783 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
4786 2006-10-19 Bruno Haible <bruno@clisp.org>
4788 * gnulib-tool (func_create_testdir): Don't include ftruncate and
4789 mountlist by default.
4791 2006-10-16 Bruno Haible <bruno@clisp.org>
4793 * lib/c-strstr.c: Include c-strstr.h.
4795 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
4797 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
4800 2006-10-18 Bruno Haible <bruno@clisp.org>
4802 * lib/lock.h [C++]: Wrap definitions in extern "C".
4804 2006-10-18 Bruno Haible <bruno@clisp.org>
4806 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
4809 2006-10-18 Bruno Haible <bruno@clisp.org>
4811 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
4813 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
4815 * lib/xstrtol.h: Include gettext.h.
4816 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
4817 Problem reported by Eric Blake.
4818 * modules/xstrtol (Depends-on): Add gettext-h.
4820 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
4822 * lib/strftime.c (advance): New macro.
4823 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
4824 incomplete type, so you can't add 0 to it. Problem and patch
4825 reported by Eelco Dolstra for dietlibc.
4827 2006-10-18 Jim Meyering <jim@meyering.net>
4829 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
4830 type for a local, and rename it: s/up/user_proc/.
4832 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
4834 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
4835 READ_UTMP_USER_PROCESS.
4836 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
4838 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
4840 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
4841 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
4843 2006-10-17 Eric Blake <ebb9@byu.net>
4845 * lib/sigprocmask.c (sigprocmask): Fix typo.
4847 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
4849 * modules/clean-temp (Makefile.am): Don't add to make output...
4850 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
4853 2006-10-17 Bruno Haible <bruno@clisp.org>
4855 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
4856 differently if DEFAULT_TEXT_DOMAIN is set.
4858 2006-10-16 Bruno Haible <bruno@clisp.org>
4860 * lib/clean-temp.c: Include fwriteerror.h.
4862 2006-10-16 Bruno Haible <bruno@clisp.org>
4864 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
4866 2006-10-16 Bruno Haible <bruno@clisp.org>
4868 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
4869 * lib/sigprocmask.h: Include <sys/types.h>.
4870 (sigset_t): Use the system's definition if present.
4872 2006-10-17 Eric Blake <ebb9@byu.net>
4874 * lib/xvasprintf.c (includes): Assume config.h.
4875 * lib/xasprintf.c (includes): Likewise.
4877 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
4879 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
4880 at least as wide as intmax_t.
4882 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
4884 (Imported from Automake.)
4885 * build-aux/gnupload: Update to version 1.1 of directive file.
4887 2006-10-16 Eric Blake <ebb9@byu.net>
4889 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
4890 match Automake 1.10a.
4892 2006-10-14 Bruno Haible <bruno@clisp.org>
4894 * modules/sigprocmask: New file.
4895 * lib/sigprocmask.h: New file.
4896 * lib/sigprocmask.c: New file.
4897 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
4898 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
4899 request sigprocmask.o.
4900 (gl_PREREQ_SIGPROCMASK): New macro.
4901 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
4902 (Depends-on): Add sigprocmask.
4903 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
4904 gt_SIGNALBLOCKING. Test for 'raise' only once.
4905 * lib/fatal-signal.c: Include sigprocmask.h.
4906 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
4907 unblock_fatal_signals): Define always.
4908 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
4911 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
4914 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
4915 which incorrectly sets the mode of an existing destination
4916 directory. In some cases the unpatched install-sh could do the
4917 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
4918 system. We hope this is rare in practice, but it's clearly worth
4919 fixing. Problem reported by Alex Unleashed in
4920 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
4921 Also, don't bother to check for -m bugs unless we're using -m;
4922 suggested by Stepan Kasal.
4924 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4927 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
4928 `-c' flag, so they appear at the same position as in %FASTDEP%
4929 mode in depend2.am. Fixes build failure for FreeBSD's c89,
4930 which ignores unknown options only after the first non-option.
4931 Bug report against M4 by Nelson H. F. Beebe.
4933 2006-10-13 Jim Meyering <jim@meyering.net>
4935 Fix a bug in yesterday's change.
4936 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
4937 p->fts_statp->st_dev would be used uninitialized.
4938 Ensures that we always call fts_stat on the very first entry.
4939 Miklos Szeredi reported that find -xdev stopped working.
4941 2006-10-12 Bruno Haible <bruno@clisp.org>
4943 * gnulib-tool (func_get_automake_snippet): Append an automatically
4944 computed EXTRA_DIST augmentation.
4945 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
4946 * modules/alloca-opt (Makefile.am): Likewise.
4947 * modules/allocsa (Makefile.am): Likewise.
4948 * modules/arcfour (Makefile.am): Likewise.
4949 * modules/arctwo (Makefile.am): Likewise.
4950 * modules/argmatch (Makefile.am): Likewise.
4951 * modules/argz (Makefile.am): Likewise.
4952 * modules/atexit (Makefile.am): Likewise.
4953 * modules/backupfile (Makefile.am): Likewise.
4954 * modules/byteswap (Makefile.am): Likewise.
4955 * modules/c-strtod (Makefile.am): Likewise.
4956 * modules/c-strtold (Makefile.am): Likewise.
4957 * modules/calloc (Makefile.am): Likewise.
4958 * modules/canon-host (Makefile.am): Likewise.
4959 * modules/canonicalize (Makefile.am): Likewise.
4960 * modules/chdir-long (Makefile.am): Likewise.
4961 * modules/chdir-safer (Makefile.am): Likewise.
4962 * modules/check-version (Makefile.am): Likewise.
4963 * modules/chown (Makefile.am): Likewise.
4964 * modules/cloexec (Makefile.am): Likewise.
4965 * modules/close-stream (Makefile.am): Likewise.
4966 * modules/closeout (Makefile.am): Likewise.
4967 * modules/crc (Makefile.am): Likewise.
4968 * modules/csharpexec (Makefile.am): Likewise.
4969 * modules/cycle-check (Makefile.am): Likewise.
4970 * modules/des (Makefile.am): Likewise.
4971 * modules/dev-ino (Makefile.am): Likewise.
4972 * modules/dirfd (Makefile.am): Likewise.
4973 * modules/dirname (Makefile.am): Likewise.
4974 * modules/dup2 (Makefile.am): Likewise.
4975 * modules/eealloc (Makefile.am): Likewise.
4976 * modules/error (Makefile.am): Likewise.
4977 * modules/euidaccess (Makefile.am): Likewise.
4978 * modules/exclude (Makefile.am): Likewise.
4979 * modules/exitfail (Makefile.am): Likewise.
4980 * modules/fcntl-safer (Makefile.am): Likewise.
4981 * modules/fcntl (Makefile.am): Likewise.
4982 * modules/file-type (Makefile.am): Likewise.
4983 * modules/fileblocks (Makefile.am): Likewise.
4984 * modules/filemode (Makefile.am): Likewise.
4985 * modules/filenamecat (Makefile.am): Likewise.
4986 * modules/fnmatch (Makefile.am): Likewise.
4987 * modules/fopen-safer (Makefile.am): Likewise.
4988 * modules/fpending (Makefile.am): Likewise.
4989 * modules/fprintftime (Makefile.am): Likewise.
4990 * modules/free (Makefile.am): Likewise.
4991 * modules/fsusage (Makefile.am): Likewise.
4992 * modules/ftruncate (Makefile.am): Likewise.
4993 * modules/fts (Makefile.am): Likewise.
4994 * modules/gc-arcfour (Makefile.am): Likewise.
4995 * modules/gc-des (Makefile.am): Likewise.
4996 * modules/gc-hmac-md5 (Makefile.am): Likewise.
4997 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
4998 * modules/gc-md4 (Makefile.am): Likewise.
4999 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
5000 * modules/gc-sha1 (Makefile.am): Likewise.
5001 * modules/gc (Makefile.am): Likewise.
5002 * modules/getaddrinfo (Makefile.am): Likewise.
5003 * modules/getcwd (Makefile.am): Likewise.
5004 * modules/getdelim (Makefile.am): Likewise.
5005 * modules/getdomainname (Makefile.am): Likewise.
5006 * modules/getgroups (Makefile.am): Likewise.
5007 * modules/gethostname (Makefile.am): Likewise.
5008 * modules/gethrxtime (Makefile.am): Likewise.
5009 * modules/getline (Makefile.am): Likewise.
5010 * modules/getloadavg (Makefile.am): Likewise.
5011 * modules/getlogin_r (Makefile.am): Likewise.
5012 * modules/getndelim2 (Makefile.am): Likewise.
5013 * modules/getopt (Makefile.am): Likewise.
5014 * modules/getpagesize (Makefile.am): Likewise.
5015 * modules/getpass-gnu (Makefile.am): Likewise.
5016 * modules/getpass (Makefile.am): Likewise.
5017 * modules/getsubopt (Makefile.am): Likewise.
5018 * modules/gettime (Makefile.am): Likewise.
5019 * modules/gettimeofday (Makefile.am): Likewise.
5020 * modules/getugroups (Makefile.am): Likewise.
5021 * modules/getusershell (Makefile.am): Likewise.
5022 * modules/glob (Makefile.am): Likewise.
5023 * modules/group-member (Makefile.am): Likewise.
5024 * modules/hard-locale (Makefile.am): Likewise.
5025 * modules/hash (Makefile.am): Likewise.
5026 * modules/hmac-md5 (Makefile.am): Likewise.
5027 * modules/hmac-sha1 (Makefile.am): Likewise.
5028 * modules/human (Makefile.am): Likewise.
5029 * modules/idcache (Makefile.am): Likewise.
5030 * modules/imaxabs (Makefile.am): Likewise.
5031 * modules/imaxdiv (Makefile.am): Likewise.
5032 * modules/inet_ntop (Makefile.am): Likewise.
5033 * modules/inet_pton (Makefile.am): Likewise.
5034 * modules/intprops (Makefile.am): Likewise.
5035 * modules/inttostr (Makefile.am): Likewise.
5036 * modules/inttypes (Makefile.am): Likewise.
5037 * modules/isapipe (Makefile.am): Likewise.
5038 * modules/javaversion (Makefile.am): Likewise.
5039 * modules/lchmod (Makefile.am): Likewise.
5040 * modules/lchown (Makefile.am): Likewise.
5041 * modules/localcharset (Makefile.am): Likewise.
5042 * modules/long-options (Makefile.am): Likewise.
5043 * modules/lstat (Makefile.am): Likewise.
5044 * modules/malloc (Makefile.am): Likewise.
5045 * modules/mathl (Makefile.am): Likewise.
5046 * modules/mbchar (Makefile.am): Likewise.
5047 * modules/md2 (Makefile.am): Likewise.
5048 * modules/md4 (Makefile.am): Likewise.
5049 * modules/md5 (Makefile.am): Likewise.
5050 * modules/memcasecmp (Makefile.am): Likewise.
5051 * modules/memchr (Makefile.am): Likewise.
5052 * modules/memcmp (Makefile.am): Likewise.
5053 * modules/memcoll (Makefile.am): Likewise.
5054 * modules/memcpy (Makefile.am): Likewise.
5055 * modules/memmem (Makefile.am): Likewise.
5056 * modules/memmove (Makefile.am): Likewise.
5057 * modules/mempcpy (Makefile.am): Likewise.
5058 * modules/memrchr (Makefile.am): Likewise.
5059 * modules/memset (Makefile.am): Likewise.
5060 * modules/memxor (Makefile.am): Likewise.
5061 * modules/mkancesdirs (Makefile.am): Likewise.
5062 * modules/mkdir-p (Makefile.am): Likewise.
5063 * modules/mkdir (Makefile.am): Likewise.
5064 * modules/mkdtemp (Makefile.am): Likewise.
5065 * modules/mkstemp (Makefile.am): Likewise.
5066 * modules/mktime (Makefile.am): Likewise.
5067 * modules/modechange (Makefile.am): Likewise.
5068 * modules/mountlist (Makefile.am): Likewise.
5069 * modules/nanosleep (Makefile.am): Likewise.
5070 * modules/obstack (Makefile.am): Likewise.
5071 * modules/openat (Makefile.am): Likewise.
5072 * modules/pagealign_alloc (Makefile.am): Likewise.
5073 * modules/pathmax (Makefile.am): Likewise.
5074 * modules/physmem (Makefile.am): Likewise.
5075 * modules/poll (Makefile.am): Likewise.
5076 * modules/posixtm (Makefile.am): Likewise.
5077 * modules/posixver (Makefile.am): Likewise.
5078 * modules/putenv (Makefile.am): Likewise.
5079 * modules/quote (Makefile.am): Likewise.
5080 * modules/quotearg (Makefile.am): Likewise.
5081 * modules/raise (Makefile.am): Likewise.
5082 * modules/read-file (Makefile.am): Likewise.
5083 * modules/readline (Makefile.am): Likewise.
5084 * modules/readlink (Makefile.am): Likewise.
5085 * modules/readtokens (Makefile.am): Likewise.
5086 * modules/readutmp (Makefile.am): Likewise.
5087 * modules/realloc (Makefile.am): Likewise.
5088 * modules/regex (Makefile.am): Likewise.
5089 * modules/rename-dest-slash (Makefile.am): Likewise.
5090 * modules/rename (Makefile.am): Likewise.
5091 * modules/rijndael (Makefile.am): Likewise.
5092 * modules/rmdir (Makefile.am): Likewise.
5093 * modules/rpmatch (Makefile.am): Likewise.
5094 * modules/safe-read (Makefile.am): Likewise.
5095 * modules/safe-write (Makefile.am): Likewise.
5096 * modules/same-inode (Makefile.am): Likewise.
5097 * modules/same (Makefile.am): Likewise.
5098 * modules/save-cwd (Makefile.am): Likewise.
5099 * modules/savedir (Makefile.am): Likewise.
5100 * modules/setenv (Makefile.am): Likewise.
5101 * modules/settime (Makefile.am): Likewise.
5102 * modules/sha1 (Makefile.am): Likewise.
5103 * modules/sig2str (Makefile.am): Likewise.
5104 * modules/snprintf (Makefile.am): Likewise.
5105 * modules/stat-macros (Makefile.am): Likewise.
5106 * modules/stat-time (Makefile.am): Likewise.
5107 * modules/stdbool (Makefile.am): Likewise.
5108 * modules/stdint (Makefile.am): Likewise.
5109 * modules/stdlib-safer (Makefile.am): Likewise.
5110 * modules/stpcpy (Makefile.am): Likewise.
5111 * modules/stpncpy (Makefile.am): Likewise.
5112 * modules/strcase (Makefile.am): Likewise.
5113 * modules/strcasestr (Makefile.am): Likewise.
5114 * modules/strchrnul (Makefile.am): Likewise.
5115 * modules/strcspn (Makefile.am): Likewise.
5116 * modules/strdup (Makefile.am): Likewise.
5117 * modules/strerror (Makefile.am): Likewise.
5118 * modules/strftime (Makefile.am): Likewise.
5119 * modules/strndup (Makefile.am): Likewise.
5120 * modules/strnlen (Makefile.am): Likewise.
5121 * modules/strpbrk (Makefile.am): Likewise.
5122 * modules/strsep (Makefile.am): Likewise.
5123 * modules/strstr (Makefile.am): Likewise.
5124 * modules/strtod (Makefile.am): Likewise.
5125 * modules/strtoimax (Makefile.am): Likewise.
5126 * modules/strtok_r (Makefile.am): Likewise.
5127 * modules/strtol (Makefile.am): Likewise.
5128 * modules/strtoll (Makefile.am): Likewise.
5129 * modules/strtoul (Makefile.am): Likewise.
5130 * modules/strtoull (Makefile.am): Likewise.
5131 * modules/strtoumax (Makefile.am): Likewise.
5132 * modules/strverscmp (Makefile.am): Likewise.
5133 * modules/sys_socket (Makefile.am): Likewise.
5134 * modules/sys_stat (Makefile.am): Likewise.
5135 * modules/sysexits (Makefile.am): Likewise.
5136 * modules/time_r (Makefile.am): Likewise.
5137 * modules/timegm (Makefile.am): Likewise.
5138 * modules/timespec (Makefile.am): Likewise.
5139 * modules/tmpfile-safer (Makefile.am): Likewise.
5140 * modules/trim (Makefile.am): Likewise.
5141 * modules/unistd-safer (Makefile.am): Likewise.
5142 * modules/unlinkdir (Makefile.am): Likewise.
5143 * modules/unlocked-io (Makefile.am): Likewise.
5144 * modules/userspec (Makefile.am): Likewise.
5145 * modules/utime (Makefile.am): Likewise.
5146 * modules/utimecmp (Makefile.am): Likewise.
5147 * modules/utimens (Makefile.am): Likewise.
5148 * modules/vasnprintf (Makefile.am): Likewise.
5149 * modules/vasprintf (Makefile.am): Likewise.
5150 * modules/vsnprintf (Makefile.am): Likewise.
5151 * modules/xalloc (Makefile.am): Likewise.
5152 * modules/xgetcwd (Makefile.am): Likewise.
5153 * modules/xnanosleep (Makefile.am): Likewise.
5154 * modules/xreadlink (Makefile.am): Likewise.
5155 * modules/xstrtod (Makefile.am): Likewise.
5156 * modules/xstrtol (Makefile.am): Likewise.
5157 * modules/xstrtold (Makefile.am): Likewise.
5158 * modules/yesno (Makefile.am): Likewise.
5159 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
5161 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
5163 * modules/error (Makefile.am): Distribute files through
5164 EXTRA_DIST, not lib_SOURCES.
5166 2006-10-12 Eric Blake <ebb9@byu.net>
5168 * modules/error (Makefile.am): Distribute files in /lib.
5169 * modules/obstack (Makefile.am): Likewise.
5171 2006-10-12 Bruno Haible <bruno@clisp.org>
5173 * modules/acl (Makefile.am): Distribute all files in lib/ through
5175 * modules/arcfour (Makefile.am): Likewise.
5176 * modules/arctwo (Makefile.am): Likewise.
5177 * modules/argmatch (Makefile.am): Likewise.
5178 * modules/argz (Makefile.am): Likewise.
5179 * modules/atexit (Makefile.am): Likewise.
5180 * modules/backupfile (Makefile.am): Likewise.
5181 * modules/c-strtod (Makefile.am): Likewise.
5182 * modules/c-strtold (Makefile.am): Likewise.
5183 * modules/calloc (Makefile.am): Likewise.
5184 * modules/canon-host (Makefile.am): Likewise.
5185 * modules/canonicalize (Makefile.am): Likewise.
5186 * modules/chdir-long (Makefile.am): Likewise.
5187 * modules/chdir-safer (Makefile.am): Likewise.
5188 * modules/check-version (Makefile.am): Likewise.
5189 * modules/chown (Makefile.am): Likewise.
5190 * modules/cloexec (Makefile.am): Likewise.
5191 * modules/close-stream (Makefile.am): Likewise.
5192 * modules/closeout (Makefile.am): Likewise.
5193 * modules/crc (Makefile.am): Likewise.
5194 * modules/cycle-check (Makefile.am): Likewise.
5195 * modules/des (Makefile.am): Likewise.
5196 * modules/dirfd (Makefile.am): Likewise.
5197 * modules/dirname (Makefile.am): Likewise.
5198 * modules/dup2 (Makefile.am): Likewise.
5199 * modules/euidaccess (Makefile.am): Likewise.
5200 * modules/exclude (Makefile.am): Likewise.
5201 * modules/exitfail (Makefile.am): Likewise.
5202 * modules/fcntl-safer (Makefile.am): Likewise.
5203 * modules/file-type (Makefile.am): Likewise.
5204 * modules/fileblocks (Makefile.am): Likewise.
5205 * modules/filemode (Makefile.am): Likewise.
5206 * modules/filenamecat (Makefile.am): Likewise.
5207 * modules/fnmatch (Makefile.am): Likewise.
5208 * modules/fopen-safer (Makefile.am): Likewise.
5209 * modules/fpending (Makefile.am): Likewise.
5210 * modules/fprintftime (Makefile.am): Likewise.
5211 * modules/free (Makefile.am): Likewise.
5212 * modules/fsusage (Makefile.am): Likewise.
5213 * modules/ftruncate (Makefile.am): Likewise.
5214 * modules/fts (Makefile.am): Likewise.
5215 * modules/gc (Makefile.am): Likewise.
5216 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
5217 * modules/getaddrinfo (Makefile.am): Likewise.
5218 * modules/getcwd (Makefile.am): Likewise.
5219 * modules/getdelim (Makefile.am): Likewise.
5220 * modules/getdomainname (Makefile.am): Likewise.
5221 * modules/getgroups (Makefile.am): Likewise.
5222 * modules/gethostname (Makefile.am): Likewise.
5223 * modules/gethrxtime (Makefile.am): Likewise.
5224 * modules/getline (Makefile.am): Likewise.
5225 * modules/getloadavg (Makefile.am): Likewise.
5226 * modules/getlogin_r (Makefile.am): Likewise.
5227 * modules/getopt (Makefile.am): Likewise.
5228 * modules/getpass (Makefile.am): Likewise.
5229 * modules/getpass-gnu (Makefile.am): Likewise.
5230 * modules/getsubopt (Makefile.am): Likewise.
5231 * modules/gettime (Makefile.am): Likewise.
5232 * modules/gettimeofday (Makefile.am): Likewise.
5233 * modules/getugroups (Makefile.am): Likewise.
5234 * modules/getusershell (Makefile.am): Likewise.
5235 * modules/glob (Makefile.am): Likewise.
5236 * modules/group-member (Makefile.am): Likewise.
5237 * modules/hard-locale (Makefile.am): Likewise.
5238 * modules/hash (Makefile.am): Likewise.
5239 * modules/hmac-md5 (Makefile.am): Likewise.
5240 * modules/hmac-sha1 (Makefile.am): Likewise.
5241 * modules/human (Makefile.am): Likewise.
5242 * modules/idcache (Makefile.am): Likewise.
5243 * modules/imaxabs (Makefile.am): Likewise.
5244 * modules/imaxdiv (Makefile.am): Likewise.
5245 * modules/inet_ntop (Makefile.am): Likewise.
5246 * modules/inet_pton (Makefile.am): Likewise.
5247 * modules/inttostr (Makefile.am): Likewise.
5248 * modules/isapipe (Makefile.am): Likewise.
5249 * modules/lchown (Makefile.am): Likewise.
5250 * modules/long-options (Makefile.am): Likewise.
5251 * modules/lstat (Makefile.am): Likewise.
5252 * modules/malloc (Makefile.am): Likewise.
5253 * modules/mathl (Makefile.am): Likewise.
5254 * modules/mbchar (Makefile.am): Likewise.
5255 * modules/md2 (Makefile.am): Likewise.
5256 * modules/md4 (Makefile.am): Likewise.
5257 * modules/md5 (Makefile.am): Likewise.
5258 * modules/memcasecmp (Makefile.am): Likewise.
5259 * modules/memchr (Makefile.am): Likewise.
5260 * modules/memcmp (Makefile.am): Likewise.
5261 * modules/memcoll (Makefile.am): Likewise.
5262 * modules/memcpy (Makefile.am): Likewise.
5263 * modules/memmem (Makefile.am): Likewise.
5264 * modules/memmove (Makefile.am): Likewise.
5265 * modules/mempcpy (Makefile.am): Likewise.
5266 * modules/memrchr (Makefile.am): Likewise.
5267 * modules/memset (Makefile.am): Likewise.
5268 * modules/memxor (Makefile.am): Likewise.
5269 * modules/mkancesdirs (Makefile.am): Likewise.
5270 * modules/mkdir (Makefile.am): Likewise.
5271 * modules/mkdir-p (Makefile.am): Likewise.
5272 * modules/mkdtemp (Makefile.am): Likewise.
5273 * modules/mkstemp (Makefile.am): Likewise.
5274 * modules/mktime (Makefile.am): Likewise.
5275 * modules/modechange (Makefile.am): Likewise.
5276 * modules/mountlist (Makefile.am): Likewise.
5277 * modules/nanosleep (Makefile.am): Likewise.
5278 * modules/openat (Makefile.am): Likewise.
5279 * modules/pagealign_alloc (Makefile.am): Likewise.
5280 * modules/physmem (Makefile.am): Likewise.
5281 * modules/poll (Makefile.am): Likewise.
5282 * modules/posixtm (Makefile.am): Likewise.
5283 * modules/posixver (Makefile.am): Likewise.
5284 * modules/putenv (Makefile.am): Likewise.
5285 * modules/quote (Makefile.am): Likewise.
5286 * modules/quotearg (Makefile.am): Likewise.
5287 * modules/raise (Makefile.am): Likewise.
5288 * modules/read-file (Makefile.am): Likewise.
5289 * modules/readline (Makefile.am): Likewise.
5290 * modules/readlink (Makefile.am): Likewise.
5291 * modules/readtokens (Makefile.am): Likewise.
5292 * modules/readutmp (Makefile.am): Likewise.
5293 * modules/realloc (Makefile.am): Likewise.
5294 * modules/regex (Makefile.am): Likewise.
5295 * modules/rename (Makefile.am): Likewise.
5296 * modules/rename-dest-slash (Makefile.am): Likewise.
5297 * modules/rijndael (Makefile.am): Likewise.
5298 * modules/rmdir (Makefile.am): Likewise.
5299 * modules/rpmatch (Makefile.am): Likewise.
5300 * modules/safe-read (Makefile.am): Likewise.
5301 * modules/safe-write (Makefile.am): Likewise.
5302 * modules/same (Makefile.am): Likewise.
5303 * modules/save-cwd (Makefile.am): Likewise.
5304 * modules/savedir (Makefile.am): Likewise.
5305 * modules/setenv (Makefile.am): Likewise.
5306 * modules/settime (Makefile.am): Likewise.
5307 * modules/sha1 (Makefile.am): Likewise.
5308 * modules/sig2str (Makefile.am): Likewise.
5309 * modules/snprintf (Makefile.am): Likewise.
5310 * modules/stdlib-safer (Makefile.am): Likewise.
5311 * modules/stpcpy (Makefile.am): Likewise.
5312 * modules/stpncpy (Makefile.am): Likewise.
5313 * modules/strcase (Makefile.am): Likewise.
5314 * modules/strcasestr (Makefile.am): Likewise.
5315 * modules/strchrnul (Makefile.am): Likewise.
5316 * modules/strcspn (Makefile.am): Likewise.
5317 * modules/strdup (Makefile.am): Likewise.
5318 * modules/strerror (Makefile.am): Likewise.
5319 * modules/strftime (Makefile.am): Likewise.
5320 * modules/strndup (Makefile.am): Likewise.
5321 * modules/strnlen (Makefile.am): Likewise.
5322 * modules/strpbrk (Makefile.am): Likewise.
5323 * modules/strsep (Makefile.am): Likewise.
5324 * modules/strstr (Makefile.am): Likewise.
5325 * modules/strtod (Makefile.am): Likewise.
5326 * modules/strtoimax (Makefile.am): Likewise.
5327 * modules/strtok_r (Makefile.am): Likewise.
5328 * modules/strtol (Makefile.am): Likewise.
5329 * modules/strtoll (Makefile.am): Likewise.
5330 * modules/strtoul (Makefile.am): Likewise.
5331 * modules/strtoull (Makefile.am): Likewise.
5332 * modules/strtoumax (Makefile.am): Likewise.
5333 * modules/strverscmp (Makefile.am): Likewise.
5334 * modules/time_r (Makefile.am): Likewise.
5335 * modules/timegm (Makefile.am): Likewise.
5336 * modules/tmpfile-safer (Makefile.am): Likewise.
5337 * modules/unistd-safer (Makefile.am): Likewise.
5338 * modules/unlinkdir (Makefile.am): Likewise.
5339 * modules/userspec (Makefile.am): Likewise.
5340 * modules/utime (Makefile.am): Likewise.
5341 * modules/utimecmp (Makefile.am): Likewise.
5342 * modules/utimens (Makefile.am): Likewise.
5343 * modules/vasnprintf (Makefile.am): Likewise.
5344 * modules/vasprintf (Makefile.am): Likewise.
5345 * modules/vsnprintf (Makefile.am): Likewise.
5346 * modules/xalloc (Makefile.am): Likewise.
5347 * modules/xgetcwd (Makefile.am): Likewise.
5348 * modules/xnanosleep (Makefile.am): Likewise.
5349 * modules/xreadlink (Makefile.am): Likewise.
5350 * modules/xstrtod (Makefile.am): Likewise.
5351 * modules/xstrtol (Makefile.am): Likewise.
5352 * modules/xstrtold (Makefile.am): Likewise.
5353 * modules/yesno (Makefile.am): Likewise.
5355 2006-10-12 Jim Meyering <jim@meyering.net>
5357 * m4/getloadavg.m4: Revert the change below.
5359 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
5360 lib/getloadavg.c using "ls -L", not "test -f". The latter would
5361 fail with a symlink, which is what coreutils' ./bootstrap now
5364 2006-10-12 Bruno Haible <bruno@clisp.org>
5366 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
5368 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
5369 MSVC and mingw explicitly.
5371 2006-10-11 Simon Josefsson <jas@extundo.com>
5372 Bruno Haible <bruno@clisp.org>
5374 Add support for multiple gnulib-tool invocations in the scope of a
5375 single configure.ac file.
5376 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
5377 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
5378 with the same contents as the _LIBADD variable.
5379 (func_emit_initmacro_start, func_emit_initmacro_end,
5380 func_emit_initmacro_done): New functions.
5381 (func_import, func_create_testdir): Invoke them. Allow the identifiers
5382 gl_LIBOBJS and gl_LTLIBOBJS.
5384 2006-10-11 Bruno Haible <bruno@clisp.org>
5386 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
5387 (func_create_testdir): Don't create po/Makefile.am, don't invoke
5388 autoreconf. Instead, invoke autopoint explicitly but move back the
5389 *.m4 files from gnulib.
5391 2006-10-11 Bruno Haible <bruno@clisp.org>
5393 * gnulib-tool (func_usage): Make module names after --create-testdir
5395 (func_create_testdir): If no module was specified, use nearly all
5398 2006-10-12 Jim Meyering <jim@meyering.net>
5400 Big performance improvement for fts-based tools that use FTS_NOSTAT.
5401 Avoid spurious inode-mismatch problems on non-POSIX file systems.
5402 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
5403 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
5404 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
5405 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
5406 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
5407 (fts_set_stat_required): New function.
5408 (fts_open): Defer the calls to fts_stat, if possible or requested.
5409 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
5410 into fts_stat itself.
5411 (fts_read): Perform any required (deferred) fts_stat call.
5412 (fts_build): Likewise, for the directory we're about to open and read.
5413 In the readdir loop, carefully decide whether each entry will require
5414 an eventual call to fts_stat, using dirent.d_type info if available.
5415 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
5416 a command line argument into this function. Update all callers.
5417 Map a return value of FTS_DOT to FTS_D for a command line argument.
5418 * modules/fts (Depends-on): Add d-type. Alphabetize.
5419 Thanks to Miklos Szeredi for his tenacity and for the initial
5420 bug report about "find" failing on a FUSE-based file system.
5422 * lib/fts.c (fts_open): Use consistent indentation.
5424 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
5426 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
5427 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
5428 reported by Jim Meyering. All uses of cache variables renamed
5429 to match Autoconf's.
5430 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
5433 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
5434 Fix misspelling in diagnostic.
5436 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
5438 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
5439 defined. Problem reported by Matthew Woehlke.
5441 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
5442 Add support for Tandem NonStop R series.
5443 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
5446 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
5447 (has_trailing_slash): Omit size arg; all callers changed.
5448 Omit 'inline', since it doesn't help performance and we'd
5449 need to configure it.
5450 Don't count //, ///, etc. as having a trailing slash.
5451 As a side effect, this removes a C99ism reported by Matthew Woehlke.
5452 (rpl_rename_dest_slash): On failure, use rename's errno rather
5453 than (in some cases) an incorrect or junk errno.
5454 Simplify code by removing need to compute length; this does
5455 cause it to make two passes instead of one over the file name,
5458 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
5459 change, since Autoconf's version may no longer be appropriate now
5460 that we are using CVS Autoconf's version. Add support for Tandem.
5462 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
5463 Bruno Haible <bruno@clisp.org>
5465 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
5466 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
5467 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
5468 gl_AC_TYPE_LONG_LONG.
5470 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
5471 instead of HAVE_LONG_LONG.
5472 * lib/printf-args.c (printf_fetchargs): Likewise.
5473 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
5474 * lib/vasnprintf.c (VASNPRINTF): Likewise.
5475 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
5476 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
5477 gl_AC_TYPE_LONG_LONG.
5479 2006-10-11 Bruno Haible <bruno@clisp.org>
5481 * m4/longlong.m4: Add comments.
5482 * m4/ulonglong.m4: Likewise.
5484 2006-10-10 Bruno Haible <bruno@clisp.org>
5486 Make it possible to #define stpcpy, strdup to aliases.
5487 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
5488 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
5490 2006-10-10 Bruno Haible <bruno@clisp.org>
5492 Make it possible to #define gcd to an alias.
5493 * lib/gcd.c: Include config.h.
5495 2006-10-10 Bruno Haible <bruno@clisp.org>
5497 Make it possible to #define c_isascii to an alias.
5498 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
5499 defined. Undefine the macros before defining them, to avoid gcc
5501 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
5502 define NO_C_CTYPE_MACROS early.
5504 2006-10-10 Bruno Haible <bruno@clisp.org>
5506 Make it possible to #define set_program_name to an alias.
5507 * lib/progname.c: Don't undefine set_program_name; instead, undefine
5508 ENABLE_RELOCATABLE early.
5510 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
5512 Port to Tandem NSK OSS, which has 64-bit signed int but at most
5513 32-bit unsigned int. Problem reported by Matthew Woehlke in:
5514 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
5515 More generally, don't assume that 64-bit signed int is available
5516 if unsigned int is, and vice versa.
5517 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
5518 unsigned symbols, not on their signed counterparts.
5519 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
5520 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
5521 (UINT64_C, UINTMAX_C):
5523 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
5524 unsigned counterparts.
5525 (Have_long_long, Unsigned): New macros.
5526 (Int): Renamed from INT.
5527 (strtoimax): Use the new macros.
5528 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
5529 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
5530 * modules/inttypes (inttypes.h): Substitute
5531 HAVE_UNSIGNED_LONG_LONG_INT.
5532 * modules/stdint (stdint.h): Likewise.
5533 (Files): Add m4/ulonglong.m4.
5535 2006-10-10 Bruno Haible <bruno@clisp.org>
5537 Fix a gcc -Wshadow warning.
5538 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
5540 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
5541 gl_linked_indexof_from_to): Likewise.
5542 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
5544 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
5546 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
5547 Reported by Eric Blake.
5549 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
5551 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
5552 for NetBSD. Problem reported by Bruno Haible.
5554 2006-10-09 Jim Meyering <jim@meyering.net>
5556 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
5557 Patch from Bruno Haible.
5559 2006-10-09 Jim Meyering <jim@meyering.net>
5561 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
5562 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
5563 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
5565 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
5567 Don't include <config.h> twice; this doesn't work in some cases,
5568 e.g., when config.h has "#define intmax_t long long int" and
5569 we include <config.h>, <inttypes.h>, <config.h> in that order.
5570 Problem reported by Matthew Woehlke in:
5571 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
5572 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
5573 * lib/fts-cycle.c: Don't include config.h.
5574 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
5575 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
5576 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
5577 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
5579 * lib/xstrtoumax.c: Likewise.
5580 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
5581 __strtol and the like, so that this module is more like its siblings.
5582 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
5583 Remove; no longer needed now that we assume gnulib inttypes.h.
5585 2006-10-08 Bruno Haible <bruno@clisp.org>
5587 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
5590 2006-10-07 Jim Meyering <jim@meyering.net>
5592 * modules/inttypes (inttypes.h): Revert what seems to have been
5593 an inadvertent part of today's change: use "|", not "/" in the
5594 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
5596 2006-10-07 Bruno Haible <bruno@clisp.org>
5598 * modules/sublist: New file.
5600 2006-10-07 Bruno Haible <bruno@clisp.org>
5602 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
5603 * modules/argz (argz.h): Likewise.
5604 * modules/arpa_inet (arpa/inet.h): Likewise.
5605 * modules/byteswap (byteswap.h): Likewise.
5606 * modules/configmake (configmake.h): Likewise.
5607 * modules/fcntl (fcntl.h): Likewise.
5608 * modules/fnmatch (fnmatch.h): Likewise.
5609 * modules/getopt (getopt.h): Likewise.
5610 * modules/glob (glob.h): Likewise.
5611 * modules/inttypes (inttypes.h): Likewise.
5612 * modules/netinet_in (netinet/in.h): Likewise.
5613 * modules/poll (poll.h): Likewise.
5614 * modules/stdbool (stdbool.h): Likewise.
5615 * modules/stdint (stdint.h): Likewise.
5616 * modules/sys_select (sys/select.h): Likewise.
5617 * modules/sys_socket (sys/socket.h): Likewise.
5618 * modules/sys_stat (sys/stat.h): Likewise.
5619 * modules/sysexits (sysexits.h): Likewise.
5620 * modules/unistd (unistd.h): Likewise.
5621 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5622 Add a "DO NOT EDIT" comment to the generated file.
5623 (func_import): Likewise for gnulib-comp.m4.
5625 2006-10-07 Bruno Haible <bruno@clisp.org>
5627 * lib/gl_sublist.h: New file.
5628 * lib/gl_sublist.c: New file.
5630 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
5632 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
5633 name (relative to the original working directory) and the file
5634 name component (relative to the temporary working directory). All
5636 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
5637 * lib/mkdir-p.c (make_dir_parents): Likewise.
5638 * lib/mkdir-p.h (make_dir_parents): Likewise.
5640 2006-10-06 Eric Blake <ebb9@byu.net>
5642 Define several macros for use by the clean-temp module.
5643 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
5644 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
5645 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
5647 * lib/clean-temp.h (close_stream_temp): New declaration.
5648 * lib/clean-temp.c (includes): Pull in headers according to what
5649 other modules are in use.
5650 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
5652 2006-10-06 Bruno Haible <bruno@clisp.org>
5654 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
5655 instead of fopen, fwriteerror.
5657 2006-10-06 Bruno Haible <bruno@clisp.org>
5659 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
5660 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
5662 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
5663 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
5664 Return an error indicator.
5665 Suggested by Eric Blake.
5667 2006-10-06 Bruno Haible <bruno@clisp.org>
5669 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
5670 Reported by Eric Blake.
5672 2006-10-06 Bruno Haible <bruno@clisp.org>
5674 * modules/closeout (Description): Mention stderr too.
5676 2006-10-06 Bruno Haible <bruno@clisp.org>
5677 and Paul Eggert <eggert@cs.ucla.edu>
5679 * lib/closeout.c (close_stdout): Also close stderr.
5680 * lib/closeout.h: Update comment.
5682 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
5684 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
5685 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
5686 * lib/dirchownmod.c: Include lchown.h.
5687 * lib/lchown.c: Don't include files that lchown.h now includes.
5688 Don't declare chown, since lchown.h now does that.
5689 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
5690 (lchown): Define to rpl_chown if lchown is declared but
5691 does not exist. Declare using a prototype if lchown is not
5692 declared. Add a copyright notice.
5693 * lib/mkstemp.h: Include <unistd.h>.
5694 * lib/openat.c: Include lchown.h.
5696 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
5697 we now test for that separately.
5698 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
5699 rather than O_NOFOLLOW, when testing whether it's possible to
5700 avoid a race condition reliably.
5701 * lib/savewd.c (savewd_chdir): Likewise.
5703 Remove macros that are no longer needed now that stdint.h is
5705 * lib/fsusage.c (UINTMAX_MAX): Remove.
5706 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
5707 * lib/utimecmp.c (SIZE_MAX): Remove.
5709 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
5711 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
5712 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
5715 2006-10-05 Bruno Haible <bruno@clisp.org>
5717 * lib/gl_list.h (gl_sortedlist_search_from_to,
5718 gl_sortedlist_indexof_from_to): New declarations.
5719 (gl_list_implementation): New fields sortedlist_search_from_to,
5720 sortedlist_indexof_from_to.
5721 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
5723 * lib/gl_list.c (gl_sortedlist_search_from_to,
5724 gl_sortedlist_indexof_from_to): New functions.
5725 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
5727 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
5728 (gl_array_sortedlist_search_from_to): New function.
5729 (gl_array_list_implementation): Update.
5730 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
5732 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
5733 (gl_carray_sortedlist_search_from_to): New function.
5734 (gl_carray_list_implementation): Update.
5735 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
5736 gl_linked_sortedlist_indexof_from_to): New functions.
5737 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
5738 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
5739 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
5740 gl_tree_sortedlist_indexof_from_to): New functions.
5741 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
5742 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
5744 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
5745 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
5748 2006-10-05 Bruno Haible <bruno@clisp.org>
5750 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
5751 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
5752 (struct gl_list_implementation): Add fields search_from_to,
5753 indexof_from_to. Remove fields search, indexof.
5754 (gl_list_search): Use the search_from_to method.
5755 (gl_list_search_from, gl_list_search_from_to): New functions.
5756 (gl_list_indexof): Use the indexof_from_to method.
5757 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
5758 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
5759 (gl_list_search_from, gl_list_search_from_to): New functions.
5760 (gl_list_indexof): Use the indexof_from_to method.
5761 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
5762 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
5763 gl_array_indexof. Add start_index, end_index arguments.
5764 (gl_array_search_from_to): Renamed from gl_array_search. Add
5765 start_index, end_index arguments.
5766 (gl_array_remove, gl_array_list_implementation): Update.
5767 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
5768 gl_carray_indexof. Add start_index, end_index arguments.
5769 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
5770 start_index, end_index arguments.
5771 (gl_carray_remove, gl_carray_list_implementation): Update.
5772 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
5773 gl_linked_search. Add start_index, end_index arguments.
5774 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
5775 start_index, end_index arguments.
5776 (gl_linked_remove): Update.
5777 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
5778 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
5779 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
5781 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
5782 gl_tree_search. Add start_index, end_index arguments.
5783 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
5784 start_index, end_index arguments.
5785 (gl_tree_remove): Update.
5786 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
5787 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
5788 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
5790 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
5791 gl_tree_search. Add start_index, end_index arguments.
5792 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
5793 start_index, end_index arguments.
5794 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
5796 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
5798 2006-10-05 Bruno Haible <bruno@clisp.org>
5800 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
5802 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
5803 fwriteerror_temp): New declarations.
5804 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
5805 (descriptors): New variable.
5806 (cleanup): First, close the descriptors.
5807 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
5808 fclose_temp, fwriteerror_temp): New functions.
5810 2006-10-04 Jim Meyering <jim@meyering.net>
5812 * lib/fts.c (fts_open): Tiny comment change.
5814 2006-10-04 Bruno Haible <bruno@clisp.org>
5816 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
5817 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
5819 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
5820 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
5822 (gl_LOCK): Require gl_LOCK_BODY.
5824 2006-10-04 Bruno Haible <bruno@clisp.org>
5826 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
5827 (gl_oset_search_atleast): New declaration.
5828 (struct gl_oset_implementation): Add field 'search_atleast'.
5829 (gl_oset_search_atleast): New inline function.
5830 * lib/gl_oset.c (gl_oset_search_atleast): New function.
5831 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
5832 (gl_array_oset_implementation): Update.
5833 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
5834 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
5835 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
5837 2006-10-04 Bruno Haible <bruno@clisp.org>
5839 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
5841 2006-10-03 Bruno Haible <bruno@clisp.org>
5843 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
5844 from gl_avltreehash_list_implementation.
5846 2006-10-03 Bruno Haible <bruno@clisp.org>
5848 * lib/gl_oset.c (gl_oset_add): Fix return type.
5850 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
5852 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
5854 2006-10-02 Eric Blake <ebb9@byu.net>
5856 * modules/strnlen (Depends-on): Add extensions.
5858 2006-10-02 Eric Blake <ebb9@byu.net>
5860 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
5861 definition in 2.60+.
5863 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
5865 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
5868 2006-10-02 Bruno Haible <bruno@clisp.org>
5870 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
5871 to the AUTOMAKE_OPTIONS.
5872 Reported by Jim Meyering.
5874 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
5876 Work around bug in Solaris 10 /proc file system:
5877 /proc/self/fd/NNN/.. isn't the parent directory of
5878 the directory whose file descriptor is NNN. This needs to
5879 be worked around at run time, not compile time, since a
5880 program might be built on Solaris 8, where things work, and
5882 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
5883 to use the following interface instead:
5884 (OPENAT_BUFFER_SIZE): New macro.
5885 (openat_proc_name): New function.
5886 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
5887 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
5889 * lib/openat-proc.c: New file.
5890 * modules/openat (Files): Add lib/openat-proc.c.
5891 (Depends-on): Add same-inode, stdbool.
5892 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
5894 2006-09-29 Bruno Haible <bruno@clisp.org>
5896 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
5897 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
5898 argument. Set stdout_closed before testing for ferror, not after.
5899 (fwriteerror, fwriteerror_no_ebadf): New functions.
5901 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5903 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
5905 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
5907 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
5908 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
5910 2006-09-28 Jim Meyering <jim@meyering.net>
5912 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
5915 2006-09-28 Bruno Haible <bruno@clisp.org>
5917 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
5918 * modules/linkedhash-list (Depends-on): Likewise.
5919 * modules/rbtreehash-list (Depends-on): Likewise.
5921 2006-09-28 Bruno Haible <bruno@clisp.org>
5923 * lib/strndup.h: Simplify the redefinition of strndup.
5924 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
5925 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
5927 2006-09-28 Bruno Haible <bruno@clisp.org>
5929 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
5930 * lib/gl_linkedhash_list.c: Likewise.
5931 * lib/gl_rbtreehash_list.c: Likewise.
5933 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
5935 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
5938 * lib/__fpending.h: Don't include <stdio_ext.h> unless
5939 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
5940 it causes <stdio_ext.h> to cause a compile-time error.
5941 Problem reported by Nelson H. F. Beebe.
5942 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
5943 of HAVE_DECL___PENDING.
5945 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
5946 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
5949 2006-09-27 Jim Meyering <jim@meyering.net>
5951 This file could end up with a definition for a function
5952 named __strndup, rather than rpl_strndup on a system with
5953 incomplete weak_alias support.
5954 * lib/strndup.c (strndup): Rename from __strndup.
5955 Remove #defines that used to map __strndup to strndup.
5956 Don't use K&R prototypes.
5957 Remove LIBC-related code, since this file is not sync'd with glibc.
5958 * lib/strndup.h: Revamp, accordingly.
5959 * m4/strndup.m4: Modernize.
5961 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
5963 * modules/savewd (Depends-on): Add 'raise'.
5964 * lib/savewd.c: Include <signal.h>, for 'raise'.
5966 2006-09-26 Jim Meyering <jim@meyering.net>
5968 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
5969 when we detect Darwin 8.7.0's acl_get_file bug.
5970 Rearrange to perform the new (below) run-test while $LIBS
5971 contains any acl-related library. Set USE_ACL at the end.
5972 (gl_ACL_GET_FILE): New function.
5974 2006-09-26 Eric Blake <ebb9@byu.net>
5976 * lib/verror.c: Include <config.h> unconditionally.
5978 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
5980 * modules/clock-time (Maintainer): Add self.
5981 * modules/getlogin_r (Depends-on): Add extensions.
5983 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5985 * modules/clock-time: New module.
5986 * modules/nanosleep (Depends-on): Add clock-time.
5987 * modules/gethrxtime (Depends-on): Likewise.
5988 * modules/gettime (Depends-on): Likewise.
5989 * modules/settime (Depends-on): Likewise.
5991 * modules/fts-lgpl: Depend on openat.
5992 * modules/mkancesdirs: Depend on savewd.
5993 * modules/mkdir-p: Likewise.
5995 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5997 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
5999 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
6000 `gl_have_arbitrary_file_name_length_limit' to
6001 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
6002 actually works between configure runs.
6004 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6005 Bruno Haible <bruno@clisp.org>
6007 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
6009 2006-09-25 Jim Meyering <jim@meyering.net>
6011 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
6012 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
6014 2006-09-25 Eric Blake <ebb9@byu.net>
6016 * gnulib-tool (func_import, func_create_testdir): Fix typos in
6017 exec's in 2006-09-18 patch when shuffling fds.
6019 2006-09-25 Bruno Haible <bruno@clisp.org>
6021 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
6022 Reported by Jim Meyering.
6024 2006-09-24 Jim Meyering <jim@meyering.net>
6026 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
6027 compare a pointer against a literal "0". That caused failures with
6028 at least HP-UX's hpcc.
6030 2006-09-22 Simon Josefsson <jas@extundo.com>
6034 * modules/gc-hmac-sha1:
6035 * modules/gc-hmac-md5:
6037 * modules/gc-arcfour: Distribute more files.
6039 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6041 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
6042 (gl_linked_iterator_from_to): Initialize struct completely.
6043 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
6044 (gl_tree_iterator_from_to): Likewise
6045 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
6046 * lib/gl_array_list.c [lint] (gl_array_iterator)
6047 (gl_array_iterator_from_to): Likewise.
6048 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
6049 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
6050 (gl_carray_iterator_from_to): Likewise.
6052 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
6053 * lib/md4.c (md4_process_block): Remove unused variable.
6054 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
6055 parentheses for clarity.
6057 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6059 * modules/bison-i18n (Depends-on): Add gettext.
6061 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6063 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
6064 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
6065 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
6066 also add missing comma that caused broken test.
6067 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
6068 stdlib.h, for `abort'.
6069 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
6071 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
6072 include unistd.h if present, for `rmdir'.
6073 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
6075 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
6076 in the process include standard headers for prototypes.
6077 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
6078 gets declared on GNU/Linux.
6079 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
6080 unistd.h, for `rmdir'.
6081 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
6083 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
6085 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
6087 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
6089 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6091 * gnulib-tool (func_version): Create output all at once. This
6092 may help avoid triggering unnecessary SIGPIPEs, and at any
6093 rate it doesn't hurt.
6095 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6096 Bruno Haible <bruno@clisp.org>
6098 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
6099 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
6100 * m4/signed.m4 (bh_C_SIGNED): Likewise.
6102 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
6103 (gl_FUNC_VASPRINTF): Invoke it.
6105 2006-09-22 Bruno Haible <bruno@clisp.org>
6107 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
6108 getloadavg.c as first argument.
6110 2006-09-22 Bruno Haible <bruno@clisp.org>
6112 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
6113 at the beginning of the gl_INIT macro.
6114 * modules/getloadavg (configure.ac): Pass $gl_source_base to
6117 2006-09-22 Bruno Haible <bruno@clisp.org>
6119 * gnulib-tool (func_create_megatestdir): Don't include the config-h
6121 Suggested by Ralf Wildenhues.
6123 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
6125 Import this patch from libc:
6127 2006-09-06 Jakub Jelinek <jakub@redhat.com>
6129 * lib/regex_internal.c (re_string_reconstruct): Handle
6130 offset < pstr->valid_raw_len && pstr->offsets_needed case.
6131 Ensure no bytes read before raw_mbs array. Pass a saved copy of
6132 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
6133 re_string_context_at.
6135 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
6137 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
6138 gl_REGEX now does it for us.
6139 (gl_REGEX): Add test taken from
6140 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
6142 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
6143 Check that large offsets work. Modernize Autoconf usages.
6144 Prefer "yes" to mean a good thing rather than a bad.
6145 Don't put "#define mkstemp" in config.h, as this might interfere
6146 with standard system headers that "#define mkstemp mkstemp64".
6148 * modules/mkstemp (Depends-on): Add extensions, so that
6149 mkstemp is visible on some platforms.
6150 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
6151 (Include): Change to "mkstemp.h" from <stdlib.h>.
6152 (Files): Add mkstemp.h.
6154 * lib/mkstemp.h: New file, since some standard headers
6156 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
6157 Include "mkstemp.h".
6158 Make the _LIBC code resemble glibc original more,
6159 e.g., use K&R style.
6160 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
6161 (mkstemp): Remove, since mkstemp.h does this for us.
6162 * lib/stdlib--.h: Include mkstemp.h.
6164 Import this patch from libc:
6166 2006-04-07 Ulrich Drepper <drepper@redhat.com>
6168 * lib/tempname.c (__gen_tempname): Change attempts_min
6169 into a macro. Use preprocessor to decide how to initialize
6170 attempts [Coverity CID 67].
6172 2006-09-20 Bruno Haible <bruno@clisp.org>
6174 * lib/mkdtemp.c: Import from libc.
6175 2006-04-07 Ulrich Drepper <drepper@redhat.com>
6176 * sysdeps/posix/tempname.c (__gen_tempname): Change
6177 attempts_min into a macro. Use preprocessor to decide how to
6178 initialize attempts [Coverity CID 67].
6179 2001-11-27 Paul Eggert <eggert@twinsun.com>
6180 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
6181 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
6183 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6185 * gnulib-tool (func_exit): New function, to allow to pass the
6186 exit status portably through the trap. Use everywhere.
6187 (--help, --version): Signal a write error.
6188 (trap): catch SIGPIPE, for write errors.
6189 Exit at the end of the trap, with the correct exit status.
6191 2006-09-19 Karl Berry <karl@gnu.org>
6193 * doc/gnulib.texi: note about the license texinfo files.
6195 2006-09-19 Eric Blake <ebb9@byu.net>
6197 * gnulib-tool: Avoid space-tab.
6199 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
6201 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
6202 that prevented coreutils 6.1 from building. Problem reported
6203 by Petter Reinholdtsen.
6205 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
6207 * gnulib-tool (avoidlist): Fix typo that broke options like
6208 --avoid=lock that are used by coreutils bootstrap.
6210 2006-09-18 Mark D. Baushke <mdb@gnu.org>
6212 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
6213 more systematically.
6215 2006-09-18 Jim Meyering <jim@meyering.net>
6217 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
6219 2006-09-18 Bruno Haible <bruno@clisp.org>
6221 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
6223 2006-09-18 Bruno Haible <bruno@clisp.org>
6225 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
6226 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
6227 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
6228 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
6229 * m4/gettext.m4: Require autoconf >= 2.52.
6230 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
6231 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
6232 of gl_cv_header_inttypes_h.
6234 2006-09-18 Bruno Haible <bruno@clisp.org>
6236 * lib/javaversion.c: Include configmake.h.
6238 2006-09-18 Bruno Haible <bruno@clisp.org>
6240 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
6241 avoid that the while loops be executed in a subshell.
6243 2006-09-18 Bruno Haible <bruno@clisp.org>
6245 * MODULES.html.sh (func_module): Break long lines.
6246 Suggested by Bruce Korb <bkorb@gnu.org>.
6248 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6250 Speed up by a factor of 1.12.
6251 * gnulib-tool (nl): New variable.
6252 (func_import): Rewrite include directive extraction to only read each
6255 2006-09-17 Bruno Haible <bruno@clisp.org>
6257 * modules/javaversion (Makefile.am): Remove DEFS setting.
6258 (Depends-on): Add configmake, for PKGDATADIR definition.
6260 2006-09-17 Bruno Haible <bruno@clisp.org>
6262 * gnulib-tool (func_create_testdir): Rewrite all files at once.
6264 2006-09-17 Bruno Haible <bruno@clisp.org>
6266 * gnulib-tool (func_append): New function, stolen from libtool.m4.
6267 (func_modules_transitive_closure, func_modules_add_dummy,
6268 func_modules_to_filelist, func_import, func_create_testdir,
6269 func_create_megatestdir, ...): Use it wherever possible.
6270 Suggested by Ralf Wildenhues.
6272 2006-09-16 Karl Berry <karl@gnu.org>
6274 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
6275 to avoid sectioning errors.
6276 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
6277 [ifinfo]: blank line after @center-ed titles.
6278 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
6279 Spell FSF address consistently with others.
6280 (These changes approved by rms.)
6282 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6284 Speed up by a factor of 1.61.
6285 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
6286 already checked module names again.
6288 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6290 Speed up by a factor of 1.13.
6291 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
6292 for new_files, and the input to func_add_or_update.
6294 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6296 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
6297 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
6299 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
6301 * modules/mkancesdirs (Depends-on): Add fcntl.
6302 * modules/savewd: New file.
6303 * MODULES.html.sh (File system functions): Add savewd.
6305 * modules/configmake (Makefile.am): Add support for the
6306 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
6308 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
6310 * m4/savewd.m4: New file.
6312 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
6314 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
6315 (dirchownmod): New arg FD. All callers changed.
6316 Use FD rather than opening the directory ourself, as opening is
6317 now the caller's responsibility.
6318 * lib/dirchownmod.h: Likewise.
6319 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
6320 hosts that require <sys/types.h> before <sys/stat.h>. Include
6321 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
6323 (mkancesdirs): Return length of prefix of FILE that has already
6324 been made, or -2 if there is a child doing the work. Redo
6325 algorithm so that it is O(N) rather than O(N**2). Optimize away
6326 ".", and treat ".." specially since it might stray back into
6327 already-created areas. Use a subprocess if necessary. New arg
6328 WD; all users changed. MAKE_DIR function should now return 1
6329 if it creates a directory that is not readable. Return -2 if
6330 a child process is spun off.
6331 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
6332 Adjust signature to match code.
6333 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
6334 (make_dir_parents): Use a subprocess if necessary. New arg WD;
6336 * lib/savewd.c, lib/savewd.h: New files.
6338 2006-09-15 Jim Meyering <jim@meyering.net>
6340 * modules/rename-dest-slash: New module.
6341 * MODULES.html.sh (posix_compat): Add it here.
6343 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
6345 2006-09-15 Jim Meyering <jim@meyering.net>
6347 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
6350 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
6352 2006-09-15 Jim Meyering <jim@meyering.net>
6354 * lib/rename-dest-slash.c (has_trailing_slash): Use
6355 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
6356 (rpl_rename_dest_slash): Perform the cheaper trailing slash
6357 test before testing whether SRC is a directory.
6358 Suggestions from Bruno Haible.
6360 Avoid a warning about an unused variable.
6361 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
6362 into the #ifdef block where it's used.
6364 * lib/rename-dest-slash.c: New file.
6366 2006-09-14 Bruno Haible <bruno@clisp.org>
6368 * lib/allocsa.c: Include <config.h> unconditionally.
6369 * lib/asnprintf.c: Likewise.
6370 * lib/asprintf.c: Likewise.
6371 * lib/c-strcasecmp.c: Likewise.
6372 * lib/c-strcasestr.c: Likewise.
6373 * lib/c-strncasecmp.c: Likewise.
6374 * lib/c-strstr.c: Likewise.
6375 * lib/classpath.c: Likewise.
6376 * lib/clean-temp.c: Likewise.
6377 * lib/concatpath.c: Likewise.
6378 * lib/copy-file.c: Likewise.
6379 * lib/csharpcomp.c: Likewise.
6380 * lib/csharpexec.c: Likewise.
6381 * lib/execute.c: Likewise.
6382 * lib/fatal-signal.c: Likewise.
6383 * lib/findprog.c: Likewise.
6384 * lib/fwriteerror.c: Likewise.
6385 * lib/gl_array_list.c: Likewise.
6386 * lib/gl_array_oset.c: Likewise.
6387 * lib/gl_avltree_list.c: Likewise.
6388 * lib/gl_avltree_oset.c: Likewise.
6389 * lib/gl_avltreehash_list.c: Likewise.
6390 * lib/gl_carray_list.c: Likewise.
6391 * lib/gl_linked_list.c: Likewise.
6392 * lib/gl_linkedhash_list.c: Likewise.
6393 * lib/gl_list.c: Likewise.
6394 * lib/gl_oset.c: Likewise.
6395 * lib/gl_rbtree_list.c: Likewise.
6396 * lib/gl_rbtree_oset.c: Likewise.
6397 * lib/gl_rbtreehash_list.c: Likewise.
6398 * lib/imaxabs.c: Likewise.
6399 * lib/imaxdiv.c: Likewise.
6400 * lib/javacomp.c: Likewise.
6401 * lib/javaexec.c: Likewise.
6402 * lib/javaversion.c: Likewise.
6403 * lib/linebreak.c: Likewise.
6404 * lib/localcharset.c: Likewise.
6405 * lib/lock.c: Likewise.
6406 * lib/mbchar.c: Likewise.
6407 * lib/mbswidth.c: Likewise.
6408 * lib/mkdtemp.c: Likewise.
6409 * lib/pipe.c: Likewise.
6410 * lib/printf-args.c: Likewise.
6411 * lib/printf-parse.c: Likewise.
6412 * lib/progname.c: Likewise.
6413 * lib/progreloc.c: Likewise.
6414 * lib/readlink.c: Likewise.
6415 * lib/sh-quote.c: Likewise.
6416 * lib/stpcpy.c: Likewise.
6417 * lib/stpncpy.c: Likewise.
6418 * lib/strcasecmp.c: Likewise.
6419 * lib/strcasestr.c: Likewise.
6420 * lib/strcspn.c: Likewise.
6421 * lib/striconv.c: Likewise.
6422 * lib/strncasecmp.c: Likewise.
6423 * lib/strnlen1.c: Likewise.
6424 * lib/strstr.c: Likewise.
6425 * lib/strtok_r.c: Likewise.
6426 * lib/tls.c: Likewise.
6427 * lib/tmpdir.c: Likewise.
6428 * lib/unicodeio.c: Likewise.
6429 * lib/unsetenv.c: Likewise.
6430 * lib/vasnprintf.c: Likewise.
6431 * lib/vasprintf.c: Likewise.
6432 * lib/wait-process.c: Likewise.
6433 * lib/xallocsa.c: Likewise.
6434 * lib/xsetenv.c: Likewise.
6435 * lib/xstriconv.c: Likewise.
6437 2006-09-13 Simon Josefsson <jas@extundo.com>
6439 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
6440 that internally, suggested by Ralf Wildenhues
6441 <Ralf.Wildenhues@gmx.de>.
6443 2006-09-13 Simon Josefsson <jas@extundo.com>
6445 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
6447 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6449 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
6451 * lib/_fpending.c: Include <config.h> unconditionally, since we no
6452 longer worry about uses that don't define HAVE_CONFIG_H.
6453 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
6454 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
6455 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
6456 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
6457 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
6458 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
6459 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
6460 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
6461 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
6462 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
6463 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
6464 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
6465 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
6466 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
6467 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
6468 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
6469 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
6470 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
6471 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
6472 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
6473 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
6474 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
6475 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
6476 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
6477 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
6478 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
6479 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
6480 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
6481 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
6482 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
6483 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
6484 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
6485 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
6486 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
6487 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
6488 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
6489 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
6490 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
6491 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
6492 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
6493 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
6496 2006-09-13 Eric Blake <ebb9@byu.net>
6498 * lib/getopt.c: Fix typo in last commit.
6500 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
6502 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
6505 2006-09-12 Jim Meyering <jim@meyering.net>
6507 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
6508 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
6509 Reported by Nelson H. F. Beebe.
6511 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
6513 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
6514 program_invocation_name and program_invocation_short_name are
6516 * lib/argp-namefrob.h: Move declarations of program_invocation_name
6517 and program_invocation_short_name to argp.h, so they are visible
6519 * lib/argp.h: Likewise
6521 2006-09-10 Bruno Haible <bruno@clisp.org>
6523 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
6524 m4/inttypes_h.m4, m4/uintmax_t.m4.
6526 2006-09-10 Bruno Haible <bruno@clisp.org>
6528 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
6529 gl_AC_TYPE_UINTMAX_T.
6531 2006-09-10 Bruno Haible <bruno@clisp.org>
6533 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
6535 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
6537 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
6538 convention. Text proposed by Bruno Haible.
6539 (struct argp_option): Document the use of N_() wrappers.
6541 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
6542 '\v', and translate the two parts separately, instead of feeding
6543 the whole string to gettext. This allows to exclude
6544 '\v' from the strings visible to the translator by writing doc
6545 strings as N_("..") "\v" N_("..").
6547 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
6549 * config/srclist.txt: Undo latest change; the bug was fixed.
6551 2006-09-09 Bruno Haible <bruno@clisp.org>
6553 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
6554 assignments if building a library without libtool.
6555 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
6556 in func_emit_lib_Makefile_am.
6557 (func_import): When building a static library libfoo.a, arrange to
6558 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
6559 (func_create_testdir): Likewise.
6560 * modules/gc (configure.ac, Makefile.am): If building statically,
6561 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
6562 * modules/iconvme (configure.ac, Makefile.am): Likewise.
6563 * modules/striconv (configure.ac, Makefile.am): Likewise.
6564 Based on a suggestion by Ralf Wildenhues.
6566 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
6568 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
6569 Check for unistd.h too, since Autoconf doesn't assume POSIX.
6572 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
6573 Add year_2050_test to catch glibc bug 2821
6574 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
6576 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
6577 Prefer #ifdef to #if.
6579 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
6580 Return from 'main' instead of calling 'exit'.
6582 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
6584 * lib/mktime.c (guess_time_tm): Fix bug where mktime
6585 returned the maximum time_t value rather than (time_t) -1.
6586 Problem originally reported by William Bardwell
6587 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
6589 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
6591 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
6594 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
6596 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
6599 2006-09-08 Jim Meyering <jim@meyering.net>
6601 Don't make generated files read-only. That would bother too many
6602 people. However, do retain the ability to work when targets are
6603 read-only: remove the destination and temporary files before writing
6604 them (when generated via sed or echo), or by using the -f option for
6605 both cp and mv commands. Suggestion to use -f from Paul Eggert.
6606 * modules/alloca-opt, modules/argz, modules/arpa_inet:
6607 * modules/byteswap, modules/configmake, modules/fcntl:
6608 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
6609 * modules/localcharset, modules/netinet_in, modules/poll:
6610 * modules/stdbool, modules/stdint, modules/sys_select:
6611 * modules/sys_socket, modules/sys_stat, modules/sysexits:
6613 2006-09-08 Jim Meyering <jim@meyering.net>
6615 Avoid new build failure on FreeBSD 6.0.
6616 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
6617 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
6618 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
6620 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6622 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
6624 2006-09-07 Jim Meyering <jim@meyering.net>
6626 Fix global typo in last change: use chmod u-w, not chmod u-x.
6627 Spotted by Paul Eggert and Bruce Korb.
6628 * modules/alloca-opt, modules/argz, modules/arpa_inet:
6629 * modules/byteswap, modules/configmake, modules/fcntl:
6630 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
6631 * modules/localcharset, modules/netinet_in, modules/poll:
6632 * modules/stdbool, modules/stdint, modules/sys_select:
6633 * modules/sys_socket, modules/sys_stat, modules/sysexits:
6635 2006-09-06 Jim Meyering <jim@meyering.net>
6637 Make generated files be read-only.
6638 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
6639 Ensure that each generated file is now read-only.
6640 * modules/argz: Likewise.
6641 * modules/arpa_inet: Likewise.
6642 * modules/byteswap: Likewise.
6643 * modules/configmake: Likewise.
6644 * modules/fcntl: Likewise.
6645 * modules/fnmatch: Likewise.
6646 * modules/getopt: Likewise.
6647 * modules/glob: Likewise.
6648 * modules/inttypes: Likewise.
6649 * modules/netinet_in: Likewise.
6650 * modules/poll: Likewise.
6651 * modules/stdbool: Likewise.
6652 * modules/stdint: Likewise.
6653 * modules/sys_select: Likewise.
6654 * modules/sys_socket: Likewise.
6655 * modules/sys_stat: Likewise.
6656 * modules/sysexits: Likewise.
6657 * modules/localcharset: Same as above, but continue using temporary
6658 file named "t-$@" (why different?) rather than the "$@-t" used
6661 * modules/sysexits (Makefile.am): Replace literal occurrences
6662 of "sysexit.h" more readable, and more consistent, "$@".
6664 2006-09-06 Bruno Haible <bruno@clisp.org>
6666 * modules/striconv: New file.
6667 * modules/xstriconv: New file.
6668 * MODULES.html.sh (Internationalization functions): Add striconv,
6671 2006-09-06 Bruno Haible <bruno@clisp.org>
6673 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
6674 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
6675 not using libtool correctly.
6677 2006-09-06 Bruno Haible <bruno@clisp.org>
6679 * lib/striconv.h: New file.
6680 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
6682 * lib/xstriconv.h: New file.
6683 * lib/xstriconv.c: New file.
6685 2006-09-06 Bruno Haible <bruno@clisp.org>
6687 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
6690 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6692 * lib/argz_.h: Sync from Libtool.
6694 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
6695 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6697 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
6699 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
6701 * modules/trim: New file.
6703 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
6705 * lib/trim.h: New file.
6706 * lib/trim.c: New file.
6708 2006-09-05 Bruno Haible <bruno@clisp.org>
6710 * MODULES.html.sh (String handling): Add trim.
6712 2006-09-04 Karl Berry <karl@gnu.org>
6714 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
6717 2006-09-03 Bruno Haible <bruno@clisp.org>
6719 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
6722 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
6724 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
6725 not gl_GETLOADAVG. Omit unneeded semicolons.
6726 Problems reported by Ralf Wildenhues in
6727 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
6728 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
6729 at the end, which is the usual gnulib style.
6731 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
6732 of doing all the work ourselves.
6733 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
6734 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
6736 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
6738 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
6739 Problem reported by Ralf Wildenhues in
6740 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
6742 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
6743 HAVE_STRUCT_STATFS_F_FSTYPENAME.
6745 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
6747 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
6748 yesterday's patch by changing test -n to test -z.
6750 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
6752 * modules/getloadavg (Files): Add m4/getloadavg.m4.
6753 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
6754 the former is now obsolescent.
6756 * modules/chdir-long (Depends-on): Add fcntl.
6758 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
6760 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
6761 obsolescent, and programs should use gnulib instead.
6762 * m4/getloadavg.m4: New file, with contents taken from Autoconf
6763 but with prefixes changed.
6765 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
6767 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
6768 or stdbool.h, because they might not exist while configuring.
6770 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
6771 Don't include unistd.h or limits.h; not needed, since chdir-long.h
6773 (O_DIRECTORY): Remove.
6775 2006-08-31 Eric Blake <ebb9@byu.net>
6777 * gnulib-tool: Don't let emacs change spaces to TAB.
6779 2006-08-31 Bruno Haible <bruno@clisp.org>
6781 * gnulib-tool: When calling func_import more than once, do it in a
6783 Reported by Eric Blake <ebb9@byu.net>.
6785 2006-08-31 Bruno Haible <bruno@clisp.org>
6787 * gnulib-tool (nl): Remove variable.
6788 (sed_transform_lib_file): Use more robust test for config-h module.
6789 (func_import): Fix typo in 2006-08-25 patch.
6791 2006-08-31 Bruno Haible <bruno@clisp.org>
6793 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
6794 specified, augment Makefile.am variables instead of assigning them.
6796 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
6798 Work around a bug in both the Linux and SunOS 64-bit kernels:
6799 nanosleep mishandles sleeps for longer than 2**31 seconds.
6800 Problem reported by Frank v Waveren in
6801 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
6802 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
6803 Check for nanosleep bug.
6804 (LIB_NANOSLEEP): Append clock_gettime library if needed.
6806 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
6808 Work around a bug in both the Linux and SunOS 64-bit kernels:
6809 nanosleep mishandles sleeps for longer than 2**31 seconds.
6810 Problem reported by Frank v Waveren in
6811 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
6812 * lib/nanosleep.c (BILLION): New constant.
6813 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
6814 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
6817 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
6819 * modules/nanosleep (Depends-on): Add gettime.
6821 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
6822 and Simon Josefsson <jas@extundo.com>
6823 and Oskar Liljeblad <oskar@osk.mine.nu>
6825 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
6826 * gnulib-tool (func_import): New license type 'unmodifiable license
6828 * modules/fdl: Use it. Longer description.
6829 * module/gpl, module/lgpl: New files.
6831 2006-08-30 Jim Meyering <jim@meyering.net>
6833 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
6834 shadowing the parameter.
6836 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6840 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6842 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
6843 sharing with gnulib. Report by Eric Blake.
6845 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
6847 * modules/isapipe: New file.
6848 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
6850 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
6852 * modules/configmake (Makefile.am): Add a comment, and omit
6853 the CONFIGMAKE_ prefix from generated macro names. Suggested
6856 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
6858 * m4/isapipe.m4: New file.
6860 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
6862 * lib/isapipe.c, lib/isapipe.h: New files.
6864 2006-08-29 Jim Meyering <jim@meyering.net>
6866 * modules/configmake (Makefile.am): Make configmake.h depend on
6867 Makefile. Otherwise, a stale configmake.h could hang around.
6869 2006-08-29 Eric Blake <ebb9@byu.net>
6871 * lib/error.c (error_at_line, print_errno_message): Match libc, after
6872 resolution of upstream bug 3044.
6874 2006-08-29 Bruno Haible <bruno@clisp.org>
6876 * modules/localcharset (Depends-on): Add configmake.
6877 (Makefile.am): Remove setting of LIBDIR through DEFS.
6879 2006-08-29 Bruno Haible <bruno@clisp.org>
6881 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
6884 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
6886 * modules/fcntl: New file.
6887 * modules/chdir-safer (Depends-on): Add fcntl.
6888 * modules/fts: Likewise.
6889 * modules/mkdir-p: Likewise.
6891 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
6892 This undoes the most recent change, since we're now addressing the
6893 problem in a different way.
6895 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
6896 into output, since the output might be called Makefile.am even
6897 if $makefile_name is something different.
6898 (func_import): Use $makefile_am rather than
6899 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
6902 * modules/inttypes (Files): Add m4/inttypes-h.m4.
6904 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
6906 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
6907 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
6908 recent change to stdint.m4, since we're now addressing the problem in a
6911 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
6913 * m4/fcntl_h.m4: New file.
6915 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
6917 * lib/fcntl_.h: New file.
6918 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
6920 * lib/dirchownmod.c: Likewise.
6921 * lib/fts.c: Likewise.
6923 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
6924 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
6925 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
6926 just before including <inttypes.h>, to avoid circular inclusion.
6928 2006-08-28 Jim Meyering <jim@meyering.net>
6930 * doc/visibility.texi: Actually read and correct the grammar of the
6931 sentence affected by yesterday's change.
6933 2006-08-28 Eric Blake <ebb9@byu.net>
6935 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
6938 2006-08-28 Eric Blake <ebb9@byu.net>
6940 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
6942 2006-08-28 Eric Blake <ebb9@byu.net>
6944 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
6946 2006-08-28 Bruno Haible <bruno@clisp.org>
6948 * modules/c-strstr: New file, from GNU gettext.
6949 * MODULES.html.sh (String handling): Add c-strstr.
6951 2006-08-28 Bruno Haible <bruno@clisp.org>
6953 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
6955 Reported by Eric Blake.
6957 2006-08-28 Bruno Haible <bruno@clisp.org>
6959 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
6960 (VASNPRINTF): Return a string of length > INT_MAX without failing.
6961 * lib/vasprintf.c: Include errno.h, limits.h.
6962 (EOVERFLOW): New fallback definition.
6963 (vasprintf): Test here whether the string length is > INT_MAX.
6964 * lib/vsnprintf.c: Include errno.h, limits.h.
6965 (EOVERFLOW): New fallback definition.
6966 (vsnprintf): Fix bug when generated string was too long for the buffer.
6967 Test here whether the string length is > INT_MAX.
6969 2006-08-28 Bruno Haible <bruno@clisp.org>
6971 * lib/inttypes_.h (SCNX*): Remove definitions.
6972 Reported by Eric Blake.
6974 2006-08-28 Bruno Haible <bruno@clisp.org>
6976 * lib/c-strstr.h: New file, from GNU gettext.
6977 * lib/c-strstr.c: New file, from GNU gettext.
6979 2006-08-28 Bruno Haible <bruno@clisp.org>
6981 * gnulib-tool: Reorder some statements.
6983 2006-08-28 Bruno Haible <bruno@clisp.org>
6985 * gnulib-tool: New option --makefile-name.
6986 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
6988 (func_import): Write $makefile_name to the cache file, and read it from
6989 there unless explicitly specified. Use $makefile_name as file name
6990 instead of Makefile.am. Adjust the recommendations accordingly.
6992 2006-08-28 Bruno Haible <bruno@clisp.org>
6994 * gnulib-tool (func_verify_module): Check against misapplying patch.
6996 2006-08-28 Bruno Haible <bruno@clisp.org>
6998 * gnulib-tool (func_relativize, func_relconcat): New functions.
6999 Give an error if --local-dir is given with --update.
7000 Remove trailing slashes from $local_gnulib_dir.
7001 (func_import): Store the relativized $local_gnulib_dir in
7002 gnulib-cache.m4, and read it from there if not specified explicitly.
7004 2006-08-28 Bruno Haible <bruno@clisp.org>
7006 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
7007 is the current directory. Respect also $local_gnulib_dir.
7009 2006-08-28 Bruno Haible <bruno@clisp.org>
7010 Simon Josefsson <jas@extundo.com>
7013 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
7015 2006-08-27 Jim Meyering <jim@meyering.net>
7017 * doc/visibility.texi: Remove duplicate word: "pointer".
7019 2006-08-26 Bruno Haible <bruno@clisp.org>
7021 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
7022 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
7023 (Makefile.am): Create inttypes.h from inttypes_.h.
7024 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
7026 * modules/imaxabs: New file.
7028 * modules/imaxdiv: New file.
7030 2006-08-26 Bruno Haible <bruno@clisp.org>
7032 * m4/inttypes.m4: New file.
7033 * m4/_inttypes_h.m4: Remove file.
7034 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
7036 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
7038 * m4/imaxabs.m4: New file.
7040 * m4/imaxdiv.m4: New file.
7042 2006-08-26 Bruno Haible <bruno@clisp.org>
7044 * lib/inttypes_.h: New file.
7045 * lib/inttypes.h: Remove file.
7046 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
7048 * lib/imaxabs.c: New file.
7050 * lib/imaxdiv.c: New file.
7052 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
7054 New config-h module, so that "make" output needn't be cluttered
7056 * MODULES.html.sh (Support for building libraries and executables):
7058 * modules/config-h: New file.
7059 * gnulib-tool (nl, sed_transform_lib_file): New vars.
7060 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
7061 the config-h module is used.
7063 New configmake module, so that "make" output needn't be cluttered
7064 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
7065 * MODULES.html.sh (Support for building libraries and executables):
7067 * modules/configmake: New file.
7069 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
7071 * m4/config-h.m4: New file.
7073 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
7075 * config/srclist.txt: Add elisp-comp.
7077 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
7079 * MODULES.html.sh (Support for building libraries and executables):
7081 * build-aux/elisp-comp: New file.
7082 * modules/elisp-comp: New file.
7084 2006-08-24 Bruno Haible <bruno@clisp.org>
7086 * gnulib-tool (func_create_testdir): Use non-default values of
7087 sourcebase and m4base.
7089 2006-08-24 Bruno Haible <bruno@clisp.org>
7091 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
7094 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
7096 * modules/openat (Depends-on): Add lchown.
7098 2006-08-23 Bruno Haible <bruno@clisp.org>
7100 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
7101 of gl_LOCK_EARLY instead of gl_LOCK.
7103 2006-08-23 Bruno Haible <bruno@clisp.org>
7105 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
7107 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
7109 2006-08-23 Bruno Haible <bruno@clisp.org>
7111 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
7114 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
7115 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
7116 (gl_LOCK): New macro.
7118 2006-08-22 Simon Josefsson <jas@extundo.com>
7120 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
7123 2006-08-22 Simon Josefsson <jas@extundo.com>
7125 * MODULES.html.sh: Add "Support for maintaining and release
7128 * build-aux/gnupload: New file, from coreutils.
7130 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
7132 Avoid the need for AC_LIBSOURCES in m4 macros.
7133 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
7134 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
7135 * modules/check-version (EXTRA_DIST): Add check-version.h.
7136 * modules/crc (EXTRA_DIST): Add crc.h.
7137 * modules/des (EXTRA_DIST): Add des.h.
7138 * modules/gc (EXTRA_DIST): Add gc.h.
7139 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
7140 * modules/getline (EXTRA_DIST): Add getline.h.
7141 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
7142 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
7143 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
7144 * modules/md2 (EXTRA_DIST): Add md2.h.
7145 * modules/md4 (EXTRA_DIST): Add md4.h.
7146 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
7147 * modules/read-file (EXTRA_DIST): Add read-file.h.
7148 * modules/readline (EXTRA_DIST): Add readline.h.
7149 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
7152 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
7154 * m4/rijndael.m4 (gl_ARCFOUR):
7155 * m4/arctwo.m4 (gl_ARCTWO):
7156 * m4/check-version.m4 (gl_CHECK_VERSION):
7157 * m4/crc.m4 (gl_CRC):
7158 * m4/des.m4 (gl_DES):
7159 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
7161 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
7162 * m4/getline.m4 (gl_FUNC_GETLINE):
7163 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
7164 * m4/hmac-md5.m4 (gl_HMAC_MD5):
7165 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
7166 * m4/md2.m4 (gl_MD2):
7167 * m4/md4.m4 (gl_MD4):
7168 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
7169 * m4/read-file.m4 (gl_FUNC_READ_FILE):
7170 * m4/readline.m4 (gl_FUNC_READLINE):
7171 * m4/rijndael.m4 (gl_RIJNDAEL):
7172 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
7173 to get the necessary .h files and whatnot.
7175 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
7177 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
7178 gnulib rather than the other way around.
7179 * config/srclistvars.sh (COREUTILS): Remove.
7181 2006-08-22 Jim Meyering <jim@meyering.net>
7183 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
7185 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
7187 2006-08-22 Eric Blake <ebb9@byu.net>
7189 * modules/regexprops-generic: New file.
7190 * MODULES.html.sh (Support for building documentation): List it.
7192 2006-08-22 Eric Blake <ebb9@byu.net>
7194 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
7195 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
7196 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
7197 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
7199 2006-08-22 Bruno Haible <bruno@clisp.org>
7201 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
7202 and lib_LTLIBRARIES like the other lib_* variables.
7204 2006-08-22 Bruno Haible <bruno@clisp.org>
7206 * build-aux/x-to-1.in: New file, from GNU gettext.
7208 2006-08-22 Bruno Haible <bruno@clisp.org>
7210 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
7213 2006-08-22 Bruno Haible <bruno@clisp.org>
7215 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
7218 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
7221 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
7223 Problem reported by Bruno Haible.
7225 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
7227 Avoid the need for AC_LIBSOURCES in m4 macros.
7228 * modules/acl (EXTRA_DIST): Add acl.h.
7229 * modules/argmatch (Files): Add m4/argmatch.m4.
7230 (configure.ac): Add gl_ARGMATCH.
7231 (EXTRA_DIST): Renamed from lib_SOURCES, for
7232 consistency with the other modules. Remove argmatch.c.
7233 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
7234 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
7235 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
7236 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
7237 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
7238 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
7239 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
7240 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
7241 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
7242 * modules/closeout (EXTRA_DIST): Add closeout.h.
7243 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
7244 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
7245 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
7246 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
7247 dirname.h; remove basename.c and stripslash.c.
7248 * modules/exclude (EXTRA_DIST): Add exclude.h.
7249 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
7250 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
7251 * modules/file-type (EXTRA_DIST): Add file-type.h.
7252 * modules/filemode (EXTRA_DIST): Add filemode.h.
7253 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
7254 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
7255 * modules/fpending (EXTRA_DIST): Add __fpending.h.
7256 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
7257 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
7258 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
7259 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
7260 * modules/getdate (EXTRA_DIST): Add getdate.c.
7261 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
7262 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
7263 * modules/getpass (EXTRA_DIST): Add getpass.h.
7264 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
7265 * modules/group-member (EXTRA_DIST): Add group-member.h.
7266 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
7267 * modules/hash (EXTRA_DIST): Add hash.h.
7268 * modules/human (EXTRA_DIST): Add human.h.
7269 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
7270 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
7271 * modules/lchown (EXTRA_DIST): Add lchown.h.
7272 * modules/long-options (EXTRA_DIST): Add long-options.h.
7273 * modules/lstat (EXTRA_DIST): Add lstat.h.
7274 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
7275 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
7276 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
7277 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
7278 * modules/memxor (EXTRA_DIST): Add memxor.h.
7279 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
7280 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
7281 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
7282 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
7283 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
7284 * modules/physmem (EXTRA_DIST): Add physmem.h.
7285 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
7286 * modules/posixver (EXTRA_DIST): Add posixver.h.
7287 * modules/quote (EXTRA_DIST): Add quote.h.
7288 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
7289 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
7290 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
7291 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
7292 regex_internal.h regexec.c.
7293 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
7294 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
7295 * modules/same (EXTRA_DIST): Add same.h.
7296 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
7297 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
7298 * modules/savedir (EXTRA_DIST): Add savedir.h.
7299 * modules/sha1 (EXTRA_DIST): Add sha1.h.
7300 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
7301 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
7302 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
7303 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
7304 * modules/strdup (EXTRA_DIST): Add strdup.h.
7305 * modules/strftime (EXTRA_DIST): Add strftime.h.
7306 * modules/strndup (EXTRA_DIST): Add strndup.h.
7307 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
7308 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
7309 * modules/time_r (EXTRA_DIST): Add time_r.h.
7310 * modules/timespec (EXTRA_DIST): Add timespec.h.
7311 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
7312 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
7313 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
7314 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
7315 * modules/userspec (EXTRA_DIST): Add userspec.h.
7316 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
7317 * modules/utimens (EXTRA_DIST): Add utimens.h.
7318 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
7319 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
7320 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
7321 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
7322 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
7323 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
7324 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
7325 * modules/yesno (EXTRA_DIST): Add yesno.h.
7327 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
7329 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
7331 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
7332 * m4/dev-ino.m4, same-inode.m4: Remove.
7334 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
7335 * m4/acl.m4 (AC_FUNC_ACL):
7336 * m4/backupfile.m4 (gl_BACKUPFILE):
7337 * m4/c-strtod.m4 (gl_C99_STRTOLD):
7338 * m4/canon-host.m4 (gl_CANON_HOST):
7339 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
7340 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
7341 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
7342 * m4/cloexec.m4 (gl_CLOEXEC):
7343 * m4/close-stream.m4 (gl_CLOSE_STREAM):
7344 * m4/closeout.m4 (gl_CLOSEOUT):
7345 * m4/dirfd.m4 (gl_FUNC_DIRFD):
7346 * m4/dirname.m4 (gl_DIRNAME):
7347 * m4/exclude.m4 (gl_EXCLUDE):
7348 * m4/exitfail.m4 (gl_EXITFAIL):
7349 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
7350 * m4/file-type.m4 (gl_FILE_TYPE):
7351 * m4/filemode.m4 (gl_FILEMODE):
7352 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
7353 * m4/fpending.m4 (gl_FUNC_FPENDING):
7354 * m4/fprintftime.m4 (gl_FPRINTFTIME):
7355 * m4/fts.m4 (gl_FUNC_FTS):
7356 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
7357 * m4/getdate.m4 (gl_GETDATE):
7358 * m4/gethrxtime.m4 (gl_GETHRXTIME):
7359 * m4/getpagesize.m4 (gl_GETPAGESIZE):
7360 * m4/getpass.m4 (gl_FUNC_GETPASS):
7361 * m4/gettime.m4 (gl_GETTIME):
7362 * m4/getugroups.m4 (gl_GETUGROUPS):
7363 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
7364 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
7365 * m4/hard-locale.m4 (gl_HARD_LOCALE):
7366 * m4/hash.m4 (gl_HASH):
7367 * m4/idcache.m4 (gl_IDCACHE):
7368 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
7369 * m4/lchown.m4 (gl_FUNC_LCHOWN):
7370 * m4/long-options.m4 (gl_LONG_OPTIONS):
7371 * m4/lstat.m4 (gl_FUNC_LSTAT):
7372 * m4/md5.m4 (gl_MD5):
7373 * m4/memcasecmp.m4 (gl_MEMCASECMP):
7374 * m4/memcoll.m4 (gl_MEMCOLL):
7375 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
7376 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
7377 * m4/memxor.m4 (gl_MEMXOR):
7378 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
7379 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
7380 * m4/modechange.m4 (gl_MODECHANGE):
7381 * m4/mountlist.m4 (gl_MOUNTLIST):
7382 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
7383 * m4/openat.m4 (gl_FUNC_OPENAT):
7384 * m4/pathmax.m4 (gl_PATHMAX):
7385 * m4/physmem.m4 (gl_PHYSMEM):
7386 * m4/posixtm.m4 (gl_POSIXTM):
7387 * m4/posixver.m4 (gl_POSIXVER):
7388 * m4/quote.m4 (gl_QUOTE):
7389 * m4/quotearg.m4 (gl_QUOTEARG):
7390 * m4/readtokens.m4 (gl_READTOKENS):
7391 * m4/readutmp.m4 (gl_READUTMP):
7392 * m4/regex.m4 (gl_REGEX):
7393 * m4/safe-read.m4 (gl_SAFE_READ):
7394 * m4/safe-write.m4 (gl_SAFE_WRITE):
7395 * m4/same.m4 (gl_SAME):
7396 * m4/save-cwd.m4 (gl_SAVE_CWD):
7397 * m4/savedir.m4 (gl_SAVEDIR):
7398 * m4/settime.m4 (gl_SETTIME):
7399 * m4/sha1.m4 (gl_SHA1):
7400 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
7401 * m4/stat-macros.m4 (gl_STAT_MACROS):
7402 * m4/stat-time.m4 (gl_STAT_TIME):
7403 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
7404 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
7405 * m4/strdup.m4 (gl_FUNC_STRDUP):
7406 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
7407 * m4/strndup.m4 (gl_FUNC_STRNDUP):
7408 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
7409 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
7410 * m4/time_r.m4 (gl_TIME_R):
7411 * m4/timespec.m4 (gl_TIMESPEC):
7412 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
7413 * m4/unlinkdir.m4 (gl_UNLINKDIR):
7414 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
7415 * m4/userspec.m4 (gl_USERSPEC):
7416 * m4/utimecmp.m4 (gl_UTIMECMP):
7417 * m4/utimens.m4 (gl_UTIMENS):
7418 * m4/xalloc.m4 (gl_XALLOC):
7419 * m4/xgetcwd.m4 (gl_XGETCWD):
7420 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
7421 * m4/xreadlink.m4 (gl_XREADLINK):
7422 * m4/xstrtod.m4 (gl_XSTRTOD):
7423 * m4/yesno.m4 (gl_YESNO):
7424 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
7425 to get the necessary .h files and whatnot.
7427 2006-08-21 Mark D. Baushke <mdb@gnu.org>
7428 Bruno Haible <bruno@clisp.org>
7430 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
7431 /bin/sh understanding of '!' conditional negation.
7433 2006-08-21 Jim Meyering <jim@meyering.net>
7435 * modules/openat (Depends-on): Really alphabetize.
7437 * modules/acl (Depends-on): Add error and quote.
7439 * check-module (find_included_lib_files): Add at-func.c to the
7440 ok-to-include-more-than-once white list.
7442 * modules/openat (Depends-on): Add lstat. Alphabetize.
7444 2006-08-21 Bruno Haible <bruno@clisp.org>
7446 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7447 Emit a pkgdata_DATA variable only if some snippets add contents to it.
7448 Reported by Martin Lambers <marlam@marlam.de>.
7450 2006-08-21 Bruno Haible <bruno@clisp.org>
7452 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
7453 specify an installation location, don't emit a noinst_LIBRARIES or
7454 noinst_LTLIBRARIES assignment.
7456 2006-08-21 Bruno Haible <bruno@clisp.org>
7459 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
7460 BeOS has mbrtowc() but no <wctype.h>.
7462 2006-08-21 Bruno Haible <bruno@clisp.org>
7465 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
7468 2006-08-21 Bruno Haible <bruno@clisp.org>
7471 * lib/mbchar.h: Include <wctype.h> only if it exists.
7473 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
7475 Remove files that are no longer needed by their respective modules.
7476 * m4/obstack.m4: Remove.
7477 * m4/strerror_r.m4: Remove.
7478 * m4/uint32_t.m4: Remove.
7479 * m4/uintptr_t.m4: Remove.
7480 * m4/ullong_max.m4: Remove.
7481 * m4/xstrtoimax.m4: Remove.
7482 * m4/xstrtoumax.m4: Remove.
7484 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
7485 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
7486 dependencies now capture this.
7488 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
7489 Do not use AC_LIBSOURCES, since gnulib modules now do this.
7490 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
7491 * m4/human.m4 (gl_HUMAN): Likewise.
7492 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
7493 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
7495 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
7497 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
7498 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
7500 * m4/human.m4 (gl_HUMAN): Likewise.
7501 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
7502 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
7503 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
7504 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
7505 * m4/xstrtol (gl_XSTRTOL): Likewise.
7507 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
7508 AC_TYPE_LONG_LONG_INT.
7509 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
7510 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
7511 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
7512 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
7514 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
7517 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
7518 (gl_PREREQ_XSTRTOUL): Remove.
7520 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
7522 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
7525 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
7527 Add and change modules to make it easier for coreutils to use
7529 * modules/backupfile (Files): Remove m4/d-ino.m4.
7530 (Depends-on): Add d-ino.
7531 * modules/cycle-check (Depends-on): Add stdint.
7532 (lib_SOURCES): Add cycle-check.h.
7533 * modules/d-ino: New module.
7534 * modules/d-type: New module.
7535 * modules/error (Files): Remove m4/strerror_r.m4.
7536 * modules/filemode (Files): Add m4/st_dm_mode.m4.
7537 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
7538 m4/inttypes_h.m4, m4/uintmax_t.m4.
7539 (Depends-on): Add stdint.
7540 (lib_SOURCES): Add fsusage.h.
7541 * modules/getcwd (Files): Remove d-ino.m4.
7542 (Depends-on): Add d-ino.
7543 * modules/getndelim2 (Depends-on): Add stdint.
7544 * modules/glob (Files): Remove m4/d-type.m4.
7545 (Depends-on): Add d-type.
7546 * modules/host-os: New module.
7547 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
7548 m4/inttypes_h.m4, m4/uintmax_t.m4.
7549 * Depends-on: Add stdint.
7550 (lib_SOURCES): Add human.h.
7551 * modules/inttostr (Files): Remove m4/intmax_t.m4,
7552 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
7553 m4/uintmax_t.m4, m4/ulonglong.m4.
7554 (Depends-on): Add stdint.
7555 (EXTRA_DIST): Add inttostr.h.
7556 * modules/lchmod: New module.
7557 * modules/link-follow: New module.
7558 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
7559 (Depends-on): Add lchmod.
7560 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
7561 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
7562 (Depends-on): Add stdint.
7563 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
7564 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
7565 (Depends-on): Add stdint.
7566 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
7567 * modules/perl: New module.
7568 * modules/regex (Depends-on): Add stdint.
7569 * modules/rmdir-errno: New module.
7570 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
7572 (Depends-on): Add stdint.
7573 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
7575 (Depends-on): Add stdint.
7576 * modules/unlink-busy: New module.
7577 * modules/utimecmp (Depends-on): Add stdint.
7578 * modules/uptime: New module.
7579 * modules/winsz-ioctl: New module.
7580 * modules/winsz-termios: New module.
7581 * modules/xnanosleep (Depends-on): Add nanosleep.
7582 * modules/ullong_max: Remove.
7583 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
7584 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
7585 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
7586 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
7587 (Depends-on): Add inttypes.
7588 (lib_SOURCES): Add xstrtol.h.
7589 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
7590 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
7591 * MODULES.html.sh: Move 'assert' into the assert section.
7592 Move 'dummy' into the linking section.
7594 Add section for compatibility checks for POSIX:2001 functions,
7595 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
7596 winsz-ioctl, and winsz-termios into it.
7598 Add top-level Misc section and put host-os, perl, and uptime
7601 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
7603 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
7604 now assume the stdint module. Do not include inttypes.h.
7605 * lib/fsusage.h: Likewise.
7606 * lib/getndelim2.c: Likewise.
7607 * lib/human.h: Likewise.
7608 * lib/inttostr.h: Likewise.
7609 * lib/obstack.c: Likewise.
7610 * lib/regex_internal.h: Likewise.
7611 * lib/tempname.c: Likewise.
7612 * lib/utimecmp.c: Likewise.
7613 * lib/xstrtol.h: Likewise.
7615 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
7617 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
7618 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
7619 * lib/xtime.h: Likewise.
7621 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
7623 * modules/openat (Files): Add lib/fchmodat.c.
7624 Fixes problem reported by Jay Youngman.
7626 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
7628 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
7629 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
7631 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
7632 Bruno Haible <bruno@clisp.org>
7634 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
7635 and is a script that invokes bison. Tighten the code. Add comments.
7637 2006-08-18 Jim Meyering <jim@meyering.net>
7639 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
7640 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
7641 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
7642 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
7644 2006-08-18 Bruno Haible <bruno@clisp.org>
7646 * modules/bison-i18n: New file.
7647 * MODULES.html.sh (Internationalization functions): Add it.
7649 2006-08-18 Bruno Haible <bruno@clisp.org>
7651 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
7652 sys/statvfs.h. When getmntinfo was found, check its declaration and
7653 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
7655 2006-08-18 Bruno Haible <bruno@clisp.org>
7657 * m4/bison-i18n.m4: New file, from bison.
7659 2006-08-18 Bruno Haible <bruno@clisp.org>
7661 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
7662 (ME_DUMMY): Treat "kernfs" as a dummy.
7663 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
7665 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
7667 Update from coreutils.
7669 2006-08-15 Jim Meyering <jim@meyering.net>
7671 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
7673 2006-01-17 Jim Meyering <jim@meyering.net>
7675 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
7677 2006-01-11 Jim Meyering <jim@meyering.net>
7679 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
7680 Check for the lchmod function.
7682 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
7684 Update from coreutils.
7686 * lib/__fpending.h: Add copyright notice.
7687 * lib/fprintftime.h: Likewise.
7688 * lib/savedir.c: Use (C) in copyright notice.
7689 * lib/savedir.h: Likewise.
7691 2006-08-15 Jim Meyering <jim@meyering.net>
7693 * lib/at-func.c: New file, with the logic of all emulated at-functions.
7694 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
7695 in support of the EXPECTED_ERRNO macro.
7696 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
7697 definitions. Instead, define the appropriate symbols and include
7699 * lib/mkdirat.c (mkdirat): Likewise.
7700 * lib/fchmodat.c (fchmodat): Likewise.
7701 (ENOSYS): Remove definition.
7702 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
7703 it. Don't include "unistd--.h" -- it wasn't ever used.
7705 2006-01-17 Jim Meyering <jim@meyering.net>
7707 Rewrite fts.c not to change the current working directory,
7708 by using openat, fstatat, fdopendir, etc..
7710 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
7711 (HAVE_OPENAT_SUPPORT): Define.
7712 [_LIBC] (fchdir): Don't undef or define; no longer used.
7713 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
7714 Now, this `function' always succeeds, and consumes its file descriptor
7715 parameter -- so callers must not close such FDs. Update callers.
7716 (diropen_fd, opendirat, cwd_advance_fd): New functions.
7717 (diropen): Add parameter, SP. Adjust all callers.
7718 Implement using diropen_fd, rather than open.
7719 (fts_open): Initialize new member, fts_cwd_fd.
7720 Remove fts_rft-setting code.
7721 (fts_close): Close fts_cwd_fd, if necessary.
7722 (__opendir2): Define in terms of opendir or opendirat,
7723 depending on whether the FST_NOCHDIR flag is set.
7724 (fts_build): Since fts_safe_changedir consumes its FD, and since
7725 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
7726 and close the dup'd file descriptor upon failure.
7727 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
7728 (fts_safe_changedir): Tweak semantics to reflect that this function
7729 now calls cwd_advance_fd and hence consumes its FD argument.
7730 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
7731 [struct FTS] (fts_rft): Remove now-unused member.
7732 [struct FTS] (fts_cycle.state): Improve comment.
7734 * lib/openat.c (openat_needs_fchdir): New function.
7735 * lib/openat.h (openat_needs_fchdir): Declare it.
7737 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
7739 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
7740 Problem and fix reported by Pádraig Brady in
7741 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
7743 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
7745 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
7747 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
7749 * lib/memcoll.c (memcoll): Optimize for the common case where the
7750 arguments are bytewise equal.
7752 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
7754 * doc/regexprops-generic.texi: Add a copyright notice.
7756 2006-08-15 Bruno Haible <bruno@clisp.org>
7758 * modules/tmpdir (License): Change to LGPL.
7760 2006-08-15 Bruno Haible <bruno@clisp.org>
7762 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
7765 2006-08-14 Simon Josefsson <jas@extundo.com>
7767 * config/srclist.txt: Add gnupload.
7769 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
7771 Change copyright notice from LGPL 2 to GPL 2, since that's the
7772 standard form used in the gnulib repository.
7773 * tests/test-lock.c: Likewise.
7774 * tests/test-stdint.c: Likewise.
7775 * tests/test-tls.c: Likewise.
7777 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
7778 prelude-manager. User shorter URLs for GNU projects, without '?'.
7779 Add copyright notice.
7781 * check-module: Add copyright notice. Output a copyright
7782 notice if "--version" is specified.
7783 * modules/COPYING: New file.
7784 * tests/test-getaddrinfo.c: Add copyright notice.
7785 * tests/test-verify.c: Likewise.
7787 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
7789 Change copyright notice from LGPL 2 to GPL 2, since that's the
7790 standard form used in the gnulib repository.
7791 * lib/lock.c: LGPL -> GPL.
7792 * lib/lock.h: Likewise.
7793 * lib/strnlen1.c: Likewise.
7794 * lib/strnlen1.h: Likewise.
7795 * lib/tls.c: Likewise.
7796 * lib/tls.h: Likewise.
7797 * lib/tmpdir.c: Likewise.
7799 * lib/TODO: Remove; this belongs only in coreutils.
7801 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
7803 Add copyright notices to long-enough files that lack them, since
7804 otherwise the files aren't clearly free. Use the same notice that
7805 getdate.texi already uses.
7806 * doc/alloca-opt.texi: Add copyright notice.
7807 * doc/alloca.texi: Likewise.
7808 * doc/ctime.texi: Likewise.
7809 * doc/functions.texi: Likewise.
7810 * doc/gcd.texi: Likewise.
7811 * doc/gnulib-tool.texi: Likewise.
7812 * doc/inet_ntoa.texi: Likewise.
7813 * doc/visibility.texi: Likewise.
7815 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
7816 * doc/quote.texi: Add copyright notice.
7818 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
7819 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
7820 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
7821 Mention SunOS 5.11. Mention that everything before SunOS 5.7
7822 is now obsolete, and give a pointer to the Sun list.
7823 Add copyright notice.
7825 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
7827 * config/srclistvars.sh: Add copyright notice.
7829 2006-08-14 Eric Blake <ebb9@byu.net>
7831 Import the following change from libc:
7833 2006-08-12 Ulrich Drepper <drepper@redhat.com>
7836 * lib/misc/error.c: Add space between program name and message if file
7839 2006-08-12 Karl Berry <karl@gnu.org>
7841 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
7842 remove, these originate in gnulib now.
7844 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7846 * doc/Makefile (standards.info standards.html standards.dvi):
7847 Also depend on make-stds.texi.
7849 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
7851 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
7852 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
7854 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
7855 in wchar_t. Problem reported by Eric Blake.
7857 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
7858 LEN is smaller than SIZE. Suggested by Bruno Haible.
7859 Also, help the compiler to keep LEN in a register.
7861 2006-08-11 Eric Blake <ebb9@byu.net>
7863 * users.txt: Sort. Add tar.
7865 2006-08-11 Bruno Haible <bruno@clisp.org>
7867 * users.txt: New file.
7869 2006-08-11 Bruno Haible <bruno@clisp.org>
7871 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
7872 before <wchar.h>. Needed for OSF/1 and BSD/OS.
7874 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
7876 * modules/snprintf (Depends-on): Remove minmax.
7877 (Maintainer): Add self and Bruno.
7879 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
7881 * lib/.cppi-disable: Add snprintf.h, socket_.h.
7882 * lib/snprintf.c: Include <errno.h> and <limits.h>.
7883 (EOVERFLOW): Define if the system does not.
7884 Do not include "minmax.h"; it wasn't used.
7885 (snprintf): Don't assume size_t promotes to an unsigned type.
7886 Fix bug when generated string was too long for the buffer: the
7887 buffer's contents are supposed to be the initial prefix of the
7888 output. Don't assume vasnprintf returns EOVERFLOW if the size
7889 exceeds INT_MAX; do the check ourselves.
7891 Import the following changes from libc:
7893 2006-06-02 Jakub Jelinek <jakub@redhat.com>
7895 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
7896 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
7897 set wc to the byte which couldn't be converted.
7898 (re_string_reconstruct): Don't clear valid_raw_len before calling
7899 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
7900 tip_context using re_string_context_at.
7902 2006-05-02 Ulrich Drepper <drepper@redhat.com>
7904 * lib/posix/regex.h: g++ still cannot handled [restrict].
7906 2006-04-21 Ulrich Drepper <drepper@redhat.com>
7908 * lib/posix/regex.h: Remove special handling for VMS.
7910 2006-08-10 Jim Meyering <jim@meyering.net>
7912 * modules/same-inode: New module.
7913 * modules/dev-ino: New module.
7914 * modules/cycle-check: Depend on these modules, rather than simply
7915 including their .h files.
7916 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
7917 required via m4/cycle-check.m4.
7918 * modules/same: Depend on new same-inode module, rather than
7919 including same-inode.h.
7920 * modules/chdir-safer: New file.
7922 * modules/chown (Depends-on): Add stat-macros.
7924 2006-08-10 Jim Meyering <jim@meyering.net>
7926 * m4/cycle-check.m4: New file.
7927 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
7928 * m4/dev-ino.m4, m4/same-inode.m4: New files.
7930 2006-08-10 Eric Blake <ebb9@byu.net>
7932 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
7933 in from original proposal.
7935 2006-08-10 Eric Blake <ebb9@byu.net>
7936 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7938 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
7941 2006-08-10 Bruno Haible <bruno@clisp.org>
7943 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
7946 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
7948 Sync from coreutils.
7950 2006-07-19 Mike Frysinger <vapier@gentoo.org>
7952 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
7953 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
7955 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
7957 * modules/restrict: Remove; no longer needed now that we assume
7958 Autoconf 2.59 or later.
7959 * MODULES.html.sh: Remove 'restrict'.
7960 * modules/argp (Depends-on): Remove 'restrict'.
7961 * modules/base64 (Depends-on): Likewise.
7962 * modules/gc (Depends-on): Likewise.
7963 * modules/getaddrinfo (Depends-on): Likewise.
7964 * modules/glob (Depends-on): Likewise.
7965 * modules/inet_ntop (Depends-on): Likewise.
7966 * modules/inet_pton (Depends-on): Likewise.
7967 * modules/memxor (Depends-on): Likewise.
7968 * modules/regex (Depends-on): Likewise.
7969 * modules/strtok_r (Depends-on): Likewise.
7970 * modules/time_r (Depends-on): Likewise.
7972 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
7974 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
7975 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
7976 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
7977 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
7978 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
7979 * m4/memxor.m4 (gl_MEMXOR): Likewise.
7980 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
7981 gl_C_RESTRICT replaced by AC_C_RESTRICT.
7983 Merge from coreutils.
7984 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
7985 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
7986 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
7987 * m4/time_r.m4 (gl_TIME_R): Likewise.
7989 2006-08-09 Karl Berry <karl@gnu.org>
7991 * config/srclist.txt: no more gettext-tools, per Bruno.
7993 2006-08-08 Eric Blake <ebb9@byu.net>
7995 * modules/verror: New module.
7996 * MODULES.html.sh: Document it.
7998 2006-08-08 Eric Blake <ebb9@byu.net>
8000 * lib/verror.h, lib/verror.c: New files.
8002 2006-08-08 Eric Blake <ebb9@byu.net>
8004 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
8005 verror_at_line output complies with GNU Coding Standards even when
8008 2006-08-07 Bruno Haible <bruno@clisp.org>
8010 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
8012 Reported by Ralf Wildenhues.
8014 2006-08-07 Bruno Haible <bruno@clisp.org>
8016 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
8017 in an AC_DEFUN. Needed so that the autoconf snippets can use
8020 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8022 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8023 Initialize pkgdata_DATA.
8024 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
8027 2006-08-06 Eric Blake <ebb9@byu.net>
8029 * lib/error.h: Fold in some upstream changes from glibc.
8030 * lib/error.c: Likewise.
8032 2006-08-04 Bruno Haible <bruno@clisp.org>
8034 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8035 Make the mostlyclean-local rule depend on mostlyclean-generic.
8036 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
8038 2006-07-31 Bruno Haible <bruno@clisp.org>
8040 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
8041 <stdlib.h>, <string.h>.
8043 2006-07-30 Bruno Haible <bruno@clisp.org>
8045 * modules/readlink (License): Change to LGPL.
8047 2006-07-30 Bruno Haible <bruno@clisp.org>
8049 * modules/javaversion (Makefile.am): Distribute javaversion.java and
8050 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
8051 set PKGDATADIR to point to it.
8053 2006-07-30 Bruno Haible <bruno@clisp.org>
8055 * modules/csharpexec (configure.ac): Comment out macro invocation.
8056 * modules/javaexec (configure.ac): Likewise.
8057 * modules/javacomp-script (configure.ac): Likewise.
8059 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
8061 2006-07-30 Bruno Haible <bruno@clisp.org>
8063 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
8066 2006-07-30 Bruno Haible <bruno@clisp.org>
8068 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
8070 2006-07-30 Bruno Haible <bruno@clisp.org>
8072 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8073 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
8076 2006-07-29 Bruno Haible <bruno@clisp.org>
8078 Make it possible for gnulib-tool to work with locally modified or
8079 augmented gnulib repositories.
8080 * gnulib-tool (func_usage): Document --local-dir option.
8081 (local_gnulib_dir): New variable.
8082 Handle --local-dir option.
8083 (func_lookup_file): New function.
8084 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
8085 (func_get_description, func_get_filelist, func_get_description,
8086 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
8087 func_get_automake_snippet, func_get_include_directive,
8088 func_get_license, func_get_maintainer): Use func_lookup_file.
8089 (func_import, func_create_testdir): Use func_lookup_file.
8091 2006-07-29 Bruno Haible <bruno@clisp.org>
8093 * modules/setenv (Depends-on): Add unistd.
8095 2006-07-29 Bruno Haible <bruno@clisp.org>
8097 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
8099 2006-07-29 Bruno Haible <bruno@clisp.org>
8101 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
8103 2006-07-29 Bruno Haible <bruno@clisp.org>
8105 * gnulib-tool (import, update): If there is no Makefile.am, look at
8106 aclocal.m4, instead of bailing out.
8108 2006-07-29 Bruno Haible <bruno@clisp.org>
8110 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
8111 Categorize the options by when they are useful.
8113 2006-07-29 Bruno Haible <bruno@clisp.org>
8115 * gnulib-tool (func_usage): Document option --no-libtool.
8116 Handle option --no-libtool.
8117 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
8118 for changed semantics of $libtool variable.
8119 (func_import): Likewise. If libtool is not used, show this through
8120 an option --no-libtool.
8121 (func_create_testdir): Update.
8123 2006-07-29 Bruno Haible <bruno@clisp.org>
8125 * gnulib-tool (func_import): Extend error message about missing
8128 2006-07-29 Bruno Haible <bruno@clisp.org>
8130 * gnulib-tool (func_import): Don't create the $docbase directory if
8131 there is no file to store there.
8133 2006-07-29 Bruno Haible <bruno@clisp.org>
8135 * gnulib-tool (autoconf_minversion): If a --dir option is given and
8136 relevant, look for configure.ac there, not in the current directory.
8137 Also use a simple search for AC_PREREQ, not "autoconf --trace".
8139 2006-07-29 Bruno Haible <bruno@clisp.org>
8141 * gnulib-tool (SORT): New variable.
8142 (func_usage): Undocument --assume-autoconf option.
8143 Remove --assume-autoconf option handling.
8144 (autoconf_minversion): Determine from the contents of configure.ac.
8145 (func_import): Remove autoconf_minversion handling.
8146 Suggested by Eric Blake.
8148 2006-07-29 Bruno Haible <bruno@clisp.org>
8150 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
8152 2006-07-29 Bruno Haible <bruno@clisp.org>
8154 * config/srclist.txt (*setenv.[ch]): Remove rules.
8156 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8158 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
8160 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8162 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
8165 2006-07-28 Simon Josefsson <jas@extundo.com>
8167 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
8168 * modules/inet_pton (Depends-on): Likewise.
8170 2006-07-28 Simon Josefsson <jas@extundo.com>
8172 * m4/netinet_in_h.m4: New file.
8174 2006-07-28 Simon Josefsson <jas@extundo.com>
8176 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
8179 2006-07-28 Simon Josefsson <jas@extundo.com>
8181 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
8184 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
8186 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
8187 setgid on directories only if they set these bits.
8188 * lib/modechange.h: Remove obsolete comment about masks.
8190 2006-07-28 Eric Blake <ebb9@byu.net>
8192 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
8195 2006-07-28 Bruno Haible <bruno@clisp.org>
8197 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
8199 2006-07-28 Bruno Haible <bruno@clisp.org>
8201 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
8203 2006-07-28 Bruno Haible <bruno@clisp.org>
8205 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
8206 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
8208 Avoids link error on FreeBSD 4.x.
8209 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
8211 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
8213 * lib/mbswidth.c (iswcntrl): Likewise.
8215 2006-07-27 Bruno Haible <bruno@clisp.org>
8217 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
8220 2006-07-27 Bruno Haible <bruno@clisp.org>
8222 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
8223 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
8226 2006-07-26 Eric Blake <ebb9@byu.net>
8228 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
8230 2006-07-26 Eric Blake <ebb9@byu.net>
8232 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
8233 like mingw that lack mkstemp.
8234 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
8235 avoid compilation warning on mingw.
8237 2006-07-26 Bruno Haible <bruno@clisp.org>
8239 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
8240 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
8241 INT_FAST*_MIN, INTPTR_MIN.
8243 2006-07-25 Bruno Haible <bruno@clisp.org>
8245 * modules/version-etc (Depends-on): Add stdarg.
8247 2006-07-25 Bruno Haible <bruno@clisp.org>
8249 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
8252 2006-07-25 Bruno Haible <bruno@clisp.org>
8254 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
8255 defined in <stdarg.h> or config.h.
8257 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
8259 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
8260 (gl_STDIO_SAFER): Remove.
8262 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
8264 * MODULES.html.sh (File stream based Input/Output):
8265 Add fopen-safer, tmpfile-safer; remove stdio-safer.
8266 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
8267 * modules/fopen-safer, modules/tmpfile-safer: New files.
8268 * modules/stdio-safer: Remove.
8270 2006-07-24 Bruno Haible <bruno@clisp.org>
8272 * modules/tmpdir: New file.
8273 * MODULES.html.sh (File system functions): Add it.
8275 2006-07-24 Bruno Haible <bruno@clisp.org>
8277 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
8278 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
8280 2006-07-24 Bruno Haible <bruno@clisp.org>
8282 * modules/clean-temp: New file.
8284 2006-07-24 Bruno Haible <bruno@clisp.org>
8286 * m4/tmpdir.m4: New file, from GNU gettext.
8288 2006-07-24 Bruno Haible <bruno@clisp.org>
8290 * lib/tmpdir.h: New file, from GNU gettext.
8291 * lib/tmpdir.c: New file, from GNU gettext.
8293 2006-07-24 Bruno Haible <bruno@clisp.org>
8295 * lib/clean-temp.h: New file, from GNU gettext.
8296 * lib/clean-temp.c: New file, from GNU gettext.
8298 2006-07-23 Eric Blake <ebb9@byu.net>
8300 * modules/stdio-safer (Files): Add tmpfile-safer.c.
8301 (Depends-on): Add binary-io.
8303 2006-07-23 Eric Blake <ebb9@byu.net>
8305 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
8307 2006-07-23 Eric Blake <ebb9@byu.net>
8309 * lib/tmpfile-safer.c: New file.
8310 * lib/stdio-safer.h (fopen_safer): Add prototype.
8311 * lib/stdio--.h (tmpfile): Make safer.
8313 2006-07-23 Bruno Haible <bruno@clisp.org>
8315 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
8316 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
8317 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
8318 gl_linked_remove_at): Use it.
8320 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8321 and Simon Josefsson <jas@extundo.com>
8323 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
8325 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
8327 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
8329 * modules/close-stream: New file.
8330 * modules/closeout (Description): Make it clear that it exits
8331 with a diagnostic on error.
8332 (Depends-on): Add close-stream. Remove fpending, stdbool.
8333 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
8335 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
8337 * m4/close-stream.m4: New file.
8339 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
8341 * lib/close-stream.c, lib/close-stream.h: New files.
8343 2006-07-22 Bruno Haible <bruno@clisp.org>
8345 Merge from GNU gettext 0.15.
8347 2006-05-01 Bruno Haible <bruno@clisp.org>
8349 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
8351 2006-07-22 Bruno Haible <bruno@clisp.org>
8353 * modules/javaversion: New file.
8354 * MODULES.html.sh (Java): Add javaversion.
8356 2006-03-12 Bruno Haible <bruno@clisp.org>
8358 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
8360 2005-12-04 Bruno Haible <bruno@clisp.org>
8362 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
8365 2006-06-21 Bruno Haible <bruno@clisp.org>
8367 Avoid warnings from recent versions of mcs.
8368 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
8369 -o, -L, -r any more. Use options documented since mcs-1.0
8370 instead. Similarly for -g.
8372 2005-12-04 Bruno Haible <bruno@clisp.org>
8374 * build-aux/csharpcomp.sh.in: Suffix for resources is
8375 .resources, not .resource.
8377 2005-07-09 Bruno Haible <bruno@clisp.org>
8379 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
8381 Reported by Mark Junker <mjscod@gmx.de>.
8383 2006-07-22 Bruno Haible <bruno@clisp.org>
8385 * modules/gettext: Upgrade to gettext-0.15.
8386 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
8388 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
8390 2006-07-22 Bruno Haible <bruno@clisp.org>
8392 Merge from GNU gettext 0.15.
8394 2006-03-25 Bruno Haible <bruno@clisp.org>
8396 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
8398 2006-07-21 Bruno Haible <bruno@clisp.org>
8400 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
8403 2006-05-09 Bruno Haible <bruno@clisp.org>
8405 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
8406 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
8407 for the conftestver execution.
8409 2006-05-01 Bruno Haible <bruno@clisp.org>
8411 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
8412 optional target-version argument. Verify that the compiler
8413 groks source of the specified source-version, or add -source
8414 option as necessary. Verify that the compiler produces
8415 bytecode in the specified target-version, or add -target and
8416 -source options as necessary. Make the result of the test
8417 available as variable CONF_JAVAC. Also log error output in
8420 2006-03-11 Bruno Haible <bruno@clisp.org>
8422 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
8424 2006-05-09 Bruno Haible <bruno@clisp.org>
8426 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
8427 CLASSPATH_SEPARATOR to a semicolon.
8429 2006-03-12 Bruno Haible <bruno@clisp.org>
8431 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
8432 available as variable CONF_JAVA, for subsequent autoconf
8433 tests. Also log error output in config.log.
8435 2006-07-19 Bruno Haible <bruno@clisp.org>
8437 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
8438 that getline works on glibc2 systems. Needed to avoid trouble
8440 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
8442 2005-12-04 Bruno Haible <bruno@clisp.org>
8444 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
8445 launcher (untested).
8447 2005-12-04 Bruno Haible <bruno@clisp.org>
8449 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
8451 2006-07-22 Bruno Haible <bruno@clisp.org>
8453 * gettext.m4: Update from GNU gettext-0.15.
8456 * inttypes-pri.m4: Likewise.
8457 * inttypes-h.m4: Renamed from inttypes.m4.
8458 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
8460 2006-07-22 Bruno Haible <bruno@clisp.org>
8462 Merge from GNU gettext 0.15.
8464 2005-07-05 Bruno Haible <bruno@clisp.org>
8466 * printf-args.c (printf_fetchargs): Work around broken
8467 definition of wint_t on mingw.
8469 2005-02-12 Bruno Haible <bruno@clisp.org>
8471 * xallocsa.h: Add extern "C" for C++.
8473 2006-05-17 Bruno Haible <bruno@clisp.org>
8476 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
8478 2006-04-30 Bruno Haible <bruno@clisp.org>
8480 * progreloc.c: Include <mach-o/dyld.h> if available.
8481 (find_executable): Use _NSGetExecutablePath when possible.
8483 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
8485 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
8488 2005-12-29 Bruno Haible <bruno@clisp.org>
8490 * progreloc.c (set_program_name_and_installdir): Fix
8493 2005-12-04 Bruno Haible <bruno@clisp.org>
8496 * progreloc.c: Include <windows.h> also on Cygwin.
8497 (find_executable): Add support for Cygwin.
8498 (set_program_name_and_installdir): Handle also platforms with
8501 2006-07-11 Bruno Haible <bruno@clisp.org>
8503 * javacomp.c: Fix a comment.
8504 Reported by Jim Meyering.
8506 2006-04-30 Bruno Haible <bruno@clisp.org>
8508 * javacomp.h (compile_java_class): Add source_version,
8509 target_version arguments.
8510 * javacomp.c: Rewritten to choose only a compiler that
8511 respects the specified source_version and target_version.
8513 2006-06-27 Bruno Haible <bruno@clisp.org>
8515 Assume correct S_ISDIR macro.
8516 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
8518 2006-07-22 Bruno Haible <bruno@clisp.org>
8520 * javaversion.h: New file, from GNU gettext.
8521 * javaversion.c: New file, from GNU gettext.
8522 * javaversion.java: New file, from GNU gettext.
8523 * javaversion.class: New file, from GNU gettext.
8525 2006-05-17 Bruno Haible <bruno@clisp.org>
8528 * javaexec.c (execute_java_class): Test for jview program
8531 2006-04-09 Bruno Haible <bruno@clisp.org>
8533 * fatal-signal.c: Don't include string.h.
8534 (at_fatal_signal): Use a copying loop instead of memcpy.
8536 2005-12-04 Bruno Haible <bruno@clisp.org>
8538 * csharpexec.c: Add support for 'clix' launcher (untested).
8539 (execute_csharp_using_sscli): New function.
8540 (execute_csharp_program): Call it.
8542 2006-06-21 Bruno Haible <bruno@clisp.org>
8544 Avoid warnings from recent versions of mcs.
8545 * csharpcomp.c (compile_csharp_using_mono): Don't use options
8546 -o, -L, -r any more. Use options documented since mcs-1.0
8547 instead. Similarly for -g.
8549 2005-07-09 Bruno Haible <bruno@clisp.org>
8551 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
8553 Reported by Mark Junker <mjscod@gmx.de>.
8555 2006-06-17 Bruno Haible <bruno@clisp.org>
8557 * config.charset: Update for NetBSD 3.0.
8559 2006-05-17 Bruno Haible <bruno@clisp.org>
8562 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
8564 2006-05-16 Bruno Haible <bruno@clisp.org>
8566 * localcharset.c [CYGWIN]: Include <windows.h>.
8567 (get_charset_aliases): For Cygwin, return the same CPxxx
8568 aliases list as under WIN32.
8569 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
8570 the environment variables. Fall back to GetACP().
8572 2006-04-05 Bruno Haible <bruno@clisp.org>
8574 * config.charset: Update Juan Manuel Guerrero's address.
8576 2005-02-12 Bruno Haible <bruno@clisp.org>
8578 * allocsa.h: Add extern "C" for C++.
8580 2005-02-10 Bruno Haible <bruno@clisp.org>
8582 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
8583 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
8585 2006-07-22 Bruno Haible <bruno@clisp.org>
8587 * gettext.h: Update to GNU gettext-0.15.
8589 2006-07-22 Bruno Haible <bruno@clisp.org>
8591 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
8592 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
8593 lib-prefix.m4, longdouble.m4, ssize_t.m4.
8595 2006-07-21 Eric Blake <ebb9@byu.net>
8597 * modules/stdlib-safer: New file.
8598 * MODULES.html.sh (File stream based Input/Output): Add
8601 2006-07-21 Eric Blake <ebb9@byu.net>
8603 * lib/stdlib-safer.h: New file from coreutils, required by
8606 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
8608 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
8610 2006-07-20 Bruno Haible <bruno@clisp.org>
8612 * gnulib-tool: Recognize new option --assume-autoconf.
8613 (autoconf_minversion): New variable.
8614 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
8616 2006-07-20 Bruno Haible <bruno@clisp.org>
8618 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
8620 2006-07-19 Derek R. Price <derek@ximbiot.com>
8622 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
8623 Reindent and repaginate.
8625 2006-07-19 Derek Price <derek@ximbiot.com>
8627 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
8630 2006-07-17 Bruno Haible <bruno@clisp.org>
8632 * modules/list: New file.
8633 * modules/array-list: New file.
8634 * modules/carray-list, modules/carray-list-tests: New files.
8635 * modules/linked-list, modules/linked-list-tests: New files.
8636 * modules/avltree-list, modules/avltree-list-tests: New files.
8637 * modules/rbtree-list, modules/rbtree-list-tests: New files.
8638 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
8639 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
8640 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
8641 * modules/oset: New file.
8642 * modules/array-oset: New file.
8643 * modules/avltree-oset, modules/avltree-oset-tests: New files.
8644 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
8645 * tests/test-carray_list.c: New file.
8646 * tests/test-linked_list.c: New file.
8647 * tests/test-avltree_list.c: New file.
8648 * tests/test-rbtree_list.c: New file.
8649 * tests/test-linkedhash_list.c: New file.
8650 * tests/test-avltreehash_list.c: New file.
8651 * tests/test-rbtreehash_list.c: New file.
8652 * tests/test-avltree_oset.c: New file.
8653 * tests/test-rbtree_oset.c: New file.
8654 * MODULES.html.sh (Container data structures): New section.
8656 2006-07-17 Bruno Haible <bruno@clisp.org>
8658 * m4/gl_list.m4: New file.
8660 2006-07-17 Bruno Haible <bruno@clisp.org>
8662 * lib/gl_list.h: New file.
8663 * lib/gl_list.c: New file.
8664 * lib/gl_array_list.h: New file.
8665 * lib/gl_array_list.c: New file.
8666 * lib/gl_carray_list.h: New file.
8667 * lib/gl_carray_list.c: New file.
8668 * lib/gl_linked_list.h: New file.
8669 * lib/gl_linked_list.c: New file.
8670 * lib/gl_anylinked_list1.h: New file.
8671 * lib/gl_anylinked_list2.h: New file.
8672 * lib/gl_avltree_list.h: New file.
8673 * lib/gl_avltree_list.c: New file.
8674 * lib/gl_anyavltree_list1.h: New file.
8675 * lib/gl_anyavltree_list2.h: New file.
8676 * lib/gl_rbtree_list.h: New file.
8677 * lib/gl_rbtree_list.c: New file.
8678 * lib/gl_anyrbtree_list1.h: New file.
8679 * lib/gl_anyrbtree_list2.h: New file.
8680 * lib/gl_anytree_list1.h: New file.
8681 * lib/gl_anytree_list2.h: New file.
8682 * lib/gl_linkedhash_list.h: New file.
8683 * lib/gl_linkedhash_list.c: New file.
8684 * lib/gl_anyhash_list1.h: New file.
8685 * lib/gl_anyhash_list2.h: New file.
8686 * lib/gl_avltreehash_list.h: New file.
8687 * lib/gl_avltreehash_list.c: New file.
8688 * lib/gl_rbtreehash_list.h: New file.
8689 * lib/gl_rbtreehash_list.c: New file.
8690 * lib/gl_anytreehash_list1.h: New file.
8691 * lib/gl_anytreehash_list2.h: New file.
8693 * lib/gl_oset.h: New file.
8694 * lib/gl_oset.c: New file.
8695 * lib/gl_array_oset.h: New file.
8696 * lib/gl_array_oset.c: New file.
8697 * lib/gl_avltree_oset.h: New file.
8698 * lib/gl_avltree_oset.c: New file.
8699 * lib/gl_rbtree_oset.h: New file.
8700 * lib/gl_rbtree_oset.c: New file.
8701 * lib/gl_anytree_oset.h: New file.
8703 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
8705 * m4/mkancesdirs.m4: New file.
8706 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
8707 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
8708 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
8711 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
8713 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
8714 * lib/mkancesdirs.h: New files.
8715 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
8716 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
8717 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
8718 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
8719 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
8720 callers changed. Revamp internals significantly, by not
8721 attempting to create directories that are temporarily more
8722 permissive than the final results. Do not attempt to use
8723 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
8724 This removes some race conditions, fixes some bugs, and simplifies
8725 things. Use new dirchownmod function to do owner and mode changes.
8726 * lib/mkdir-p.h: Likewise.
8727 * lib/modechange.c (octal_to_mode): New function.
8728 (struct mode_change): New member mentioned.
8729 (make_node_op_equals): New arg mentioned. All callers changed.
8730 (mode_compile): Keep track of which mode bits the user has explicitly
8732 (mode_adjust): New arg DIR, so that we implement the X op correctly.
8733 New arg PMODE_BITS, to keep track of which mode bits the user
8734 mentioned; it treats S_ISUID and S_ISGID speciall.
8735 All callers changed.
8736 * lib/modechange.h: Likewise.
8738 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
8740 * MODULES.html.sh: Add mkancestors.
8741 * modules/mkancesdirs: New module.
8742 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
8743 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
8744 The chdir-safer and afs files are now orphans; I'll remove them
8745 unless someone speaks up.
8746 Add lib/dirchownmod.c, lib/dirchownmod.h.
8747 (Depends-on): Remove alloca, chown, save-cwd, dirname.
8748 Add lchown, mkancesdirs.
8749 (Maintainer): Add self.
8751 2006-07-15 Karl Berry <karl@gnu.org>
8753 * gnulib-tool: help message wording/arrangement.
8755 2006-07-14 Simon Josefsson <jas@extundo.com>
8757 * doc/gnulib.texi (Libtool and Windows): New section.
8759 2006-07-12 Simon Josefsson <jas@extundo.com>
8761 * modules/gendocs (License): Fix license, approved by Karl.
8763 2006-07-12 Eric Blake <ebb9@byu.net>
8765 * MODULES.html.sh: Add gendocs.
8767 2006-07-11 Eric Blake <ebb9@byu.net>
8769 * modules/fdl: New module, to install doc/fdl.texi.
8770 * MODULES.html.sh: Add new section for documentation modules.
8771 * gnulib-tool: Avoid space-tab.
8772 (--doc-base): New option, to manage files from doc.
8774 2006-07-11 Eric Blake <ebb9@byu.net>
8776 * m4/absolute-header.m4: Fix comments to match recent change.
8778 2006-07-11 Eric Blake <ebb9@byu.net>
8780 * gnulib-tool: List --doc-base before --tests-base.
8782 2006-07-11 Derek R. Price <derek@ximbiot.com>
8784 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
8786 2006-07-11 Bruno Haible <bruno@clisp.org>
8788 * README: Mention where to put documentation.
8790 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8792 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
8794 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
8796 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
8799 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
8801 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
8802 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
8803 "no/such/file/stdint.h" when there is no such file, so that
8804 the resulting C code can be parsed by dodgy compilers.
8805 Problems reported by Bob Proulx.
8807 2006-07-10 Derek R. Price <derek@ximbiot.com>
8809 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
8810 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
8811 macros into the GNU _D_EXACT_NAMLEN.
8812 * lib/savedir.c: Likewise.
8813 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
8815 2006-07-10 Derek R. Price <derek@ximbiot.com>
8816 and Paul Eggert <eggert@cs.ucla.edu>
8818 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
8820 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
8821 macros into the GNU _D_EXACT_NAMLEN.
8823 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
8825 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
8826 around the absolute name, to work around a problem with the HP-UX
8827 11.23 native C compiler, reported by Bob Proulx.
8829 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
8831 * doc/maintain.texi, make-stds.texi: Sync from
8832 <http://savannah.gnu.org/projects/gnustandards>.
8834 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
8836 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
8838 2006-07-09 Jim Meyering <jim@meyering.net>
8840 * m4/glob.m4: Remove a doubled word in a comment.
8842 2006-07-09 Jim Meyering <jim@meyering.net>
8844 * lib/argp-pv.c: Remove a doubled word in a comment.
8845 * lib/check-version.c (check_version): Likewise.
8846 * lib/javacomp.c (compile_java_class): Likewise.
8848 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
8850 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
8851 for the benefit of people using Autoconf 2.60. If you want to
8852 support older Autoconf versions you can copy m4/onceonly_2_57.m4
8853 (or m4/onceonly.m4, if pre-2.57) manually.
8855 2006-07-08 Jim Meyering <jim@meyering.net>
8857 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
8859 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
8860 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
8863 2006-07-08 Jim Meyering <jim@meyering.net>
8865 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
8867 2006-07-07 Simon Josefsson <jas@extundo.com>
8869 * tests/test-crc.c: Change expected crc value, the test vector
8870 were probably computed using the old broken crc.c?
8872 2006-07-06 Simon Josefsson <jas@extundo.com>
8874 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
8875 now the canonical place for the M4 file).
8877 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
8878 from the sys_socket dependency now.
8880 * modules/inet_pton (Files): Ditto.
8882 * modules/inet_ntop (Files): Ditto.
8884 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
8886 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
8887 not gl_PREREQ_GETUSERSHELL.
8889 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8891 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
8892 with only one argument, for Autoconf 2.60.
8893 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
8894 expand to nothing, so add a shell command to avoid syntax error.
8895 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
8897 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8899 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
8901 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
8903 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
8904 no longer needed. Check for isblank decl.
8905 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
8906 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
8909 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
8911 * lib/getloadavg.c: Use __VMS, not VMS.
8912 * lib/getopt.c: Likewise.
8913 * lib/getpagesize.h: Likewise.
8914 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
8915 and probably does not work.
8917 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
8919 * lib/.cppi-disable: Add wcwidth.
8920 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
8921 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
8922 (ISGRAPH): Remove. All uses changed to isgraph.
8923 (FOLD) [!defined _LIBC]: Remove special case.
8924 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
8925 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
8927 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
8930 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
8932 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
8933 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
8934 brackets. Other minor changes to suppress some compiler
8937 2006-07-06 Derek R. Price <derek@ximbiot.com>
8938 and Paul Eggert <eggert@cs.ucla.edu>
8940 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
8941 of invoking obsolescent AC_HEADER_DIRENT macro.
8942 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
8943 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
8944 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8945 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
8946 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
8947 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
8948 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
8949 * m4/readdir.m4: Remove; no longer needed.
8951 2006-07-06 Derek R. Price <derek@ximbiot.com>
8952 and Paul Eggert <eggert@cs.ucla.edu>
8954 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
8955 Don't worry about this obsolete case any more.
8956 (HAVE_DIR): Remove. All uses removed; we now assume you can read
8958 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
8959 worry about this obsolete case any more.
8960 * lib/fts.c: Likewise.
8961 * lib/getcwd.c: Likewise.
8962 * lib/glob.h: Likewise.
8963 * lib/savedir.c: Likewise.
8965 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
8967 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
8968 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
8969 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
8972 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
8973 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
8974 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
8976 * m4/getdate.m4 (gl_GETDATE): Likewise.
8977 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
8978 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
8979 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8980 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
8981 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
8982 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
8983 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
8986 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
8988 * lib/memcasecmp.c: Include <limits.h>.
8989 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
8990 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
8991 Don't assume isdigit succeeds only on '0' through '9'.
8993 2006-07-05 Eric Blake <ebb9@byu.net>
8995 * modules/getaddrinfo (Depends-on): Add snprintf.
8997 2006-07-05 Eric Blake <ebb9@byu.net>
8999 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
9000 to avoid 'header present but could not be compiled' on cygwin.
9002 2006-07-05 Eric Blake <ebb9@byu.net>
9004 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
9005 missing from netdb.h.
9006 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
9008 2006-07-05 Derek R. Price <derek@ximbiot.com>
9010 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
9012 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
9013 * m4/getdate.m4 (gl_GETDATE): Likewise.
9014 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
9015 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
9016 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9017 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
9018 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
9020 2006-07-05 Derek R. Price <derek@ximbiot.com>
9022 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
9023 All uses of is_space replaced by isspace.
9024 * lib/exit.h: Don't talk about STDC_HEADERS.
9025 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
9026 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
9027 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
9028 replaced by isprint etc.
9029 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
9030 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
9031 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
9032 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
9033 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
9034 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
9036 2006-07-05 Bruno Haible <bruno@clisp.org>
9038 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
9039 the function exists, before testing against AIX.
9040 Reported by Martin Lambers <marlam@marlam.de>.
9042 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
9044 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
9045 From Mark D. Baushke.
9047 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
9049 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
9050 to the absolute name, not just one, to bypass Sun C 5.8's
9051 "warning: #include of /usr/include/... may be non-portable".
9053 2006-07-04 Eric Blake <ebb9@byu.net>
9055 * modules/dirname-tests: New test module.
9056 * tests/test-dirname.c: New file, replacing dirname.c
9057 TEST_DIRNAME section that was recently deleted.
9059 2006-07-04 Bruno Haible <bruno@clisp.org>
9061 Assume ANSI C header files and <ctype.h> functions.
9062 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
9063 (mbsnwidth): Use isprint, iscntrl instead.
9065 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
9067 Merge from coreutils.
9068 * MODULES.html.sh: Add xstrtold.
9069 * modules/xstrtold: New file.
9070 * modules/cycle-check (Files): Add lib/same-inode.h.
9071 * modules/dirname (Files): Add m4/double-slash-root.m4.
9072 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
9073 * modules/mkdir-p (Files): Add lib/same-inode.h.
9074 * modules/same (Files): Add lib/same-inode.h.
9076 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
9078 * m4/absolute-header.m4: Renamed from full-header-path.m4.
9079 This is to keep the terminology clean; POSIX talks about
9080 "absolute pathnames", not "full pathnames", but the GNU
9081 Coding Standards say to use "path" for something else;
9082 so use "absolute" to keep both sides happy.
9083 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
9084 Set gl_absolute_header, not gl_full_header_path.
9085 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
9086 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
9089 Merge from coreutils.
9091 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
9093 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
9094 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
9095 want to require the building of c-strtod.o.
9096 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
9098 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
9100 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
9102 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
9103 --as-needed option if available. Problem reported by Albert Chin in
9104 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
9105 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
9106 cc merely issues a bunch of annoying warnings for --as-needed
9107 (this problem was reported by Bob Proulx). Also, try linking with
9108 -lm to detect a bug in binutils 2.16 (this problem was reported
9109 by Ralf Wildenhues).
9111 2006-06-18 Jim Meyering <jim@meyering.net>
9113 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
9114 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
9116 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
9117 also check for glibc-2.4's abort-inducing bug.
9119 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
9120 Low-probability clean-up should be to use rmdir to get rid of
9121 the just-created directory, not unlink.
9123 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
9124 configure fail, and request a bug report to inform us about it.
9125 Add a comment that, barring reports to the contrary, in 2007 we'll
9126 assume ftruncate is universally available.
9128 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
9130 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
9132 2006-03-12 Jim Meyering <jim@meyering.net>
9134 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
9135 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
9136 * m4/same.m4 (gl_SAME): Likewise.
9137 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
9139 2006-03-11 Eric Blake <ebb9@byu.net>
9141 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
9142 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
9143 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
9144 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
9146 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
9148 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
9149 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
9150 reported by Mark D. Baushke, one in
9151 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
9153 Merge from coreutils.
9155 * lib/.cppi-disable: Add stdint_.h.
9156 * lib/.cvsignore: Add stdint.h.
9158 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
9160 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
9161 both double and long double versions.
9162 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
9163 * lib/xstrtold.c: New file.
9164 * lib/xstrtod.h (xstrtold): New decl.
9166 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
9168 * lib/filemode.c (setst): Remove.
9169 (strmode): Rewrite to avoid setst. This makes the code shorter,
9170 (arguably) clearer, and the generated code is a bit smaller on my
9171 Debian GNU/Linux stable x86 host.
9173 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
9175 * lib/filemode.c: Include "filemode.h" first, to test the interface.
9176 Assume that filemode.h includes sys/types.h and sys/stat.h.
9177 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
9178 (ftypelet): Reorder to put common cases first, for efficiency.
9179 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
9181 (strmode): Renamed from mode_string, and now stores 12 bytes instead
9182 of 10, for compatibility with FreeBSD. All callers changed.
9183 (filemodestring): Now stores 12 bytes instead of 10, and sets file
9184 types that can't be deduced solely from st_mode. First arg is now a
9186 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
9187 (strmode): Renamed from mode_string.
9188 (filemodestring): New decl.
9189 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
9190 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
9192 (S_ISPORT, S_ISWHT): New macros, if not already defined.
9194 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
9196 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
9197 fsusage.h now does that. Include fsusage.h first, to test interface.
9198 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
9199 at most one method (the old code could have generated decls that
9200 didn't conform to C89, not that this was ever exercised).
9201 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
9203 2006-03-19 Jim Meyering <jim@meyering.net>
9205 Work even in a chroot where d_ino values for entries in "/"
9206 don't match the stat.st_ino values for the same names.
9207 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
9208 number, iterate through all entries again, using lstat instead.
9209 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
9210 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
9212 * lib/getcwd.c (__getcwd): Clarify a comment.
9213 Use memcpy in place of a call to strcpy.
9215 2006-03-12 Jim Meyering <jim@meyering.net>
9217 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
9218 matches that of the current directory (which we're about to chdir ".."
9219 out of), then save the dev-ino of the parent, instead.
9221 * lib/same-inode.h (SAME_INODE): New file/macro.
9222 * lib/chdir-safer.c (SAME_INODE): Remove definition.
9223 Include "same-inode.h", instead.
9224 * lib/same.c: Likewise.
9225 * lib/cycle-check.h: Include "same-inode.h".
9226 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
9227 * lib/cycle-check.c (SAME_INODE): Remove definition.
9228 * lib/root-dev-ino.h: Include "same-inode.h".
9230 2006-03-11 Eric Blake <ebb9@byu.net>
9232 * lib/same.c (same_name): s/base_name/last_component/
9233 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
9234 * lib/filenamecat.c (file_name_concat): Likewise.
9236 2006-03-11 Eric Blake <ebb9@byu.net>,
9237 Paul Eggert <eggert@cs.ucla.edu>
9239 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
9240 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
9242 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
9243 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
9244 (last_component): New method.
9245 * lib/dirname.c (dir_len): Determine when drive letters need a
9246 subsequent slash. Preserve // when it is special.
9247 (dir_name): Don't append dot when drive letter is absolute.
9248 [TEST_DIRNAME]: Move into a full-blown gnulib test.
9249 * lib/basename.c (base_name): New semantics - malloc the result.
9250 Preserve // when it is special. Preserve relative files that look
9252 (base_len): Preserve // when it is special.
9253 (last_component): New method, similar to old base_name semantics.
9254 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
9255 base_name. Strip redundant slashes from ///.
9257 2006-07-03 Jim Meyering <jim@meyering.net>
9259 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
9260 macro is used before the first cycle_check call.
9262 2006-07-03 Eric Blake <ebb9@byu.net>
9264 * modules/dirname (Depends-on): Add xstrndup.
9266 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
9268 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
9269 test cases, so that config.log is a bit easier to follow.
9271 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
9273 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
9274 both are 64 bits, since this seems to be the tradition, and this
9275 prevents gcc -Wformat from warning about usages with PRIuMAX. If
9276 we ever run into a host that prefers long long to long in this
9277 case, we'll need another configure-time test. Problem reported by
9280 2006-07-02 Eric Blake <ebb9@byu.net>
9282 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
9284 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
9286 * modules/inttypes (Depends-on): No longer depends on stdint.
9287 * modules/stdint (Description): Say more about assumptions.
9288 Say that the fast types might differ. Say macros are used.
9289 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
9290 (Makefile.am): Revise list of substituted symbols to match
9292 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
9293 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
9294 * tests/test-stdint.c (verify_same_types)
9295 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
9296 the code conforms to C99/C89.
9297 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
9298 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
9300 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
9302 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
9303 but fix a bug, by requiring at least 64 bits.
9304 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
9305 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
9306 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
9307 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
9309 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
9310 changes. Make 2.59 a prerequisite. Check and substitute for
9311 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
9312 inttypes.h. Do not use special include files; just use the
9313 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
9314 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
9315 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
9316 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
9317 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
9318 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
9319 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
9320 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
9321 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
9322 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
9323 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
9324 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
9325 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
9326 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
9327 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
9328 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
9329 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
9330 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
9331 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
9332 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
9333 WINT_MAX. Check for C99 conformance more strictly, by detecting
9334 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
9335 not check for things that C99 does not require, e.g., int8_t. If
9336 a test isn't needed unless <stdint.h> isn't working, and is
9337 unlikely to be needed for any other reason, then don't do it
9338 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
9339 size_t, since we assume C89 freestanding at least. Do not check
9340 for sig_atomic_t, wchar_t, or wint_t, since the code now does
9341 the right thing even if the types are not defined. Instead use:
9342 (gl_STDINT_TYPE_PROPERTIES): New macro.
9343 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
9344 testing whether <sys/types.h> clashes, as Autoconf does this for
9345 us now. All uses removed.
9346 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
9347 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
9348 (gl_CHECK_TYPE_SAME):
9349 Remove; no longer needed.
9350 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
9351 exists, since we'll return 0 anyway in that case.
9352 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
9354 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
9356 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
9357 possible collision with system files.
9358 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
9359 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
9360 WCHAR_MIN and WCHAR_MAX in this case.
9361 (<stddef.h>): Do not include; no longer needed.
9362 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
9363 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
9364 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
9365 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
9366 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
9367 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
9368 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
9369 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
9370 !defined(__c99))]: Include in this case too, since it's harmless
9372 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
9374 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
9375 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
9376 (_STDINT_MIN, _STDINT_MAX): New macros.
9377 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
9378 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
9379 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
9380 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
9381 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
9382 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
9383 macros, not typedefs; this simplifies things quite a bit.
9384 Use long int for all types narrower than int64_t.
9385 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
9386 Define in terms of long long int or int64_t or long int,
9387 not int64_t or int32_t. This saves some compile-time testing.
9388 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
9389 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
9390 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
9391 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
9392 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
9393 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
9394 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
9395 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
9396 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
9397 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
9398 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
9399 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
9400 undef any previous version and define our own version, for
9401 simplicity and consistency with the new macros for types.
9402 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
9403 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
9404 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
9405 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
9406 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
9407 @WINT_T_SUFFIX@ to keep things simple here.
9408 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
9409 Simplify by assuming typical 8/16/32/64 host, since we're
9410 already doing that elsewhere anyway.
9411 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
9412 and assume long long int is 64 bits if available. This
9413 speeds up 'configure'.
9415 2006-07-01 Eric Blake <ebb9@byu.net>
9417 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
9418 Reported by Andreas Buening.
9420 2006-07-01 Eric Blake <ebb9@byu.net>
9422 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
9424 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
9426 * lib/getaddrinfo.c: fixed typo
9428 2006-06-29 Jim Meyering <jim@meyering.net>
9430 * modules/strftime (Maintainer): Add my name, since with the
9431 FPRINTFTIME changes strftime.c has forked from glibc.
9433 2006-06-29 Eric Blake <ebb9@byu.net>
9435 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
9437 2006-06-29 Eric Blake <ebb9@byu.net>
9439 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
9441 2006-06-29 Eric Blake <ebb9@byu.net>
9443 * lib/stat_.h: New file.
9445 2006-06-29 Eric Blake <ebb9@byu.net>
9447 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
9448 unused static function.
9450 2006-06-29 Eric Blake <ebb9@byu.net>
9452 * doc/functions.texi (Function Portability): Document missing lstat
9455 2006-06-29 Eric Blake <ebb9@byu.net>
9457 * MODULES.html.sh: Add sys_stat.
9458 * modules/sys_stat: New module.
9459 * modules/mkstemp (Depends-on): Add sys_stat.
9461 2006-06-29 Derek R. Price <derek@ximbiot.com>
9463 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
9465 2006-06-29 Derek R. Price <derek@ximbiot.com>
9467 * m4/c-bs-a.m4: Removed.
9469 2006-06-29 Derek R. Price <derek@ximbiot.com>
9471 * lib/strftime.c: Assume strftime() exists.
9473 2006-06-29 Derek Price <derek@ximbiot.com>
9475 * modules/c-bs-a: Removed - \a is C89.
9476 * MODULES.html.sh: Remove c-bs-a.
9478 2006-06-29 Bruno Haible <bruno@clisp.org>
9480 * modules/wcwidth (License): Change to LGPL.
9482 2006-06-28 Simon Josefsson <jas@extundo.com>
9484 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
9487 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
9490 2006-06-28 Simon Josefsson <jas@extundo.com>
9492 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
9494 2006-06-28 Simon Josefsson <jas@extundo.com>
9496 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
9497 functions there. It will succeed on Windows XP, but on Windows
9498 2000 and (presumably) earlier, it will fail, and use the internal
9500 (use_win32_p): New function.
9501 (getaddrinfo): Use strtoul on servname, to support numeric ports.
9502 Support AI_NUMERICSERV to disable getservbyname.
9503 (getnameinfo): New function, only supports
9504 NI_NUMERICHOST|NI_NUMERICSERV for now.
9506 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
9507 only have some of them. Add AI_NUMERICSERV. Add prototype for
9510 2006-06-28 Eric Blake <ebb9@byu.net>
9512 * modules/wcwidth: New file.
9513 * modules/mbchar (Depends-on): Add wcwidth.
9514 * modules/mbswidth (Depends-on): Add wcwidth.
9515 * MODULES.html.sh: Add wcwidth.
9517 2006-06-28 Eric Blake <ebb9@byu.net>
9519 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
9520 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
9522 2006-06-28 Eric Blake <ebb9@byu.net>
9524 * lib/xvasprintf.h: Fix comments.
9526 2006-06-28 Eric Blake <ebb9@byu.net>
9528 * lib/mbchar.h (wcwidth): Include wcwidth.h.
9529 * lib/mbswidth.c (wcwidth): Move from here...
9530 * lib/wcwidth.h: ...to this new file.
9532 2006-06-28 Derek R. Price <derek@ximbiot.com>
9534 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
9536 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
9538 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
9540 2006-06-28 Derek R. Price <derek@ximbiot.com>
9542 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
9543 Autoconf 2.60 says this stuff was obsolete.
9545 2006-06-28 Bruno Haible <bruno@clisp.org>
9547 * modules/wcwidth (Files): Add m4/wchar_t.m4.
9549 2006-06-28 Bruno Haible <bruno@clisp.org>
9551 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
9554 2006-06-28 Bruno Haible <bruno@clisp.org>
9556 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
9557 declaration for wcwidth.
9558 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
9560 2006-06-28 Bruno Haible <bruno@clisp.org>
9562 * lib/mkdtemp.c [MINGW]: Include <io.h>.
9563 (mkdir): Define using _mkdir.
9565 2006-06-28 Bruno Haible <bruno@clisp.org>
9567 * lib/getaddrinfo.h: Fix POSIX URL.
9568 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
9570 (use_win32_p): Make static.
9571 (getaddrinfo): Reject service name if it is empty or does not consist
9572 solely of decimal digits, or if its value is > 65535.
9573 (getnameinfo): Remove useless casts.
9575 2006-06-27 Simon Josefsson <jas@extundo.com>
9577 * modules/sys_select: New file, suggested by Bruno Haible, Paul
9578 Eggert and Martin Lambers.
9580 2006-06-27 Simon Josefsson <jas@extundo.com>
9582 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
9583 Eggert and Martin Lambers.
9585 2006-06-27 Bruno Haible <bruno@clisp.org>
9587 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
9588 result to 0, not to empty.
9589 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
9591 2006-06-27 Bruno Haible <bruno@clisp.org>
9593 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
9595 2006-06-26 Simon Josefsson <jas@extundo.com>
9597 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
9600 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
9602 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
9603 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
9604 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
9606 2006-06-26 Mark D. Baushke <mdb@gnu.org>
9608 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
9610 2006-06-26 Bruno Haible <bruno@clisp.org>
9612 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
9614 2006-06-26 Bruno Haible <bruno@clisp.org>
9616 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
9618 2006-06-26 Bruno Haible <bruno@clisp.org>
9620 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
9621 SGI C compiler in pre-C99 mode.
9622 Suggested by Mark D. Baushke and Larry Jones.
9624 2006-06-26 Bruno Haible <bruno@clisp.org>
9626 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
9628 Reported by Mark D. Baushke and Larry Jones.
9630 2006-06-26 Bruno Haible <bruno@clisp.org>
9632 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
9634 Suggested by Mark D. Baushke and Larry Jones.
9636 2006-06-23 Simon Josefsson <jas@extundo.com>
9637 Bruno Haible <bruno@clisp.org>
9639 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
9640 Emit mostlyclean-local rule.
9641 (func_emit_tests_Makefile_am): Likewise.
9642 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
9644 2006-06-23 Mark D. Baushke <mdb@gnu.org>
9646 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
9648 2006-06-23 Bruno Haible <bruno@clisp.org>
9650 * tests/test-stdint.c: Update to match ISO C 99 Technical
9653 2006-06-23 Bruno Haible <bruno@clisp.org>
9655 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
9657 2006-06-23 Bruno Haible <bruno@clisp.org>
9659 * lib/stdint_.h: Treat IRIX like OpenBSD.
9661 2006-06-23 Bruno Haible <bruno@clisp.org>
9663 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
9664 ISO C 99 Technical Corrigendum 1.
9666 2006-06-22 Simon Josefsson <jas@extundo.com>
9668 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
9671 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
9673 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
9674 needed. Some compiler complained about some of them. Problem reported
9676 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
9678 2006-06-21 Simon Josefsson <jas@extundo.com>
9680 * tests/test-getaddrinfo.c: New file.
9682 * modules/getaddrinfo-tests: New file.
9684 * MODULES.html.sh: Add inet_pton.
9686 * modules/inet_pton: New file.
9688 2006-06-21 Simon Josefsson <jas@extundo.com>
9690 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
9691 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
9692 of using the (limited) gnulib implementation on Windows XP.
9694 * m4/inet_pton.m4: New file.
9696 2006-06-21 Simon Josefsson <jas@extundo.com>
9698 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
9701 * lib/socket_.h: Don't define WINVER.
9703 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
9704 slightly modified to work in gnulib.
9706 2006-06-21 Simon Josefsson <jas@extundo.com>
9708 * doc/gnulib.texi (Windows sockets): Add.
9710 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
9712 * lib/read-file.c (fread_file): Start with buffer allocation of
9713 0 bytes rather than 1 byte; this simplifies the code.
9714 Don't invoke feof; it's not needed. Refactor to avoid duplicate
9715 code to free buffer and save/restore errno.
9716 (internal_read_file): Remove unused local.
9718 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
9720 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
9721 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
9722 Problem reported by Denis Excoffier in
9723 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
9725 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
9727 * modules/sys_socket, modules/socklen: Include sys/types since
9728 FreeBSD 4.x's sys/socket.h needs it.
9730 2006-06-19 Simon Josefsson <jas@extundo.com>
9732 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
9734 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
9736 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
9738 2006-06-19 Bruno Haible <bruno@clisp.org>
9740 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
9741 and FULL_PATH_INTTYPES_H in angle brackets.
9742 Reported by Mark D. Baushke <mdb@gnu.org>.
9744 2006-06-17 Eric Blake <ebb9@byu.net>
9746 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
9749 2006-06-17 Bruno Haible <bruno@clisp.org>
9751 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
9754 2006-06-17 Bruno Haible <bruno@clisp.org>
9756 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
9757 whether errno is declared. Assume <errno.h> declares errno.
9759 2006-06-17 Bruno Haible <bruno@clisp.org>
9761 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
9763 2006-06-17 Bruno Haible <bruno@clisp.org>
9765 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
9766 problem on Solaris 2.5.1.
9768 2006-06-16 Eric Blake <ebb9@byu.net>
9770 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
9771 * lib/unicodeio.c [!defined errno]: Likewise.
9772 * lib/strtol.c [!defined errno]: Likewise.
9773 * lib/strtod.c [!defined errno]: Likewise.
9775 2006-06-15 Eric Blake <ebb9@byu.net>
9777 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
9779 2006-06-15 Eric Blake <ebb9@byu.net>
9781 * config/srclist.txt (ssize_t.m4): Lose sync.
9783 2006-06-15 Bruno Haible <bruno@clisp.org>
9785 * modules/stdint (Files): Include m4/full-header-path.m4,
9786 m4/size_max.m4, m4/wchar_t.m4.
9787 (Makefile.am): Many more substitutions.
9788 * modules/stdint-tests: New file.
9789 * tests/test-stdint.c: New file.
9791 2006-06-15 Bruno Haible <bruno@clisp.org>
9793 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
9794 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
9795 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
9796 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
9797 gl_CHECK_TYPE_SAME): New macros.
9799 2006-06-15 Bruno Haible <bruno@clisp.org>
9801 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
9803 2006-06-15 Bruno Haible <bruno@clisp.org>
9805 * lib/stdint_.h: Rewritten to be fully auto-configured.
9806 Fixes bug on HP-UX/IA64.
9808 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
9810 * lib/getdate.y (__attribute__): Don't define if already defined.
9811 Problem reported by Larry Jones.
9812 * lib/utimens.c (__attribute__): Likewise.
9814 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
9816 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
9817 reported by Andreas Schwab.
9819 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9820 Bruno Haible <bruno@clisp.org>
9822 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
9823 check for the declaration of strnlen and a run test that exposes the
9824 AIX 5.1 strnlen bug. In the failure case, #define strndup to
9827 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9828 Bruno Haible <bruno@clisp.org>
9830 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
9832 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9834 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
9835 compile test, for Tru64 4.0D.
9837 2006-05-28 Karl Berry <karl@gnu.org>
9839 * config/srclist.txt (printf-args.c): lose sync.
9841 2006-05-26 Martin Lambers <marlam@marlam.de>
9843 * lib/getpass.c: Updates the test for the native W32 API, and adds
9844 missing includes, thus fixing compilation warnings.
9846 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
9848 * lib/exclude.c (exclude_fnmatch): New function.
9849 (excluded_file_name): Call exclude_fnmatch.
9850 * lib/exclude.h (excluded_file_name): New prototype
9852 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
9854 * lib/tempname.c (small_open, large_open): New macros.
9855 (__open, __open64) [!_LIBC]: Remove.
9856 (__gen_tempname): Use small_open and large_open instead of __open
9857 and __open64. This fixes a portability bug on HP-UX 11.11i
9858 reported by Simon Wing-Tang in
9859 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
9861 2006-05-24 Bruno Haible <bruno@clisp.org>
9863 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
9864 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
9865 Reported by Thorsten Maerz <torte@netztorte.de> via
9866 Aaron Stone <aaron@serendipity.cx>.
9868 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
9870 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
9871 gl_ rather than jm_. Link, don't run, so that cross-compiles are
9872 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
9873 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
9874 not really conditional on the cache.
9875 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
9877 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
9879 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
9880 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
9881 (my_usleep): Don't mishandle maximum value.
9883 2006-05-19 Jim Meyering <jim@meyering.net>
9885 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
9887 2006-05-17 Bruno Haible <bruno@clisp.org>
9890 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
9892 2006-05-17 Bruno Haible <bruno@clisp.org>
9894 * lib/stdint_.h: Fix recognition of Cygwin.
9896 2006-05-15 Bruno Haible <bruno@clisp.org>
9898 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
9899 on libtool patch by Ralf Wildenhues.
9901 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
9903 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
9904 test for C99 conformance; (bool) 0.5 is an integer constant
9905 expression, but (bool) -0.5 is not. Problem reported by Fedor
9906 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
9908 2006-05-11 Simon Josefsson <jas@extundo.com>
9910 * m4/xvasprintf.m4: Fix obvious typo.
9912 2006-05-11 Jim Meyering <jim@meyering.net>
9914 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
9917 2006-05-10 Simon Josefsson <jas@extundo.com>
9919 * lib/md4.c: Typo fix, update copyright years.
9920 (K1, K2): Don't use L because it turn computations into 64-bit on
9923 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
9925 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
9926 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
9927 unwanted sign propagation, e.g., on hosts with 64-bit int.
9928 There still are some problems with reeelly weird theoretical hosts
9929 (e.g., 33-bit int) but it's not worth worrying about now.
9930 * lib/sha1.c (rol): Likewise.
9931 (K1, K2, K3, K4): Remove unnecessary L suffix.
9933 2006-05-10 Bruno Haible <bruno@clisp.org>
9935 * lib/des.c: Cast to avoid warnings.
9937 2006-05-09 Bruno Haible <bruno@clisp.org>
9939 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
9940 (Depends-on): Depend also on xsize, stdarg.
9941 (configure.ac): Add gl_XVASPRINTF.
9943 2006-05-09 Bruno Haible <bruno@clisp.org>
9945 * m4/xvasprintf.m4: New file.
9947 2006-05-09 Bruno Haible <bruno@clisp.org>
9949 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
9950 (EOVERFLOW): Define fallback value.
9951 (xstrcat): New function.
9952 (xvasprintf): Recognize the special case of a string concatenation.
9954 2006-05-08 Eric Blake <ebb9@byu.net>
9956 * gnulib-tool (func_version): Base copyright year on CVS date.
9957 (func_emit_copyright_notice): New function.
9958 (func_emit_lib_Makefile_am): Use it.
9959 (func_emit_tests_Makefile_am): Likewise.
9960 (func_import): Likewise.
9962 2006-05-08 Bruno Haible <bruno@clisp.org>
9964 * modules/stdarg: New file.
9965 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
9967 2006-05-08 Bruno Haible <bruno@clisp.org>
9969 * m4/stdarg.m4: New file, from GNU gettext.
9971 2006-05-08 Bruno Haible <bruno@clisp.org>
9973 * config/srclist.txt (build-aux/config.rpath): different from latest
9976 2006-05-08 Bruno Haible <bruno@clisp.org>
9978 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
9980 2006-05-05 Jim Meyering <jim@meyering.net>
9982 * m4/warning.m4: New file, derived from bison's file by the same name.
9984 2006-05-03 Bruno Haible <bruno@clisp.org>
9986 * lib/stdint_.h: Shorter URL.
9987 * lib/inttypes.h: Likewise.
9989 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
9991 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
9993 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
9995 * lib/verify.h: Document the internals better. Most of this change
9996 was written by Bruno Haible.
9998 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
10000 * doc/verify.texi: New file, partly based on a proposal by
10003 2006-05-02 Bruno Haible <bruno@clisp.org>
10005 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
10007 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
10009 2006-04-29 Bruno Haible <bruno@clisp.org>
10011 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
10012 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
10014 2006-04-29 Bruno Haible <bruno@clisp.org>
10016 * gnulib-tool: Make --update option actually work.
10018 2006-04-29 Bruno Haible <bruno@clisp.org>
10020 * doc/gcd.texi: New file.
10021 * doc/gnulib.texi: Include it.
10023 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
10025 * lib/getdate.y (get_date): When adding relative date, start with the
10026 initial time, not with the result of the first mktime call.
10028 2006-04-25 Bruno Haible <bruno@clisp.org>
10030 * gnulib-tool (func_import): Output the include directives in three
10031 blocks, sorted separately.
10032 Reported by Ben Pfaff <blp@cs.stanford.edu>.
10034 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
10036 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
10037 to define main with arguments, for C++. Reported by Eric Blake.
10038 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
10039 Prefer 'int main ()' to 'int main (void)', for C++.
10040 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10041 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
10042 for 'main', for C99 and C++.
10044 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
10046 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
10047 Don't assume that exit status -1 is valid.
10048 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10049 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10050 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
10051 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
10052 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
10053 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
10054 not AC_TRY_RUN. Use return, not exit. Don't assume that
10055 functions can be used without declaring them, or that you can
10056 exit with status -1.
10057 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
10059 2006-04-24 Karl Berry <karl@gnu.org>
10061 * config/srclist.txt (longdouble.m4): sync lost.
10063 2006-04-24 Eric Blake <ebb9@byu.net>
10065 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
10067 2006-04-24 Bruno Haible <bruno@clisp.org>
10069 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
10070 poll() implementation in AIX.
10071 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10073 2006-04-24 Bruno Haible <bruno@clisp.org>
10075 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
10076 assigned exactly once.
10078 2006-04-23 Claudio Fontana <claudio@gnu.org>
10079 Bruno Haible <bruno@clisp.org>
10081 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
10082 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
10085 2006-04-23 Bruno Haible <bruno@clisp.org>
10087 * modules/copy-file: Depend on unistd.
10088 * modules/execute: Likewise.
10089 * modules/fatal-signal: Likewise.
10090 * modules/findprog: Likewise.
10091 * modules/mkdtemp : Likewise.
10092 * modules/pipe: Likewise.
10093 * modules/wait-process: Likewise.
10095 2006-04-23 Bruno Haible <bruno@clisp.org>
10097 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
10098 condition was already detected.
10099 Reported by Ben Pfaff <blp@cs.stanford.edu>.
10101 2006-04-23 Bruno Haible <bruno@clisp.org>
10103 * lib/copy-file.c: Include <unistd.h> unconditionally.
10104 * lib/execute.c: Likewise.
10105 * lib/fatal-signal.c: Likewise.
10106 * lib/findprog.c: Likewise.
10107 * lib/mkdtemp.c: Likewise.
10108 * lib/pipe.h: Likewise.
10109 * lib/pipe.c: Likewise.
10110 * lib/wait-process.h: Likewise.
10112 2006-04-23 Bruno Haible <bruno@clisp.org>
10114 * gnulib-tool (func_usage): Fix --import description. Document
10116 (func_import): Create temporary file in a temporary directory, if
10117 --dry-run is specified. Silence errors from 'grep' when there are no
10118 m4 files in $m4dir.
10119 (func_create_testdir): Silence errors from 'grep' when there are no
10120 m4 files in $m4dir.
10121 Reported by Karl Berry <karl@freefriends.org>.
10123 2006-04-20 Bruno Haible <bruno@clisp.org>
10125 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
10126 one argument, so that the code will be portable to Autoconf 2.60.
10127 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
10128 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10129 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
10131 2006-04-19 Derek Price <derek@ximbiot.com>
10132 Eric Blake <ebb9@byu.net>
10134 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
10135 rather than "/full/path.h". Update comment to match. Shorten &
10136 generalize m4_translit call via AS_TR_CPP.
10138 2006-04-19 Derek Price <derek@ximbiot.com>
10139 Eric Blake <ebb9@byu.net>
10141 * lib/inttypes.h: Correct grammar in comment.
10143 2006-04-18 Derek Price <derek@ximbiot.com>
10144 Paul Eggert <eggert@cs.ucla.edu>
10146 * modules/inttypes: New file.
10147 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
10149 2006-04-18 Derek Price <derek@ximbiot.com>
10150 Paul Eggert <eggert@cs.ucla.edu>
10152 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
10155 2006-04-18 Derek Price <derek@ximbiot.com>
10156 Paul Eggert <eggert@cs.ucla.edu>
10158 * lib/inttypes.h: New file.
10159 * lib/strtoimax.c: Assume <inttypes.h>.
10161 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
10163 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
10164 isn't mounted. Problem reported by Kir Kolyshkin.
10166 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
10168 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
10169 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
10171 * lib/regex.h (RE_DUP_MAX): Update comment to match current
10174 2006-04-12 Eric Blake <ebb9@byu.net>
10176 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
10177 is now done automatically by the corresponding Autoconf macro.
10179 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
10181 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
10184 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
10186 Merge regex changes from libc, removing some of our
10187 POSIX-conformance changes that were rejected and redoing them in a
10188 less-intrusive way.
10190 * lib/regcomp.c (re_compile_internal, init_dfa):
10191 Length arg is now size_t, not Idx. All uses changed.
10192 (peek_token): Forward decl now says internal_function.
10193 (__re_error_msgid, __re_error_msgid_idx):
10194 Now static rather than extern with attribute_hidden.
10195 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
10196 For some reason libc prefers K&R style defns for external functions.
10197 (regerror) [!defined _LIBC]: Likewise.
10198 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
10199 (seek_collating_symbol_entry, lookup_collation_sequence_value):
10200 (build_range_exp, build_collating_symbol):
10201 Use K&R-style defn.
10202 (re_compile_fastmap): Use '\0' to memset, not 0.
10203 (utf8_sb_map): Make the calculations more obvious.
10204 (init_dfa, parse_bracket_exp, build_charclass_op):
10205 Call calloc and cast result, as glibc does.
10206 (init_word_char, fetch_token, peek_token, peek_token_bracket):
10207 (build_range_exp, build_collating_symbol):
10208 Now internal functions.
10210 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
10212 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
10213 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
10214 Don't depend on VMS; depend on __VMS instead, for POSIX
10215 namespace cleanness.
10216 (regoff_t): Define to ssize_t, not long int.
10218 Remove the REG_ macros named below. Instead, make the old names
10219 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
10221 (REG_BACKSLASH_ESCAPE_IN_LISTS):
10222 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
10223 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
10224 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
10225 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
10226 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
10227 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
10228 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
10229 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
10230 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
10231 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
10232 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
10233 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
10234 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
10235 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
10236 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
10237 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
10239 Remove. All uses replaced by the old RE_* names.
10240 (RE_BACKSLASH_ESCAPE_IN_LISTS):
10241 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
10242 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
10243 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
10244 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
10245 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
10246 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
10247 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
10248 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
10249 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
10250 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
10251 Don't bother having these macros be independent of each others'
10252 values, since they no longer exist in the POSIX name space.
10254 Rename the following member names back to their old names,
10255 unless !__USE_GNU_REGEX. All uses changed back.
10256 (buffer): Renamed from re_buffer.
10257 (allocated): Renamed from re_allocated.
10258 (used): Renamed from re_used.
10259 (syntax): Renamed from re_syntax.
10260 (fastmap): Renamed from re_fastmap.
10261 (translate): Renamed from re_translate.
10262 (can_be_null): Renamed from re_can_be_null.
10263 (regs_allocated): Renamed from re_regs_allocated.
10264 (fastmap_accurate): Renamed from re_fastmap_accurate.
10265 (no_sub): Renamed from re_no_sub.
10266 (not_bol): Renamed from re_not_bol.
10267 (not_eol): Renamed from re_not_eol.
10268 (newline_anchor): Renamed from re_newline_anchor.
10269 (num_regs): Renamed from rm_num_regs.
10270 (start): Renamed from rm_start.
10271 (end): Renamed from rm_end.
10273 (free_state): Move up a bit.
10275 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
10276 #define to be empty.
10277 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
10278 when that is what is intended.
10279 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
10280 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
10282 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
10283 All uses changed back to re_malloc, etc. It's now the caller's
10284 responsibility to check for overflow; all callers changed.
10285 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
10286 (re_x2nrealloc): Remove.
10287 (free_state): Remove decl.
10289 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
10290 (re_set_registers, re_exec):
10291 Use K&R-style defn.
10293 2006-01-31 Roland McGrath <roland@redhat.com>
10295 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
10296 Reported by Mike Frysinger <vapier@gentoo.org>.
10298 2006-01-15 Andreas Jaeger <aj@suse.de>
10301 * lib/regex_internal.c (re_string_reconstruct): Adjust for
10302 build_wcs_upper_buffer change.
10303 (build_wcs_upper_buffer): Change return type.
10305 2005-12-10 Ulrich Drepper <drepper@redhat.com>
10307 * lib/regex_internal.h: Include <stdint.h> if available.
10309 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
10311 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
10313 2005-10-14 Ulrich Drepper <drepper@redhat.com>
10315 * lib/regcomp.c: Adjust for changed secondary hash function.
10317 2005-09-30 Ulrich Drepper <drepper@redhat.com>
10319 * lib/regex.h: Pretty printing.
10320 Clean up namespace a bit.
10322 2005-09-30 Jakub Jelinek <jakub@redhat.com>
10324 * lib/regexec.c (update_cur_sifted_state, check_arrival,
10325 check_arrival_add_next_nodes): Avoid using uninitialized variable.
10327 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
10328 Ulrich Drepper <drepper@redhat.com>
10331 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
10333 (bitset_word_t): Renamed from bitset_word. All uses changed.
10335 2005-09-22 Ulrich Drepper <drepper@redhat.com>
10338 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
10339 * lib/regcomp.c: Remove unnecessary uses of
10340 unsigned RE_TRANSLATE_TYPE.
10341 * lib/regex_internal.h: Likewise.
10342 * lib/regex_internal.c: Likewise.
10343 * lib/regexec.c: Likewise.
10344 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
10346 2005-09-07 Ulrich Drepper <drepper@redhat.com>
10348 * lib/regexec.c (find_recover_state): Remove unnecessary
10350 (transit_state_bkref): Make DFA a const pointer.
10351 (get_subexp): Likewise.
10352 (check_arrival): Likewise.
10353 (update_cur_sifted_state): Likewise.
10354 (re_search_internal): Likewise.
10355 (prune_impossible_nodes): Likewise.
10356 (acquire_init_state_context): Likewise.
10357 (proceed_next_node): Likewise.
10358 (set_regs): Likewise.
10359 (free_fail_stack_return): Likewise.
10360 (check_arrival_expand_ecl): Mark DFA parameter as const.
10361 (check_arrival_expand_ecl_sub): Likewise.
10362 (check_subexp_limits): Likewise.
10363 (sub_epsilon_src_nodes): Likewise.
10364 (add_epsilon_src_nodes): Likewise.
10365 (merge_state_array): Likewise.
10366 (update_regs): Likewise.
10367 (build_trtable): Likewise.
10368 (sift_states_backward): Mark MCTX parameter as const.
10369 (build_sifted_states): Likewise.
10370 (update_cur_sifted_state): Likewise.
10371 (sift_states_mkref): Likewise.
10372 (check_arrival_expand_ecl): Mark eclosure as const.
10373 (check_dst_limits_calc_pos_1): Likewise.
10374 * lib/regex_internal.h (re_match_context_t): Make dfa a const
10377 2005-09-06 Ulrich Drepper <drepper@redhat.com>
10379 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
10380 (transit_state_sb): Likewise.
10381 (transit_state_mb): Likewise.
10382 (sift_states_iter_mb): Likewise.
10383 (check_arrival_add_next_nodes): Likewise.
10384 (check_node_accept_bytes): Change first parameter to pointer-to-const.
10385 [_LIBC] (re_search_2_stub): Use mempcpy.
10387 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
10388 mbrtowc for very simple UTF-8 case.
10390 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
10391 a pointer-to-const.
10392 (re_acquire_state_context): Likewise.
10393 * lib/regex_internal.h: Adjust prototypes.
10395 * lib/regex.c: Prevent using C++ compilers.
10397 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
10398 (re_acquire_state_context): Likewise.
10400 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
10402 * modules/regex (Depends-on): Add ssize_t.
10404 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
10406 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
10409 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
10411 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
10413 2006-03-29 Mark D. Baushke <mdb@gnu.org>
10414 Bruno Haible <bruno@clisp.org>
10416 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
10417 <sys/types.h> and <inttypes.h>.
10419 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10421 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
10422 `__error_t_defined', so argp.h will not typedef the former.
10424 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
10426 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
10427 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
10428 glibc names. Even if glibc is changed to conform to POSIX, the
10429 traditional names will be available anyway, since regex depends on
10430 the extensions module. Also, fix a longstanding typo in the
10431 implementation of Spencer ERE test #75 from grep 2.3. Problems
10432 reported by Emanuele Giaquinta. Also, change sense of cached
10433 variable, so that the message makes sense.
10435 2006-03-24 Simon Josefsson <jas@extundo.com>
10437 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
10438 including some doc fixes.
10439 (base64_encode_alloc): Fix +1 bug on allocation failures.
10441 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10443 * lib/base64.c (base64_encode): Do not read past end of array with
10444 unsanitized input on systems with CHAR_BIT > 8.
10446 2006-03-24 Eric Blake <ebb9@byu.net>
10448 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
10450 2006-03-22 Karl Berry <karl@gnu.org>
10452 * config/srclist.txt (*setenv.[ch]): get from coreutils.
10453 * config/srclistvars.sh (COREUTILS): new var.
10455 2006-03-17 Jim Meyering <jim@meyering.net>
10457 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
10458 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
10460 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
10462 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
10463 no longer needs it. Instead, check that regoff_t is as least
10464 as wide as ptrdiff_t.
10466 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
10467 so that our regex.h stays compatible with the installed regex.
10468 This is helpful for installers who configure --without-included-regex.
10469 Problem reported by Emanuele Giaquinta.
10471 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
10473 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
10474 Typedef to long int, not to off_, as POSIX will likely change
10477 2006-03-15 Eric Blake <ebb9@byu.net>
10479 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
10481 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
10483 * lib/argp-help.c (validate_uparams): Fix typo
10484 * lib/argp-parse.c (argp_default_options): Consistently begin help
10485 messages with a lowercase letter.
10487 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
10489 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
10490 overrun buffers and shouldn't be used (much as gets shouldn't be
10492 * lib/time_r.c (asctime_r, ctime_r): Likewise.
10494 2006-03-08 Simon Josefsson <jas@extundo.com>
10496 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
10497 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10499 2006-03-08 Simon Josefsson <jas@extundo.com>
10501 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
10502 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10504 2006-03-08 Simon Josefsson <jas@extundo.com>
10506 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
10507 signal that configure disabled the device.
10509 2006-03-08 Simon Josefsson <jas@extundo.com>
10511 * build-aux/maint.mk: Fix refresh-po, to handle no translated
10514 2006-03-07 Simon Josefsson <jas@extundo.com>
10516 * modules/getopt (Depends-on): Add unistd.
10518 * modules/unistd: New file.
10520 2006-03-07 Simon Josefsson <jas@extundo.com>
10522 * modules/gc-random: New file.
10524 2006-03-07 Simon Josefsson <jas@extundo.com>
10526 * m4/unistd_h.m4: New file.
10528 2006-03-07 Simon Josefsson <jas@extundo.com>
10530 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
10531 test to be side-effect free by storing the result in the cache
10532 variable gl_cv_lib_readline, and moving the assignment of
10533 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
10534 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10536 2006-03-07 Simon Josefsson <jas@extundo.com>
10538 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
10539 error on missing devices (the functions will return an error).
10541 * m4/gc.m4: Move random stuff to gc-random.m4
10543 2006-03-07 Simon Josefsson <jas@extundo.com>
10545 * lib/unistd_.h: New file.
10547 2006-03-07 Simon Josefsson <jas@extundo.com>
10549 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
10551 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
10553 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
10554 Problem reported by Juan Manuel Guerrero.
10556 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
10558 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
10560 * lib/getlogin_r.c: Likewise.
10561 * lib/getlogin_r.h: Likewise.
10562 * lib/glob.c: Likewise.
10563 * lib/pagealign_alloc.c: Likewise.
10564 * lib/unistd_.h: Remove; no longer needed.
10566 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
10568 * MODULES.html.sh (Support for systems lacking POSIX:2001):
10570 * modules/c-stack (Depends-on): Add unistd.
10571 * modules/getlogin_r: Likewise.
10572 * modules/glob: Likewise.
10573 * modules/pagealign_alloc: Likewise.
10574 * modules/unistd (Files): Remove lib/unistd_.h.
10575 (EXTRA_DIST): Remove.
10576 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
10578 (MOSTLYCLEANFILES): Remove unistd.h-t.
10580 2006-03-03 Simon Josefsson <jas@extundo.com>
10582 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
10584 2006-03-03 Simon Josefsson <jas@extundo.com>
10586 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
10589 2006-03-03 Simon Josefsson <jas@extundo.com>
10591 * build-aux/maint.mk: Add indent target.
10593 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
10595 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
10596 our replacement poll.h in any case, to avoid a differing
10597 declaration from a system header. Seen on AIX.
10599 2006-03-01 Simon Josefsson <jas@extundo.com>
10601 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
10604 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
10606 * modules/gettime (Depends-on): Add extensions module.
10607 * modules/nanosleep (Depends-on): Likewise.
10608 * modules/settime (Depends-on): Likewise.
10610 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
10612 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
10613 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
10615 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10616 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
10618 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
10619 not "==". Reported by Ralf Wildenhues.
10621 2006-03-01 Karl Berry <karl@gnu.org>
10623 * doc/Copyright/request-*: new files, synced from gnuorg.
10625 2006-03-01 Karl Berry <karl@gnu.org>
10627 * config/srclist.txt (Copyright/*): new entries.
10629 2006-02-28 Simon Josefsson <jas@extundo.com>
10631 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
10633 2006-02-27 Simon Josefsson <jas@extundo.com>
10635 * lib/base64.h: Indent #define's. From Jim Meyering
10636 <jim@meyering.net>.
10638 2006-02-27 Jim Meyering <jim@meyering.net>
10640 Revert the change of 2006-02-24, so these files can continue
10641 to be sync'd from gettext.
10642 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
10645 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
10647 * modules/intprops: New file.
10648 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
10650 * modules/getloadavg (Files): Remove lib/intprops.h.
10651 (Depends-on): Add intprops.
10652 * modules/human: Likewise.
10653 * modules/inttostr: Likewise.
10654 * modules/openat: Likewise.
10655 * modules/sig2str: Likewise.
10656 * modules/userspec: Likewise.
10657 * modules/utimecmp: Likewise.
10658 * modules/xnanosleep: Likewise.
10659 * modules/xstrtol: Likewise.
10661 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
10663 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
10664 * modules/lock-tests (TESTS): Use $(EXEEXT).
10665 * modules/tls-tests: Likewise.
10666 * modules/argp-tests: Likewise.
10667 (check_PROGRAMS): New var, replacing...
10668 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
10670 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10672 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
10675 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
10677 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
10679 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10681 Sync from coreutils.
10682 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
10685 2006-02-22 Jim Meyering <jim@meyering.net>
10687 Sync from coreutils.
10688 * m4/chdir-safer.m4: New file.
10690 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
10692 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
10693 AT_FDCWD exceeds INT_MAX.
10694 * lib/openat.h (AT_FDCWD): Likewise.
10696 2006-02-17 Eric Blake <address@hidden>
10698 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
10700 2006-02-16 Simon Josefsson <jas@extundo.com>
10702 * modules/getaddrinfo (Depends-on): Add sys_socket.
10704 2006-02-15 Simon Josefsson <jas@extundo.com>
10706 * build-aux/maint.mk: Add dsyntax-check rule.
10708 2006-02-15 Eric Blake <ebb9@byu.net>
10710 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
10711 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
10712 'present but cannot compile' warnings on cygwin.
10713 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
10714 use ws2tcpip.h if sys/socket.h works.
10715 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
10716 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
10718 2006-02-14 Simon Josefsson <jas@extundo.com>
10720 * modules/maintainer-makefile (Files): Rename.
10722 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
10723 and (the local) Makefile.cfg to maint-cfg.mk.
10725 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
10728 * modules/maintainer-makefile: New module.
10730 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
10731 severaly stripped to make it possible to build it up from scratch
10732 with reliable tests.
10734 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
10735 fixes to permit overriding the default actions when configure and
10736 makefile are not available.
10738 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
10740 Sync from coreutils.
10741 * modules/lstat (Depends-on): Don't depend on xalloc.
10742 (License): Change from GPL to LGPL, since this is now simply a
10743 replacement for a libc function.
10745 2006-02-14 Jim Meyering <jim@meyering.net>
10747 Sync from coreutils.
10749 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
10750 failure on deficient systems, and simplify gnulib lgpl dependencies.
10751 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
10752 xmalloc/lstat combination. Based on a patch from Bruno Haible.
10754 * lib/xalloc-die.c: Remove unused definition of N_.
10756 2006-02-14 Jim Meyering <jim@meyering.net>
10758 Sync from coreutils.
10759 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
10760 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
10761 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
10762 double-quote uses of that variable, to accommodate the rare case in
10763 which getmntent is available in none of the libraries checked. This
10764 happens at least on FreeBSD 5.0.
10766 2006-02-13 Simon Josefsson <jas@extundo.com>
10768 * gnulib-tool (Usage): Fix --import, from
10769 karl@freefriends.org (Karl Berry).
10771 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
10773 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
10775 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
10777 * lib/argp-namefrob.h: Restore changes accidentally lost during the
10778 "autoupdate" on 2005-12-12.
10780 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
10782 * modules/closeout (Depends-on): Remove atexit.
10784 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
10786 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
10787 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
10789 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
10791 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
10792 __EXTENSIONS__ if this causes compilation to fail. Problem
10793 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
10794 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
10796 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
10798 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
10799 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
10800 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
10803 2006-01-26 Simon Josefsson <jas@extundo.com>
10805 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
10806 prototype is visible on mingw32.
10808 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
10811 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
10814 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
10816 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
10817 attempt to open for write; this always fails, at least on POSIX
10818 hosts. This reinstates the 2006-01-09 change, which was
10819 inadvertently removed.
10821 2006-01-26 Bruno Haible <bruno@clisp.org>
10823 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
10824 Reported by Paul Eggert.
10826 2006-01-26 Bruno Haible <bruno@clisp.org>
10827 Paul Eggert <eggert@cs.ucla.edu>
10829 * lib/stdbool_.h (_Bool)
10830 [(! (defined __cplusplus || defined __BEOS__)
10831 && !defined __GNUC__
10832 && !(defined __HP_cc || defined __xlc__
10833 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
10834 || defined __sgi))]:
10835 #define to signed char in these cases too; this simplifies
10836 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
10837 etc., separately) and makes it more conservative.
10839 2006-01-25 Simon Josefsson <jas@extundo.com>
10841 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
10842 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
10843 ws2tcpip.h with WINVER=0x0501. All for mingw32.
10845 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
10847 * lib/argp-namefrob.h: Bugfix. Remove stray #
10849 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
10851 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
10852 so that we test the test.
10853 Check for yet another HP-UX cc bug involving *bool |= bool.
10855 2006-01-25 Karl Berry <karl@gnu.org>
10857 * config/srclist.txt (vasnprintf.c): sync lost.
10859 2006-01-25 Jim Meyering <jim@meyering.net>
10861 Sync from the stable (b5) branch of coreutils:
10863 * lib/fts.c (fts_children): Don't let close() clobber errno from
10866 * lib/fts.c (fts_stat): When following a symlink-to-directory,
10867 don't necessarily interpret stat-fails+lstat-succeeds as indicating
10868 a dangling symlink. That can also happen at least for ELOOP.
10869 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
10870 FYI, this bug predates the inclusion of fts.c in coreutils.
10872 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
10873 in their own block, so pre-c99 compilers don't object.
10875 Avoid the double-free (first in fts_read, second in fts_close) that
10876 would occur when an `active' directory is made inaccessible (e.g.,
10877 via chmod a-x) during a traversal.
10878 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
10879 before returning. Reproduce this failure by
10880 mkdir -p a/b; cd a; chmod a-x . b
10881 Reported by Stavros Passas.
10883 2006-01-25 Jim Meyering <jim@meyering.net>
10885 * lib/fileblocks.c: Remove more useless parentheses.
10886 * lib/readutmp.h: Likewise.
10888 2006-01-25 Bruno Haible <bruno@clisp.org>
10890 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
10892 Reported by Paul Eggert.
10894 2006-01-25 Bruno Haible <bruno@clisp.org>
10896 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
10897 rid of a trap command. For Solaris sh.
10898 Reported by Mark D. Baushke <mdb@gnu.org>.
10900 2006-01-24 Simon Josefsson <jas@extundo.com>
10902 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
10905 2006-01-24 Karl Berry <karl@gnu.org>
10907 * config/srclist.txt (argp-namefrob.h): sync lost.
10909 2006-01-24 Jim Meyering <jim@meyering.net>
10911 * modules/openat (Files): Add lib/intprops.h.
10912 From Mark D. Baushke.
10914 2006-01-24 Jim Meyering <jim@meyering.net>
10916 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
10917 Reported by Mark D. Baushke.
10919 2006-01-24 Jim Meyering <jim@meyering.net>
10921 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
10923 2006-01-24 Bruno Haible <bruno@clisp.org>
10925 * modules/strnlen (Maintainer): Change from glibc to all.
10927 2006-01-24 Bruno Haible <bruno@clisp.org>
10929 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
10930 Patch by Paul Eggert.
10932 2006-01-24 Bruno Haible <bruno@clisp.org>
10934 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
10936 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
10939 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
10940 'signed char' to avoid problems with the built-in _Bool type.
10941 Reported by Paul Eggert on 2005-11-26.
10943 2006-01-24 Bruno Haible <bruno@clisp.org>
10945 * gnulib-tool (func_import): Avoid constructing complicated sed
10946 expressions inside backquote.
10947 Report and solution by Mark D. Baushke <mdb@gnu.org>.
10949 2006-01-23 Ulrich Drepper <drepper@redhat.com>
10951 These changes imported from libc.
10952 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
10953 test and two separate function calls.
10954 * lib/strndup.c (__strndup): Add libc_hidden_def.
10956 2006-01-23 Simon Josefsson <jas@extundo.com>
10958 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
10959 Remove the test_*_SOURCES variable: automake infers it by default.
10960 * modules/tls-tests: Likewise.
10962 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
10964 Work around porting bugs reported by Dieter in
10965 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
10966 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
10967 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
10968 Include "getopt.h" first, to check interface.
10969 (getenv): Declare only if defined HAVE_DECL_GETENV &&
10971 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
10972 (__strndup): Revert to K&R-style function dfns, the glibc style.
10973 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
10974 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
10975 Include strnlen.h first, to get prototype properly.
10976 (strnlen): Renamed from __strnlen.
10979 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
10981 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
10983 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
10985 * config/srclist.txt: Adjust to reflect glibc reorganization.
10986 This affects only comments.
10988 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
10990 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
10991 Reported by Bruce Korb <bkorb@gnu.org>.
10993 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
10995 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
10996 to pacify gcc -Wswitch-default.
10998 2006-01-22 Bruno Haible <bruno@clisp.org>
11000 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
11001 temporary buffer for sprintf, take into account the precision also
11002 for 'd', 'i', 'u', 'o', 'x', 'X'.
11004 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
11006 * modules/argp-tests: New module
11007 * tests/test-argp.c: New file
11008 * tests/test-argp-2.sh: New file
11010 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
11012 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
11013 (__argp_base_name): Removed
11014 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
11016 (__argp_base_name): Provide macro definition or extern declaration
11017 depending on the configuration
11019 2006-01-20 Simon Josefsson <jas@extundo.com>
11021 * modules/inet_ntop (Depends-on): Depend on sys_socket.
11023 2006-01-20 Simon Josefsson <jas@extundo.com>
11025 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
11027 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
11029 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
11030 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
11031 Suggested by Bruno Haible.
11033 2006-01-20 Karl Berry <karl@gnu.org>
11035 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
11036 until changes propagate, I guess.
11038 2006-01-19 Simon Josefsson <jas@extundo.com>
11040 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
11042 2006-01-19 Simon Josefsson <jas@extundo.com>
11044 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
11046 2006-01-19 Simon Josefsson <jas@extundo.com>
11048 * gnulib-tool: Set check_PROGRAMS.
11050 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
11051 modules/des-tests, modules/gc-arcfour-tests,
11052 modules/gc-arctwo-tests, modules/gc-des-tests,
11053 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
11054 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
11055 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
11056 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
11057 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
11058 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
11059 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
11062 2006-01-18 Simon Josefsson <jas@extundo.com>
11064 * modules/socklen (Depends-on): Depend on sys_socket.
11066 2006-01-18 Simon Josefsson <jas@extundo.com>
11068 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
11069 modules/des-tests, modules/gc-arcfour-tests,
11070 modules/gc-arctwo-tests, modules/gc-des-tests,
11071 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
11072 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
11073 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
11074 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
11075 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
11076 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
11077 $(EXEEXT) to automake TESTS variable, for mingw32.
11079 2006-01-17 Simon Josefsson <jas@extundo.com>
11081 * modules/socklen (Include): Need sys/socket.h.
11083 2006-01-17 Bruno Haible <bruno@clisp.org>
11085 * modules/ssize_t (Include): Add <sys/types.h>.
11087 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
11089 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
11090 it's not portable and it doesn't work with cross-compiles.
11091 Problem reported by Bruno Haible. Fix missing-$ typo in
11092 'test "gl_cv_ignore_unused_libraries" ...' that prevented
11093 -zignore from being used with Sun's C compiler.
11095 2006-01-12 Simon Josefsson <jas@extundo.com>
11097 * lib/base64.c: Fix warning, reported by Bruno Haible
11098 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
11100 2006-01-12 Bruno Haible <bruno@clisp.org>
11102 * modules/ldd: New file.
11103 * build-aux/ldd.sh.in: New file.
11104 * MODULES.html.sh (Support for building libraries and executables): Add
11107 2006-01-12 Bruno Haible <bruno@clisp.org>
11109 * m4/ldd.m4: New file.
11111 2006-01-12 Bruno Haible <bruno@clisp.org>
11113 * gnulib-tool (func_import, func_create_testdir): Don't go into an
11114 endless loop while replacing $auxdir with build-aux.
11116 2006-01-11 Simon Josefsson <jas@extundo.com>
11118 * lib/stdint_.h (SIZE_MAX): Add missing (.
11120 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
11122 Sync from coreutils.
11123 * lib/md5.c: Fix commentary typos.
11124 (alignof, UNALIGNED_P): No need for a GCC-specific version.
11125 * lib/md5.h (__attribute__): Remove; unused.
11126 * lib/sha1.c: Fix commentary to match md5 better.
11127 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
11128 so that we don't need to worry about alignment. All uses changed.
11129 This merges the 2005-10-28 md5 change into sha1.
11131 2006-01-11 Jim Meyering <jim@meyering.net>
11133 Sync from coreutils.
11134 * lib/md5.c (OP): Fix spacing.
11136 2006-01-11 Bruno Haible <bruno@clisp.org>
11138 Ensure automatic ordering between gl_LOCK and gl_ARGP.
11139 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
11140 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
11142 2006-01-11 Bruno Haible <bruno@clisp.org>
11144 Ensure automatic ordering between gl_LOCK and gl_ARGP.
11145 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
11146 the "early" section as well.
11148 2006-01-11 Bruno Haible <bruno@clisp.org>
11150 Avoid "ar: no archive members specified" error on MacOS X.
11151 * gnulib-tool (func_modules_add_dummy): New function.
11152 (func_import, func_create_testdir): Invoke it.
11154 2006-01-11 Bruno Haible <bruno@clisp.org>
11156 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
11157 with $auxdir in AC_CONFIG_FILES statements.
11159 2006-01-11 Bruno Haible <bruno@clisp.org>
11161 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11162 Initialize also noinst_HEADERS to empty.
11164 2006-01-11 Bruno Haible <bruno@clisp.org>
11166 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
11168 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
11171 2006-01-11 Bruno Haible <bruno@clisp.org>
11173 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
11174 overridable by the user.
11175 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11177 2006-01-10 Simon Josefsson <jas@extundo.com>
11179 * modules/sys_socket: New file.
11181 2006-01-10 Simon Josefsson <jas@extundo.com>
11183 * m4/sys_socket_h.m4: New file.
11185 2006-01-10 Simon Josefsson <jas@extundo.com>
11187 * lib/socket_.h: New file.
11189 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
11191 * modules/readutmp (Maintainer): Add myself.
11193 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
11195 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
11196 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
11197 People who are still concerned with buggy memcmp implementations
11198 can invoke gl_FUNC_MEMCMP themselves.
11200 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
11202 * lib/regex_internal.h (BITSET_WORD_BITS):
11203 Work around a bug in 64-bit PGC (before version 6.1-2), where the
11204 preprocessor mishandles large unsigned values as if they were signed.
11205 Problem reported by Claudio Fontana in
11206 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
11208 2006-01-10 Jim Meyering <jim@meyering.net>
11210 Avoid the double-free (first in fts_read, second in fts_close) that
11211 would occur when an `active' directory is made inaccessible (e.g.,
11212 via chmod a-x) during a traversal.
11213 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
11214 before returning. Reproduce this failure by
11215 mkdir -p a/b; cd a; chmod a-x . b
11216 Reported by Stavros Passas.
11218 Sync from coreutils.
11219 * lib/sha1.c: Tweak grammar in a comment.
11221 2006-01-10 Jim Meyering <jim@meyering.net>
11223 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
11224 Patch by Joerg Sonnenberger.
11226 2006-01-10 Bruno Haible <bruno@clisp.org>
11228 * modules/readutmp: Depend on module free.
11229 * modules/strtok_r: Depend on module restrict.
11231 2006-01-10 Bruno Haible <bruno@clisp.org>
11233 * modules/gettext (configure.ac): Add an invocation of
11234 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
11236 2006-01-10 Bruno Haible <bruno@clisp.org>
11238 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
11239 Reported by Werner Lemberg <wl@gnu.org>.
11241 2006-01-10 Bruno Haible <bruno@clisp.org>
11243 * lib/localcharset.c: Update from GNU gettext.
11245 2006-01-10 Bruno Haible <bruno@clisp.org>
11247 * lib/argp.h (__const): Remove macro. Use const instead.
11248 * lib/argp-fmtstream.h (__const): Likewise.
11249 * lib/glob_.h (__const): Remove macro.
11250 * lib/glob-libc.h: Use const instead of __const.
11252 2006-01-10 Bruno Haible <bruno@clisp.org>
11254 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
11256 Needed to avoid an automake error regarding the 'gettext' module.
11258 2006-01-09 Simon Josefsson <jas@extundo.com>
11260 * modules/inet_ntop (Depends-on): Add restrict.
11262 2006-01-09 Simon Josefsson <jas@extundo.com>
11264 * modules/gc-rijndael-tests (License): Put under LGPL.
11266 * modules/gc-des-tests (License): Likewise.
11268 * modules/gc-arcfour-tests (License): Likewise.
11270 * modules/gc-arctwo-tests (License): Likewise.
11272 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
11274 * modules/gc-hmac-sha1-tests (Files): Likewise.
11276 * modules/gc-hmac-md5-tests (License): Likewise.
11278 * modules/gc-sha1-tests (License): Likewise.
11280 * modules/gc-md5-tests (License): Likewise.
11282 * modules/gc-md4-tests (License): Likewise.
11284 * modules/gc-md2-tests (License): Likewise.
11286 * modules/gc-tests (License): Likewise.
11288 * modules/des-tests (License): Likewise.
11290 * modules/md4-tests (License): Likewise.
11292 * modules/md2-tests (License): Likewise.
11294 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
11296 Sync from coreutils:
11298 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
11299 * modules/lib-ignore: New file.
11300 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
11301 chdir-safer.m4, lchmod.m4.
11302 * modules/openat: Add mkdirat.c, openat-priv.h.
11304 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
11306 Sync from coreutils.
11307 * m4/lib-ignore.m4: New file.
11308 * m4/lchmod.m4: New file.
11310 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
11312 Sync from coreutils.
11313 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
11314 for write access: POSIX says that must fail.
11315 * lib/fts.c (diropen): Likewise.
11316 * lib/save-cwd.c (save_cwd): Likewise.
11317 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
11318 well, for minor improvements on hosts that lack O_DIRECTORY.
11319 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
11320 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
11321 Fall back on chown if open failed with EACCES.
11323 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
11324 Report an error at compile-time if only a 1-second nominal clock
11325 resolution is found.
11327 * lib/lchmod.h: New file.
11328 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
11329 (make_dir_parents): Use lchown rather than chown, and
11330 lchmod rather than chmod.
11332 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
11333 dummies too. Problem with "none" reported by Bob Proulx. Problem with
11334 "proc" reported by n0dalus.
11336 * lib/mountlist.c: Include <limits.h>.
11337 (dev_from_mount_options)
11338 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
11339 New function. It no longer assumes "dev=" has the System V meaning
11340 on Linux (since it doesn't). It also parses "dev=" more carefully.
11341 (read_file_system_list)
11342 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
11343 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
11346 * lib/posixtm.h (PDS_PRE_2000): New macro.
11347 * lib/posixtm.c (year): Arg is now syntax_bits rather than
11348 allow_century. All usages changed. Reject dates outside the range
11349 1969-1999 if PDS_PRE_2000 is used.
11351 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
11353 Sync from coreutils.
11354 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
11355 (Time of day items): Mention the possibility of leap seconds.
11356 Problem reported by Dr. David Alan Gilbert.
11358 2006-01-09 Jim Meyering <jim@meyering.net>
11360 Sync from coreutils.
11362 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
11364 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
11366 * lib/modechange.c (mode_compile): Reject an invalid mode string
11367 that starts with an octal digit. From Andreas Gruenbacher.
11369 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
11370 and dup to open_safer and dup_safer, respectively.
11371 (openat_permissive): Fix typo in comment.
11373 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
11374 "gettext.h"; either no longer needed or are guaranteed by openat.h.
11375 (_): Remove; no longer needed.
11376 (openat): Renamed from rpl_openat; no need for rpl_openat
11377 since openat.h renames openat for us.
11378 Replace most of the body with a call to openat_permissive,
11379 to avoid duplicate code.
11380 Port to (probably hypothetical) environments were mode_t is
11382 (openat_permissive): Require mode arg, so that we can check
11383 types better. Put it just after flags. Change cwd failure
11384 indicator from pointer-to-bool to pointer-to-errno-value.
11385 All callers changed.
11386 Invoke openat_save_fail and/or openat_restore_fail if
11387 cwd_errno is null, so that openat can call us.
11388 (openat_permissive, fdopendir, fstatat, unlinkat):
11389 Simplify errno handling to avoid some duplicate code,
11390 as it's OK to set errno on success.
11391 * lib/openat.h: Revamp code so that function macros depend on
11392 __OPENAT_PREFIX only, not also on AT_FDCWD.
11393 (openat_ro): Remove. Caller changed to use openat_permissive.
11394 (openat_permissive): Now a macro, if not a function.
11395 (openat_restore_fail, openat_save_fail): Now always functions,
11396 since mkdirat needs them even if __OPENAT_PREFIX is defined.
11398 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
11400 * lib/mkdirat.c: Include openat-priv.h.
11401 Remove definitions of macros defined therein.
11402 * lib/openat.c: Likewise.
11404 * lib/mkdirat.c (mkdirat): New file and function.
11405 * lib/openat.h (mkdirat): Declare.
11407 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
11409 * lib/openat.h (openat_permissive): Declare.
11410 (openat_ro): Define.
11412 * lib/openat.c (EXPECTED_ERRNO): New macro.
11413 (openat_permissive): New function -- used in remove.c rewrite.
11414 (all functions): Set errno just before returning, only if there
11415 was an actual failure.
11416 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
11418 Emulate openat-family functions using Linux's procfs, if possible.
11419 Idea and some code based on Ulrich Drepper's glibc changes.
11421 * lib/openat.c: (BUILD_PROC_NAME): New macro.
11422 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
11423 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
11424 before falling back on save_cwd and restore_cwd.
11425 (fdopendir, fstatat, unlinkat): Likewise.
11427 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
11428 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
11430 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
11431 as second argument to va_arg. Otherwise, some versions of gcc
11432 warn that `if this code is reached, the program will abort'.
11434 2006-01-09 Jim Meyering <jim@meyering.net>
11436 Sync from coreutils.
11437 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
11438 Require openat-priv.h.
11440 2006-01-09 Bruno Haible <bruno@clisp.org>
11442 * modules/strnlen (Include): Use strnlen.h.
11444 2006-01-09 Bruno Haible <bruno@clisp.org>
11446 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
11448 2006-01-09 Bruno Haible <bruno@clisp.org>
11450 * lib/sysexit_.h (EX_OK): New macro.
11451 Suggested by Martin Lambers <marlam@marlam.de>.
11453 2006-01-09 Bruno Haible <bruno@clisp.org>
11455 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
11456 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
11458 2006-01-09 Bruno Haible <bruno@clisp.org>
11460 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
11463 2006-01-09 Bruno Haible <bruno@clisp.org>
11465 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
11466 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
11467 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
11468 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
11470 2006-01-09 Bruno Haible <bruno@clisp.org>
11472 * build-aux/javacomp.sh.in: New file, moved from lib/.
11473 * modules/javacomp-script (Files): Update.
11474 (configure.ac): Add AC_CONFIG_FILES invocation.
11475 (EXTRA_DIST): Remove variable.
11477 * build-aux/javaexec.sh.in: New file, moved from lib/.
11478 * modules/javaexec (Files): Update.
11479 (configure.ac): Add AC_CONFIG_FILES invocation.
11480 (EXTRA_DIST): Remove javaexec.sh.in.
11482 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
11483 * modules/csharpcomp-script (Files): Update.
11484 (configure.ac): Add AC_CONFIG_FILES invocation.
11485 (EXTRA_DIST): Remove variable.
11487 * build-aux/csharpexec.sh.in: New file, moved from lib/.
11488 * modules/csharpexec (Files): Update.
11489 (configure.ac): Add AC_CONFIG_FILES invocation.
11490 (EXTRA_DIST): Remove csharpexec.sh.in.
11492 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
11494 Sync from coreutils.
11496 Add POSIX ACL support
11497 * lib/acl.h (copy_acl, set_acl): Add declarations.
11498 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
11499 systems other than Linux.
11500 (chmod_or_fchmod): New function: use fchmod when possible,
11501 and chmod otherwise.
11502 (file_has_acl): Add a POSIX ACL implementation, with a
11503 Linux-specific subcase.
11504 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
11505 S_ISVTX from one file to another. Fall back to fchmod/chmod when
11506 acls are unsupported.
11507 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
11508 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
11511 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
11513 Sync from coreutils.
11514 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
11516 2006-01-07 Bruno Haible <bruno@clisp.org>
11518 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
11521 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
11523 * lib/strftime.c (tzname): Don't declare if it is already #defined.
11524 Problem reported for Mingw by Mark Junker.
11526 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
11528 * README: Gnulib normally doesn't generate a tarball.
11530 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
11532 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
11533 long int, not int, for nanosecond counts, so that people who are
11534 used to POSIX struct timespec won't be surprised. Reported by Jim
11537 2005-12-28 Bruno Haible <bruno@clisp.org>
11539 * build-aux/config.rpath: Update from GNU gettext.
11541 2005-12-16 Jim Meyering <jim@meyering.net>
11543 * modules/fprintftime: New module.
11544 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
11546 2005-12-16 Jim Meyering <jim@meyering.net>
11548 * m4/fprintftime.m4: New file.
11550 2005-12-16 Jim Meyering <jim@meyering.net>
11552 * lib/fprintftime.c, lib/fprintftime.h: New files.
11554 2005-12-15 Simon Josefsson <jas@extundo.com>
11556 * modules/socklen (configure.ac): Fix M4 macro name, to align with
11559 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
11561 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
11562 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
11564 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
11566 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
11567 * lib/argp-help.c (fill_in_uparams): Check if the constructed
11568 struct uparams is valid. Fall back to the default values if it is
11571 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
11573 * modules/argp (Files): Add argp-pin.c
11574 (Depends-on): dirname
11575 (lib_SOURCES): Add argp-pin.c
11577 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
11579 * m4/argp.m4: Check if program_invocation_name and
11580 program_invocation_short_name are declared and define appropriate
11581 macros if they are not.
11583 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
11585 * lib/argp-help.c (__argp_base_name): New function
11586 (__argp_short_program_name): Rewrite using __argp_base_name
11587 * lib/argp-namefrob.h: Define program_invocation_name and
11588 program_invocation_short_name if requested
11589 (__argp_base_name): Add prototype
11590 * lib/argp-parse.c (argp_def): Use gettext wrappers
11591 (argp_default_parser): Use __argp_base_name
11592 * lib/argp-pin.c: New file. Defines program_invocation_name and
11593 program_invocation_short_name on systems that lack them.
11595 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
11597 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
11598 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
11599 porting problem reported by Georg Schwarz in
11600 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
11602 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
11604 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
11605 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
11606 porting problem reported by Georg Schwarz in
11607 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
11609 2005-12-05 Bruno Haible <bruno@clisp.org>
11611 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
11612 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
11613 Reported by Mark Junker <mjscod@gmx.de>.
11615 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
11617 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
11618 Use implementation from Albert Chin, with some
11619 comments/corrections by Stepan Kasal and myself.
11621 2005-12-02 Bruno Haible <bruno@clisp.org>
11623 * gnulib-tool (func_import): Accept GPLed build tool modules when
11625 * modules/csharpcomp-script: New file.
11626 * modules/csharpcomp: Depend on it.
11627 * modules/javacomp-script: New file.
11628 * modules/javacomp: Depend on it.
11629 Suggested by Simon Josefsson.
11631 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
11633 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
11634 statement, to work around an HP-UX 10.20 compiler bug reported by
11637 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
11639 * modules/savedir (Depends-on): Add openat.
11641 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
11643 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
11644 (uintmax_t) [defined uintmax_t]: Do not declare.
11645 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
11646 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
11647 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
11648 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
11649 sake of portability to weird hosts that C allows (though we don't
11650 know of any practical examples).
11652 * lib/savedir.h (fdsavedir): New decl.
11653 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
11654 contains most of the former guts of savedir.
11655 (savedir): Use savedirstream.
11656 Include "openat.h".
11658 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
11660 * modules/obstack (Files): Add m4/ulonglong.m4.
11661 Problem reported by Davide Angelocola.
11663 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
11665 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
11666 coreutils no longer futzes with rounding modes.
11668 2005-11-14 Jim Meyering <jim@meyering.net>
11670 * lib/mkstemp-safer.c: Include <config.h>, required for possible
11671 replacement of mkstemp.
11673 2005-11-10 Simon Josefsson <jas@extundo.com>
11675 * lib/readline.c: Remove EOL.
11677 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
11679 * modules/gethrxtime (Depends-on): Add gettime.
11681 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
11683 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
11684 or gettimeofday; no longer needed.
11686 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
11688 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
11690 (gethrxtime) [! (HAVE_NANOUPTIME
11691 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
11692 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
11693 our own approximation.
11695 2005-11-08 Eric Blake <ebb9@byu.net>
11697 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
11699 2005-11-08 Eric Blake <ebb9@byu.net>
11701 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
11703 2005-11-04 Bruno Haible <bruno@clisp.org>
11705 * gnulib-tool: Implement --update mode.
11707 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
11709 Fix porting problem reported by Theodoros V. Kalamatianos.
11710 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
11711 Don't assume that futimes failing means we must fail.
11713 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
11715 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
11716 variables to suggest the intended function of the PATH_MAX check.
11718 2005-10-30 Kean Johnston <jkj@sco.com>
11720 Trivial changes to support SCO systems.
11721 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
11723 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
11724 where __ptr is null when no I/O is pending.
11726 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
11728 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
11729 leave errno alone. Problem reported by Dmitry V. Levin.
11731 2005-10-28 Simon Josefsson <jas@extundo.com>
11733 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
11736 * tests/test-gc-md2.c, tests/test-md2.c: New files.
11738 * modules/md2, modules/md2-tests: New files.
11740 2005-10-28 Simon Josefsson <jas@extundo.com>
11742 * m4/inet_ntop.m4: More tests.
11744 * m4/gc-md2.m4, md2.m4: New file.
11746 2005-10-28 Simon Josefsson <jas@extundo.com>
11748 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
11749 "restrict" keywords, as per POSIX. Protect the function
11750 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
11751 Don't use K&R prototypes. Check the sprintf return values.
11752 Re-define EAFNOSUPPORT if not present. Indent.
11754 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
11755 suggested by Bruno Haible <bruno@clisp.org>.
11757 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
11759 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
11761 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
11764 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
11766 * lib/md2.h, lib/md2.c: New files.
11768 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
11770 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
11771 errno alone. Problem reported by Frederic Jolliton.
11773 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
11775 * modules/verify (License): Change from GPL to LGPL. This is a
11776 tiny module and there are apparently near-equivalents that are
11777 under the BSD license.
11779 2005-10-24 Simon Josefsson <jas@extundo.com>
11781 * modules/sha1: Relicense to LGPL.
11783 2005-10-24 Simon Josefsson <jas@extundo.com>
11785 * lib/md4.h: Shrink buffer size, now that we changed the type.
11787 2005-10-23 Simon Josefsson <jas@extundo.com>
11789 * gnulib-tool (func_import): Fix --tests-base.
11791 2005-10-22 Simon Josefsson <jas@extundo.com>
11793 * modules/arcfour (Depends-on): Need stdint.
11795 2005-10-22 Simon Josefsson <jas@extundo.com>
11797 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
11798 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
11800 2005-10-22 Simon Josefsson <jas@extundo.com>
11802 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
11803 suggested by Bruno Haible <bruno@clisp.org>.
11805 2005-10-22 Simon Josefsson <jas@extundo.com>
11807 * lib/crc.h: Include stddef.h, for size_t.
11809 2005-10-22 Simon Josefsson <jas@extundo.com>
11811 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
11812 arcfour_context struct (simplify test vector testing in GNU
11815 2005-10-21 Simon Josefsson <jas@extundo.com>
11817 * modules/des, modules/des-tests: New files.
11819 * modules/gc-des, modules/gc-des-tests: New files.
11821 * tests/test-des.c, tests/test-gc-des.c: New file.
11823 2005-10-21 Simon Josefsson <jas@extundo.com>
11825 * modules/arctwo, modules/arctwo-tests: New files.
11827 * tests/test-arctwo.c: New file.
11829 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
11831 * tests/test-gc-arctwo.c: New file.
11833 2005-10-21 Simon Josefsson <jas@extundo.com>
11835 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
11836 Bruno Haible <bruno@clisp.org>.
11838 * m4/gc-des.m4: New file.
11840 2005-10-21 Simon Josefsson <jas@extundo.com>
11842 * m4/arctwo.m4: New file.
11844 * m4/gc-arctwo.m4: New file.
11846 2005-10-21 Simon Josefsson <jas@extundo.com>
11848 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
11851 2005-10-21 Simon Josefsson <jas@extundo.com>
11853 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
11856 * lib/hmac-sha1.c (hmac_sha1): Likewise.
11858 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
11859 Bruno Haible <bruno@clisp.org>.
11861 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
11864 2005-10-21 Simon Josefsson <jas@extundo.com>
11866 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
11868 2005-10-21 Simon Josefsson <jas@extundo.com>
11870 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
11872 2005-10-21 Simon Josefsson <jas@extundo.com>
11874 * lib/des.h, lib/des.c: New files.
11876 * lib/gc-gnulib.c: Support DES.c
11878 2005-10-21 Simon Josefsson <jas@extundo.com>
11880 * lib/arctwo.h, lib/arctwo.c: New files.
11882 * lib/gc-gnulib.c: Support ARCTWO.
11884 2005-10-21 Simon Josefsson <jas@extundo.com>
11886 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
11887 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11889 2005-10-21 Simon Josefsson <jas@extundo.com>
11891 * gnulib-tool (func_import, func_create_testdir): Define automake
11892 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
11893 Makefile.am snippet),
11894 suggested by Bruno Haible <bruno@clisp.org>.
11896 * modules/gc (Makefile.am): Use it.
11898 2005-10-21 Bruno Haible <bruno@clisp.org>
11900 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
11903 2005-10-19 Simon Josefsson <jas@extundo.com>
11905 * tests/test-gc-rijndael.c: New file.
11907 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
11909 2005-10-19 Simon Josefsson <jas@extundo.com>
11911 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
11914 2005-10-19 Simon Josefsson <jas@extundo.com>
11916 * tests/test-gc-arcfour.c: New file.
11918 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
11920 2005-10-19 Simon Josefsson <jas@extundo.com>
11922 * modules/gc-md4, modules/gc-md4-tests: New file.
11924 * tests/test-gc-md4.c: New file.
11926 2005-10-19 Simon Josefsson <jas@extundo.com>
11928 * m4/gc-md4.m4: New file.
11930 2005-10-19 Simon Josefsson <jas@extundo.com>
11932 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
11933 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
11936 2005-10-19 Simon Josefsson <jas@extundo.com>
11938 * m4/gc-arcfour.m4: New file.
11940 * m4/gc-rijndael.m4: New file.
11942 2005-10-19 Simon Josefsson <jas@extundo.com>
11944 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
11946 2005-10-19 Simon Josefsson <jas@extundo.com>
11948 * lib/gc-gnulib.c: Support ARCFOUR.
11950 2005-10-19 Simon Josefsson <jas@extundo.com>
11952 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
11955 * lib/gc.h: Add ECB enum type.
11957 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
11959 2005-10-18 Simon Josefsson <jas@extundo.com>
11961 * tests/test-md5.c: New file.
11963 * modules/md5-tests: New file.
11965 2005-10-18 Simon Josefsson <jas@extundo.com>
11967 * tests/test-md4.c: New file.
11969 * modules/md4, modules/md4-tests: New files.
11971 2005-10-18 Simon Josefsson <jas@extundo.com>
11973 * m4/md4.m4: New file.
11975 2005-10-18 Simon Josefsson <jas@extundo.com>
11977 * lib/md4.h, lib/md4.c: New files, based on md5.?.
11979 2005-10-17 Stepan Kasal <kasal@ucw.cz>
11981 * gnulib-tool (func_create_testdir): Omit the second check whether
11982 BUILT_SOURCES in nonempty.
11984 2005-10-17 Simon Josefsson <jas@extundo.com>
11986 * tests/test-rijndael.c: New file.
11988 2005-10-17 Simon Josefsson <jas@extundo.com>
11990 * modules/sha1: Depend on stdint instead of md5.
11992 * modules/md5: Depend on stdint, remove uint32_t.
11994 2005-10-17 Simon Josefsson <jas@extundo.com>
11996 * modules/gc-sha1-tests: New file.
11998 * tests/test-gc-sha1.c: New file.
12000 2005-10-17 Simon Josefsson <jas@extundo.com>
12002 * m4/md5.m4: Remove call to uint32_t.m4.
12004 2005-10-17 Simon Josefsson <jas@extundo.com>
12006 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
12008 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
12011 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
12013 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
12015 2005-10-17 Simon Josefsson <jas@extundo.com>
12017 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
12019 2005-10-17 Simon Josefsson <jas@extundo.com>
12021 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
12023 2005-10-17 Simon Josefsson <jas@extundo.com>
12025 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
12027 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
12029 2005-10-17 Bruno Haible <bruno@clisp.org>
12031 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
12032 that it can also be used in a test.
12034 2005-10-16 Bruno Haible <bruno@clisp.org>
12036 * gnulib-tool (func_emit_tests_Makefile_am): Also define
12037 TESTS_ENVIRONMENT, so that individual tests can augment it.
12039 * gnulib-tool (func_create_testdir): Use an intermediate target for
12040 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
12041 macros, like $(ALLOCA_H), which cannot be passed through the command
12044 2005-10-15 Simon Josefsson <jas@extundo.com>
12046 * modules/rijndael-tests: New file.
12048 * modules/rijndael: New file.
12050 2005-10-15 Simon Josefsson <jas@extundo.com>
12052 * m4/rijndael.m4: New file.
12054 2005-10-15 Simon Josefsson <jas@extundo.com>
12056 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
12058 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
12060 2005-10-14 Simon Josefsson <jas@extundo.com>
12062 * tests/test-arcfour.c: New file.
12064 * modules/arcfour, modules/arcfour-tests: New files.
12066 2005-10-14 Simon Josefsson <jas@extundo.com>
12068 * m4/arcfour.m4: New file.
12070 2005-10-14 Simon Josefsson <jas@extundo.com>
12072 * lib/arcfour.h, lib/arcfour.c: New files.
12074 2005-10-14 Roland McGrath <roland@redhat.com>
12076 Import from libc. [BZ #1331]
12077 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
12079 Reported by Matej Vela <vela@debian.org>.
12081 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
12083 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
12084 include <wchar.h>; no longer needed.
12086 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
12088 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
12090 2005-10-14 Jakub Jelinek <jakub@redhat.com>
12091 and Ulrich Drepper <drepper@redhat.com>
12094 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
12095 instead of inline stream orientation test and two separate
12096 function calls. Pay no attention to USE_IN_LIBIO.
12098 2005-10-13 Simon Josefsson <jas@extundo.com>
12100 * modules/gc-hmac-md5-tests: New file.
12102 * tests/test-gc-hmac-sha1.c: New file.
12104 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
12106 * modules/gc-hmac-md5-tests: New file.
12108 * tests/test-gc-md5.c: New file.
12110 * modules/gc-md5-tests: New file.
12112 2005-10-13 Simon Josefsson <jas@extundo.com>
12114 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
12115 Move memory allocation outside of loop.
12117 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
12119 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
12120 intermediate directory is in a read-only file system. Problem
12121 reported by Eric Blake.
12123 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
12125 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
12127 2005-10-12 Simon Josefsson <jas@extundo.com>
12129 * tests/test-hmac-sha1.c: New file.
12131 * modules/hmac-sha1-tests: New file.
12133 * modules/hmac-sha1: New file.
12135 2005-10-12 Simon Josefsson <jas@extundo.com>
12137 * modules/gc-sha1: New file.
12139 2005-10-12 Simon Josefsson <jas@extundo.com>
12141 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
12143 * tests/test-gc-pbkdf2-sha1.c: New file.
12145 2005-10-12 Simon Josefsson <jas@extundo.com>
12147 * modules/gc-md5, modules/gc-hmac-md5: New files.
12149 * modules/gc (Files): Remove md5, memxor and hmac files.
12151 2005-10-12 Simon Josefsson <jas@extundo.com>
12153 * m4/gc-pbkdf2-sha1.m4: New file.
12155 * m4/gc-hmac-sha1.m4: New file.
12157 * m4/gc-sha1: New file.
12159 * m4/hmac-sha1.m4: New file.
12161 2005-10-12 Simon Josefsson <jas@extundo.com>
12163 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
12165 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
12167 2005-10-12 Simon Josefsson <jas@extundo.com>
12169 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
12170 suggested by Bruno Haible <bruno@clisp.org>.
12172 2005-10-12 Simon Josefsson <jas@extundo.com>
12174 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
12176 2005-10-12 Simon Josefsson <jas@extundo.com>
12178 * lib/gc-pbkdf2-sha1.c: New file.
12180 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
12182 2005-10-12 Simon Josefsson <jas@extundo.com>
12184 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
12186 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
12188 2005-10-12 Simon Josefsson <jas@extundo.com>
12190 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
12191 GC_USE_HMAC_MD5, respectively.
12193 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
12194 (gc_md5): Fix typo.
12196 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
12198 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
12200 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
12202 2005-10-12 Bruno Haible <bruno@clisp.org>
12204 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
12205 Reported by Stepan Kasal <kasal@ucw.cz>.
12207 2005-10-11 Simon Josefsson <jas@extundo.com>
12209 * tests/test-crc.c: New file.
12211 * modules/crc, modules/crc-tests: New files.
12213 2005-10-11 Simon Josefsson <jas@extundo.com>
12215 * m4/crc.m4: New file.
12217 2005-10-11 Simon Josefsson <jas@extundo.com>
12219 * lib/gc.h: Add gc_hash and gc_hash_buffer.
12221 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
12223 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
12225 2005-10-11 Simon Josefsson <jas@extundo.com>
12227 * lib/crc.h, lib/crc.c: New files.
12229 * lib/gc.h (gc_hash_buffer): Add doc.
12231 2005-10-11 Bruno Haible <bruno@clisp.org>
12233 * modules/c-strcasestr: New file.
12234 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
12236 2005-10-11 Bruno Haible <bruno@clisp.org>
12238 * modules/c-strcase: New file.
12239 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
12241 2005-10-11 Bruno Haible <bruno@clisp.org>
12243 * lib/strcasecmp.c: Include limits.h.
12244 (strcasecmp): Avoid integer overflow on exotic platforms.
12245 * lib/strncasecmp.c: Include limits.h.
12246 (strncasecmp): Avoid integer overflow on exotic platforms.
12247 Reported by Paul Eggert.
12249 2005-10-11 Bruno Haible <bruno@clisp.org>
12251 * lib/c-strcasestr.h: New file, from GNU gettext.
12252 * lib/c-strcasestr.c: New file, from GNU gettext.
12254 2005-10-11 Bruno Haible <bruno@clisp.org>
12256 * lib/c-strcase.h: New file, from GNU gettext.
12257 * lib/c-strcasecmp.c: New file, from GNU gettext.
12258 * lib/c-strncasecmp.c: New file, from GNU gettext.
12260 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
12262 * modules/mempcpy (License): GPL -> LGPL.
12263 * modules/strchrnul (License): Likewise.
12264 * modules/sysexits (License): Likewise.
12266 2005-10-08 Simon Josefsson <jas@extundo.com>
12268 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
12270 2005-10-07 Simon Josefsson <jas@extundo.com>
12272 * m4/memxor.m4: Remove gl_C_RESTRICT call.
12274 2005-10-06 Simon Josefsson <jas@extundo.com>
12276 * tests/test-hmac-md5.c: New file.
12278 * modules/hmac-md5-tests: New file.
12280 * modules/hmac-md5: New file.
12282 2005-10-06 Simon Josefsson <jas@extundo.com>
12284 * m4/hmac-md5.m4: New file.
12286 * m4/memxor.m4: Require gl_C_RESTRICT.
12288 2005-10-06 Simon Josefsson <jas@extundo.com>
12290 * lib/memxor.c (memxor): Avoid casts and warnings.
12292 2005-10-06 Simon Josefsson <jas@extundo.com>
12294 * lib/hmac-md5.c: New file.
12296 * lib/hmac.h: New file.
12298 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
12300 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
12301 promotes to int, not unsigned int, to catch the AIX 5.3
12304 2005-10-05 Simon Josefsson <jas@extundo.com>
12306 * modules/memxor: New file.
12308 * modules/iconv (Files): Move config.rpath to havelib, it is used
12311 * modules/havelib (Files): Add config.rpath.
12313 2005-10-05 Simon Josefsson <jas@extundo.com>
12315 * m4/memxor.m4: New file.
12317 2005-10-05 Simon Josefsson <jas@extundo.com>
12319 * lib/memxor.c (memxor): Fix compiler error.
12321 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
12322 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
12324 * lib/memxor.h, lib/memxor.c: New files.
12326 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
12327 we assume all systems have it, suggested by Jim Meyering
12328 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
12329 any systems lack sys/socket.h; mingw32 is known to lack it, but we
12330 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
12333 2005-10-05 Simon Josefsson <jas@extundo.com>
12335 * config/srclist.txt: Add glibc bug 1423 for md5.h.
12337 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
12339 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
12340 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
12341 needed, since the source code now assumes these .h files.
12343 2005-10-05 Derek Price <derek@ximbiot.com>
12345 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
12347 2005-10-05 Bruno Haible <bruno@clisp.org>
12349 * modules/stdint (License): Change to LGPL.
12351 2005-10-04 Simon Josefsson <jas@extundo.com>
12353 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
12354 D. Baushke" <mdb@gnu.org>.
12356 2005-10-04 Bruno Haible <bruno@clisp.org>
12358 * lib/verify.h (verify_true): Provide alternative definition for C++.
12360 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
12362 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
12363 (SSIZE_MAX): New macro, if not already defined.
12364 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
12367 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
12369 Sync from coreutils.
12370 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
12371 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
12372 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
12373 ULLONG_MAX doesn't work with 2.7.2.1.
12375 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
12377 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
12380 * modules/exclude (Depends-on): Depend on verify.
12381 * modules/strtoimax (Depends-on): Likewise.
12382 * modules/utimecmp (Depends-on): Likewise.
12384 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
12386 * lib/exclude.c: Include verify.h.
12387 (verify): Remove. All callers changed to use verify.h's version.
12388 * lib/strtoimax.c: Likewise.
12389 * lib/utimecmp.c: Likewis.e
12391 Sync from coreutils.
12392 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
12393 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
12394 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
12395 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
12396 bother returning ENOSYS if settimeofday or stime fails; just let
12397 them return whatever errno they want to return.
12398 * lib/utimens.c: Include unistd.h, for dup2.
12399 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
12400 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
12402 2005-10-02 Jim Meyering <jim@meyering.net>
12404 Sync from coreutils.
12405 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
12406 from glibc-2.2.5 that fails for read-only files.
12408 2005-10-02 Jim Meyering <jim@meyering.net>
12410 Sync from coreutils.
12411 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
12412 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
12413 `#if HAVE_CONFIG_H'.
12414 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
12415 Remove AT_FDCWD test.
12416 Do not consume the fd unless successful.
12417 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
12418 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
12419 block, so that we don't even try to compile it if settimeofday is
12420 available. This works around a compilation failure on OSF1 V5.1,
12421 due to stime requiring a `long int*' while tv_sec is `int'.
12423 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
12425 Sync from coreutils.
12426 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
12427 against `yes', rather than just testing for nonempty.
12429 2005-10-01 Simon Josefsson <jas@extundo.com>
12431 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
12434 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
12435 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
12436 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
12437 freeaddrinfo and gai_strerror are declared by the POSIX headers.
12438 Check if struct addrinfo is declared.
12440 2005-10-01 Simon Josefsson <jas@extundo.com>
12442 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
12443 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
12444 AI_* and EAI_* definitions. Protect function declarations.
12446 2005-10-01 Jim Meyering <jim@meyering.net>
12448 Sync from coreutils.
12450 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
12451 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
12452 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
12453 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
12454 in the inet and nsl libraries. Required on Solaris 5.7.
12456 2005-10-01 Jim Meyering <jim@meyering.net>
12458 Sync from coreutils.
12459 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
12460 in the inet and nsl libraries. Required on Solaris 5.7.
12462 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
12464 * lib/getdelim.c (getdelim): Remove unused variables.
12466 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
12468 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
12469 so that the code works even with ancient cpp. Portability problem
12470 with GCC 2.7.2.1 reported by Thomas M.Ott.
12472 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
12474 * modules/regex (Depends-on): Add strcase.
12476 * modules/gethostname (Licence): Change from GPL to LGPL, since
12477 gethostname.c is a trivial implementation of a standard library
12479 * modules/poll (License): Change from GPL to LGPL, since it's
12480 derived from LGPL code.
12482 2005-09-27 Jim Meyering <jim@meyering.net>
12484 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
12487 * lib/intprops.h (signed_type_or_expr__): Define.
12488 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
12489 for unsigned types.
12491 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
12493 * lib/verify.h (verify_expr): Remove, replacing with:
12494 (verify_true): New macro that returns true instead of void.
12495 (verify_type__): Remove.
12496 (verify): Use verify_true rather than verify_type__.
12498 2005-09-26 Bruno Haible <bruno@clisp.org>
12500 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
12502 (lib_SOURCES): Remove mbchar.c.
12503 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
12504 (Files): Add m4/mbrtowc.m4.
12505 * modules/mbiter: Likewise.
12506 * modules/mbuiter: Likewise.
12508 2005-09-26 Bruno Haible <bruno@clisp.org>
12510 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
12511 compile mbchar.c if they are not both present.
12512 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
12513 * m4/mbiter.m4 (gl_MBITER): Likewise.
12514 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
12515 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
12516 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
12518 2005-09-25 Jim Meyering <jim@meyering.net>
12520 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
12521 also uses socklen_t.
12523 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
12525 * lib/utimens.c (ENOSYS): Define if not already defined.
12526 (futimens): Support having a null PATH if the file descriptor
12529 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
12531 (__attribute): Define to empty unless GCC 3.1 or later.
12532 This works around a core dump on OpenBSD 3.4, which has GCC
12533 2.95.3, which dumps core when given __attribute__(()). It also
12534 simplifies other tests, since we really don't want to bother with
12535 worrying about which ancient version of GCC supported what.
12536 Original problem reported by Yoann Vandoorselaere, with part of
12537 the fix suggested by Derek Price.
12539 2005-09-24 Jim Meyering <jim@meyering.net>
12541 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
12542 so we can once again use a positive bitfield width of 1 -- now we
12543 don't have to explain why we were using a bitfield width of 2.
12545 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
12547 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
12548 and similarly for the other external symbols. Problem reported
12551 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
12552 bug reported by Jim Meyering.
12554 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
12555 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
12556 not needed, since socklen is a prerequisite module.
12558 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
12560 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
12561 Problem reported by Eric Blake.
12562 (getaddrinfo): Initialize se so that it's not garbage.
12563 Redo internal storage allocation so that it doesn't make unportable
12564 assumptions about alignment.
12567 * lib/utimens.c (futimens): Use futimesat if available.
12568 Prefer it to futimes since it doesn't have the futimes bug.
12570 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
12571 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
12572 Instead, declare a function that returns a pointer to an array,
12573 and use verify_type__ to declare the size of the array.
12574 Problem and germ of a solution reported by Bruno Haible.
12575 (verify_type__): Use 2, not 1, for bitfield size, to avoid
12576 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
12578 2005-09-23 Jim Meyering <jim@meyering.net>
12580 Sync from coreutils.
12581 Correct build failure (socklen_t not defined) on at least
12582 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
12583 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
12585 2005-09-23 Jim Meyering <jim@meyering.net>
12587 * modules/getaddrinfo (Depends-on): Add socklen.
12589 2005-09-23 Bruno Haible <bruno@clisp.org>
12591 * tests/test-verify.c: New file.
12593 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
12595 Sync from coreutils.
12597 * modules/argmatch (Depends-on): Add verify.
12598 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
12600 * modules/save-cwd (Depends-on): Likewise.
12602 * modules/openat (Files): Add lib/openat-die.c.
12603 (Depends-on): Remove error, exitfail.
12606 * modules/verify: New file.
12607 * MODULES.html.sh (Diagnostics <assert.h>): New section,
12608 with "verify" module.
12610 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
12612 Sync from coreutils.
12614 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
12615 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
12616 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
12617 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
12618 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
12619 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
12620 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
12621 Don't bother checking for string.h, stdlib.h, unistd.h.
12622 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
12623 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
12625 * m4/jm-macros.m4 (gl_MACROS): Likewise.
12626 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
12628 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
12629 (gl_GETDATE): Use it.
12631 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
12633 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
12635 Sync from coreutils.
12637 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
12639 * lib/argmatch.h: Include verify.h
12640 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
12641 (ARGMATCH_ASSERT): Remove; unused.
12642 * lib/canonicalize.c: Assume STDC_HEADERS.
12643 * lib/exclude.c: Include "strcase.h".
12644 * lib/regex_internal.h [!defined _LIBC]: Likewise.
12645 * lib/getusershell.c: Include stdio--.h rather than stdio.h
12647 (getusershell): Call fopen, not fopen_safer.
12648 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
12649 Do not include unistd-safer.h.
12650 (save_cwd): Don't call fd_safer; no longer needed
12651 now that we include fcntl--.h.
12653 * lib/getdate.y (relative_time): New type.
12654 (RELATIVE_TIME_0): New constant.
12655 (parser_control): Use relative_time instead of doing it ourselves.
12656 (%union): Add new relative_time rel member.
12657 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
12659 (relunit, relunit_snumber): Now of type rel.
12660 (zone, rel, relunit, get_date): Adjust to above changes.
12662 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
12663 Do not include unistd-safer.h.
12664 (getloadavg): Don't call fd_safer; no longer needed
12665 now that we include fcntl--.h.
12667 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
12668 (make_dir_parents): Treat ENOSYS like EEXIST.
12670 Improve quality of diagnostics on restore_cwd failure.
12671 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
12672 (make_dir_parents): Last arg is now int * (for errno), not bool *.
12673 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
12674 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
12675 each time through the loop. Do not diagnose restore_cwd failure;
12676 that is the caller's job (and perhaps the caller does not care).
12678 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
12679 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
12680 If the file already exists but is not a directory, don't bother
12681 to try to make its parents.
12682 Close potential file descriptor leak if we can't chdir("/") (!).
12683 Don't always return true if chdir($PWD) fails; return true only
12684 if the requested action was done successfully (except for the
12686 Don't log final directory unless we actually made it.
12687 Refactor to avoid duplicate code to fix up permissions.
12688 Don't attempt to fix up parent permissions if chdir($PWD) fails.
12690 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
12691 to make it a bit faster and (I hope) clearer.
12692 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
12693 Fix bug in formats like %2N.
12695 * lib/verify.h: New file.
12697 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
12699 Sync from coreutils.
12700 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
12702 2005-09-22 Jim Meyering <jim@meyering.net>
12704 Sync from coreutils.
12706 * m4/lstat.m4 (gl_FUNC_LSTAT):
12707 Use AC_LIBSOURCES to require lstat.c and lstat.h.
12708 Remove obsolete comment.
12709 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
12710 * m4/xstrtod.m4: Likewise.
12712 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
12714 2005-09-22 Jim Meyering <jim@meyering.net>
12716 Sync from coreutils.
12718 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
12720 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
12721 the .tm_year member, since otherwise gcc-4.0 would now warn about
12722 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
12724 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
12725 order to avoid an unsuppressible warning from gcc on 64-bit systems.
12727 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
12728 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
12729 when run in a time zone for which daylight savings time is in effect
12730 for the starting date.
12732 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
12733 stop us from restricting permissions of just-created absolute-named
12735 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
12736 to restore initial working directory.
12737 * lib/mkdir-p.c (make_dir_parents): New parameter:
12738 different_working_dir, to tell caller if/when we change the working
12739 directory and are unable to return to the initial one.
12740 * lib/mkdir-p.h (make_dir_parents): Update prototype.
12741 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
12742 `return false'. This fixes a bug introduced on 2004-07-30.
12744 * lib/openat.c (fdopendir): Be sure to close the supplied
12745 file descriptor before returning. This makes our replacement
12746 implementation a little closer to Solaris's, where fdopendir
12747 ties the file descriptor to the returned DIR* pointer.
12748 * lib/openat.c (unlinkat): New function.
12749 * lib/openat.h (unlinkat): Add prototype.
12750 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
12751 (openat_restore_fail): Rename from openat_restore_die.
12752 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
12754 Provide an alternative to exiting immediately upon save_cwd or
12755 restore_cwd failure. Now, an application can arrange e.g.,
12756 to perform a longjump in that case.
12757 * lib/openat.c: Include dirname.h.
12758 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
12759 (rpl_openat, fdopendir, fstatat): Call openat_save_die
12760 and openat_restore_die rather than calling error directly.
12761 Don't include "error.h" or "exitfail.h"; they're no longer needed.
12763 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
12764 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
12767 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
12768 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
12769 int utc, int nanoseconds);
12771 date should not have to allocate a megabyte of virtual memory to
12772 handle a format argument like +%1048575T. When implemented with
12773 strftime, it must allocate such a buffer, use strftime to fill it
12774 in, print it, then free it.
12775 With fprintftime, it simply prints everything and exits.
12776 With no need for memory allocation, that's one fewer way to fail.
12777 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
12778 optional field width, not before, so we accept %9:z, not %:9z.
12779 (my_strftime): Be sure to use L_('x') for literals.
12781 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
12782 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
12783 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
12784 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
12785 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
12786 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
12787 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
12788 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
12789 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
12790 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
12791 * lib/xgethostname.c, lib/xreadlink.c:
12792 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
12794 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
12795 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
12796 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
12797 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
12798 and don't include <sys/file.h>).
12800 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
12802 Sync from coreutils.
12804 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
12805 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
12806 [!LDAV_DONE]: Avoid unused variable warning.
12808 2005-09-21 Bruno Haible <bruno@clisp.org>
12810 * lib/unicodeio.h (unicode_to_mb): New declaration.
12812 2005-09-20 Derek Price <derek@ximbiot.com>
12814 * lib/getaddrinfo.c: Don't include <netdb.h> included from
12817 2005-09-20 Bruno Haible <bruno@clisp.org>
12819 * gnulib-tool: Remove trailing slashes from the values specified for
12820 --source-base, --m4-base, --tests-base, --aux-dir.
12821 Suggested by Simon Josefsson <jas@extundo.com>.
12823 2005-09-20 Bruno Haible <bruno@clisp.org>
12825 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
12826 func_modules_to_filelist, func_import, func_create_testdir): Make all
12827 sorting results locale-independent, so that gnulib-cache.m4 doesn't
12828 change when gnulib-tool is invoked in a different locale.
12830 2005-09-19 Simon Josefsson <jas@extundo.com>
12832 * m4/socklen.m4: Fix typo.
12834 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12836 Use a consistent style for including <config.h>.
12837 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
12838 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
12839 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
12840 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
12841 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
12842 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
12843 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
12844 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
12845 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
12846 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
12847 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
12848 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
12849 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
12850 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
12851 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
12852 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
12853 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
12854 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
12855 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
12856 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
12857 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
12858 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
12859 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
12860 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
12861 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
12862 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
12863 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
12864 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
12865 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
12866 lib/xstrtoumax.c, lib/yesno.c:
12867 Standardize inclusion of config.h.
12868 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
12869 lib/inttostr.h: Removed inclusion of config.h from header files.
12870 * lib/inttostr.c: Adjusted in-tree users.
12871 * lib/timespec.h: Remove superfluous warning to include config.h.
12872 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
12873 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
12874 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
12875 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
12876 config.h with HAVE_CONFIG_H.
12878 2005-09-19 Jim Meyering <jim@meyering.net>
12880 * modules/pathmax (License): Change to LGPL.
12882 2005-09-19 Derek Price <derek@ximbiot.com>
12884 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
12886 2005-09-19 Bruno Haible <bruno@clisp.org>
12888 * gnulib-tool (import): Provide default for --tests-base.
12890 2005-09-19 Bruno Haible <bruno@clisp.org>
12892 * doc/quote.texi: New file, extracted from gnulib.texi.
12893 * doc/ctime.texi: New file, extracted from gnulib.texi.
12894 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
12895 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
12896 * doc/gnulib.texi: Include them.
12898 2005-09-18 Bruno Haible <bruno@clisp.org>
12901 * gnulib-tool (func_readlink): New function.
12902 (func_ln_if_changed): Use it.
12904 2005-09-18 Bruno Haible <bruno@clisp.org>
12906 * gnulib-tool: Support --with-tests also with --import.
12907 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
12908 (func_import): Use variables $testsbase and $inctests. Emit a
12909 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
12910 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
12911 SUBDIRS += $testsdir.
12912 (func_create_testdir): Update.
12914 2005-09-18 Bruno Haible <bruno@clisp.org>
12916 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
12917 instead of $dry_run.
12918 (func_cp_if_changed, func_mv_if_changed): Remove functions.
12919 (func_ln_if_changed): Don't handle dry-run here.
12920 (func_import): In dry-run mode, detect more precisely which actions
12921 would be performed, and don't use "...ing" verbs.
12923 2005-09-18 Bruno Haible <bruno@clisp.org>
12925 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
12926 (func_import): Use join on two temporary files instead of three nested
12927 loops, in order to determine which files are new or old.
12929 2005-09-18 Bruno Haible <bruno@clisp.org>
12931 * gnulib-tool (func_import): Comment out code that spits out the
12932 new files with --dry-run.
12934 2005-09-18 Bruno Haible <bruno@clisp.org>
12936 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
12938 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
12940 * lib/stat-time.h: New file.
12941 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
12942 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
12943 in a different way.
12944 (timespec_cmp): New function.
12945 * lib/utimecmp.c: Include stat-time.h.
12946 (SYSCALL_RESOLUTION): Depend on whether various struct stat
12947 members exist, not on the obsolescent ST_MTIM_NSEC.
12948 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
12950 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
12952 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
12954 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
12956 * MODULES.html.sh (File system functions): Add stat-time.
12957 * modules/stat-time: New file.
12958 * modules/timespec (Files): Remove m4/st_mtim.m4; this
12959 is now done in a different way, by the stat-time module.
12960 * modules/utimecmp (Depends-on): Add stat-time.
12962 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
12964 * m4/st_mtim.m4: Remove. Superseded by...
12965 * m4/stat-time.m4: New file.
12966 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
12967 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
12969 2005-09-15 Derek Price <derek@ximbiot.com>
12971 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
12973 2005-09-15 Derek Price <derek@ximbiot.com>
12975 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
12976 * lib/regex_internal.c: Ditto, using this...
12977 (__GNUC_PREREQ): ...new macro.
12978 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
12980 (__GNUC_PREREQ): ...this new macro.
12982 * lib/strstr.h: Include string.h. Define strstr as a macro here.
12984 2005-09-15 Derek Price <derek@ximbiot.com>
12985 Paul Eggert <eggert@cs.ucla.edu>
12987 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
12988 changes, consolidating in...
12989 * lib/regex_internal.h: ...this file.
12991 2005-09-13 Jim Meyering <jim@meyering.net>
12993 * lib/canon-host.c: Filter through gnu indent and reword comments
12995 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
12997 2005-09-13 Derek Price <derek@ximbiot.com>
12999 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
13001 Reported by Jim Meyering <jim@meyering.net>.
13003 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
13005 * lib/base64.c: Typo.
13006 (base64_encode): Put b64str in initialized data section.
13008 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
13010 Merge glibc and coreutils changes into gnulib, plus a few
13012 * lib/md5.c: Use #error rather than a string.
13013 (CYCLIC): New macro, from glibc source. Use it instead of rol.
13014 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
13015 (__attribute__): Define to empty for non recent-GCC.
13016 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
13017 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
13018 Renamed from their non-__ counterparts, with new macros replacing
13019 them if not _LIBC. Add __THROW attribute.
13021 (struct md5_ctx): Align buffer if using GCC.
13022 * lib/sha1.h (struct sha1_ctx): Likewise.
13023 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
13024 The old name was backwards.
13025 (NOTSWAP): Remove; not used.
13026 (rol): New macro, moved here from md5.h.
13027 (sha1_process_block): Remove a FIXME that doesn't make sense.
13029 2005-09-12 Derek Price <derek@ximbiot.com>
13031 Return usable errors from canon-host.
13032 * lib/canon-host.h: New file.
13033 * lib/canon-host.c (canon_host): Wrap...
13034 (canon_host_r): ...this new function, which now relies exclusively on
13036 (ch_strerror): New function.
13037 (last_cherror): New global.
13038 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
13040 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
13042 (freeaddrinfo): Free ai->ai_canonname when set.
13044 2005-09-12 Derek Price <derek@ximbiot.com>
13046 Make canon-host require getaddrinfo.
13047 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
13048 AC_LIBSOURCE canon-host.h. Call...
13049 (gl_PREREQ_CANON_HOST): ...this new function, which requires
13051 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
13053 2005-09-12 Derek Price <derek@ximbiot.com>
13055 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
13057 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
13059 2005-09-12 Derek Price <derek@ximbiot.com>
13061 * lib/gai_strerror.c: Include config.h when available. Include
13062 getaddrinfo.h before other headers to test interface.
13063 Reported by Larry Jones <lawrence.jones@ugs.com>.
13065 2005-09-12 Derek Price <derek@ximbiot.com>
13066 Paul Eggert <eggert@cs.ucla.edu>
13068 * modules/glob (Files): Add glob-libc.h.
13070 2005-09-12 Derek Price <derek@ximbiot.com>
13071 Paul Eggert <eggert@cs.ucla.edu>
13073 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
13074 glob_.h, glob-libc.h.
13075 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
13077 2005-09-12 Derek Price <derek@ximbiot.com>
13078 Paul Eggert <eggert@cs.ucla.edu>
13080 * lib/glob-libc.h: Renamed from glob_.h. The new version is
13081 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
13082 protecting things that should be done only in gnulib contexts.
13083 * lib/glob_.h: New file, containing only the glob things needed for
13085 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
13086 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
13087 (glob, globfree, glob_pattern_p): Now defined simply in terms of
13088 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
13089 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
13090 and to respect the namespace rules better.
13092 2005-09-08 Simon Josefsson <jas@extundo.com>
13094 * modules/socklen: New file.
13096 2005-09-08 Simon Josefsson <jas@extundo.com>
13098 * m4/socklen.m4: New file.
13100 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
13102 * modules/utimens (Files): Add m4/utimbuf.m4, since
13103 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
13104 Reported by Sergey Poznyakoff.
13106 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
13108 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
13109 definitions, since that's the preferred style in glibc.
13110 Fix a minor spacing issue, and update copyright notice to match
13113 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
13115 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
13117 2005-09-06 Simon Josefsson <jas@extundo.com>
13119 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
13120 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
13122 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
13124 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
13127 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
13129 * config/srclist.txt: Add glibc bug 1302.
13131 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
13133 Change bitset word type from unsigned int to unsigned long int,
13134 as this has better performance on typical 64-bit hosts.
13135 Port bitset code to hosts with unusual word sizes.
13136 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
13137 (build_collating_symbol):
13138 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
13139 argument is a bitset. This is merely a style issue, but it makes
13140 it clearer that an entire array is expected.
13141 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
13142 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
13143 Port to the case where bitset_word is not the same as unsigned int.
13144 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
13145 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
13147 * lib/regexec.c (check_dst_limits_calc_pos_1,
13148 check_subexp_matching_top):
13149 (build_trtable, group_nodes_into_DFAstates):
13151 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
13152 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
13153 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
13154 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
13155 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
13156 * lib/regcomp.c (optimize_subexps, lower_subexp):
13157 Work even if bitset_word has holes in its bitwise representation.
13158 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
13159 * lib/regexec.c (check_dst_limits_calc_pos_1,
13160 check_subexp_matching_top):
13162 * lib/regex_internal.c (re_string_reconstruct):
13163 Don't assume UCHAR_MAX == 255.
13164 * lib/regex_internal.h (bitset_set_all): Likewise.
13165 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
13167 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
13168 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
13170 (BITSET_WORD_MAX): New macro.
13171 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
13172 (bitset_set_all, bitset_copy): Now inline functions, not macros.
13173 (bitset_empty, bitset_copy):
13174 Prefer sizeof (bitset) to multiplying it out ourselves.
13175 (bitset_not_merge): Remove; unused.
13176 (bitset_contain): Return bool, not unsigned int with one bit on.
13177 All callers changed.
13178 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
13179 alignment than re_node_set; do this by defining a new internal
13180 type struct dests_alloc and using it to allocate memory.
13182 2005-09-05 Bruno Haible <bruno@clisp.org>
13184 * gnulib-tool (func_import): Fix comparison in handling of symbolic
13187 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
13189 * modules/size_max (Makefile.am): Add size_max.h
13191 2005-09-04 Derek Price <derek@ximbiot.com>
13193 * gnulib-tool (func_import): Fix reversed $symbolic logic.
13195 2005-09-03 Simon Josefsson <jas@extundo.com>
13197 * gnulib-tool: Fix typo.
13199 2005-09-03 Simon Josefsson <jas@extundo.com>
13201 * config/srclist.txt: Add glibc bug 1293.
13203 2005-09-03 Derek Price <derek@ximbiot.com>
13205 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
13206 From Larry Jones <lawrence.jones@ugs.com>.
13208 2005-09-02 Simon Josefsson <jas@extundo.com>
13210 * modules/socklen: New file.
13212 2005-09-02 Simon Josefsson <jas@extundo.com>
13214 * modules/havelib: New module.
13216 * modules/gettext, modules/iconv, modules/lock, modules/readline:
13219 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
13221 Check for arithmetic overflow when calculating sizes, to prevent
13222 some buffer-overflow issues. These patches are conservative, in the
13223 sense that when I couldn't determine whether an overflow was possible,
13224 I inserted a run-time check.
13225 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
13227 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
13228 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
13229 (re_xnrealloc, re_x2nrealloc): New inline functions.
13230 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
13231 parse_bracket_exp):
13232 (build_equiv_class, build_charclass): Check for arithmetic overflow
13233 in size expression calculations.
13234 * lib/regex_internal.c (re_string_realloc_buffers):
13235 (build_wcs_upper_buffer, re_node_set_add_intersect):
13236 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
13237 (re_dfa_add_node, register_state): Likewise.
13238 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
13239 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
13240 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
13241 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
13243 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
13245 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
13246 m4/ulonglong.m4. Problem reported by Martin Lambers.
13248 2005-09-02 Bruno Haible <bruno@clisp.org>
13250 Support for lib vs. lib64 distinction on biarch platforms.
13251 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
13252 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
13253 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
13255 2005-09-02 Bruno Haible <bruno@clisp.org>
13257 * gnulib-tool (import): In the other first-use case, provide defaults
13260 2005-09-02 Bruno Haible <bruno@clisp.org>
13262 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
13263 patches not yet found in the latest gettext release.
13265 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
13267 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
13268 to avoid a collision with bits/local_lim.h in glibc.
13269 All uses changed. Problem reported by Dmitry V. Levin in
13270 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
13272 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
13273 bugs in int versus size_t comparisons.
13274 (re_string_context_at): Fix bug where the code assumed that
13277 Use bool where appropriate.
13278 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
13279 All callers changed.
13280 (calc_eclosure_iter): Likewise, for ROOT arg.
13281 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
13282 (build_charclass_op): Likewise, for NON_MATCH arg.
13283 * lib/regex_internal.c (re_string_allocate, re_string_construct):
13284 (re_string_construct_common): Likewise, for ICASE arg.
13285 * lib/regexec.c (re_search_2_stub, re_search_stub):
13286 Likewise, for RET_LEN arg.
13287 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
13288 (set_regs): Likewise, for FL_BACKTRACK arg.
13289 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
13290 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
13291 (calc_eclosure_iter, parse_bracket_exp):
13292 Use bool for internal variables that are booleans.
13293 * lib/regexec.c (re_search_internal, check_matching,
13294 proceed_next_node):
13295 (set_regs, build_sifted_states, sift_states_bkref):
13296 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
13297 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
13298 (find_collation_sequence_value):
13300 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
13301 (re_node_set_compare):
13302 Return bool, not int. All callers changed.
13303 * lib/regexec.c (check_halt_node_context, check_dst_limits):
13304 (build_trtable, check_node_accept): Likewise.
13305 * lib/regex_internal.h: Include stdbool.h.
13307 Fix bugs uncovered when converting to bool.
13308 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
13309 failure instead of charging ahead blindly.
13310 * lib/regex_internal.c (register_state): Likewise.
13311 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
13312 for freeing internal storage.
13313 (group_nodes_into_DFA_states): Use unsigned int, not int, for
13314 bitset pieces used as boolean, to avoid undefined behavior
13315 on hosts that do int overflow checking.
13317 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
13319 * config/srclist.txt: Add glibc bugs 1285-1287.
13321 2005-09-01 Jim Meyering <jim@meyering.net>
13323 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
13324 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
13325 Require gl_STAT_MACROS, too.
13327 2005-09-01 Bruno Haible <bruno@clisp.org>
13329 * gnulib-tool (import): In the first-use case, provide defaults.
13331 2005-09-01 Bruno Haible <bruno@clisp.org>
13333 * gnulib-tool (func_import): Remove the .tmp files.
13335 2005-09-01 Bruno Haible <bruno@clisp.org>
13337 * gnulib-tool (func_import): Fix handling of symbolic links.
13339 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
13341 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
13342 old glibc regex code mishandles strings longer than 2**31 bytes.
13343 This patch fixes this when the regex code is used in gnulib
13344 (i.e., outside glibc).
13346 This patch should not affect the use of the regex code inside
13347 glibc. No doubt this problem also needs to be handled for glibc
13348 as well, but the result will be an incompatible change to the
13349 glibc ABI, and the old ABI will have to be supported too. That
13350 can be the the subject for another patch.
13352 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
13353 governing whether the rest of this patch is active. By default,
13354 the macro is disabled and the patch has no effect.
13355 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
13356 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
13357 (struct re_pattern_buffer, re_search, re_search_2, re_match):
13358 (re_match_2, re_set_registers): Use the new types.
13359 * lib/regex_internal.h (Idx, re_hashval_t): New types.
13360 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
13362 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
13363 (re_string_context_at, bin_tree_t, re_dfastate_t):
13364 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
13365 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
13366 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
13367 (re_string_char_size_at, re_string_wchar_at):
13368 (re_string_elem_size_at):
13369 Use the new types and macros to port to 64-bit hosts.
13370 Use unsigned types for internal values, so that the code
13371 mostly works even for arrays larger than SSIZE_MAX.
13372 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
13373 (search_duplicated_node, calc_eclosure_iter, fetch_number):
13374 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
13375 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
13376 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
13377 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
13378 (calc_inveclosure, parse_dup_op, build_range_exp):
13379 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
13380 (fetch_number, create_token_tree, mark_opt_subexp):
13382 * lib/regex_internal.c (re_string_construct_common,
13383 create_ci_newstate):
13384 (create_cd_newstate, re_string_allocate, re_string_construct):
13385 (re_string_realloc_buffers, build_wcs_upper_buffer):
13386 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
13387 (re_string_reconstruct, re_string_peek_byte_case):
13388 (re_string_fetch_byte_case, re_string_context_at):
13389 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
13390 (re_node_set_init_copy, re_node_set_add_intersect):
13391 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
13392 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
13393 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
13394 (re_acquire_state, re_acquire_state_context, register_state):
13396 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
13397 search_cur_bkref_entry):
13398 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
13399 (re_search_internal, re_search_2_stub, re_search_stub)
13400 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
13401 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
13402 (update_cur_sifted_state, check_dst_limits):
13403 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
13404 (check_subexp_limits, sift_states_bkref, merge_state_array):
13405 (check_subexp_matching_top, get_subexp, get_subexp_sub):
13406 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
13407 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
13408 (expand_bkref_cache, check_node_accept_bytes):
13409 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
13410 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
13411 (acquire_init_state_context, check_halt_node_context):
13412 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
13413 (sift_states_backward, clean_state_log_if_needed):
13414 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
13415 (find_recover_state, transit_state_sb, transit_state_mb):
13416 (transit_state_bkref, build_trtable, match_ctx_clean):
13418 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
13419 to work around an assumption that REG_MISSING is negative.
13421 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
13422 (seek_collating_symbol_entry) [defined _LIBC]:
13423 (lookup_collation_sequence_value) [defined _LIBC]:
13424 (build_range_exp, build_collating_symbol) [defined _LIBC]:
13425 Use prototypes rather than old-style function definitions.
13426 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
13427 (transit_state_sb) [0]:
13428 (find_collation_sequence_value) [defined _LIBC]: Likewise.
13430 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
13433 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
13434 (optimize_subexps, lower_subexp):
13435 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
13436 since the signed shift might overflow. Use 1u<<31 instead.
13437 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
13439 * lib/regexec.c (check_dst_limits_calc_pos_1,
13440 check_subexp_matching_top): Likewise.
13442 * lib/regcomp.c (optimize_subexps, lower_subexp):
13443 Use CHAR_BIT rather than 8, for clarity.
13444 * lib/regexec.c (check_dst_limits_calc_pos_1):
13445 (check_subexp_matching_top): Likewise.
13446 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
13447 have to worry about portability issues when shifting it left.
13448 Remove no-longer-needed test for table_size > 0.
13449 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
13450 in a word, as the resulting behavior is undefined.
13451 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
13452 in one case, a <= should have been an <, and in another case the
13453 whole test was missing.
13454 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
13455 the standard name CHAR_BIT.
13456 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
13457 this is not true on one's complement and signed-magnitude hosts.
13459 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
13461 (struct re_dfa_t): Remove unused member states_alloc.
13462 * lib/regcomp.c (init_dfa): Don't initialize unused members.
13464 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
13466 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
13467 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
13468 and large-file glibc and in 32-bit large-file Solaris.
13470 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
13472 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
13473 lengths fit in regoff_t; this isn't true if regoff_t is the same
13475 * lib/regex.c (re_search_internal): 5th arg is LAST_START
13476 (= START + RANGE) instead of RANGE. This avoids overflow
13477 problems when regoff_t is the same width as size_t.
13478 All callers changed.
13479 (re_search_2_stub): Check for overflow when adding the
13480 sizes of the two strings.
13481 (re_search_stub): Check for overflow when adding START
13482 to RANGE; if it occurs, substitute the extreme value.
13484 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
13486 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
13488 2005-08-31 Jim Meyering <jim@meyering.net>
13490 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
13491 a pointer-to-const.
13492 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
13493 (register_state): Likewise.
13494 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
13495 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
13496 (group_nodes_into_DFAstates): Likewise.
13498 2005-08-31 Jim Meyering <jim@meyering.net>
13500 * check-module: Add a FIXME comment.
13502 2005-08-31 Eric Blake <ebb9@byu.net>
13504 * modules/unistd-safer (Files): Add unistd--.h.
13505 * modules/stdio-safer (Files): Add stdio--.h.
13507 2005-08-31 Derek Price <derek@ximbiot.com>
13509 * lib/getdelim.c (getdelim): Return EOF on EOF.
13510 Reported by Larry Jones <lawrence.jones@ugs.com>.
13512 2005-08-31 Bruno Haible <bruno@clisp.org>
13514 Avoid unnecessary diffs in the generated lib/Makefile.am.
13515 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
13516 the generated files.
13517 (func_import): Don't set cmd.
13519 2005-08-31 Bruno Haible <bruno@clisp.org>
13521 * lib/strstr.c: Include <stddef.h>, for NULL.
13522 * lib/strcasestr.c: Likewise.
13523 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13525 2005-08-31 Bruno Haible <bruno@clisp.org>
13527 * gnulib-tool: New option --macro-prefix.
13528 (func_import): Use macro_prefix.
13529 (import): Handle option --macro-prefix.
13531 2005-08-31 Bruno Haible <bruno@clisp.org>
13533 * gnulib-tool (import): Rename most ac_* variables to cached_*.
13534 Also use new variables cached_lgpl, cached_libtool.
13536 2005-08-31 Bruno Haible <bruno@clisp.org>
13538 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
13539 always instantiating them.
13541 2005-08-31 Bruno Haible <bruno@clisp.org>
13543 * gnulib-tool (func_import): Read the previous cached settings
13544 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
13545 earlier added by gnulib but are now dropped. Warn when a gnulib file
13546 overwrites a non-gnulib file.
13548 2005-08-31 Bruno Haible <bruno@clisp.org>
13550 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
13551 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
13552 projects that don't keep autogenerated files in CVS. Put into
13553 actioncmd only the specified modules, not the transitive closure.
13555 2005-08-31 Bruno Haible <bruno@clisp.org>
13557 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
13558 Create directories that shall be filled.
13559 (import): Don't look for gl_* macros in configure.ac. Recurse across
13560 all directories containing a gnulib-cache.m4 files, if meaningful.
13562 2005-08-31 Bruno Haible <bruno@clisp.org>
13564 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
13565 (import): Set seen_libtool when we see gl_LIBTOOL.
13567 2005-08-31 Bruno Haible <bruno@clisp.org>
13569 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
13570 declaration macro definitions from generated gnulib.m4.
13572 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
13574 * lib/iconvme.h: Add prototype for iconv_alloc.
13576 2005-08-29 Simon Josefsson <jas@extundo.com>
13578 * lib/iconvme.c: Fix errno.
13580 2005-08-29 Bruno Haible <bruno@clisp.org>
13582 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
13583 that it works when the directory contains spaces.
13585 2005-08-29 Bruno Haible <bruno@clisp.org>
13587 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
13589 2005-08-29 Bruno Haible <bruno@clisp.org>
13591 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
13594 2005-08-29 Bruno Haible <bruno@clisp.org>
13595 and Stepan Kasal <kasal@ucw.cz>
13597 * check-module: If more parameters are given, check each of them
13598 separately; add more exceptions, as noted by Jim Meyering.
13599 (check_module): New procedure.
13600 (%exempt_header): Now contains all exceptions.
13602 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
13604 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
13606 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
13608 * lib/iconvme.c: Split iconv_string into iconv_alloc.
13610 2005-08-28 Bruno Haible <bruno@clisp.org>
13612 * m4/gnulib-tool.m4: New file.
13614 2005-08-27 Jim Meyering <jim@meyering.net>
13616 * modules/unistd-safer (Files): Add pipe-safer.c.
13617 * modules/fcntl-safer (Files): Add creat-safer.c.
13619 2005-08-27 Jim Meyering <jim@meyering.net>
13621 * m4/stdlib-safer.m4: New file. From coreutils.
13622 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
13623 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
13624 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
13625 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
13626 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
13628 2005-08-27 Jim Meyering <jim@meyering.net>
13630 * lib/fopen-safer.c: Merge minor changes from coreutils.
13631 * lib/dup-safer.c: Likewise.
13632 * lib/fd-safer.c: Likewise.
13634 Merge from coreutils.
13635 * lib/stdio--.h: New file.
13636 * lib/stdlib--.h: New file.
13637 * lib/mkstemp-safer.c: New file.
13639 GNU tar needs these.
13640 * lib/pipe-safer.c: New file.
13641 * lib/creat-safer.c: New file.
13642 * lib/fcntl--.h (creat): Define to creat_safer.
13643 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
13644 * lib/unistd--.h (pipe): Define to pipe_safer.
13645 * lib/unistd-safer.h: Declare pipe_safer.
13647 2005-08-26 Simon Josefsson <jas@extundo.com>
13649 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
13650 Haible <bruno@clisp.org>.
13652 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
13654 * lib/regex_internal.h: Remove all references to
13655 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
13657 (bitset_not, bitset_merge, bitset_not_merge):
13658 (bitset_mask, re_string_allocate, re_string_construct):
13659 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
13660 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
13661 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
13662 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
13663 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
13664 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
13665 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
13666 (re_acquire_state_context):
13667 Remove unnecessary forward decls.
13668 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
13669 Put __attribute at function definition,
13670 now that the function decl has been removed.
13671 * lib/regex_internal.c (re_string_peek_byte_case):
13672 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
13675 2005-08-25 Stepan Kasal <kasal@ucw.cz>
13677 * m4/regex.m4: Add AC_PREREQ(2.50).
13678 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
13680 2005-08-25 Simon Josefsson <jas@extundo.com>
13682 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
13685 2005-08-25 Simon Josefsson <jas@extundo.com>
13687 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
13688 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
13689 GLIBC specific code.
13691 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
13693 Make regex safe for g++. This fixes one real bug (an "err"
13694 that should have been "*err"). g++ problem reported by
13696 * lib/regex_internal.h (re_calloc): New macro, consistent with
13697 re_malloc etc. All callers of calloc changed to use re_calloc.
13698 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
13699 not int. All callers changed.
13700 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
13701 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
13702 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
13703 (find_recover_state): Change "err" to "*err"; this fixes what
13704 appears to be a real bug.
13705 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
13708 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
13710 * modules/regex (Depends-on): Add malloc, since the code
13711 assumes that !malloc(0) means failure.
13713 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
13715 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
13717 alloca modernization/simplification for regex.
13718 * lib/regex.c: Remove portability cruft for alloca. This no longer
13719 needs to be at the start of the file, and can be moved into
13720 regex_internal.h and simplified.
13721 * lib/regex_internal.h: Include <alloca.h>.
13722 (__libc_use_alloca) [!defined _LIBC]: New macro.
13723 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
13724 now works outside glibc.
13726 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
13728 * config/srclist.txt: Add glibc bugs 1241, 1245.
13730 2005-08-25 Jim Meyering <jim@meyering.net>
13732 * lib/open-safer.c: Include <config.h>.
13733 Otherwise, we'd lose LARGEFILE support in any file using
13736 2005-08-25 Bruno Haible <bruno@clisp.org>
13738 * m4/minmax.m4: Require autoconf 2.52.
13739 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
13740 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
13741 alternatives of translit over the alphabet.
13742 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
13744 2005-08-24 Simon Josefsson <jas@extundo.com>
13746 * tests/test-getpass.c: New file.
13748 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
13750 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
13751 for GNU regex features.
13753 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
13755 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
13756 * lib/regex.h (regerror): Likewise.
13758 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
13759 requires this. (The code never needed it.)
13761 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
13762 All uses of recently-renamed identifiers changed to use the new,
13763 POSIX-compliant names. The code will build and run just fine
13764 without these changes, but it's better to eat our own dog food
13765 and use the standard-conforming names.
13767 * lib/regex.h: Fix a multitude of POSIX name space violations.
13768 These changes have an effect only for programs that define
13769 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
13770 do not change anything for programs compiled in the normal way.
13771 Also, there is no effect on the ABI.
13773 (_REGEX_SOURCE): New macro.
13774 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
13775 defined and _GNU_SOURCE is not; this fixes a name space violation.
13777 Rename the following macros to obey POSIX requirements.
13778 The old names are still visible as macros if _REGEX_SOURCE is defined.
13779 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
13780 RE_BACKSLASH_ESCAPE_IN_LISTS.
13781 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
13782 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
13783 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
13784 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
13785 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
13786 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
13787 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
13788 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
13789 (REG_INTERVALS): renamed from RE_INTERVALS.
13790 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
13791 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
13792 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
13793 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
13794 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
13795 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
13796 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
13797 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
13798 RE_UNMATCHED_RIGHT_PAREN_ORD.
13799 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
13800 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
13801 (REG_DEBUG): renamed from RE_DEBUG.
13802 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
13803 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
13804 unusual, since we can't clash with the POSIX REG_ICASE.
13805 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
13806 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
13807 (REG_NO_SUB): renamed from RE_NO_SUB.
13808 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
13809 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
13810 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
13811 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
13812 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
13813 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
13814 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
13815 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
13816 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
13817 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
13818 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
13819 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
13820 RE_SYNTAX_POSIX_MINIMAL_BASIC.
13821 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
13822 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
13823 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
13824 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
13825 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
13826 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
13827 (REG_FIXED): Renamed from REGS_FIXED.
13828 (REG_NREGS): Renamed from RE_NREGS.
13830 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
13831 of other REG_* macros, since POSIX says the user is allowed to
13832 #undef these macros selectively.
13834 (reg_errcode_t): Update comment stating what other tables need
13837 Rename the following enum values to obey POSIX requirements.
13838 The old names are still visible as macros.
13839 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
13840 is not defined, since GNU is supposed to be a superset of POSIX as
13841 much as possible, and since we want reg_errcode_t to be a signed
13842 type for implementation consistency.
13843 (_REG_NOERROR): Renamed from REG_NOERROR.
13844 (_REG_NOMATCH): Renamed from REG_NOMATCH.
13845 (_REG_BADPAT): Renamed from REG_BADPAT.
13846 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
13847 (_REG_ECTYPE): Renamed from REG_ECTYPE.
13848 (_REG_EESCAPE): Renamed from REG_EESCAPE.
13849 (_REG_ESUBREG): Renamed from REG_ESUBREG.
13850 (_REG_EBRACK): Renamed from REG_EBRACK.
13851 (_REG_EPAREN): Renamed from REG_EPAREN.
13852 (_REG_EBRACE): Renamed from REG_EBRACE.
13853 (_REG_BADBR): Renamed from REG_BADBR.
13854 (_REG_ERANGE): Renamed from REG_ERANGE.
13855 (_REG_ESPACE): Renamed from REG_ESPACE.
13856 (_REG_BADRPT): Renamed from REG_BADRPT.
13857 (_REG_EEND): Renamed from REG_EEND.
13858 (_REG_ESIZE): Renamed from REG_ESIZE.
13859 (_REG_ERPAREN): Renamed from REG_ERPAREN.
13860 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
13861 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
13862 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
13863 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
13865 (_REG_RE_NAME, _REG_RM_NAME): New macros.
13866 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
13867 changed. But support the old name if the new one is not defined
13868 and if _REGEX_SOURCE.
13870 Change the following member names in struct re_pattern_buffer.
13871 The old names are still supported if !_REGEX_SOURCE.
13872 The new names are always supported, regardless of _REGEX_SOURCE.
13873 (re_buffer): Renamed from buffer.
13874 (re_allocated): Renamed from allocated.
13875 (re_used): Renamed from used.
13876 (re_syntax): Renamed from syntax.
13877 (re_fastmap): Renamed from fastmap.
13878 (re_translate): Renamed from translate.
13879 (re_can_be_null): Renamed from can_be_null.
13880 (re_regs_allocated): Renamed from regs_allocated.
13881 (re_fastmap_accurate): Renamed from fastmap_accurate.
13882 (re_no_sub): Renamed from no_sub.
13883 (re_not_bol): Renamed from not_bol.
13884 (re_not_eol): Renamed from not_eol.
13885 (re_newline_anchor): Renamed from newline_anchor.
13887 Change the following member names in struct re_registers.
13888 The old names are still supported if !_REGEX_SOURCE.
13889 The new names are always supported, regardless of _REGEX_SOURCE.
13890 (rm_num_regs): Renamed from num_regs.
13891 (rm_start): Renamed from start.
13892 (rm_end): Renamed from end.
13894 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
13895 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
13896 Prepend __ to parameter names.
13898 Undo yesterday's changes.
13900 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
13902 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
13903 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
13906 2005-08-24 Jim Meyering <jim@meyering.net>
13908 Sync from coreutils.
13909 * m4/fcntl-safer.m4: New file.
13911 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
13912 and object files for this module.
13914 2005-08-24 Jim Meyering <jim@meyering.net>
13916 Sync from coreutils.
13917 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
13919 2005-08-24 Jim Meyering <jim@meyering.net>
13921 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
13922 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
13924 2005-08-24 Jim Meyering <jim@meyering.net>
13926 * modules/fcntl-safer: New module.
13927 * modules/fts (Depends-on): Add fcntl-safer.
13928 * MODULES.html.sh (File descriptor based Input/Output):
13931 2005-08-24 Bruno Haible <bruno@clisp.org>
13933 Support for unit test modules.
13934 * modules/README: Mention tests modules.
13935 * modules/TEMPLATE-TESTS: New file.
13936 * gnulib-tool: New options --extract-tests-module, --with-tests and
13937 --tests-base (unused for the moment).
13938 (testsbase, inctests): New variables.
13939 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
13940 (func_verify_module): Exclude TEMPLATE-TESTS.
13941 (func_verify_nontests_module, func_verify_tests_module): New functions.
13942 (func_get_dependencies): Add implicit dependency for tests modules.
13943 (func_get_tests_module): New function.
13944 (func_modules_transitive_closure): When --with-tests was specified,
13945 include the unit tests as well, unless explicitly avoided.
13946 (func_emit_lib_Makefile_am): Ignore the tests modules here.
13947 (func_emit_tests_Makefile_am): New function.
13948 (func_create_testdir): When --with-tests was specified, emit a
13950 * MODULES.html.sh (Future developments): Update.
13952 2005-08-24 Bruno Haible <bruno@clisp.org>
13954 * modules/tls-tests: New file.
13955 * tests/test-tls.c: New file, from GNU gettext.
13957 2005-08-24 Bruno Haible <bruno@clisp.org>
13959 * modules/lock-tests: New file.
13960 * tests/test-lock.c: New file, from GNU gettext.
13962 2005-08-24 Bruno Haible <bruno@clisp.org>
13964 * lib/lock.h: Add multiple inclusion guard.
13965 * lib/tls.h: Add multiple inclusion guard.
13967 2005-08-24 Bruno Haible <bruno@clisp.org>
13969 * gnulib-tool: Add support for the --aux-dir option to
13970 --create-testdir, --create-megatestdir, --test, --megatest.
13971 (func_create_testdir, func_create_megatestdir): Optionally emit a
13972 AC_CONFIG_AUX_DIR directive.
13973 (create-testdir, create-megatestdir, test, megatest): Provide a
13974 default value for $auxdir.
13976 2005-08-24 Bruno Haible <bruno@clisp.org>
13978 * gnulib-tool (import): Use compound statement instead of subshell
13981 2005-08-24 Bruno Haible <bruno@clisp.org>
13983 * gnulib-tool (import): Change --aux-dir default to "build-aux".
13985 2005-08-24 Bruno Haible <bruno@clisp.org>
13987 * gnulib-tool (func_version): Update.
13989 2005-08-24 Bruno Haible <bruno@clisp.org>
13991 * gnulib-tool (func_import, func_create_testdir,
13992 func_create_megatestdir): Quote all autoconf macro arguments.
13994 2005-08-24 Bruno Haible <bruno@clisp.org>
13996 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
13997 option --force, because --force causes the aclocal.m4 of each
13998 subdirectory to be newer than the corresponding config.h.in.
14000 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
14002 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
14003 All contents moved to gl_REGEX.
14004 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
14005 assume that it does.
14007 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
14009 * lib/regex.h (REG_NOSYS)
14010 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
14011 Define, since POSIX requires it as of 2001.
14013 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
14014 New private symbol, used to keep the enum signed in all cases.
14015 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
14017 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
14019 * lib/regex_internal.c (re_string_skip_chars, register_state):
14021 Remove forward decls; no longer needed now that we use prototypes.
14022 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
14023 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
14024 (clean_state_log_if_needed): Likewise.
14026 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
14028 * config/srclist.txt: Add glibc bugs 1231-1233.
14030 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
14032 Fix problems reported by Sam Steingold in
14033 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
14034 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
14035 assumed that reg_errcode_t is a signed type, which is not
14036 necessarily true if _XOPEN_SOURCE is not defined.
14037 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
14038 since some compilers warn about it otherwise.
14040 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
14042 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
14043 (init_word_char, create_initial_state, duplicate_node_closure):
14044 (fetch_token, peek_token_bracket, build_range_exp):
14045 (build_collating_symbol): Remove forward decls; no longer needed
14046 now that we use prototypes.
14049 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
14050 (re_compile_fastmap_iter, regcomp, regerror, regfree):
14051 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
14052 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
14053 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
14054 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
14055 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
14056 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
14057 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
14058 (build_range_exp, build_collating_symbol, parse_bracket_exp):
14059 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
14060 (build_charclass, build_charclass_op, fetch_number, create_tree):
14061 (create_token_tree, mark_opt_subexp, duplicate_tree):
14062 Use prototypes rather than old-style definitions.
14064 * lib/regex_internal.c:
14065 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
14066 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
14067 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
14068 (re_string_reconstruct, re_string_peek_byte_case):
14069 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
14070 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
14071 (re_node_set_init_copy, re_node_set_add_intersect):
14072 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
14073 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
14074 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
14075 (re_acquire_state, re_acquire_state_context, register_state):
14076 (create_ci_newstate, create_cd_newstate, free_state):
14078 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
14080 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
14081 (re_search_internal, prune_impossible_nodes):
14082 (acquire_init_state_context, check_matching, static):
14083 (check_halt_node_context, check_halt_state_context, proceed_next_node):
14084 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
14085 (update_regs, sift_states_backward, build_sifted_states):
14086 (clean_state_log_if_needed, merge_state_array):
14087 (update_cur_sifted_state, add_epsilon_src_nodes):
14088 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
14089 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
14090 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
14091 (find_recover_state, check_subexp_matching_top, transit_state_mb):
14092 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
14093 (check_arrival, check_arrival_add_next_nodes):
14094 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
14095 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
14096 (check_node_accept_bytes, check_node_accept, extend_buffers):
14097 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
14098 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
14102 * lib/regex_internal.h:
14103 (re_string_allocate, re_string_construct, re_string_reconstruct):
14104 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
14105 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
14106 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
14107 (re_string_context_at, re_string_peek_byte_case):
14108 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
14109 is defined, since we now use prototypes always.
14111 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
14112 C89 or better. All uses removed.
14114 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
14116 * config/srclist.txt: Add glibc bugs 1220-1227.
14118 2005-08-20 Jim Meyering <jim@meyering.net>
14120 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
14121 of unused local, dfa.
14123 2005-08-20 Bruno Haible <bruno@clisp.org>
14125 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
14127 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
14129 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
14130 (re_node_set_insert_last, re_dfa_add_node):
14131 Rename local variables to avoid GCC shadowing warnings.
14133 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
14135 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
14136 [defined lint]: Suppress bogus uninitialized-variable warnings.
14138 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
14139 and let the caller return REG_ESPACE if out of space. This
14140 removes an uninitialied-variable warning with GCC 4.0.1, and also
14141 avoids taking the address of a local variable. All callers
14144 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
14146 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
14147 $LIBCSRC/posix/regexec.c.
14148 Add glibc bug 1217 for regcomp.c.
14150 2005-08-19 Jim Meyering <jim@meyering.net>
14152 * lib/regexec.c (proceed_next_node): Redo local variables to
14153 avoid GCC shadowing warnings.
14155 2005-08-18 Bruno Haible <bruno@clisp.org>
14157 * lib/strstr.c (strstr): Fix return value in multibyte case.
14158 * lib/strcasestr.c (strcasestr): Likewise.
14160 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
14162 * lib/regex.h: Remove useless space-before-tab. From coreutils.
14164 2005-08-17 Jim Meyering <jim@meyering.net>
14166 Make the %s format (seconds since the epoch) work for a negative
14167 number and when used with a zero-padded field width, e.g. %015s.
14169 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
14170 label so that it precedes the code to set `digits'. Otherwise,
14171 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
14172 print `00-22'. Now, it prints `-0022', as it should.
14174 2005-08-17 Bruno Haible <bruno@clisp.org>
14176 * modules/strstr (Files): Add m4/mbrtowc.m4.
14177 (Depends-on): Add mbuiter.
14179 2005-08-17 Bruno Haible <bruno@clisp.org>
14181 * modules/strcasestr: New file.
14182 * MODULES.html.sh (String handling, based on ANSI C 89): Add
14185 2005-08-17 Bruno Haible <bruno@clisp.org>
14187 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
14189 2005-08-17 Bruno Haible <bruno@clisp.org>
14191 * modules/mbuiter: New file.
14192 * MODULES.html.sh (Extended multibyte and wide character utilities):
14195 2005-08-17 Bruno Haible <bruno@clisp.org>
14197 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
14198 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
14200 2005-08-17 Bruno Haible <bruno@clisp.org>
14202 * m4/strcasestr.m4: New file.
14204 2005-08-17 Bruno Haible <bruno@clisp.org>
14206 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
14207 * lib/strstr.c: Completely rewritten, with multibyte locale support.
14209 2005-08-17 Bruno Haible <bruno@clisp.org>
14211 * lib/strcasestr.h: New file.
14212 * lib/strcasestr.c: New file.
14214 2005-08-17 Bruno Haible <bruno@clisp.org>
14216 * lib/strcasecmp.c: Use mbuiter.h.
14218 2005-08-17 Bruno Haible <bruno@clisp.org>
14220 * lib/mbuiter.h: New file.
14222 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
14224 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
14225 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
14226 and gl_GETOPT are both invoked via different paths (as happens
14227 with GNU tar CVS because it uses both argp and getopt), the former
14230 2005-08-16 Bruno Haible <bruno@clisp.org>
14232 * modules/tls: New file.
14233 * MODULES.html.sh (Multithreading): Add tls.
14235 2005-08-16 Bruno Haible <bruno@clisp.org>
14237 * modules/strnlen1: New file.
14238 * MODULES.html.sh (String handling): Add strnlen1.
14240 2005-08-16 Bruno Haible <bruno@clisp.org>
14242 * modules/strcase (Files): Add m4/mbrtowc.m4.
14243 (Depends-on): Add strnlen1, mbchar.
14245 2005-08-16 Bruno Haible <bruno@clisp.org>
14247 * modules/mbiter: New file.
14248 * MODULES.html.sh (Extended multibyte and wide character utilities):
14251 2005-08-16 Bruno Haible <bruno@clisp.org>
14253 * modules/mbfile: New file.
14254 * MODULES.html.sh (Extended multibyte and wide character utilities):
14257 2005-08-16 Bruno Haible <bruno@clisp.org>
14259 * modules/mbchar: New file.
14260 * MODULES.html.sh (Extended multibyte and wide character utilities):
14263 2005-08-16 Bruno Haible <bruno@clisp.org>
14265 * m4/tls.m4: New file, from GNU gettext.
14267 2005-08-16 Bruno Haible <bruno@clisp.org>
14269 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
14271 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
14273 2005-08-16 Bruno Haible <bruno@clisp.org>
14275 * m4/mbiter.m4: New file.
14277 2005-08-16 Bruno Haible <bruno@clisp.org>
14279 * m4/mbfile.m4: New file.
14281 2005-08-16 Bruno Haible <bruno@clisp.org>
14283 * m4/mbchar.m4: New file.
14285 2005-08-16 Bruno Haible <bruno@clisp.org>
14287 * lib/tls.h: New file, from GNU gettext.
14288 * lib/tls.c: New file, from GNU gettext.
14290 2005-08-16 Bruno Haible <bruno@clisp.org>
14292 * lib/strnlen1.h: New file.
14293 * lib/strnlen1.c: New file.
14295 2005-08-16 Bruno Haible <bruno@clisp.org>
14297 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
14298 (mbi_init): Update.
14299 (mbi_avail, mbi_advance): Let the iteration end before the terminating
14300 NUL byte, not after it.
14302 2005-08-16 Bruno Haible <bruno@clisp.org>
14304 * lib/strcase.h (strcasecmp): Add note in comments.
14305 * lib/strncasecmp.c: Use code from strcasecmp.c.
14306 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
14307 (strcasecmp): Work correctly in multibyte locales.
14309 2005-08-16 Bruno Haible <bruno@clisp.org>
14311 * lib/mbiter.h: New file.
14313 2005-08-16 Bruno Haible <bruno@clisp.org>
14315 * lib/mbfile.h: New file.
14317 2005-08-16 Bruno Haible <bruno@clisp.org>
14319 * lib/mbchar.h: New file.
14320 * lib/mbchar.c: New file.
14322 2005-08-16 Bruno Haible <bruno@clisp.org>
14324 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
14325 the valid ones. Makes the comparison operations transitive:
14326 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
14327 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
14329 2005-08-15 Simon Josefsson <jas@extundo.com>
14331 * modules/ssize_t (License): Change to 'unlimited'.
14333 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
14335 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
14337 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
14338 Add comments for each pending glibc patch.
14340 2005-08-15 Bruno Haible <bruno@clisp.org>
14342 * lib/regex.h (__restrict_arr): Don't define to __restrict if
14343 __cplusplus is defined.
14345 2005-08-14 Jim Meyering <jim@meyering.net>
14347 Sync from coreutils.
14349 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
14350 Use the hash-table-based cycle-detection code not just when
14351 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
14352 Reported by James Youngman in
14353 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
14354 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
14355 FTS_TIGHT_CYCLE_CHECK.
14356 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
14357 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
14359 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
14360 * lib/fts.c (fd_safer): Remove decl.
14361 Include fcntl--.h rather than unistd-safer.h
14362 (fts_safe_changedir): Don't call fd_safer; no longer needed
14363 now that we include fcntl--.h.
14365 2005-08-12 Simon Josefsson <jas@extundo.com>
14367 * modules/getndelim2: Use ssize_t module.
14368 * modules/getnline: Likewise.
14369 * modules/safe-read: Likewise.
14370 * modules/xreadlink: Likewise.
14372 * modules/ssize_t: New file.
14374 2005-08-12 Simon Josefsson <jas@extundo.com>
14376 * m4/readline.m4: Look for termcap, curses or ncurses if required.
14378 2005-08-12 Simon Josefsson <jas@extundo.com>
14380 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14383 2005-08-12 Simon Josefsson <jas@extundo.com>
14385 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
14386 readline, getdelim and check_version.
14387 (Support for systems lacking ISO C 99: Sizes of integer types):
14390 2005-08-12 Bruno Haible <bruno@clisp.org>
14392 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
14394 2005-08-11 Simon Josefsson <jas@extundo.com>
14396 * modules/readline: New file.
14398 * modules/strnlen (Files): Add strnlen.h.
14400 2005-08-11 Simon Josefsson <jas@extundo.com>
14402 * m4/readline.m4: New file.
14404 2005-08-11 Simon Josefsson <jas@extundo.com>
14406 * lib/readline.h, readline.c: New file.
14408 2005-08-11 Simon Josefsson <jas@extundo.com>
14410 * doc/gnulib.texi (Initial import, Finishing touches): Mention
14413 2005-08-11 Bruno Haible <bruno@clisp.org>
14415 * lib/strnlen.h (strnlen): Change parameter name to match comment.
14417 2005-08-10 Stepan Kasal <kasal@ucw.cz>
14419 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
14421 2005-08-10 Simon Josefsson <jas@extundo.com>
14423 * tests/test-iconvme.c: New file.
14425 2005-08-10 Simon Josefsson <jas@extundo.com>
14427 * m4/strnlen.m4: New file.
14429 * m4/strndup.m4: Don't check for strnlen declaration, done in
14432 2005-08-10 Simon Josefsson <jas@extundo.com>
14434 * lib/strndup.c: Use strnlen.h.
14436 * lib/strnlen.h: New file.
14438 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
14442 2005-08-02 Simon Josefsson <jas@extundo.com>
14444 * modules/readline: New file.
14446 2005-08-02 Simon Josefsson <jas@extundo.com>
14448 * modules/getdelim: New file.
14450 * modules/getline: Rewrite, don't use getndelim2.
14452 2005-08-02 Simon Josefsson <jas@extundo.com>
14454 * m4/getline.m4: Separate out getdelim stuff into separate module.
14456 * m4/getdelim.m4: New file.
14458 2005-08-02 Simon Josefsson <jas@extundo.com>
14460 * lib/getline.h, getline.c: Rewrite.
14462 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
14464 2005-07-31 Bruno Haible <bruno@clisp.org>
14466 * lib/lock.h (gl_lock_initializer): New macro.
14467 (gl_lock_define_initialized): Use it.
14468 (gl_rwlock_initializer): New macro.
14469 (gl_rwlock_define_initialized): Use it.
14470 (gl_recursive_lock_initializer): New macro.
14471 (gl_recursive_lock_define_initialized): Use it.
14473 2005-07-30 Karl Berry <karl@gnu.org>
14475 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
14476 Report from Ben Pfaff, regarding getopt.
14478 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
14480 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
14482 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
14483 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
14484 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
14485 (gl_GETOPT): Use the new macros. Most of the implementation
14486 is moved to the new macros. This is for programs like Emacs
14487 that don't want all the functionality of gl_GETOPT.
14489 2005-07-26 Bruno Haible <bruno@clisp.org>
14491 * m4/lock.m4: Update from GNU gettext.
14493 2005-07-26 Bruno Haible <bruno@clisp.org>
14495 * lib/lock.h: Update from GNU gettext.
14496 * lib/lock.c: Update from GNU gettext.
14498 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
14500 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
14501 obsolescent AC_TRY_RUN. Include the default includes files, for
14504 2005-07-24 Bruno Haible <bruno@clisp.org>
14506 * modules/visibility: New file.
14507 * MODULES.html.sh (Misc): Add visibility.
14509 2005-07-24 Bruno Haible <bruno@clisp.org>
14511 * m4/visibility.m4: New file.
14513 2005-07-24 Bruno Haible <bruno@clisp.org>
14515 * doc/visibility.texi: New file.
14517 2005-07-22 Bruno Haible <bruno@clisp.org>
14519 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
14520 $(ALLOCA_H), redundant through BUILT_SOURCES.
14521 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
14522 redundant through BUILT_SOURCES.
14523 * modules/byteswap (Makefile.am): Remove explicit dependency on
14524 $(BYTESWAP_H), redundant through BUILT_SOURCES.
14525 * modules/fnmatch (Makefile.am): Remove explicit dependency on
14526 $(FNMATCH_H), redundant through BUILT_SOURCES.
14527 * modules/getopt (Makefile.am): Remove explicit dependency on
14528 $(GETOPT_H), redundant through BUILT_SOURCES.
14529 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
14530 redundant through BUILT_SOURCES.
14531 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
14532 redundant through BUILT_SOURCES.
14533 * modules/stdbool (Makefile.am): Remove explicit dependency on
14534 $(STDBOOL_H), redundant through BUILT_SOURCES.
14535 * modules/stdint (Makefile.am): Remove explicit dependency on
14536 $(STDINT_H), redundant through BUILT_SOURCES.
14537 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
14538 Remove explicit dependency on $(SYSEXITS_H).
14539 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
14541 2005-07-18 Simon Josefsson <jas@extundo.com>
14543 * lib/check-version.c (check_version): Accept identical versions too.
14545 2005-07-18 Bruno Haible <bruno@clisp.org>
14547 * modules/lock: New file.
14548 * MODULES.html.sh (Multithreading): New section.
14550 2005-07-18 Bruno Haible <bruno@clisp.org>
14552 * m4/lock.m4: New file, from GNU gettext.
14554 2005-07-18 Bruno Haible <bruno@clisp.org>
14556 * lib/lock.h: New file, from GNU gettext.
14557 * lib/lock.c: New file, from GNU gettext.
14559 2005-07-18 Bruno Haible <bruno@clisp.org>
14561 * lib/lock.h (gl_once_t): New type.
14562 (gl_once_define, gl_once): New macros.
14563 * lib/lock.c (fresh_once): New variable.
14564 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
14567 2005-07-16 Simon Josefsson <jas@extundo.com>
14569 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
14570 workaround, suggested by Bruno.
14572 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
14574 * modules/xalloc (Depends-on): Add xalloc-die.
14575 * modules/xvasprintf (Depends-on): Add xalloc-die.
14577 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
14579 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
14580 with a minor change.
14582 2005-07-15 Bruno Haible <bruno@clisp.org>
14584 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
14585 When using lib/poll.c, define poll as rpl_poll.
14587 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
14589 * modules/argp (Depends-on): Remove unlocked-io.
14591 2005-07-14 Derek Price <derek@ximbiot.com>
14593 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
14594 for glob symlink bug.
14596 2005-07-14 Bruno Haible <bruno@clisp.org>
14598 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
14599 Instead, test for *_unlocked function declarations directly.
14601 2005-07-11 Simon Josefsson <jas@extundo.com>
14603 * modules/size_max: New file.
14605 * modules/xsize: Depend on size_max module for size_max.m4.
14607 2005-07-11 Simon Josefsson <jas@extundo.com>
14609 * lib/size_max.h: New file.
14611 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
14613 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
14614 copyright symbol and the year.
14615 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
14616 (version_etc_va): Use parameterized copyright notice.
14617 Reword to conform to the current GNU coding standards.
14619 2005-07-11 Karl Berry <karl@gnu.org>
14621 * doc/gnulib.texi (Quoting): new node.
14622 (Initial import): more info, from Patrice.
14624 2005-07-11 Bruno Haible <bruno@clisp.org>
14626 * gnulib-tool (func_usage): Document option --avoid.
14627 (Command line options): Handle --avoid.
14628 (func_acceptable): New function.
14629 (func_modules_transitive_closure): Use it.
14631 2005-07-11 Bruno Haible <bruno@clisp.org>
14633 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
14634 Reported by Jim Meyering.
14636 2005-07-10 Bruno Haible <bruno@clisp.org>
14638 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
14639 Needed when size_t is smaller than 'unsigned int'.
14640 Reported by Paul Eggert.
14642 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
14644 * modules/argp (Depends-on): Add unlocked-io
14646 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
14648 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
14651 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
14653 * config/srclist.txt: Comment out regcomp.c, since we have a porting
14656 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
14657 and Paul Eggert <eggert@cs.ucla.edu>
14659 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
14660 in wint_t, not wchar_t. Remove now-unnecessary cast.
14662 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
14664 * modules/regex (Files): Add lib/regex_internal.c,
14665 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
14666 (Depends-on): Add extensions.
14667 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
14669 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
14671 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
14673 * m4/same.m4 (gl_SAME): Likewise.
14674 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
14676 * m4/regex.m4: Adjust to new libc regex implementation.
14677 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
14678 all the .c and .h parts of (the new) regex.
14679 Quote the m4 stuff better.
14680 Check for RE_ICASE bug of old gnulib.
14681 Check for REG_STARTEND of recent libc.
14682 Rename local variables from jm_* to gl_*.
14683 Quote operand of "test -f".
14684 Say "recent enough" version of libc, not "version 2".
14685 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
14686 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
14687 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
14688 Remove check for btowc, isascii.
14689 Require AM_LANGINFO_CODESET.
14691 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
14693 * lib/regex.c, regex.h: Sync from libc.
14694 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
14696 New files, synced from libc, except that regex_internal.h
14697 currently has a small porting fix.
14699 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
14701 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
14702 regex_internal.c, regexec.c.
14703 Add regex_internal.h too, but as a comment, since the libc version
14704 is currently broken in gnulib mode.
14706 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
14708 Support programs like Emacs that use gnulib but not gettext.
14709 * MODULES.html.sh (Internationalization functions): Add gettext-h.
14710 * modules/gettext-h: New file.
14711 * modules/gettext (Files): Remove lib/gettext.h.
14712 (Depends-on): Add gettext-h.
14713 (Makefile.am): Remove lib_SOURCES.
14714 * modules/argmatch, modules/c-stack, modules/closeout:
14715 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
14716 * modules/execute, modules/file-type, modules/getaddrinfo:
14717 * modules/getopt, modules/human, modules/javacomp:
14718 * modules/javaexec, modules/mkdir-p, modules/obstack:
14719 * modules/openat, modules/pagealign_alloc, modules/pipe:
14720 * modules/quotearg, modules/regex, modules/rpmatch:
14721 * modules/unicodeio, modules/userspec, modules/version-etc:
14722 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
14724 Depend on gettext-h, not gettext.
14726 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
14728 * gnulib-tool (func_import): Add support for 'public domain' license.
14729 * modules/alloca, modules/atexit, modules/memmove:
14730 Now public domain, not GPL.
14731 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
14732 * modules/realloc, modules/strerror, modules/strtod:
14735 2005-07-05 Bruno Haible <bruno@clisp.org>
14737 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
14738 autoconf CVS. Needed for mingw.
14740 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
14742 Remove the dependency of the strftime module on the tzset module.
14743 * modules/strftime (Depends-on): Remove dependency on tzset.
14745 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
14747 Remove the dependency of the strftime module on the tzset module.
14748 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
14749 gl_FUNC_TZSET_CLOBBER.
14751 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
14753 Remove the dependency of the strftime module on the tzset module.
14754 * lib/strftime.c (my_strftime)
14755 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
14756 Copy the input structure, to work around some of the bug with
14757 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
14758 Solaris releases, you should also use the tzset module, but we won't
14759 require it as a dependency any more since we don't want LGPLed code
14760 to depend on GPLed code.
14762 2005-07-02 Jim Meyering <jim@meyering.net>
14764 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
14765 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
14766 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
14767 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
14769 2005-07-02 Jim Meyering <jim@meyering.net>
14771 * lib/backupfile.c (backup_args): Change a `0' to NULL.
14773 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
14775 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
14776 declares only 'struct timespec;' (!).
14778 2005-07-01 Jim Meyering <jim@meyering.net>
14780 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
14781 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
14782 * lib/save-cwd.c, tempname.c:
14783 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
14784 and don't include <sys/file.h>).
14786 2005-06-29 Jim Meyering <jim@meyering.net>
14788 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
14789 type name. Use the variable name instead.
14790 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
14793 2005-06-28 Simon Josefsson <jas@extundo.com>
14795 * modules/check-version (Files): Add check-version.m4.
14797 2005-06-28 Simon Josefsson <jas@extundo.com>
14799 * m4/check-version.m4: New file, suggested by Jim Meyering
14800 <jim@meyering.net>.
14802 2005-06-28 Simon Josefsson <jas@extundo.com>
14804 * lib/check-version.h, lib/check-version.c: New files.
14806 2005-06-28 Simon Josefsson <jas@extundo.com>
14808 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
14809 collision with global variable. Better indentation. Don't
14810 increment buffer pointer beyond buffer end. Based on comments
14811 from Paul Eggert <eggert@cs.ucla.edu>.
14813 * lib/base64.h: Indent.
14815 2005-06-28 Simon Josefsson <jas@extundo.com>
14817 * doc/gnulib.texi (Library version handling): New section.
14819 2005-06-28 Jim Meyering <jim@meyering.net>
14821 * check-module (find_included_lib_files): Hard-code another
14822 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
14823 but modules/fts-lgpl (correctly) does not list those files.
14825 * modules/canonicalize (Files): Add lib/pathmax.h.
14827 2005-06-25 Simon Josefsson <jas@extundo.com>
14829 * modules/check-version: New file.
14831 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
14833 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
14834 initializer of struct addrinfo, as an indication that we don't
14835 care how many members the structure has.
14837 2005-06-24 Derek Price <derek@ximbiot.com>
14838 and Bruno Haible <bruno@clisp.org>
14840 Remove stat module & update lstat.
14841 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
14842 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
14843 * m4/stat.m4: Remove this file.
14845 2005-06-24 Derek Price <derek@ximbiot.com>
14846 and Bruno Haible <bruno@clisp.org>
14848 Remove stat module & update lstat.
14849 * lib/stat.c: Remove this file...
14850 (slash_aware_lstat): ...moving this content and its support...
14851 * lib/lstat.c (rpl_lstat): ...into here.
14852 * lib/lstat.h: New file.
14854 2005-06-24 Derek Price <derek@ximbiot.com>
14855 and Bruno Haible <bruno@clisp.org>
14857 Remove stat module & update lstat.
14858 * config/srclist.txt (libc sources): Remove stat.
14860 2005-06-24 Derek Price <derek@ximbiot.com>
14861 and Bruno Haible <bruno@clisp.org>
14863 Remove stat module & update lstat.
14864 * MODULES.html.sh (stat): Remove.
14865 * MODULES.html: Regenerated.
14866 * modules/lstat (Description): Correct function name.
14867 (Files): Add "lstat.h".
14868 (Depends-on): Remove stat, add xalloc, stat-macros.
14869 * modules/stat: Remove this file.
14870 (Include): Add "lstat.h", remove <sys/stat.h>.
14872 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
14874 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
14875 (ranged_convert): Don't save conversion in a temporary struct.
14876 This causes a warning with GCC 4.0.0, and anyway in the typical
14877 case it's not worth the extra 100 bytes or so of code.
14878 (ranged_convert, __mktime_internal): When calling a function via a
14879 pointer P, use P () rather than (*P) (), as we now assume C89 or
14882 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
14884 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
14885 "who -r" failed to give output. Problem reported by Tim Waugh.
14887 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
14888 (xcalloc): Use it to avoid needless tests.
14889 Problem reported by Jim Meyering.
14891 2005-06-20 Derek Price <derek@ximbiot.com>
14893 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
14894 unnecessary for Autoconfs > 2.59c.
14896 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
14898 * lib/argp.h (__option_is_short): Check upper limit of
14899 __key. Isprint() requires its argument to have the value
14900 of an unsigned char or EOF.
14902 2005-06-16 Jim Meyering <jim@meyering.net>
14904 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
14905 when either N or S is zero.
14907 2005-06-16 Derek Price <derek@ximbiot.com>
14909 * m4/bison.m4: Declare YACC & YFLAGS precious.
14911 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
14913 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
14914 multibyte string or pattern, fall back on unibyte matching.
14915 Problem reported by James Youngman.
14917 2005-06-08 Bruno Haible <bruno@clisp.org>
14919 * modules/csharpcomp: New file.
14920 * MODULES.html.sh (C#): Add csharpcomp.
14922 2005-06-08 Bruno Haible <bruno@clisp.org>
14924 * m4/csharpcomp.m4: New file, from GNU gettext.
14926 2005-06-08 Bruno Haible <bruno@clisp.org>
14928 * lib/csharpcomp.h: New file, from GNU gettext.
14929 * lib/csharpcomp.c: New file, from GNU gettext.
14930 * lib/csharpcomp.sh.in: New file, from GNU gettext.
14932 2005-06-08 Bruno Haible <bruno@clisp.org>
14934 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
14937 2005-06-07 Derek Price <derek@ximbiot.com>
14940 * lib/glob_.h: Indent nested #ifdef.
14942 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
14944 Sync from coreutils.
14945 Use "file name" when talking about file names, instead of "filename"
14946 or "path", as per the GNU coding standards.
14947 * lib/mkdir-p.c: Renamed from makepath.c.
14948 (make_dir_parents): Renamed from make_path. All callers changed.
14949 * lib/mkdir-p.h: Likewise. All includers changed.
14950 * lib/filenamecat.c: Renamed from path-concat.c.
14951 (file_name_concat): Renamed from path_concat. All callers changed.
14952 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
14953 * lib/filenamecat.h: Likewise. All includers changed.
14954 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
14955 in comments or local variable names.
14956 * lib/basename.c: Likewise.
14957 * lib/canonicalize.c, canonicalize.h: Likewise.
14958 * lib/dirname.c, dirname.h: Likewise.
14959 * lib/euidaccess.c: Likewise.
14960 * lib/exclude.c: Likewise
14961 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
14962 * lib/fsusage.c, fsuage.h: Likewise.
14963 * lib/fts.c, fts_.h: Likewise.
14964 * lib/getcwd.c: Likewise.
14965 * lib/getloadavg.c: Likewise.
14966 * lib/mkstemp.c: Likewise.
14967 * lib/mountlist.c, mountlist.h: Likewise.
14968 * lib/openat.c, openat.h: Likewise.
14969 * lib/readlink-stub.c: Likewise.
14970 * lib/readutmp.c, readutmp.h: Likewise.
14971 * lib/rename.c: Likewise.
14972 * lib/rmdir.c: Likewise.
14973 * lib/same.c: Likewise.
14974 * lib/savedir.c: Likewise.
14975 * lib/stripslash.c: Likewise.
14976 * lib/tempname.c: Likewise.
14977 * lib/xreadlink.c: Likewise.
14978 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
14980 * lib/exclude.h: Likewise.
14982 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
14983 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
14984 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
14985 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
14986 * lib/pathmax.h: Include <limits.h> unconditionally, since other
14987 files have been getting away with it for years (MORE/BSD 4.3
14989 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
14990 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
14992 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
14993 Define to 256, not 255, as per modern POSIX.
14995 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
14997 Sync from coreutils.
14998 Use "file name" when talking about file names, instead of "filename"
14999 or "path", as per the GNU coding standards.
15000 * MODULES.html.sh: mkdir-p renamed from makepath.
15001 filenamecat renamed from path-concat.
15002 * modules/filenamecat: Renamed from modules/path-concat.
15003 (Files): filenamecat.h and filenamecat.c renamed from
15004 path-concat.h and path-concat.c.
15005 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
15006 (Include): filenamecat.h, not path-concat.h.
15007 * modules/mkdir-p: Renamed from modules/makepath.
15008 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
15010 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
15011 (Include): mkdir-p.h, not makepath.h.
15013 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
15015 Sync from coreutils.
15016 * m4/mkdir-p.m4: Renamed from makepath.m4.
15017 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
15018 Rename files from makepath.c to mkdir-p.c, and from
15019 makepath.h to mkdir-p.h.
15020 * m4/filenamecat.m4: Renamed from path-concat.m4.
15021 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
15022 Rename files from path-concat.c to filenamecat.c,
15023 and from path-concat.h to filenamecat.h.
15024 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
15025 "file name" in local variables or comments.
15026 * m4/rename.m4: Likewise.
15028 2005-06-01 Bruno Haible <bruno@clisp.org>
15030 * modules/csharpexec: New file.
15031 * MODULES.html.sh (C#): New section.
15033 2005-06-01 Bruno Haible <bruno@clisp.org>
15035 * m4/csharp.m4: New file, from GNU gettext.
15036 * m4/csharpexec.m4: New file, from GNU gettext.
15038 2005-06-01 Bruno Haible <bruno@clisp.org>
15040 * lib/csharpexec.h: New file, from GNU gettext.
15041 * lib/csharpexec.c: New file, from GNU gettext.
15042 * lib/csharpexec.sh.in: New file, from GNU gettext.
15044 2005-05-31 Derek Price <derek@ximbiot.com>
15045 Paul Eggert <eggert@cs.ucla.edu>
15048 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
15050 2005-05-31 Derek Price <derek@ximbiot.com>
15051 Paul Eggert <eggert@cs.ucla.edu>
15054 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
15056 2005-05-29 Derek Price <derek@ximbiot.com>
15058 * config/srclist.txt (glob_.h, glob.c): Add these files.
15060 2005-05-29 Derek Price <derek@ximbiot.com>
15062 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
15063 * modules/glob: New file.
15064 * modules/getlogin_r: Add link to POSIX spec in description.
15066 2005-05-29 Derek Price <derek@ximbiot.com>
15067 Paul Eggert <eggert@cs.ucla.edu>
15069 * m4/glob.m4: New file.
15071 2005-05-29 Derek Price <derek@ximbiot.com>
15072 Paul Eggert <eggert@cs.ucla.edu>
15074 * lib/glob_.h, lib/glob.c: New files.
15076 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
15078 * modules/fts (Files): Remove m4/inttypes-pri.m4.
15079 * modules/fts-lgpl (Depends-on): Remove gettext.
15081 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
15083 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
15084 and don't require gt_INTTYPES_PRI.
15086 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
15088 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
15090 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
15091 the configuration hassle isn't worth it.
15092 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
15093 (LONGEST_MODIFIER, PRIuMAX): Remove.
15095 2005-05-27 Bruno Haible <bruno@clisp.org>
15097 * lib/getlogin_r.h: Remove second include of <stddef.h>.
15099 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
15101 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
15102 _POSIX_PTHREAD_SEMANTICS for Solaris.
15104 2005-05-25 Derek Price <derek@ximbiot.com>
15106 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
15108 2005-05-25 Derek Price <derek@ximbiot.com>
15109 Paul Eggert <eggert@cs.ucla.edu>
15111 * modules/getlogin_r, m4/getlogin_r.m4: New files.
15112 * lib/getlogin_r.c, getlogin_r.h: New files.
15114 2005-05-25 Bruno Haible <bruno@clisp.org>
15115 Derek Price <derek@ximbiot.com>
15117 * lib/getlogin_r.h: Simplify API documentation.
15119 2005-05-23 Derek Price <derek@ximbiot.com>
15121 * modules/minmax (Files): Add m4/minmax.m4.
15122 (configure.ac): Add gl_MINMAX.
15124 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
15126 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
15127 so that unistd-safer.h (GPL'ed code) need not be included.
15129 2005-05-22 Bruno Haible <bruno@clisp.org>
15131 * m4/minmax.m4: New file.
15132 Based on a patch by Derek Price <derek@ximbiot.com>.
15134 2005-05-22 Bruno Haible <bruno@clisp.org>
15136 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
15137 (INT64_MIN): Fix definition.
15138 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
15140 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
15141 NEED_SIGNED_INT_TYPES.
15143 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
15144 HAVE_SYSTEM_INTTYPES.
15146 2005-05-22 Bruno Haible <bruno@clisp.org>
15148 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
15149 Also include <sys/param.h> if it defines MIN, MAX.
15150 Based on a patch by Derek Price <derek@ximbiot.com>.
15152 2005-05-21 Jim Meyering <jim@meyering.net>
15154 * modules/fts (Files): Add m4/inttypes-pri.m4.
15155 (Depends-on): Add lstat and remove gettext. Alphabetize.
15157 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
15160 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
15161 (setup_dir, free_dir): New functions.
15162 (enter_dir, leave_dir): Define trivial
15163 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
15164 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
15165 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
15166 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
15167 Move to fts-cycle.c.
15168 (fts_open): Use setup_dir.
15169 (fts_close): Use free_dir.
15170 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
15171 This adds a label and some gotos, but the alternatives were messier.
15172 Check for memory allocation failure when entering a dir.
15173 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
15174 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
15175 (FTS): New member fts_cycle, that is a union that contains the
15176 old active_dir_ht and cycle_state. All uses changed to mention
15177 fts_cycle.ht and fts_cycle.state.
15178 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
15179 fts.c, with the following changes:
15180 (setup_dir, free_dir): New functions.
15181 (enter_dir): Now returns bool. Return true if successful, false
15182 if memory exhausted. All callers changed.
15183 Do not bother partly cleaning up on
15184 memory allocation failure; that is free_dir's job.
15185 However, free ad if hash_insert fails, to avoid memory leak.
15186 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
15187 fts->fts_options to see which union member to use.
15189 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
15191 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
15192 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
15194 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
15196 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
15198 2005-05-20 Jim Meyering <jim@meyering.net>
15200 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
15201 Now a macro, to pacify GCC.
15203 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
15205 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
15208 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
15210 * lib/chown.c (rpl_chown): Return -1 on failure.
15212 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
15214 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
15215 Don't check for stddef.h.
15216 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
15217 don't use its results.
15218 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
15219 since we include them unconditionally. Don't require
15220 AM_STDBOOL_H, since stdbool is a prerequisite.
15221 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
15222 since we assume C89 or better.
15223 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
15224 as we don't use their results.
15225 Don't check for fchdir, memmove, memset, strrchr, as we use
15226 them unconditionally.
15227 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
15228 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
15230 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
15232 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
15233 Include <stddef.h> unconditionally, since we assume C89 now.
15234 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
15235 * lib/fts.c: Include fts_.h first, to check interface.
15236 Do not include intprops.h; no longer needed.
15237 Include cycle-check.h and hash.h, since fts_.h no longer does.
15238 Remove unnecessary casts of closedir to void.
15239 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
15240 decide whether to decrement nlinks.
15241 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
15242 (FTS): Use struct hash_table * instead of Hash_table, so that
15243 we no longer need to include hash.h here.
15245 2005-05-18 Jim Meyering <jim@meyering.net>
15247 * modules/dirfd (License): Change to LGPL. Most of the code
15248 is already in the public domain.
15250 2005-05-18 Jim Meyering <jim@meyering.net>
15252 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
15253 Reported by Yoann Vandoorselaere.
15255 2005-05-17 Jim Meyering <jim@meyering.net>
15257 * m4/fts.m4: New file, from coreutils.
15259 2005-05-17 Jim Meyering <jim@meyering.net>
15261 * lib/fts.c, lib/fts_.h: New files, from coreutils.
15263 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
15265 Sync from coreutils.
15266 * m4/unlinkdir.m4: New file.
15268 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
15270 Sync from coreutils.
15271 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
15272 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
15273 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
15274 White space changes only.
15275 * lib/makepath.c (make_path): Port to hosts where leading "//" is
15277 * lib/yesno.c: Include getline.h, not ctype.h.
15278 (yesno): Don't remove leading white space; POSIX doesn't allow it.
15279 Use getline to remove arbitrary restriction on response length.
15281 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
15283 * config/srclist-update: Spell out "Street" in FSF postal
15284 mail address; this is the style the FSF seems to prefer.
15286 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
15287 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
15288 this updates FSF postal mail address.
15290 Sync from coreutils.
15291 * modules/unlinkdir: New file.
15292 * modules/yesno (Depends-on): Add getline.
15293 * MODULES.html.sh (File system functions): Add unlinkdir.
15295 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
15297 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
15299 Change the initial comment to refer to GPL, not LGPL.
15300 gnulib-tool will change it to LGPL as needed.
15302 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
15303 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
15304 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
15305 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
15306 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
15307 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
15308 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
15309 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
15310 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
15311 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
15312 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
15313 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
15314 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
15315 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
15316 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
15317 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
15318 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
15319 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
15320 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
15321 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
15322 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
15323 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
15324 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
15325 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
15326 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
15327 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
15328 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
15329 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
15330 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
15331 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
15332 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
15333 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
15334 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
15335 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
15336 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
15337 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
15338 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
15339 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
15340 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
15341 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
15342 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
15343 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
15344 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
15345 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
15346 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
15347 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
15348 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
15349 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
15350 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
15351 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
15352 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
15353 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
15354 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
15355 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
15356 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
15357 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
15358 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
15359 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
15360 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
15361 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
15362 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
15363 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
15364 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
15365 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
15366 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
15367 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
15368 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
15369 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
15370 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
15371 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
15372 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
15373 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
15374 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
15375 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
15376 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
15377 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
15378 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
15379 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
15380 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
15381 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
15382 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
15383 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
15384 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
15385 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
15386 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
15387 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
15388 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
15389 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
15390 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
15391 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
15392 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
15393 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
15394 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
15395 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
15396 lib/yesno.c, lib/yesno.h:
15397 Update FSF postal mail address.
15399 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
15401 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
15402 tests/test-memmem.c, tests/test-stpncpy.c:
15403 Update FSF postal mail address.
15405 2005-05-13 Bruno Haible <bruno@clisp.org>
15407 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
15408 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
15409 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
15410 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
15411 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
15412 Add support for 64-bit integers in the MSVC compiler.
15414 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
15416 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
15418 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
15420 * gnulib-tool (func_import): Sort and uniquify recommended includes.
15422 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
15424 * doc/getdate.texi (General date syntax): Don't say that date
15425 date --iso-8601=ns generates acceptable dates; it doesn't yet.
15426 Problem reported by Nic Ferrier.
15428 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15430 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
15431 specified in ai_socktype. Fix invalid ai_protocol
15432 check. ai_protocol is usually set to 0 or depending on
15433 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
15434 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
15435 ai_socktype / ai_protocol in the returned addrinfo structure.
15437 2005-05-10 Simon Josefsson <jas@extundo.com>
15439 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
15440 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
15442 2005-05-10 Karl Berry <karl@gnu.org>
15444 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
15445 (from http://www.gnu.org/licenses).
15446 * doc/COPYING.LIB: also rename to COPYING.LESSER.
15447 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
15450 2005-05-10 Karl Berry <karl@gnu.org>
15452 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
15453 (COPYING.DOC): remove.
15455 * config/srclist-update: new FSF address.
15457 2005-05-10 Derek Price <derek@ximbiot.com>
15459 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
15462 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15463 Bruno Haible <bruno@clisp.org>
15465 * modules/inet_ntop: New file.
15466 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15469 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15470 Bruno Haible <bruno@clisp.org>
15472 * m4/inet_ntop.m4: New file.
15474 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15475 Bruno Haible <bruno@clisp.org>
15477 * lib/inet_ntop.h: New file.
15478 * lib/inet_ntop.c: New file, from glibc with modifications.
15480 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
15482 * modules/time_r (License): Change to LGPL.
15483 * modules/extensions (License): Change to LGPL. Actually,
15484 the license is more permissive than that, but currently gnulib-tool
15485 doesn't know how to handle more-permissive licenses.
15487 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
15488 Problem reported by Dave Love.
15490 2005-05-08 Jim Meyering <jim@meyering.net>
15492 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
15495 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
15497 * modules/argmatch (Depends-on): Add stdbool.
15498 * modules/backupfile (Depends-on): Likewise.
15499 * modules/chdir-long (Depends-on): Likewise.
15500 * modules/closeout (Depends-on): Likewise.
15501 * modules/cycle-check (Depends-on): Likewise.
15502 * modules/dirname (Depends-on): Likewise.
15503 * modules/fnmatch (Depends-on): Likewise.
15504 * modules/fsusage (Depends-on): Likewise.
15505 * modules/fwriteerror (Depends-on): Likewise.
15506 * modules/getcwd (Depends-on): Likewise.
15507 * modules/getloadavg (Depends-on): Likewise.
15508 * modules/hard-locale (Depends-on): Likewise.
15509 * modules/makepath (Depends-on): Likewise.
15510 * modules/mountlist (Depends-on): Likewise.
15511 * modules/nanosleep (Depends-on): Likewise.
15512 * modules/posixtm (Depends-on): Likewise.
15513 * modules/quotearg (Depends-on): Likewise.
15514 * modules/readtokens (Depends-on): Likewise.
15515 * modules/readtokens0 (Depends-on): Likewise.
15516 * modules/readutmp (Depends-on): Likewise.
15517 * modules/save-cwd (Depends-on): Likewise.
15518 * modules/strftime (Depends-on): Likewise.
15519 * modules/userspec (Depends-on): Likewise.
15520 * modules/utimecmp (Depends-on): Likewise.
15521 * modules/xgetcwd (Depends-on): Likewise.
15522 * modules/xnanosleep (Depends-on): Likewise.
15523 * modules/xstrtod (Depends-on): Likewise.
15524 * modules/yesno (Depends-on): Likewise.
15526 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
15528 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
15531 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
15533 Merge from coreutils. Among other things,
15534 add bulletproofing for cases where stdin, stdout, or stderr are closed.
15535 * lib/fd-safer.c: New file.
15536 * lib/fcntl-safer.h, open-safer.c: Remove.
15537 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
15538 * lib/dup-safer.c: Include unistd-safer.h first.
15539 Don't include errno.h.
15540 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
15541 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
15542 * lib/file-type.c: Rely on file-type.h change.
15543 * lib/getloadavg.c: Include unistd-safer.h.
15544 (getloadavg): Use safer open.
15545 * lib/getusershell.c: Include "stdio-safer.h".
15546 (getusershell): Use safer fopen.
15547 * lib/long-options.c (long_options): Use NULL rather than 0.
15548 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
15550 * lib/modechange.c: Likewise.
15551 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
15552 (MODE_DONE): New constant.
15553 (struct mode_change): Remove 'next' member.
15554 (make_node_op_equals): New function; like the old one of the
15555 same name, except it allocates an array.
15556 (mode_compile, mode_create_from_ref): Use it.
15557 (mode_compile): Allocate result as an array, not a linked list.
15558 Parse octal string ourself, so that we catch mistakes like "+0".
15559 (mode_adjust): Arg is an array, not a linked list.
15560 * lib/modechange.c: Include stat-macros.h, xalloc.h.
15561 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
15562 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
15563 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
15564 Remove. This is now stat-macros.h's job.
15565 (talloc): Remove. All callers replaced by xalloc, so that
15566 our invokers don't have to worry about reporting memory failures.
15567 (make_node_op_equals): Remove.
15568 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
15570 (struct mode_change): Moved here from modechange.h.
15571 (mode_append_entry): Remove.
15572 (mode_compile): Remove MASKED_OPS arg, since it encouraged
15573 apps to have incorrect behavior. Use simpler algorithm for head
15574 and tail. Don't futz with umask; that's now the job of mode_adjust.
15575 Detect more invalid usages rather than having somewhat-random behavior.
15576 Don't insert an "a=" action, as that leads to incorrect behavior.
15577 (mode_compile, mode_create_from_ref): Return NULL on error instead
15578 of an enum, since now there's only one way to have an error. All
15580 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
15581 at the correct time. Simplify calculation of "+u" and its ilk.
15582 Don't mishandle "+X".
15583 (mode_free): Remove "register" and localize decls.
15584 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
15585 (struct mode_change): Move to modechange.c; callers don't
15586 need to see this stuff.
15587 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
15588 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
15589 (mode_change, mode_adjust): Reflect the new signatures noted above.
15590 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
15591 that might redefine system include files.
15592 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
15593 (my_usleep): Use NULL rather than (void *) 0.
15594 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
15595 Use siginterrupt to specify that system calls should be interrupted.
15596 (rpl_nanosleep): Move initialization of suspended closer to call of
15598 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
15599 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
15600 (desirable_utmp_entry): New function.
15601 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
15602 using x2nrealloc, to simplify logic.
15603 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
15604 size calculation. Do not assume utmp file is a regular file.
15605 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
15606 (READ_UTMP_CHECK_PIDS): New constant.
15607 * lib/save-cwd.c: Include unistd-safer.h.
15608 (save_cwd): Use fd_safer.
15609 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
15610 [!_LIBC] Include "stat-macros.h" instead.
15611 * lib/unistd-safer.h (fd_safer): New decl.
15613 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
15615 * modules/getloadavg (Depends-on): Add unistd-safer.
15616 * modules/getusershell (Depends-on): Add stdio-safer.
15617 * modules/lstat (Depends-on): Remove xalloc.
15618 * modules/mkstemp (Depends-on): Add stat-macros.
15619 * modules/modechange (Depends-on): Remove xstrtol.
15620 Add stat-macros, xalloc.
15621 * modules/save-cwd (Depends-on): Add unistd-safer.
15622 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
15623 * modules/unistd-safer (Files): Add lib/fd-safer.c
15624 (Makefile.am): Remove lib_SOURCES.
15626 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
15627 Remove fcntl-safer; unistd-safer supersedes it.
15629 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
15631 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
15633 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
15634 (gl_PREREQ_CHOWN): Remove.
15635 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
15636 it. Don't require AC_HEADER_STAT.
15637 (gl_PREREQ_LSTAT): Remove.
15638 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
15639 Don't require AC_HEADER_STAT.
15640 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
15641 (gl_PREREQ_RMDIR): Remove.
15642 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
15643 mention stat-macros.h or AC_HEADER_STAT, since we'll make
15644 the stat-macros module a prerequisite.
15645 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
15646 * m4/filemode.m4 (gl_FILEMODE): Likewise.
15647 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
15648 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
15649 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
15651 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
15652 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
15654 * m4/fcntl-safer.m4: Remove.
15655 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
15656 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
15657 Invoke gl_PREREQ_FD_SAFER.
15658 (gl_PREREQ_FD_SAFER): New macro.
15659 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
15660 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
15661 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
15662 Remove duplicate call to AC_LIBOBJ(readutmp).
15663 (gl_PREREQ_READUTMP): Remove. All uses inlined.
15665 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
15666 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
15668 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
15670 * MODULES.html.sh (Misc): Add byteswap.
15672 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
15674 * modules/getcwd (Depends-on): Add extensions.
15675 * modules/openat (Depends-on): Likewise.
15677 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
15679 * modules/byteswap: New file.
15681 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
15683 * m4/byteswap.m4: New file.
15685 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
15687 * lib/byteswap_.h: New file.
15689 2005-04-25 Karl Berry <karl@gnu.org>
15691 * m4/gettext.m4: Update from GNU gettext 0.14.4.
15693 2005-04-25 Albert Chin <china@thewrittenword.com>
15695 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
15698 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
15700 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
15701 (func_ln_if_changed) Remove forcibly for no error message
15702 in case file does not exist.
15704 2005-04-19 Simon Josefsson <jas@extundo.com>
15706 * gnulib-tool (Options): Make --symlink mean --symbolic.
15708 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
15710 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
15712 2005-04-16 Simon Josefsson <jas@extundo.com>
15714 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
15716 2005-04-15 Simon Josefsson <jas@extundo.com>
15718 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
15720 2005-04-15 Simon Josefsson <jas@extundo.com>
15722 * gnulib-tool: Rename --symlink to --symbolic.
15724 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
15726 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
15727 symbolic links to files instead of copying/moving. Add --aux-dir,
15728 specifying directory relative --dir where auxiliary build tools
15731 2005-04-14 Bruno Haible <bruno@clisp.org>
15733 * modules/allocsa (License): Change to LGPL.
15734 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
15736 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
15738 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
15739 that "UTC +1 second" continues to work. Problem reported
15740 by Dmitry V. Levin.
15741 (relunit_snumber): New rule.
15744 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
15746 * lib/getdate.y (universal_time_zone_table): New constant.
15747 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
15748 universal_time_zone_table.
15749 (lookup_zone): Prefer universal_time_zone_table to
15750 local_time_zone_table, so that "GMT" time stamps are allowed in
15751 London during the summer. Problem reported by Ian Abbott.
15753 2005-04-12 Jim Meyering <jim@meyering.net>
15755 * lib/human.c (humblock): Set *options even when returning due to
15756 xstrtoumax conversion failure. Thanks to a used-uninitialized
15757 warning from gcc-4.
15759 2005-04-09 Jim Meyering <jim@meyering.net>
15761 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
15762 -Wuninitialized: initialize tm0.tm_year.
15764 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
15766 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
15767 count, since there's no maximum. All uses changed.
15768 Add member dsts_seen.
15769 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
15771 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
15772 Use pc_rels_seen to decide whther a date is absolute.
15774 * lib/getdate.y (number): Don't overwrite year.
15775 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
15778 2005-04-02 Simon Josefsson <jas@extundo.com>
15780 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
15781 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
15783 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
15785 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
15786 where no absolute path name can be longer than PATH_MAX.
15788 2005-03-27 Jim Meyering <jim@meyering.net>
15790 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
15792 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
15794 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
15795 "one's complement" -> "ones' complement" in comment, as per Knuth.
15796 "value of type" -> "type or expression" in comment.
15797 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
15799 2005-03-26 Jim Meyering <jim@meyering.net>
15802 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
15803 Correct typos: s/or/of/.
15805 2005-03-26 Jim Meyering <jim@meyering.net>
15807 * modules/check-include-files: Move to ../ and rename to...
15808 * check-module: ...this.
15810 2005-03-25 Jim Meyering <jim@meyering.net>
15812 * modules/xvasprintf (Files): Add xalloc.h.
15814 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
15816 * modules/gettext (Files): config/config.rpath ->
15817 build-aux/config.rpath
15818 * modules/iconv (Files): Likewise.
15819 Problem reported by Oskar Liljeblad.
15821 2005-03-23 Jim Meyering <jim@meyering.net>
15823 * modules/check-include-files: New script to check for
15824 missing dependencies, multiple includes, etc.
15826 * modules/c-strtold (Depends-on): Add xalloc.
15827 * modules/c-strtod (Depends-on): Add xalloc.
15828 * modules/hash (Depends-on): Add xalloc.
15829 (Files): Remove lib/xalloc.h.
15831 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
15832 * modules/userspec (Files): Add lib/inttostr.h.
15834 2005-03-23 Jim Meyering <jim@meyering.net>
15836 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
15838 2005-03-22 Jim Meyering <jim@meyering.net>
15840 * modules/stat-macros: New module.
15841 * modules/canonicalize, modules/euidaccess, modules/file-type,
15842 * modules/filemode, modules/lchown, modules/makepath,
15843 * modules/rmdir, modules/stat: Depend on new stat-macros module
15844 rather than listing lib/stat-macros.h manually.
15845 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
15847 2005-03-22 Jim Meyering <jim@meyering.net>
15849 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
15851 2005-03-22 Bruno Haible <bruno@clisp.org>
15853 * config/srclist.txt: Replace target directory 'config' with
15855 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
15856 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
15859 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
15861 * modules/chdir-long (Depends-on): Add mempcpy.
15863 * modules/acl, modules/backupfile, modules/c-strtod,
15864 modules/c-strtold, modules/canon-host, modules/canonicalize,
15865 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
15866 modules/exclude, modules/exitfail, modules/file-type,
15867 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
15868 modules/getdate, modules/getline, modules/getpagesize,
15869 modules/getpass, modules/getugroups, modules/group-member,
15870 modules/hard-locale, modules/hash, modules/human, modules/idcache,
15871 modules/inttostr, modules/long-options, modules/makepath,
15872 modules/md5, modules/memcasecmp, modules/memcoll,
15873 modules/modechange, modules/mountlist, modules/path-concat,
15874 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
15875 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
15876 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
15877 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
15878 modules/strftime, modules/strndup, modules/strverscmp,
15879 modules/timespec, modules/unlocked-io, modules/userspec,
15880 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
15882 Remove lib_SOURCES line from Makefile.am section, as this is now
15883 done automatically by the corresponding Autoconf macro.
15885 2005-03-21 Jim Meyering <jim@meyering.net>
15887 Changes imported from coreutils.
15889 * lib/cycle-check.c: Don't include xalloc.h.
15891 * lib/path-concat.c: Don't include assert.h.
15892 (path_concat): Remove assertion that would have triggered
15893 for ABASE starting with more than one slash.
15894 Reported by Andreas Schwab.
15896 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
15897 properly when ABASE is an absolute file name.
15898 Correct the description of this function.
15899 Include <assert.h>.
15900 Add an assertion and a test driver.
15901 This fixes a bug introduced on 2004-07-02.
15902 Andreas Schwab reported the resulting failure of cp --parents:
15903 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
15905 2005-03-21 Jim Meyering <jim@meyering.net>
15907 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
15908 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
15910 2005-03-21 Jim Meyering <jim@meyering.net>
15911 and Paul Eggert <eggert@cs.ucla.edu>
15913 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
15914 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
15915 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
15916 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
15917 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
15918 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
15919 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
15920 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
15921 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
15922 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
15923 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
15924 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
15925 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
15926 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
15927 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
15928 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
15929 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
15932 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
15934 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
15935 (which shouldn't happen), generate nothing instead of returning 0
15936 immediately, so that nstrftime (NULL, ...) doesn't return 0.
15938 2005-03-16 Bruno Haible <bruno@clisp.org>
15940 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
15941 HAVE_LONGLONG_64BIT.
15943 2005-03-16 Bruno Haible <bruno@clisp.org>
15945 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
15946 HAVE_LONGLONG_64BIT.
15948 2005-03-16 Bruno Haible <bruno@clisp.org>
15950 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
15951 HAVE_LONGLONG_64BIT.
15953 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
15955 * lib/strftime.c (my_strftime): Prepend space to format so that we can
15956 reliably distinguish strftime failure from empty output on POSIX
15959 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
15961 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
15962 (iconv_string): Don't guess a size-zero buffer, as that might cause
15963 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
15964 result would be 'too large', where 'too large' is (heuristically)
15965 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
15966 overflow concerns. This will prevent some unwanted malloc failures
15967 when the inputs are very large.
15969 2005-03-15 Karl Berry <karl@gnu.org>
15971 * config/srclist.txt (config.rpath): from gettext.
15972 * config/config.rpath: update.
15974 2005-03-15 Bruno Haible <bruno@clisp.org>
15976 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
15979 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
15982 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
15985 2005-03-14 Simon Josefsson <jas@extundo.com>
15987 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
15990 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
15992 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
15993 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
15995 * lib/strtol.c: Likewise.
15997 2005-03-14 Jim Meyering <jim@meyering.net>
15999 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
16000 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
16001 to be nonzero so that we (and caller) can detect the difference
16002 between a valid zero-length expansion and an error return, even
16003 when the underlying strftime fails before writing anything into
16006 2005-03-14 Bruno Haible <bruno@clisp.org>
16008 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
16009 Update from GNU gettext 0.14.3.
16011 2005-03-10 Jim Meyering <jim@meyering.net>
16013 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
16015 2005-03-10 Jim Meyering <jim@meyering.net>
16017 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
16018 so that this module works on systems without fchdir.
16020 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
16022 Factor int-properties macros into a single file, except for
16023 glibc-related files.
16024 * lib/intprops.h: New file.
16025 * lib/getloadavg.c: Include it instead of limits.h.
16026 (INT_STRLEN_BOUND): Remove.
16027 * lib/human.c: Include intprops.h.
16028 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
16029 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
16031 * lib/inttostr.h: Include intprops.h instead of limits.h.
16032 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
16033 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
16034 for consistency with intprops.h.
16035 (time_t_is_integer, twos_complement_arithmetic): Use them.
16036 * lib/sig2str.h: Include <signal.h>, intprops.h.
16037 (INT_STRLEN_BOUND): Remove.
16038 * lib/strftime.c (TYPE_SIGNED): Remove.
16039 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
16040 * lib/strtol.c: Adjust comments to match intprops.h.
16041 * lib/userspec.c: Include intprops.h.
16042 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
16043 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
16044 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
16045 instead of rolling our own expressions.
16046 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
16048 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
16050 (my_strftime): Do not mishandle years close to INT_MAX, by doing
16051 the right thing even if adding 1900 would overflow. Similarly
16052 for tm_mon + 1 and tm_yday + 1.
16053 Make %Y always equivalent to %C%y, and similarly for %G and %g.
16054 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
16055 (DO_SIGNED_NUMBER): New macro.
16056 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
16058 2005-03-07 Bruno Haible <bruno@clisp.org>
16060 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
16062 2005-03-07 Bruno Haible <bruno@clisp.org>
16064 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
16066 2005-03-04 Derek R. Price <derek@ximbiot.com>
16068 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
16069 (func_import): Only replace files via --import when they have actually
16072 2005-03-03 Derek R. Price <derek@ximbiot.com>
16074 * m4/mmap-anon.m4: New file.
16075 * m4/pagealign_alloc.m4: New file.
16077 2005-03-03 Derek R. Price <derek@ximbiot.com>
16078 Bruno Haible <bruno@clisp.org>
16080 * modules/pagealign_alloc: New file.
16081 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
16083 2005-03-03 Derek R. Price <derek@ximbiot.com>
16084 Bruno Haible <bruno@clisp.org>
16086 * lib/pagealign_alloc.h: New file.
16087 * lib/pagealign_alloc.c: New file.
16089 2005-03-03 Bruno Haible <bruno@clisp.org>
16091 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
16092 Use an all-permissive copyright notice, recommended by RMS.
16094 2005-03-02 Bruno Haible <bruno@clisp.org>
16096 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
16097 of AIX, the replacement has to be done only after <string.h> is
16098 included, therefore not in config.h. stpncpy.h does the replacement,
16099 and stpncpy.c uses it.
16101 2005-03-02 Bruno Haible <bruno@clisp.org>
16103 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
16106 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
16108 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
16109 The workaround isn't strictly needed for POSIX conformance, and
16110 it's too much of a pain to configure and maintain. We'll ask
16111 people to fix their kernels instead.
16112 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
16113 (NANOSLEEP_BUG_WORKAROUND): Remove.
16114 (xnanosleep): Remove the workaround.
16116 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
16118 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
16119 Reported by Derek Price.
16120 (Include): Add "timespec.h".
16122 * modules/xnanosleep (Depends-on): Remove gethrxtime.
16124 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
16126 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
16127 to detect nanosleep bug.
16129 2005-03-01 Bruno Haible <bruno@clisp.org>
16131 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
16133 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
16135 * modules/gethrxtime: New file.
16136 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
16137 (Depends-on): Add gethrxtime.
16138 (configure.ac): Add gl_XNANOSLEEP.
16139 (Makefile.am): Remove lib_SOURCES line.
16141 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
16143 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
16144 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
16146 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
16148 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
16149 * lib/timespec.h (gettime): Return void, since it always
16150 succeeds now. All uses changed.
16151 * lib/gettime.c (gettime) Likewise.
16152 [HAVE_NANOTIME]: Prefer nanotime.
16153 Assume gettimeofday succeeds, as POSIX requires.
16154 Assime time () succeeds, since other code already does.
16155 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
16156 (timespec_subtract): Remove.
16157 (NANOSLEEP_BUG_WORKAROUND): New constant.
16158 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
16159 things considerably. Use it only on GNU/Linux hosts, since the
16160 workaround shouldn't be needed elsewhere.
16162 2005-02-24 Bruno Haible <bruno@clisp.org>
16164 * modules/gettext (Files): Add m4/glibc2.m4.
16166 2005-02-24 Bruno Haible <bruno@clisp.org>
16168 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
16169 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
16171 Update from GNU gettext 0.14.2.
16172 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
16174 2005-02-24 Bruno Haible <bruno@clisp.org>
16176 * lib/localcharset.c: Update from GNU gettext 0.14.2.
16177 * lib/config.charset: Update from GNU gettext 0.14.2.
16179 2005-02-24 Bruno Haible <bruno@clisp.org>
16181 * lib/gettext.h: Update from GNU gettext 0.14.2.
16183 2005-02-23 Simon Josefsson <jas@extundo.com>
16185 * m4/iconvme.m4: New file.
16187 2005-02-23 Jim Meyering <jim@meyering.net>
16189 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
16191 Thanks to Bruno Haible for catching it.
16193 2005-02-22 Simon Josefsson <jas@extundo.com>
16195 * modules/iconvme: New file.
16197 * MODULES.html.sh: Add iconvme.
16199 2005-02-22 Simon Josefsson <jas@extundo.com>
16201 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
16203 2005-02-22 Simon Josefsson <jas@extundo.com>
16205 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
16207 2005-02-22 Jim Meyering <jim@meyering.net>
16209 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
16212 2005-02-20 Neil Conway <neilc@samurai.com>
16214 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
16215 returned by OSX/Darwin if the specified buffer is not large
16216 enough for the hostname.
16218 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
16220 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
16221 pass it to _help, otherwise the latter coredumps trying to
16222 dereference state.root_argp.
16224 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
16226 * modules/chdir-long (Depends-on): Add memrchr.
16227 * modules/memrchr (Files): Add lib/memrchr.h.
16228 (Include): "memrchr.h".
16230 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
16232 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
16234 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
16236 * lib/memrchr.h: New file.
16237 * lib/chdir-long.c: Include it.
16238 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
16239 Don't bother including stddef.h.
16241 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
16243 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
16245 Include <sys/types.h>, for dev_t.
16246 (ME_DUMMY, ME_REMOTE): Move from here....
16247 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
16248 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
16250 Include mountlist.h first, to test the interface.
16252 2005-01-29 Bruno Haible <bruno@clisp.org>
16254 * lib/progname.c (program_name): Initialize.
16255 Needed when linking statically on MacOS X.
16257 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
16259 Sync from coreutils.
16260 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
16261 (Depends-on): Add c-strtod.
16262 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
16264 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
16266 Sync from coreutils.
16267 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
16269 Remove files that are specific to coreutils.
16270 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
16272 2005-01-28 Bruno Haible <bruno@clisp.org>
16274 * modules/javacomp: New file.
16275 * MODULES.html.sh (Java): Add javacomp.
16277 2005-01-28 Bruno Haible <bruno@clisp.org>
16279 * m4/javacomp.m4: New file, from GNU gettext.
16281 2005-01-28 Bruno Haible <bruno@clisp.org>
16283 * lib/javacomp.sh.in: New file, from GNU gettext.
16284 * lib/javacomp.h: New file, from GNU gettext.
16285 * lib/javacomp.c: New file, from GNU gettext.
16287 2005-01-26 Simon Josefsson <jas@extundo.com>
16289 * lib/gai_strerror.c: Use GPL in header.
16291 2005-01-26 Bruno Haible <bruno@clisp.org>
16293 * modules/javaexec: New file.
16294 * MODULES.html.sh (Java): Add javaexec.
16296 2005-01-26 Bruno Haible <bruno@clisp.org>
16298 * m4/javaexec.m4: New file, from GNU gettext.
16300 2005-01-26 Bruno Haible <bruno@clisp.org>
16302 * lib/javaexec.sh.in: New file, from GNU gettext.
16303 * lib/javaexec.h: New file, from GNU gettext.
16304 * lib/javaexec.c: New file, from GNU gettext.
16306 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
16308 * modules/lchown (Depends-on): Remove lchown.h
16310 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
16312 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
16313 must be defined if the header file was not found, in order
16314 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
16316 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
16318 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
16319 initializers for struct pentry_state.
16320 (__argp_error): Check return value of __asprintf
16321 (__argp_failure): Translate error message
16323 * lib/argp-parse.c: Removed braces around the expansion of N_()
16325 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
16327 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
16328 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
16329 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
16330 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
16331 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
16332 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
16333 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
16334 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
16335 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
16336 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
16337 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
16338 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
16339 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
16340 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
16341 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
16342 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
16343 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
16344 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
16345 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
16346 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
16347 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
16348 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
16349 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
16350 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
16351 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
16352 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
16353 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
16354 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
16355 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
16356 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
16357 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
16358 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
16359 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
16360 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
16361 xstrtol.m4, xstrtoumax.m4, yesno.m4:
16362 Use an all-permissive copyright notice, recommended by RMS.
16364 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
16366 * modules/chdir-long (Depends-on): Remove mempcpy.
16368 2005-01-21 Jim Meyering <jim@meyering.net>
16370 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
16371 same value as for Solaris 9.
16373 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
16374 component length. This included changing the parameter to be
16375 of type `char *' rather than `char const *'.
16376 * lib/chdir-long.h (chdir_long): Update prototype.
16378 * lib/openat.c (fdopendir, fstatat): New functions.
16379 * lib/openat.h: Include headers required for use of DIR and struct
16381 [AT_SYMLINK_NOFOLLOW]: Define.
16382 (fdopendir, fstatat): Add prototypes.
16384 2005-01-21 Bruno Haible <bruno@clisp.org>
16386 * modules/classpath: New file.
16387 * MODULES.html.sh (Java): Add classpath.
16389 2005-01-21 Bruno Haible <bruno@clisp.org>
16391 * lib/classpath.h: New file, from GNU gettext.
16392 * lib/classpath.c: New file, from GNU gettext.
16394 2005-01-20 Simon Josefsson <jas@extundo.com>
16396 * modules/version-etc-fsf: New file.
16398 2005-01-20 Simon Josefsson <jas@extundo.com>
16400 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
16401 * lib/version-etc.c: Remove version_etc_copyright.
16402 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
16403 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
16405 2005-01-20 Simon Josefsson <jas@extundo.com>
16407 * lib/base64.h (isbase64): Add.
16409 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
16410 using a unsigned prototype, don't inline.
16411 (base64_decode): Use it.
16413 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
16415 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
16418 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
16420 * lib/save-cwd.c (save_cwd): Remove code to support the case
16421 where fchdir is missing or flaky.
16423 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
16425 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
16427 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
16429 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
16430 AC_LIBSOURCES now does this.
16431 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
16432 with new ullong_max module.
16434 2005-01-19 Bruno Haible <bruno@clisp.org>
16436 * modules/sh-quote: New file.
16437 * MODULES.html.sh (Executing programs): Add sh-quote.
16439 2005-01-19 Bruno Haible <bruno@clisp.org>
16441 * lib/sh-quote.h: New file, from GNU gettext.
16442 * lib/sh-quote.c: New file, from GNU gettext.
16444 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
16446 Merge from coreutils.
16447 * m4/ullong_max.m4: New file.
16448 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
16449 (gl_MACROS): Assume localeconv exists.
16451 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
16453 Merge changes from coreutils, as described below in several
16454 changelogs dated today.
16456 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
16457 (O_DIRECTORY): Remove; not needed here, since "." must be
16458 a directory. All uses removed.
16459 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
16460 universal on Suns, and we also need to test for IRIX.
16461 Revamp code to use 'if' rather than '#if'.
16462 Avoid unnecessary comparison of cwd->desc to 0.
16464 * lib/utimens.c (futimens): Robustify the previous patch, by checking
16465 for known valid error numbers rather than observed invalid ones.
16467 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
16469 * modules/ullong_max: New file.
16471 * modules/chdir-long, modules/openat: New files.
16472 * modules/save-cwd (Depends-on): Depend on chdir-long.
16473 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
16475 2005-01-18 Jim Meyering <jim@meyering.net>
16477 Merge from coreutils.
16478 * m4/chdir-long.m4, m4/openat.m4: New files.
16479 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
16480 save-cwd.h. Add AC_LIBOBJ for save-cwd.
16481 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
16482 is sane and DOES follow symlinks. Besides, testing 20 different
16483 systems found no broken chown implementations.
16484 Prompted by a change in rsync's copy of this macro.
16485 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
16487 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
16489 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
16490 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
16491 NULL-means-set-to-current-time semantics.
16492 Remove temporary file immediately, rather than waiting
16493 for configure's at-exit trap code to do it.
16495 2005-01-18 Jim Meyering <jim@meyering.net>
16497 * lib/version-etc.c (version_etc_copyright): Update copyright date.
16499 * lib/utimens.c (futimens): Account for the fact that futimes
16500 can also fail with errno == ENOSYS or errno == ENOENT.
16501 Patch from Dmitry V. Levin.
16503 Change the name of the robust chdir function from chdir to chdir_long.
16504 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
16505 (restore_cwd): Use chdir_long, not chdir.
16506 * lib/chdir-long.c: Renamed from chdir.c.
16507 * lib/chdir-long.h: Renamed from chdir.h.
16508 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
16511 2005-01-18 Bruno Haible <bruno@clisp.org>
16513 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
16514 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
16515 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
16516 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
16517 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
16518 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
16519 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
16520 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
16521 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
16522 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
16523 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
16524 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
16525 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
16526 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
16527 Use an all-permissive copyright notice, recommended by RMS.
16529 2005-01-18 Bob Proulx <bob@proulx.com>
16531 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
16532 simplify offsetof() macro construct to avoid compile failure with
16533 native HP-UX 11.0 ANSI C compiler.
16535 2005-01-17 Bruno Haible <bruno@clisp.org>
16537 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
16538 redundant because stpncpy.m4 takes care of it.
16540 2005-01-17 Bruno Haible <bruno@clisp.org>
16542 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
16544 2005-01-17 Bruno Haible <bruno@clisp.org>
16546 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
16549 2005-01-17 Bruno Haible <bruno@clisp.org>
16551 * lib/fwriteerror.h (fwriteerror): Change specification to include
16553 * lib/fwriteerror.c: Include <stdbool.h>.
16554 (fwriteerror): At the end, close the file stream. Record whether
16555 stdout was already closed.
16557 2005-01-17 Bruno Haible <bruno@clisp.org>
16559 * lib/execute.c (environ): Declare if needed.
16560 * lib/pipe.c (environ): Likewise.
16561 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
16563 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
16565 * modules/argp: Depend on vsnprintf
16567 2005-01-10 Jim Meyering <jim@meyering.net>
16569 * modules/closeout (Depends-on): Add atexit.
16571 2005-01-06 Bruno Haible <bruno@clisp.org>
16573 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
16575 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
16577 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
16578 definitions to be after all include files, to avoid collisions.
16579 Problem reported by Bob Proulx.
16581 2005-01-04 Jim Meyering <jim@meyering.net>
16583 Changes imported from coreutils.
16584 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
16585 as the mkstemp template, use a temporary directory and an
16586 8.3-friendly template to avoid trouble on systems like DJGPP.
16587 Reported by Juan M. Guerrero via Stepan Kasal.
16588 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
16589 close. Remove the temporary directory right away, rather than waiting
16590 for configure's at-exit trap code to do it.
16591 Suggestion from Stepan Kasal.
16593 2005-01-01 Simon Josefsson <jas@extundo.com>
16595 * gnulib-tool: Print #include directives when --import'ing.
16597 2004-12-28 Simon Josefsson <jas@extundo.com>
16599 * tests/test-base64.c: Include required header files. Remove
16602 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
16604 * modules/error (Depends-on): Remove gettext.
16606 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
16608 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
16609 not needed. This removes a dependency on the gettext module.
16610 [defined _LIBC]: Do not include <libintl.h>; not needed.
16612 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
16614 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
16615 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
16617 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
16619 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
16622 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
16624 * modules/getdate (Depends-on): Remove alloca-opt.
16626 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
16628 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
16630 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
16632 * lib/argp-parse.c: Include <stddef.h>.
16633 (alignof, alignto): New macros.
16634 (parser_init): Don't assume that void * is aligned sufficiently
16637 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
16638 need to extend the stack.
16639 (YYINITDEPTH): New macro, so that the initial stack isn't overly
16642 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
16644 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
16646 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
16648 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
16649 (2004-10-24) change. Apparently this was a false alarm.
16651 * modules/getdate: Depend on alloca-opt, not alloca.
16653 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
16655 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
16656 Remove now-obsolete comment about AIX.
16657 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
16658 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
16659 (YYMAXDEPTH): New macro.
16661 2004-12-18 Simon Josefsson <jas@extundo.com>
16663 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
16665 2004-12-18 Bruno Haible <bruno@clisp.org>
16667 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
16669 2004-12-18 Bruno Haible <bruno@clisp.org>
16671 * lib/fatal-signal.c (fatal_signals): Make non-const.
16672 (init_fatal_signals): New function.
16673 (uninstall_handlers, install_handlers): Ignore signals that were set to
16675 (at_fatal_signal): Call init_fatal_signals.
16676 (init_fatal_signal_set): Likewise. Ignore signals that were set to
16678 Reported by Paul Eggert.
16680 2004-12-18 Bruno Haible <bruno@clisp.org>
16682 * doc/alloca.texi: New file.
16683 * doc/alloca-opt.texi: New file.
16685 2004-12-17 Jim Meyering <jim@meyering.net>
16687 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
16688 Otherwise, install-sh could exit with improper exit status when
16689 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
16691 2004-12-16 Simon Josefsson <jas@extundo.com>
16693 * tests/test-base64.c: Add license.
16695 2004-12-15 Stepan Kasal <address@hidden>
16697 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
16699 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
16701 * modules/getcwd (Files): Add m4/d-ino.m4.
16702 Suggested by Mark D. Baushke.
16704 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
16706 * lib/getdate.y (textint): New member "negative".
16707 (time_zone_hhmm): New function.
16708 Expect 14 shift-reduce conflicts, not 13.
16709 (o_colon_minutes): New rule.
16710 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
16711 (yylex): Set the "negative" member of signed numbers.
16713 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
16715 * doc/getdate.texi (Time of day items, Time zone items):
16716 Describe new formats +00:00, UTC+00:00.
16718 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
16720 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
16721 spurious "-l"s. Problem reported by Stepan Kasal.
16723 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
16725 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
16726 in Autoconf 2.59. Problem reported by Mark D. Baushke.
16728 2004-12-04 Simon Josefsson <jas@extundo.com>
16730 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
16731 Vandoorselaere <yoann@prelude-ids.org>.
16733 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
16735 Changes imported from coreutils.
16736 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
16738 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
16740 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
16742 Changes imported from coreutils.
16743 * lib/hard-locale.c: Assume <locale.h> exists.
16744 Include "strdup.h".
16745 (GLIBC_VERSION): New macro.
16746 (hard_locale): Assume setlocale exists.
16747 Rewrite to avoid #ifdef.
16748 Use strdup rather than malloc + strcpy.
16749 * lib/human.c: Assume <locale.h> exists.
16750 (human_readable): Assume localeconv exists.
16752 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
16754 * modules/hard-locale (Depends-on): Add strdup.
16756 2004-12-01 Jakub Jelinek <jakub@redhat.com>
16758 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
16759 convert T2, not T. (Imported from libc.)
16761 2004-11-30 Simon Josefsson <jas@extundo.com>
16763 * modules/restrict (License): Change to LGPL.
16765 2004-11-30 Simon Josefsson <jas@extundo.com>
16767 * m4/restrict.m4: Add copyright and copying conditions.
16769 2004-11-30 Simon Josefsson <jas@extundo.com>
16771 * m4/base64.m4: New file.
16773 2004-11-30 Simon Josefsson <jas@extundo.com>
16775 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
16778 * tests/test-base64.c: New file.
16780 * modules/base64: New file.
16782 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
16784 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
16785 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
16787 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
16789 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
16791 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
16792 (__getcwd.c): Don't restore errno; glibc doesn't.
16793 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
16794 first, falling back to our code only if its results look suspicious.
16795 Ensure that the resulting buffer is only as large as necessary.
16797 * lib/readutmp.c: Include readutmp.h first.
16798 Include <errno.h>, since readutmp.h no longer does that.
16799 * lib/readutmp.h: Don't include <errno.h>,
16800 <sys/param.h>, <time.h>; not needed to establish interface.
16801 (errno): Remove decl.
16802 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
16803 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
16804 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
16806 2004-11-28 Simon Josefsson <jas@extundo.com>
16808 * lib/base64.h, base64.c: New file.
16810 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
16812 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
16814 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
16816 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
16817 (Depends-on): Remove pathmax, same. Add mempcpy.
16818 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
16819 (Makefile.am): Append getcwd.h to lib_SOURCES.
16820 (Include): Add getcwd.h.
16821 (Maintainer): Change from Jim Meyering to "all, glibc",
16822 since getdate now uses intended-for-glibc code.
16823 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
16824 (Depends-on): Depend on getcwd. Do not depend on pathmax.
16826 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
16828 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
16829 HP's ANSI C compiler.
16830 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
16831 Declaring int functions causes warnings on some modern systems and
16832 shouldn't be needed to compile on ancient ones.
16833 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
16836 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
16837 with the following changes.
16838 (__set_errno): Parenthesize properly.
16839 Include <stdbool.h>.
16840 (MIN, MAX, MATCHING_INO): New macros.
16841 (__getcwd): Define with prototype, not K&R form.
16842 Use heuristics to allocate default buffer on stack if possible.
16843 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
16844 behavior, and to avoid the PATH_MAX limit when computing
16846 Use MATCHING_INO to compare inode number to file.
16847 Check for arithmetic overflow in size calculations.
16848 Fix bug in reallocation of dot array that caused getcwd to fail
16849 on directories nested deeper than 75.
16850 Be more careful about saving errno on error.
16851 Do not use realloc; use only free+malloc, as this is a bit
16852 more flexible and avoids a needless copy operation.
16853 Do not inspect st_dev and st_ino for symbolic links; POSIX
16854 doesn't specify the latter.
16855 Check for closedir errors.
16856 Avoid needless casts.
16857 Use "#ifdef weak_alias" around weak_alias, to be like other
16859 The following changes to getcwd.c have effect only when used in
16860 gnulib; they have no effect inside glibc proper.
16861 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
16862 as alloca isn't used.
16863 (alloca, __alloca): Likewise.
16864 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
16865 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
16866 unconditionally, as gnulib assumes C89 or better.
16867 Do not include <sys/param.h>.
16868 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
16869 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
16871 (NULL) [!defined NULL]: Remove; we assume C89 or better.
16872 Include <dirent.h> in a way that is compatible with modern Autoconf.
16873 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
16874 New macros, if not already defined.
16875 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
16876 Use "_LIBC", not "defined _LIBC", for consistency.
16877 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
16879 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
16880 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
16881 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
16882 credit only to Jim Meyering and adjust the copyright dates.
16883 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
16884 <stdlib.h>, <unistd.h>, "pathmax.h".
16885 Instead, include "xgetcwd.h" (first) and "getcwd.h".
16886 (INITIAL_BUFFER_SIZE): Remove.
16887 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
16889 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
16891 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
16892 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
16893 Use the _ONCE methods, for efficiency.
16894 Check for fcntl.h. In test program, include <errno.h>
16895 and <fcntl.h> if available. Remove old K&R cruft from
16896 test program. Check for common errors in GNU/Linux,
16897 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
16898 don't do AC_LIBOBJ, as that's getcwd.m4's job.
16899 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
16900 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
16902 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
16903 accommodate new getcwd.c.
16904 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
16905 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
16906 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
16907 that's all we need now.
16909 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
16911 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
16912 argp-parse.c depends on getopt internals, that means we should
16913 always use our getopt, to be on the safe side.
16914 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
16915 order not to spoil the result of an eventual previous invocation
16916 of gl_GETOPT_SUBSTITUTE.
16918 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
16920 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
16921 redefinition warnings. To avoid them, include the defines
16922 in `#if !defined __need_getopt ... #endif'. The only place
16923 where __getopt_argv_const is used is in definitions
16924 of getopt_long and getopt_long_only below, which are as well
16925 protected by `#ifndef __need_getopt'.
16926 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
16927 __need_getopt after including <stdio.h> and <unistd.h> These
16928 headers might have defined it.
16930 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
16932 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
16934 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
16936 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
16937 (futimens): New function, which uses futimes if available.
16938 (futimens, utimens): Support timespec==NULL, with same semantics
16939 as utime and utimens.
16940 * lib/utimens.h (futimens): New decl.
16942 2004-11-23 Jim Meyering <jim@meyering.net>
16944 * lib/getopt_.h: Remove trailing blanks.
16946 2004-11-23 Jim Meyering <jim@meyering.net>
16948 * lib/__fpending.c: Add comment.
16950 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
16952 * modules/canonicalize (Depends-on): Add xreadlink.
16953 Problem reported by James Youngman.
16955 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
16957 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
16959 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
16960 optopt): Use them instead of invoking ## directly; otherwise, the
16961 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
16963 2004-11-19 Bruno Haible <bruno@clisp.org>
16965 * lib/strtok_r.c: Move comments from here...
16966 * lib/strtok_r.h: ... to here.
16968 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
16970 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
16971 implementations that mishandle size_t overflow.
16973 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
16975 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
16976 might fail. Problem reported by Yoann Vandoorselaere.
16977 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
16978 implementations that mishandle size_t overflow.
16980 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
16982 * modules/canon-host (Depends-on): Add strdup.
16984 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
16986 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
16988 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
16990 * lib/canon-host.c: Include "strdup.h".
16991 (canon_host): Use getaddrinfo if available, so that IPv6 works.
16992 Use strdup instead of malloc/strcpy to duplicate strings.
16994 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
16995 (human_space_before_unit): New constant.
16996 * lib/human.c (human_readable): Support it.
16998 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
16999 (xgetcwd): Set errno correctly when failing.
17000 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
17001 the failure is actually due to a PATH_MAX problem.
17003 Further getopt changes to make it more likely that glibc will
17004 buy the changes back.
17005 * lib/getopt.c (POSIXLY_CORRECT): New constant.
17006 (getopt): Use it, so to preserve glibc semantic
17007 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
17008 when compiling for libc.
17009 * lib/getopt_.h (__getopt_argv_const): Bring it back.
17010 (getopt_long, getopt_long_only): Use it.
17012 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
17013 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
17014 (getopt): Argv is now char * const *, as per standard.
17015 (_getopt_internal_r, _getopt_internal): Argv is now char **,
17016 not char *__getopt_argv_const *.
17017 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
17018 _getopt_long_only_r): Likewise.
17019 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
17020 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
17021 _getopt_long_r, _getopt_long_only_r): Likewise.
17022 * lib/getopt_.h (__getopt_argv_const): Remove.
17023 (getopt): Argv is now char * const *, as per standard.
17025 * lib/getdate.y (tORDINAL): New token.
17026 (day, relunit): Allow it for relative times.
17027 (relative_time_table): Use tORDINAL for ordinals.
17029 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
17031 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
17032 Document that "second" isn't allowed as an ordinal number.
17034 2004-11-16 Jim Meyering <jim@meyering.net>
17036 * modules/closeout (Depends-on): Add fpending.
17038 2004-11-15 Jim Meyering <jim@meyering.net>
17040 * lib/closeout.c: Include "__fpending.h" once again.
17041 Include <stdbool.h>.
17042 (close_stdout): Don't fail just because stdout was closed initially,
17043 since some programs don't write to stdout in the normal course of
17044 operation (other than --version and --help), and we don't want this
17045 function to make e.g. `touch file >&-' fail.
17046 But do fail if it was closed and someone has tried to write to it.
17047 E.g., `printf foo >&-' must fail.
17049 2004-11-13 Jim Meyering <jim@meyering.net>
17051 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
17053 2004-11-12 Simon Josefsson <jas@extundo.com>
17055 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
17056 small doc fix is still pending.
17058 2004-11-11 Simon Josefsson <jas@extundo.com>
17060 * modules/strtok_r: New file.
17062 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17065 2004-11-11 Simon Josefsson <jas@extundo.com>
17067 * m4/strtok_r.m4: New file.
17069 * m4/getopt.m4: Replace opterr.
17071 2004-11-11 Simon Josefsson <jas@extundo.com>
17073 * lib/strtok_r.h, strtok_r.c: New file.
17075 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
17077 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
17078 of replacing opterr, getopt, etc. This should handle the
17079 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
17081 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
17083 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
17084 we can stop lying to compilers about the constness of argv when we
17085 are compiled outside glibc.
17086 (getopt, getopt_long, getopt_long_only): Use it.
17087 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
17088 _getopt_internal, getopt): Likewise.
17089 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
17090 _getopt_long_only_r): Likewise.
17091 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
17092 _getopt_long_r, _getopt_long_only_r): Likewise.
17094 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
17095 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
17096 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
17097 the other external symbols.
17098 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
17099 declaration, since the above renaming now works around collisions.
17101 2004-11-11 Jim Meyering <jim@meyering.net>
17103 * lib/linebreak.c: Remove trailing blanks.
17104 * lib/alloca_.h: Likewise.
17105 * lib/acosl.c: Likewise.
17106 * lib/euidaccess.c: Likewise.
17107 * lib/allocsa.h: Likewise.
17109 2004-11-10 Simon Josefsson <jas@extundo.com>
17111 * m4/getaddrinfo.m4: New file.
17113 2004-11-10 Simon Josefsson <jas@extundo.com>
17115 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
17117 2004-11-10 Simon Josefsson <jas@extundo.com>
17119 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17122 * modules/getaddrinfo: New file.
17124 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
17126 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
17128 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
17130 * lib/mktime.c (SHR): New macro, which is a portable
17131 substitute for >> that should work even on Crays.
17132 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
17133 Problem reported by Mark D. Baushke in
17134 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
17135 * lib/getdate.y (SHR): Likewise.
17137 * lib/strftime.c (SHR): Likewise.
17139 * lib/quotearg.c (struct quoting_options): Use unsigned int for
17140 quote_these_too, so that right shifts are well defined. All uses
17143 2004-11-10 Jim Meyering <jim@meyering.net>
17145 Ensure that no close failure goes unreported.
17146 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
17147 return early when it seems there's nothing to flush.
17148 Don't include __fpending.h.
17150 2004-11-10 Jim Meyering <jim@meyering.net>
17152 * modules/closeout (Depends-on): Remove fpending.
17154 2004-11-10 Jim Meyering <jim@meyering.net>
17156 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
17158 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
17160 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
17162 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
17163 and AC_REQUIRE when possible, to avoid duplicate checks.
17164 Check for <wchar.h>.
17166 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
17168 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
17170 2004-11-09 Bruno Haible <bruno@clisp.org>
17172 * m4/sockpfaf.m4: New file.
17174 2004-11-05 Bruno Haible <bruno@clisp.org>
17176 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
17177 Reported by Mark D. Baushke <mdb@cvshome.org>.
17179 2004-11-04 Bruno Haible <bruno@clisp.org>
17181 2004-09-11 Bruno Haible <bruno@clisp.org>
17182 * allocsa.valgrind: New file.
17183 2004-02-06 Bruno Haible <bruno@clisp.org>
17184 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
17185 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
17186 Reported by Christopher Seip <chris.seip@hp.com>.
17188 2004-11-04 Bruno Haible <bruno@clisp.org>
17190 * modules/allocsa (Files): Add lib/allocsa.valgrind.
17191 (Makefile.am): Distribute it.
17193 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
17195 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
17196 with errno == ERANGE if the buffer is too small.
17197 Problem reported by Mark D. Baushke.
17199 2004-11-03 Albert Chin <china@thewrittenword.com>
17200 Paul Eggert <eggert@cs.ucla.edu>
17202 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
17203 equivalent, substitute $ac_type for equivalent type rather than
17204 blindly using uint32_t *always* which won't work if uint32_t is not
17205 available. Define _UINT32_T to work around typedef of uint32_t if
17206 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
17209 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
17211 * m4/jm-macros.m4: Sync from coreutils.
17212 (gl_MACROS): Check for mbrlen, for pathchk.
17213 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
17215 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
17217 * lib/xreadlink.c (MAXSIZE): New macro.
17218 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
17219 size does not exceed MAXSIZE. Avoid cast.
17220 As suggested by Mark D. Baushke in
17221 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
17222 if readlink fails with buffer size just under MAXSIZE, try again
17225 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
17227 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
17229 2004-11-02 Derek R. Price <derek@ximbiot.com>
17230 and Paul Eggert <eggert@cs.ucla.edu>
17232 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
17233 (get_date): Overparenthesize to avoid GCC warning.
17235 2004-11-02 Bruno Haible <bruno@clisp.org>
17237 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
17240 2004-11-02 Bruno Haible <bruno@clisp.org>
17242 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
17243 function returns void.
17245 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
17247 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
17248 fflush_unlocked, flockfile, funlockfile, funlockfile,
17249 fputs_unlocked, putc_unlocked.
17251 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
17253 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
17254 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
17257 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
17259 * modules/getdate (Files): Add doc/getdate.texi.
17260 (Depends-on): Add setenv, xalloc.
17262 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
17264 * lib/getdate.y: Add support for TZ="foo" within a date string.
17265 Fix some bugs near time_t boundaries. Reject dates with
17266 out-of-range components, e.g., "Sept 31".
17267 Include <stdlib.h>, "setenv.h", "xalloc.h".
17268 (ISDIGIT_LOCALE): Remove; unused.
17269 Note that the TZ and time functions used here are not reentrant.
17270 (mktime_ok, get_tz): New functions.
17271 (TZBUFSIZE): New constant.
17272 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
17273 This requires that we sometimes generate our own TZ="XXX..." setting.
17275 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
17277 * doc/getdate.texi: New file, from coreutils with modifications for
17278 the new TZ parsing.
17280 2004-10-27 Derek R. Price <derek@ximbiot.com>
17282 * lib/mktime.c (not_equal_tm): Remove redundant check.
17284 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
17286 * modules/regex (lib_SOURCES): Add regex.c.
17287 Reported by James Youngman in
17288 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
17290 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
17292 * lib/getdate.y: Use Bison 1.875 features, and some minor
17293 code cleanups. This change does not affect semantics.
17294 Don't include <stdlib.h>; no longer needed.
17295 Don't include unlocked-io.h; only the "#if TEST" code uses
17296 stdio, and performance isn't crucial there.
17297 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
17298 Bison 1.875 features as described below.
17299 All uses of "PC." replaced by "pc->".
17300 (YYSTYPE): Add a forward declaration.
17301 (yylex, yyerror): Use full prototypes in forward decls.
17302 Use "%pure-parser" rather than obsolescent "%pure_parser".
17303 Use %parse-param and %lex-param instead of obsolescent
17304 YYPARSE_PARAM and YYLEX_PARAM.
17305 (meridian_table, month_and_day_table, time_units_table,
17306 relative_time_table, time_zone_table, military_table,
17307 lookup_zone, lookup_word, get_date):
17308 Use NULL instead of 0 where appropriate.
17309 (to_hour): Avoid abort (), to avoid a dependency on
17311 (yyerror, yylex): Now accepts parser_control * arg.
17312 (main) [TEST]: Use '\0' rather than 0 for char.
17314 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
17316 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
17318 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
17320 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
17321 It's now the caller's responsibility to handle the case where
17322 !HAVE_GETPAGESIZE && !defined getpagesize.
17324 * lib/mktime.c (leapyear): Arg is long int, not int.
17326 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
17328 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
17330 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
17332 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
17333 missing. Problem reported by James Youngman.
17335 2004-10-16 Simon Josefsson <jas@extundo.com>
17337 * gnulib-tool: Fix comments. Fix parse problem.
17338 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
17340 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
17342 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
17343 implementation of getopt_long. Problem reported by Alexander Taler in:
17344 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
17346 2004-10-15 Bruno Haible <bruno@clisp.org>
17348 * gnulib-tool: Untabify. Initialize supplied_libname.
17349 (func_usage): More homogenous output.
17350 (func_modules_transitive_closure, func_modules_to_filelist,
17351 func_emit_lib_Makefile_am): New functions.
17352 (func_import): New function, extracted from big case statement. Use
17353 func_get_license, func_modules_transitive_closure,
17354 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
17355 opt_lgpl. Don't use test -a, as it's not portable.
17356 (func_create_testdir): Use func_modules_transitive_closure,
17357 func_modules_to_filelist, func_emit_lib_Makefile_am.
17359 2004-10-15 Bruno Haible <bruno@clisp.org>
17361 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
17363 2004-10-15 Bruno Haible <bruno@clisp.org>
17365 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
17366 the portions belonging to each module.
17367 Suggested by Derek Robert Price <derek@ximbiot.com>.
17369 2004-10-12 Simon Josefsson <jas@extundo.com>
17371 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
17372 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
17375 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
17377 * modules/vsnprintf: New file.
17379 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
17381 * m4/vsnprintf.m4: New file.
17383 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
17385 * lib/vsnprintf.h: New file.
17386 * lib/vsnprintf.c: New file.
17388 2004-10-11 Bruno Haible <bruno@clisp.org>
17390 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
17393 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
17395 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
17397 2004-10-07 Bruno Haible <bruno@clisp.org>
17399 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
17400 fits into the provided buffer.
17402 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
17404 * lib/diacrit.c, diacrit.h: Add GPL notice.
17406 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
17408 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
17409 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
17410 This avoids a potential constant-folding bug.
17412 2004-10-05 Bruno Haible <bruno@clisp.org>
17414 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
17415 for the declaration of strsep.
17417 2004-10-05 Bruno Haible <bruno@clisp.org>
17419 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
17421 2004-10-04 Simon Josefsson <jas@extundo.com>
17423 * modules/memmem: New file.
17424 * tests/test-memmem.c: New file.
17425 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
17427 2004-10-04 Simon Josefsson <jas@extundo.com>
17429 * m4/memmem.m4: New file.
17431 2004-10-04 Simon Josefsson <jas@extundo.com>
17433 * lib/memmem.h: New file.
17434 * lib/memmem.c: New file, taken from glibc.
17436 2004-10-04 Simon Josefsson <jas@extundo.com>
17438 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
17439 '#ifdef USE_UNLOCKED_IO'.
17441 2004-10-04 Simon Josefsson <jas@extundo.com>
17443 * config/srclist.txt: Add memmem from glibc.
17445 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
17447 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
17449 * modules/argmatch, modules/argp, modules/closeout, modules/error,
17450 modules/exclude, modules/getdate, modules/getline,
17451 modules/getndelim2, modules/getpass, modules/getpass-gnu,
17452 modules/getusershell, modules/linebuffer, modules/md5,
17453 modules/mountlist, modules/posixtm, modules/readtokens,
17454 modules/readutmp, modules/regex, modules/sha1,
17455 modules/version-etc, modules/yesno:
17456 Remove dependency on unlocked-io.
17458 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
17460 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
17462 * m4/unlocked-io.m4: Add copyright notice.
17463 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
17465 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
17467 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
17468 * lib/xmalloc.c (xmemdup): Likewise.
17469 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
17470 XFREE): Remove these long-obsolescent macros.
17471 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
17472 * lib/xstrdup.c: Remove.
17474 * lib/regex.c (re_comp): Cast gettext return value to char *,
17475 Problem reported by Martin Neitzel via Mark D. Baushke.
17477 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
17479 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
17480 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
17481 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
17482 regex.c, sha1.c, version-etc.c, yesno.c:
17483 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
17484 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
17485 the includer's responsibility.
17487 Sync from coreutils.
17489 * lib/modechange.c (mode_compile): Don't decrement a pointer that
17490 points to the start of a string, as the C Standard says the
17491 resulting behavior is undefined.
17493 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
17494 simple -> simple_backups, numbered_existing ->
17495 numbered_existing_backups, numbered -> numbered_backups
17496 to avoid shadowing problems. All uses changed.
17497 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
17498 * lib/backupfile.c (check_extension, numbered_backup):
17499 Rename locals to avoid shadowing 'basename'.
17500 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
17503 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
17504 * lib/.cvsignore: Add getopt.h.
17506 2004-10-04 Bruno Haible <bruno@clisp.org>
17508 * modules/README: New file.
17509 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
17512 2004-10-02 Jim Meyering <jim@meyering.net>
17514 * lib/dirfd.h, getpagesize.h: Add copyright notice.
17516 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
17518 * modules/strsep: New file.
17520 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
17522 * m4/strsep.m4: New file.
17524 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
17526 * lib/strsep.h: New file.
17527 * lib/strsep.c: New file.
17529 2004-10-01 Simon Josefsson <jas@extundo.com>
17531 * lib/snprintf.c (snprintf): Handle size==0.
17533 2004-10-01 Simon Josefsson <jas@extundo.com>
17534 Bruno Haible <bruno@clisp.org>
17536 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
17537 (snprintf): Declare 'args'.
17539 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
17541 * lib/snprintf.c: Remove comments as to why each header is needed.
17543 2004-10-01 Bruno Haible <bruno@clisp.org>
17545 * MODULES.html.sh: Add strsep.
17547 2004-09-30 Simon Josefsson <jas@extundo.com>
17549 * modules/snprintf: New file.
17551 2004-09-30 Simon Josefsson <jas@extundo.com>
17553 * m4/snprintf.m4: New file.
17555 2004-09-30 Simon Josefsson <jas@extundo.com>
17557 * lib/snprintf.h, lib/snprintf.c: New files.
17559 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
17561 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
17562 (hol_entry_help): Never translate an empty string.
17563 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
17564 * lib/argp.h (OPTION_NO_TRANS): New option.
17566 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
17568 * modules/argp (Maintainer): Replace Simon Josefsson
17569 by Sergey Poznyakoff.
17571 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
17573 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
17574 changes merged back into glibc.
17576 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
17578 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
17580 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
17582 * lib/xvasprintf.c: Include xalloc.h.
17583 (xvasprintf): Use xalloc_die, not xmalloc_die.
17585 2004-09-29 Bruno Haible <bruno@clisp.org>
17587 * modules/alloca-opt: New file, derived from modules/alloca.
17588 * modules/allocsa: Depend on alloca-opt instead of alloca.
17589 * modules/setenv: Likewise.
17590 * modules/vasnprintf: Likewise.
17591 * MODULES.html.sh: Add alloca-opt.
17593 2004-09-28 Simon Josefsson <jas@extundo.com>
17595 * gnulib-tool: New parameter --lgpl, to asseert that modules are
17596 LGPL, and to replace license template from GPL to LGPL.
17598 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
17600 * modules/dummy: Change license to LGPL.
17602 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
17604 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
17606 2004-09-24 Simon Josefsson <jas@extundo.com>
17608 * modules/minmax (License): Change from GPL to LGPL.
17610 2004-09-23 Simon Josefsson <jas@extundo.com>
17612 * gnulib-tool (--import): Typo.
17614 2004-09-23 Simon Josefsson <jas@extundo.com>
17616 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
17618 2004-09-22 Bruno Haible <bruno@clisp.org>
17620 * modules/*: Add 'License' field.
17621 * gnulib-tool: Accept --extract-license option.
17622 (func_get_license): New function.
17624 2004-09-21 Bruno Haible <bruno@clisp.org>
17626 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
17627 Reported by Simon Josefsson.
17629 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
17631 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
17632 gl_AC_TYPE_LONG_LONG.
17634 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
17636 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
17638 2004-09-18 Simon Josefsson <jas@extundo.com>
17639 and Paul Eggert <eggert@cs.ucla.edu>
17641 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
17642 calls with autoreconf. Define GL_LIB.
17644 2004-09-14 Karl Berry <karl@gnu.org>
17646 * config/srclist.txt: unsync setenv.c, sigh.
17648 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
17650 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
17651 Problem reported by Bruno Haible in:
17652 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
17654 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
17656 * config/srclist.txt: Comment out argp-pvh.c.
17658 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
17660 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
17661 in case some system header has #define'd it. Problem reported by
17662 Soeren D. Schulze in
17663 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
17665 2004-09-09 Karl Berry <karl@gnu.org>
17667 * regex.[ch]: delete from the root. These were supposed to be
17668 synced with emacs cvs, but this has not happened for about
17669 a year, and anyway nothing else uses emacs regex.[ch].
17670 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
17671 lib/regex[.ch] is untouched.
17673 2004-09-09 Bruno Haible <bruno@clisp.org>
17675 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
17677 2004-09-09 Bruno Haible <bruno@clisp.org>
17679 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
17681 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
17683 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
17685 * modules/xvasprintf: New file.
17686 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
17688 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
17690 * lib/xvasprintf.h: New file.
17691 * lib/xvasprintf.c: New file.
17692 * lib/xasprintf.c: New file.
17694 2004-09-08 Bruno Haible <bruno@clisp.org>
17696 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
17698 2004-09-08 Bruno Haible <bruno@clisp.org>
17700 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
17701 length is > INT_MAX.
17702 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
17705 2004-09-08 Bruno Haible <bruno@clisp.org>
17707 * lib/stdint_.h: New file, taken from GNU clisp.
17709 2004-09-08 Bruno Haible <bruno@clisp.org>
17710 Oskar Liljeblad <oskar@osk.mine.nu>
17712 * modules/stdint: New file.
17713 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
17715 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
17717 Import from coreutils.
17718 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
17719 strings on unbounded length. alloca's performance benefits aren't
17720 that important here.
17721 (V_STRDUP): Remove.
17722 (parse_with_separator): New function, with most of the internals
17723 of the old parse_user_spec. Allow user to omit both user and group,
17724 for compatibility with FreeBSD.
17725 Clone only the user name, not the entire spec.
17726 Do not set *uid, *gid unless entirely successful.
17727 Avoid memory leak in some failing cases.
17728 Fix regression for USER.GROUP reported by Dmitry V. Levin in
17729 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
17730 (parse_user_spec): Rewrite to use parse_with_separator.
17732 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
17734 * modules/userspec: Don't depend on alloca.
17736 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
17738 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
17740 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
17742 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
17743 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
17744 utimecmp, utimens, xnanosleep. Rename sha to sha1.
17746 2004-08-16 Simon Josefsson <jas@extundo.com>
17748 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
17749 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
17750 Add --dry-run for --import.
17751 Let user provided command line parameters override configure.ac
17754 2004-08-12 Simon Josefsson <jas@extundo.com>
17756 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
17757 as discussed with Paul Eggert in threads rooted at
17758 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
17760 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
17761 Before, the test was empty, and relied on ELIDE_CODE in source
17763 (gl_PREREQ_GETOPT): New macro.
17764 (gl_GETOPT): Use them.
17766 2004-08-12 Simon Josefsson <jas@extundo.com>
17768 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
17769 * lib/getopt_.h: Renamed from getopt.h.
17771 2004-08-12 Simon Josefsson <jas@extundo.com>
17773 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
17774 Change default library name from libfoo to libgnu.
17775 Now, if you have a configure.ac that says:
17778 gl_MODULES(error getopt etcetera)
17780 you can import all you need by running:
17781 ../gnulib/gnulib-tool --import
17783 * modules/getopt (Files): Rename getopt.h to getopt_.h.
17784 (Makefile.am): Rewrite, use logic from argz.
17785 (Include): Use <getopt.h> instead of "getopt.h".
17787 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
17789 * modules/argp (Files): Add m4/unlocked-io.m4.
17790 (Depends-on): Add extensions.
17792 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
17794 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
17795 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
17796 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
17797 Check for program_invocation_name, program_invocation_short_name,
17798 flockfile, funlockfile, features.h, _getopt_long_only_r.
17800 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
17802 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
17803 its complicated substitute.
17804 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
17805 and program_invocation_name.
17806 (__argp_basename) [!_LIBC]: Remove; the only use was
17807 replaced by its body.
17808 (__argp_short_program_name): Change condition from
17809 !defined __argp_short_program_name to
17810 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
17811 to match argp-namefrob.h.
17812 (__argp_failure): Don't assume strerror_r returns char *.
17813 * lib/argp-parse.c (N_): Define unconditionally.
17814 (argp_default_options): Fill out initializers with 0 to avoid
17817 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
17819 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
17822 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
17824 Merge from coreutils.
17826 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
17828 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
17829 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
17831 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
17833 Merge from coreutils.
17835 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
17836 wmemchr or wmemcpy. Problem reported by Robert Dahlem
17837 for Reliant Unix 5.43.
17839 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
17840 (union fooround): Use uintmax_t, not long int.
17841 The rest is a merge from libc:
17842 [defined _LIBC]: Include <shlib-compat.h>.
17843 (_obstack) [defined _LIBC]: Remove after 2.3.4.
17845 * lib/settime.c (settime): Recode to avoid warning with
17848 * lib/strverscmp.c: Convert to UTF-8.
17850 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
17852 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
17855 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
17857 * modules/xalloc-die: New file.
17858 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
17860 * modules/md5 (Files): Add m4/uint32_t.m4.
17861 * modules/sha1: Renamed from modules/sha.
17863 Rename lib/sha.h to lib/sha1.h.
17864 Rename lib/sha.c to lib/sha1.c.
17865 Rename m4/sha.m4 to m4/sha1.m4.
17866 (lib_SOURCES): Likewise.
17867 (configure.ac): Rename gl_SHA to gl_SHA1.
17868 (Include): sha.h -> sha1.h.
17870 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
17872 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
17873 * m4/sha1.m4: Renamed from sha.m4.
17874 (gl_SHA1): Renamed from gl_SHA. All uses changed.
17876 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
17878 * lib/obstack.h (obstack_empty_p):
17879 Don't assume that chunk->contents is suitably aligned.
17880 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
17881 Likewise. Problem reported by Benno in
17882 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
17884 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
17885 readable. This could be improved further but it'd take some work.
17887 2004-08-08 Simon Josefsson <jas@extundo.com>
17889 * modules/xgethostname (Depends-on): Remove exit and error (not
17892 * modules/getpass-gnu: Add getpass.h.
17893 (Depends-on): Add stdbool.
17894 * modules/getpass: Add getpass.h.
17896 2004-08-08 Simon Josefsson <jas@extundo.com>
17898 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
17899 Check getpass declaration.
17901 2004-08-08 Simon Josefsson <jas@extundo.com>
17903 * lib/xgethostname.c: Don't include error.h (not used).
17905 * lib/getpass.h: Add.
17906 * lib/getpass.c: Include getpass.h first.
17908 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
17910 * lib/xalloc-die.c: New file.
17911 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
17913 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
17914 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
17916 (_, N_, xalloc_die): Move to xalloc-die.c.
17917 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
17918 so that we needn't mess with xalloc_msg_memory_exhausted.
17920 * lib/sha1.h: Renamed from sha.h.
17921 (SHA1_H): Renamed from _SHA_H.
17922 (sha1_ctx): Renamed from sha_ctx.
17923 (sha1_init_ctx): Renamed from sha_init_ctx.
17924 (sha1_process_block): Renamed from sha_process_block.
17925 (sha1_process_bytes): Renamed from sha_process_bytes.
17926 (sha1_finish_ctx): Renamed from sha_finish_ctx.
17927 (sha1_read_ctx): Renamed from sha_read_ctx.
17928 (sha1_stream): Renamed from sha_stream.
17929 (sha1_buffer): Renamed from sha_buffer.
17930 * lib/sha1.c: Likewise; renamed from sha.c.
17931 Do not include <sys/types.h>.
17932 Include <stddef.h> rather than <stdlib.h>.
17934 2004-08-08 Bruno Haible <bruno@clisp.org>
17936 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
17937 FILESYSTEM_PREFIX_LEN.
17938 * lib/progreloc.c: Likewise.
17939 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
17941 2004-08-06 Simon Josefsson <jas@extundo.com>
17943 * modules/progname (Depends-on): Don't depend on stdbool.
17945 2004-08-06 Simon Josefsson <jas@extundo.com>
17947 * modules/getsubopt: New file.
17948 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17951 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
17953 More merge from coreutils.
17955 * m4/utimens.m4, m4/utimecmp.m4: New files.
17956 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
17957 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
17958 prereq.m4, sha.m4: Import changes from coreutils.
17960 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
17962 More merge from coreutils.
17963 * modules/raise, modules/readtokens0, modules/utimens:
17964 * modules/utimecmp, module/xnanosleep: New files.
17965 * modules/strftime: Add lib/strftime.h.
17966 Change include from <time.h> to "strftime.h".
17967 * modules/yesno: Add lib/yesno.h.
17968 * modules/backupfile: Remove lib/addext.c.
17969 * modules/euidaccess: Add stat-macros.h.
17970 * modules/canonicalize, modules/euidaccess,
17971 modules/filemode, modules/lchown, modules/makepath,
17972 modules/rmdir, modules/stat: Likewise.
17974 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
17977 * lib/argp-help.c (make_hol, hol_append): Don't assume that
17978 SIZE_MAX is a valid preprocessor constant.
17979 (__argp_basename): Change from "#ifndef _LIBC"
17980 to "#ifndef __argp_short_program_name", so that
17981 we don't compile these functions for tar.
17983 More merges from coreutils.
17984 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
17985 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
17986 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
17987 * lib/addext.c: Remove; no longer needed.
17988 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
17989 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
17990 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
17991 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
17992 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
17993 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
17994 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
17995 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
17996 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
17997 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
17998 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
17999 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
18000 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
18001 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
18002 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
18003 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
18004 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
18005 Import changes from coreutils.
18007 2004-08-05 Simon Josefsson <jas@extundo.com>
18009 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
18011 2004-08-05 Simon Josefsson <jas@extundo.com>
18013 * m4/getsubopt.m4: New file.
18015 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
18017 Merge from coreutils.
18019 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
18020 * m4/getcwd-path-max.m4: New files.
18022 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
18023 FILESYSTEM_PREFIX_LEN ->
18024 FILE_SYSTEM_PREFIX_LEN.
18025 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
18026 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
18027 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
18028 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
18030 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
18031 prerequisite modules now handle the DOS stuff.
18032 Don't check for unistd.h.
18034 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
18036 Merge from coreutils.
18038 * lib/.gdb-history: Remove; this doesn't belong here.
18040 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
18041 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
18042 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
18043 * lib/getcwd.c: New files.
18045 * lib/dirname.h: Include <stdbool.h>.
18046 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
18047 for consistency with POSIX terminology. All uses changed.
18048 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
18049 (strip_trailing_slashes): Use bool for booleans.
18050 * lib/stripslash.c (strip_trailing_slashes): Likewise.
18052 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
18053 sometimes returns a positive errno value even when it succeeds.
18054 (print_errno_message) [!LIBC]: Fall back on strerror if
18055 __strerror_r fails.
18057 * lib/path-concat.c (mempcpy): Don't define if a system header defines
18058 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
18059 (longest_relative_suffix): New function.
18060 (path_concat): Use it. Assume first argument is not NULL.
18061 Port to DOS. Omit redundant separators.
18062 Report an error instead of returning NULL.
18063 Use mempcpy instead of memcpy.
18064 (xpath_concat): Remove: not declared or used.
18066 * lib/same.h: Include <stdbool.h>
18067 (same_name): Return bool, not int.
18068 * lib/same.c (same_name): Likewise.
18069 (errno): Don't declare; we assume C89 or better now.
18071 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
18072 if not already defined.
18074 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
18075 * lib/dup-safer.c (errno): Likewise.
18077 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
18079 Merge from coreutils.
18080 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
18081 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
18082 * modules/path-concat: Don't depend on strdup.
18084 2004-08-03 Simon Josefsson <jas@extundo.com>
18086 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
18087 * lib/progname.h: Don't include stdbool.h.
18089 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
18091 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
18092 * MODULES.html.sh (func_all_modules): Remove fatal.
18094 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
18096 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
18098 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
18100 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
18103 2004-08-02 Simon Josefsson <jas@extundo.com>
18105 * lib/getsubopt.h: New file, with comments from Bruno Haible.
18106 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
18107 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
18109 2004-08-01 Simon Josefsson <jas@extundo.com>
18111 * lib/xgetdomainname.c: Include stdlib.h, for free().
18113 2004-07-19 Bruno Haible <bruno@clisp.org>
18115 * MODULES.html.sh (func_all_modules): Add dummy.
18117 2004-07-16 Simon Josefsson <jas@extundo.com>
18119 * modules/dummy: New file.
18121 2004-07-16 Simon Josefsson <jas@extundo.com>
18123 * lib/dummy.c: New file.
18125 2004-07-16 Bruno Haible <bruno@clisp.org>
18127 * lib/backupfile.h: Add extern "C" for C++.
18128 * lib/closeout.h: Likewise.
18129 * lib/copy-file.h: Likewise.
18130 * lib/findprog.h: Likewise.
18131 * lib/full-write.h: Likewise.
18132 * lib/pathname.h: Likewise.
18133 * lib/progname.h: Likewise.
18134 * lib/stpcpy.h: Likewise.
18135 * lib/stpncpy.h: Likewise.
18136 * lib/strcase.h: Likewise.
18137 * lib/strstr.h: Likewise.
18138 * lib/xalloc.h: Likewise.
18140 * lib/mbswidth.h: Add extern "C" for C++.
18141 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
18143 2004-07-13 Robert Millan <robertmh@gnu.org>
18145 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
18147 2004-07-09 Simon Josefsson <jas@extundo.com>
18149 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
18150 failed without this.)
18152 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
18154 * modules/chown (Files): Add lib/fchown-stub.c, since
18155 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
18157 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
18159 * lib/fchown-stub.c: New file.
18161 2004-06-24 Jim Meyering <jim@meyering.net>
18163 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
18165 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
18167 * modules/argz: Omit "#include".
18169 * MODULES.html.sh (func_all_modules): Add calloc, to match
18170 2004-06-01 addition of calloc module.
18172 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
18174 * m4/argz.m4: New file, which is autoupdated from libtool.
18176 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
18178 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
18181 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
18183 * config/srclist-update: Don't insist on "USA." before the
18184 close-comment, as libtool omits the period and puts the */ on a
18186 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
18187 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
18189 2004-06-22 Gary V. Vaughan <gary@gnu.org>
18191 * modules/argz: New file.
18192 * MODULES.html.sh (func_all_modules): Add argz.
18194 2004-06-12 Jim Meyering <jim@meyering.net>
18195 and Paul Eggert <eggert@cs.ucla.edu>
18197 * modules/hash (Files): Add lib/xalloc.h.
18198 * modules/pipe (Depends-on): Add wait-process.
18199 * modules/stat (Depends-on): Add xalloc.
18200 * modules/userspec (Files): Add lib/userspec.h.
18203 Upgrade from gettext-0.13.
18204 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
18205 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
18206 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
18208 2004-06-10 Jim Meyering <jim@meyering.net>
18210 * lib/calloc.c: New file.
18212 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
18214 * lib/getdate.y (yylex): Allow space between sign and number.
18215 Problem reported by Dan Jacobson.
18217 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
18219 Merge from coreutils CVS.
18221 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
18222 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
18223 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
18224 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
18225 xstrtol.m4: Fix copyright date and/or serial number.
18227 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
18228 See if we need an fchown replacement.
18229 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
18230 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
18231 and use the replacement function if we detect either defect.
18233 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
18236 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
18237 and Jim Meyering <jim@meyering.net>
18239 Merge from coreutils CVS.
18241 * lib/stat-macros.h: New file, with contents from file-type.h
18242 and coreutils' system.h.
18243 * lib/file-type.c: Include "stat-macros.h".
18244 * lib/file-type.h (file_type): Move all macro definitions to new file,
18247 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
18248 Wrap old code with this conditional.
18249 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
18250 function that does not dereference symlinks.
18251 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
18253 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
18254 dependency problems.
18255 (xreadlink): Accept new arg SIZE, for efficiency.
18256 All decls and uses changed.
18257 * lib/xreadlink.h: Include <stddef.h>, for size_t.
18259 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
18260 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
18262 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
18265 2004-06-01 Jim Meyering <jim@meyering.net>
18267 * m4/calloc.m4: New file.
18269 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
18271 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
18272 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
18273 Also, fix a typo in a diagnostic.
18275 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
18277 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
18278 or AC_FUNC_REALLOC.
18280 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
18282 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
18283 macros to be defined.
18284 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
18285 the allocator returns NULL because the requested size is zero.
18287 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
18289 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
18290 var. Add comment explaining why libc still defines it. This
18291 merges the following patch from glibc:
18292 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
18294 2004-05-20 Andreas Schwab <schwab@suse.de>
18296 * m4/free.m4: Replace free if it not known to work, not the other
18299 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
18301 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
18302 present in glibc since revision 1.1 of this file.
18303 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
18304 obstack_alignment_mask, obstack_alloc, obstack_base,
18305 obstack_blank, obstack_blank_fast, obstack_chunk_size,
18306 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
18307 obstack_grow0, obstack_init, obstack_int_grow,
18308 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
18309 obstack_next_free, obstack_object_size, obstack_ptr_grow,
18310 obstack_ptr_grow_fast, obstack_room): Remove declarations of
18311 nonexistent functions.
18313 2004-05-18 Karl Berry <karl@gnu.org>
18315 * config/srclist.txt: break link for vasnprintf.c.
18317 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
18319 Port obstack to the AS/400, where pointers are 16 bytes wide and
18320 you cannot cast an integer to a valid pointer. This patch is
18321 currently waiting to be integrated into glibc; see
18322 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
18324 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
18325 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
18326 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
18327 (struct obstack): temp member is now a union of a pointer and
18328 an integer, instead of an integer. All integer uses changed.
18329 This does not affect the physical layout of struct obstack,
18330 except on hosts (like the AS/400) where the size or alignment of
18331 void * is greater than that of ptrdiff_t.
18332 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
18333 __STDC__)]: Store temporary in pointer member of union, not
18335 * lib/obstack.c: Include <stddef.h>, for offsetof.
18336 (struct fooalign): Remove; it doesn't need a name.
18337 (union fooround): Change double to long double, and add void *.
18338 (DEFAULT_ALIGNMENT): Use offsetof to compute.
18339 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
18340 not a macro. Hence the values are always int; so remove all
18341 casts-to-int in uses.
18343 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
18345 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
18346 we can get this patch merged into glibc.
18348 2004-05-17 Derek R. Price <derek@ximbiot.com>
18349 Paul Eggert <eggert@cs.ucla.edu>
18351 * m4/argp: Depend on alloca.
18353 2004-05-17 Derek R. Price <derek@ximbiot.com>
18354 Paul Eggert <eggert@cs.ucla.edu>
18356 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
18359 2004-05-17 Bruno Haible <bruno@clisp.org>
18361 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
18362 precision that consists of a '.' followed by an empty digit string.
18363 Patch by Tor Lillqvist <tml@iki.fi>.
18365 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
18367 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
18368 for backward compatibility with older code. We need our own
18369 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
18370 it under some other name, and our alloca.h will define it.
18372 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
18373 Derek Price <derek@ximbiot.com>
18375 * lib/alloca.c: Include <alloca.h>, to get our interface.
18376 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
18377 include <alloca.h> first. Use C89 prototype for alloca; this
18378 requires including <stddef.h> for size_t. Use extern "C" if C++.
18379 Use #elif for simplicity, since we can assume C89 now.
18380 Don't try to source the system alloca.h since it will not be found
18381 and to prevent recursively including its replacement.
18382 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
18383 * lib/regex.c: Likewise.
18385 2004-05-16 Derek Price <derek@ximbiot.com>
18386 Paul Eggert <eggert@cs.ucla.edu>
18388 getline cleanup. This changes the getndelim2 API: both order of
18389 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
18392 * lib/getline.c: Don't include stddef.h or stdio.h, since our
18393 interface does that.
18394 (getline): Always use getdelim, so that we don't have two
18395 copies of this code.
18396 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
18398 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
18399 (GETNDELIM2_MAXIMUM): New macro.
18400 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
18401 instead of the old practice of delim2==0. All callers changed.
18402 Return -1 on overflow, instead of returning junk.
18403 Do not set *linesize unless allocation succeeds.
18404 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
18405 that we include sys/types.h.
18406 * lib/getnline.h: Likewise.
18407 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
18408 (getndelim2): Reorder arguments.
18409 * lib/getnline.c (getnline, getndelim):
18410 Don't discard the NMAX argument.
18411 (getnline): Invoke getndelim, to avoid code duplication.
18412 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
18413 of (size_t) -1 by callers of the getnline family.
18415 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
18417 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
18418 Check for gettimeofday.
18419 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
18420 Check for settimeofday, stime.
18422 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
18424 * lib/nanosleep.c (suspended): Change its type from int to
18425 sig_atomic_t volatile.
18426 (first_call): Make it private to rpl_nanosleep, and have it
18427 be zero initially as that's a bit faster.
18428 (my_usleep): Round up fractional times instead of truncating them,
18429 as this is the usual meaning for 'sleep'.
18431 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
18433 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
18434 (ENOSYS): Define if not defined.
18435 (settime): Fall back on stime if it exists and settimeofday fails.
18436 But don't bother with fallbacks if a method fails with errno == EPERM.
18438 2004-05-11 Jim Meyering <jim@meyering.net>
18440 Prior to this change, the save_cwd caller required read access to the
18441 current directory on most systems (ones with the fchdir function).
18443 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
18444 fails, try write-only, and finally, resort to using xgetcwd.
18446 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
18448 * lib/obstack.c, obstack.h: Import changes from libc.
18450 2004-04-28 Bruno Haible <bruno@clisp.org>
18452 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
18453 also implicitly appends .exe to executables.
18454 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
18455 accepts Windows pathnames.
18456 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
18457 Treat Cygwin like Windows, since it now accepts Windows pathnames.
18458 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
18459 Treat Cygwin like Windows, since it now accepts Windows pathnames.
18460 Reported by Derek Robert Price <derek@ximbiot.com>.
18462 2004-04-21 Karl Berry <karl@gnu.org>
18464 * config/srclist.txt (localcharset.c): break sync.
18466 2004-04-20 Paul Eggert <eggert@twinsun.com>
18468 * m4/host-os.m4: Add a copyright notice.
18470 2004-04-20 Jim Meyering <jim@meyering.net>
18472 Change UTILS_ to gl_ in AC_DEFINE'd names.
18473 Change utils_- and jm_-prefixed variables, too.
18474 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
18475 UTILS_FUNC_MKDIR_TRAILING_SLASH.
18476 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
18478 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
18479 Don't emit trailing blanks.
18480 Also rename jm_-prefixed variables to have gl_ prefix.
18482 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
18483 Also rename jm_-prefixed variables to have gl_ prefix.
18485 * m4/jm-macros.m4: Reflect the renamings.
18486 * m4/prereq.m4: Likewise.
18488 2004-04-20 Jim Meyering <jim@meyering.net>
18490 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
18493 2004-04-20 Jim Meyering <jim@meyering.net>
18494 Bruno Haible <bruno@clisp.org>
18496 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
18497 memory when realloc fails.
18499 2004-04-19 Jim Meyering <jim@meyering.net>
18501 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
18502 now that readutmp.c may call `free (0)'.
18504 2004-04-19 Bruno Haible <bruno@clisp.org>
18506 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
18507 * m4/inttypes_h.m4: Likewise.
18508 * m4/stdint_h.m4: Likewise.
18509 * m4/intmax_t.m4: Likewise.
18510 * m4/uintmax_t.m4: Likewise.
18512 2004-04-18 Jim Meyering <jim@meyering.net>
18514 * m4/prereq.m4: Don't forbid jm_ prefix.
18516 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
18517 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
18518 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
18519 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
18520 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
18521 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
18522 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
18523 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
18524 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
18525 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
18526 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
18527 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
18528 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
18529 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
18530 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
18531 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
18532 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
18533 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
18534 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
18536 2004-04-18 Jim Meyering <jim@meyering.net>
18538 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
18539 failure, don't leak memory and do call END_UTMP_ENT.
18541 2004-04-16 Jim Meyering <jim@meyering.net>
18543 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
18544 coreutils' stat program.
18545 (gl_PREREQ): Don't require jm_PREREQ_STAT.
18547 2004-04-11 Paul Eggert <eggert@twinsun.com>
18549 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
18551 (CHAR_BIT): Remove, since we assume C89.
18552 Include <stdint.h> if available, as per current Autoconf CVS advice.
18554 2004-03-31 Jim Meyering <jim@meyering.net>
18556 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
18557 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
18558 * m4/xalloc.m4: Likewise.
18560 2004-03-30 Paul Eggert <eggert@twinsun.com>
18562 Merge from coreutils.
18564 * m4/inttostr.m4: New file.
18565 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
18566 Require AM_STDBOOL_H and gl_TIMESPEC instead.
18567 Require gl_CLOCK_TIME.
18568 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
18570 2004-03-30 Paul Eggert <eggert@twinsun.com>
18572 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
18573 not bool, to be more consistent with Unix conventions.
18574 Suggested by Bruno Haible.
18576 Merge from coreutils.
18578 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
18579 * lib/umaxtostr.c: New files.
18581 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
18582 the usual <time.h> dance.
18583 (get_date): Change signature to support fractional time stamps.
18584 All callers changed.
18585 * lib/getdate.y: Include "getdate.h" first, as we can now
18586 assume C89 and don't need to worry about 'const'.
18587 Similarly, include "unlocked-io.h" near start, not in middle.
18588 Include <limits.h>.
18589 (textint.value): Use long int rather than int.
18590 (textint.digits): Use size_t rather than int.
18591 (BILLION, LOG10_BILLION): New constants.
18592 (parser_control): New member rel_ns. Members day_ordinal,
18593 time_zone, month, day, hour, minutes, rel_year, rel_month,
18594 rel_day, rel_hour, rel_minutes, rel_seconds
18595 are now long int, not int. Member seconds is now struct timespec,
18596 not int. New member timespec_seen. Members dates_seen, days_seen,
18597 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
18599 (%union.intval): Now long int, not int.
18600 New member timespec.
18601 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
18602 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
18603 (spec): Now is a timespec or an item list.
18604 (timespec, items): New nonterminals.
18605 (time, rel, relunit, number, get_date):
18606 Add support for fractional seconds.
18607 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
18608 (gmtime, localtime, mktime): Remove decls; not needed with C89.
18609 (to_hour): First arg is now long int, not int.
18610 (to_year): Returns long int, not int.
18611 Don't treat year -70 like 70.
18612 (tm_diff): Returns long int, not int.
18613 (lookup_word): Use bool instead of int when appropriate.
18614 (yylex): Use size_t for count, not int.
18615 Detect overflow when parsing large integer constants.
18616 Add support for fractions.
18617 (get_date): Make pointers 'const' if possible.
18618 Use more-portable code to detect integer overflow.
18619 (main) [TEST]: Adjust to above changes. Test for localtime failure.
18620 Don't use ctime; it's not reliable if the year has >4 digits.
18622 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
18623 This is for compatibility with BSD.
18625 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
18626 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
18627 From coreutils' system.h.
18629 * lib/userspec.c: Don't include "posixver.h".
18630 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
18631 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
18632 compatible extension. Simplify code by removing a boolean int
18633 that was always nonzero if a string was nonnull.
18635 2004-03-30 Jim Meyering <jim@meyering.net>
18637 Merge from coreutils.
18639 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
18640 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
18641 on some systems one must include <grp.h> before it.
18642 Reported by Christian Krackowizer.
18644 2004-03-30 Jim Meyering <jim@meyering.net>
18646 Merge from coreutils.
18648 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
18650 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
18651 an empty input stream.
18653 * lib/readtokens.c: Include <stdbool.h>.
18654 (readtoken): Use `size_t' rather than int/long.
18655 All callers adjusted.
18656 Use `bool' rather than `int' where appropriate.
18657 Use memset rather than an explicit loop.
18658 Use x2nrealloc rather than xrealloc.
18659 Allow the use of `\0' as a delimiter.
18660 (readtokens): Likewise.
18661 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
18663 2004-03-30 Jim Meyering <jim@meyering.net>
18665 * m4/realloc.m4: Remove file, since now it does no more than
18666 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
18667 the `configure.ac' section of module/realloc.
18668 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
18670 2004-03-30 Bruno Haible <bruno@clisp.org>
18672 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
18675 2004-03-29 Paul Eggert <eggert@twinsun.com>
18677 Merge changes to getloadavg.c from coreutils and Emacs.
18679 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
18680 Define to an expression, not to the empty string.
18681 Include cloexec.h and xalloc.h.
18682 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
18683 Use set_cloexec_flag rather than rolling our own.
18684 * lib/cloexec.c, lib/cloexec.h: New files.
18686 2004-03-29 Paul Eggert <eggert@twinsun.com>
18688 * m4/cloexec.m4: New file.
18690 2004-03-18 Paul Eggert <eggert@twinsun.com>
18692 * lib/getopt.h: Sync with libc CVS.
18694 2004-03-18 Paul Eggert <eggert@twinsun.com>
18695 Bruno Haible <bruno@clisp.org>
18697 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
18700 2004-03-18 Paul Eggert <eggert@twinsun.com>
18701 Bruno Haible <bruno@clisp.org>
18703 * lib/mbswidth.h: Include <wchar.h> only if
18704 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
18706 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
18708 2004-03-09 Paul Eggert <eggert@twinsun.com>
18710 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
18711 Sync with libc CVS.
18712 * lib/getopt_int.h: New file, also synced from libc.
18714 2004-03-09 Paul Eggert <eggert@twinsun.com>
18716 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
18717 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
18718 Bring back getopt.c, getopt.h, getopt1.c.
18720 2004-03-07 Paul Eggert <eggert@twinsun.com>
18722 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
18723 All uses changed. Check for sa_sigaction member; this fixes
18724 a bug first reported by Jason Andrade in
18725 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
18727 2004-03-07 Paul Eggert <eggert@twinsun.com>
18729 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
18730 '#if' expressions. Unlike the code it replaces, it does not
18731 depend on (defined _SC_PAGESIZE). However, it does depend on
18732 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
18733 first reported by Jason Andrade in
18734 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
18736 2004-02-25 Simon Josefsson <jas@extundo.com>
18738 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
18740 2004-02-25 Simon Josefsson <jas@extundo.com>
18742 * lib/strdup.h: New file.
18743 * lib/strdup.c: Include it.
18744 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
18745 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
18747 2004-02-23 Karl Berry <karl@gnu.org>
18749 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
18750 (from fencepost.gnu.org:/gd/gnuorg).
18752 2004-02-23 Karl Berry <karl@gnu.org>
18754 * config/srclistvars.sh (GNUORG) [karl]: redefine.
18755 * config/srclist.txt: add maintain/standards documents.
18757 2004-02-18 Bruno Haible <bruno@clisp.org>
18759 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
18760 Reported by Derek Robert Price <derek@ximbiot.com>.
18762 2004-02-16 Karl Berry <karl@gnu.org>
18764 * config/mkinstalldirs, install-sh: update from automake.
18766 2004-02-06 Karl Berry <karl@gnu.org>
18768 * m4/po.m4: update from gettext 0.14.1.
18770 2004-02-06 Karl Berry <karl@gnu.org>
18772 * lib/config.charset: update from gettext 0.14.1.
18774 2004-02-05 Paul Eggert <eggert@twinsun.com>
18776 Add comments and code, prompted by suggestions from Bruno Haible
18778 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
18779 describing the enum quoting_style values.
18780 * lib/quotearg.c (quotearg_alloc): New function.
18781 (quotearg_buffer_restyled): Treat lone { and } as special.
18782 Treat = as special. Work around bug with older shells
18783 that "see" a '\' that is really the 2nd byte of a multibyte char.
18784 Quote empty string with shell_quoting_style.
18786 2004-02-03 Bruno Haible <bruno@clisp.org>
18788 * m4/pipe.m4: New file, from GNU gettext.
18790 2004-02-03 Bruno Haible <bruno@clisp.org>
18792 * lib/pipe.h: New file, from GNU gettext.
18793 * lib/pipe.c: New file, from GNU gettext.
18795 2004-01-27 Bruno Haible <bruno@clisp.org>
18797 * m4/execute.m4: New file, from GNU gettext.
18799 2004-01-27 Bruno Haible <bruno@clisp.org>
18801 * lib/execute.h: New file, from GNU gettext.
18802 * lib/execute.c: New file, from GNU gettext.
18803 * lib/w32spawn.h: New file, from GNU gettext.
18805 2004-01-24 Paul Eggert <eggert@twinsun.com>
18807 Merge from diffutils.
18809 * lib/file-type.c (file_type): Add typed memory objects.
18810 * lib/file-type.h (S_TYPEISTMO): New macro.
18812 * lib/c-stack.h (c_stack_action): Remove argv argument.
18813 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
18814 (die): Don't calculate message unless segv_action returns.
18815 (get_stack_location, min_address_from_argv, max_address_from_argv,
18816 volatile stack_base, volatile_stack_size): Remove.
18817 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
18818 that every segmentation violation is a stack overflow. (Ouch!)
18819 See Debian bug 136249 (still outstanding) for more info about why
18820 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
18822 2004-01-24 Paul Eggert <eggert@twinsun.com>
18824 Exit-status fix from coreutils.
18826 Use exit_failure consistently in place of EXIT_FAILURE,
18827 so that program exit statuses are consistent on failure.
18829 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
18830 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
18831 * lib/argmatch.h: Comment fix to match the above.
18832 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
18833 Now a macro referring to exit_failure, instead of a separate
18834 variable. Include "exitfail.h" to get it.
18835 * lib/xstrtol.h: Include "exitfail.h".
18836 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
18838 * lib/long-options.c (parse_long_options): Use prototype
18839 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
18842 2004-01-21 Jim Meyering <jim@meyering.net>
18844 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
18845 so as not to conflict with a different-sized __mktime_internal
18846 function in GNU libc.
18847 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
18848 Problem building statically-linked `ls' reported by Michael Brunnbauer.
18850 2004-01-20 Karl Berry <karl@gnu.org>
18852 * config/config.guess: update from config.
18854 * config/srclistvars.sh: GNUWWWLICENSES for karl.
18856 2004-01-20 Bruno Haible <bruno@clisp.org>
18858 Safer stack allocation.
18859 * lib/setenv.c: Include allocsa.h.
18860 (alloca): Remove fallback definition.
18861 (freea): Remove macro.
18862 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
18865 2004-01-20 Bruno Haible <bruno@clisp.org>
18867 * m4/eealloc.m4: New file, from GNU gettext.
18869 2004-01-20 Bruno Haible <bruno@clisp.org>
18871 * m4/allocsa.m4: New file, from GNU gettext.
18873 2004-01-20 Bruno Haible <bruno@clisp.org>
18875 * lib/xallocsa.h: New file, from GNU gettext.
18876 * lib/xallocsa.c: New file, from GNU gettext.
18878 2004-01-20 Bruno Haible <bruno@clisp.org>
18880 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
18882 2004-01-20 Bruno Haible <bruno@clisp.org>
18884 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
18885 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
18888 2004-01-20 Bruno Haible <bruno@clisp.org>
18890 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
18893 2004-01-20 Bruno Haible <bruno@clisp.org>
18895 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
18897 2004-01-20 Bruno Haible <bruno@clisp.org>
18899 * lib/eealloc.h: New file.
18901 2004-01-20 Bruno Haible <bruno@clisp.org>
18903 * lib/binary-io.h: Avoid warnings on Cygwin.
18905 2004-01-20 Bruno Haible <bruno@clisp.org>
18907 * lib/allocsa.h: New file, from GNU gettext.
18908 * lib/allocsa.c: New file, from GNU gettext.
18910 2004-01-18 Karl Berry <karl@gnu.org>
18912 * doc/gpl.texi, doc/lgpl.texi: new files.
18914 2004-01-18 Karl Berry <karl@gnu.org>
18916 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
18917 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
18919 2004-01-15 Paul Eggert <eggert@twinsun.com>
18921 Merge from coreutils.
18923 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
18924 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
18925 (gl_DEFAULT_POSIX2_VERSION): Move
18926 the documentation from 'configure' into 'config.hin',
18927 so that 'configure --help' isn't burdened by it and
18928 we don't have to worry about its formatting there.
18929 Reword the documentation so that it's more succinct
18930 and can be run together into a single paragraph.
18931 * m4/same.m4 (gl_SAME): Check for pathconf.
18933 2004-01-15 Paul Eggert <eggert@twinsun.com>
18935 Merge from coreutils.
18937 * lib/posixver.c: Include posixver.h.
18939 * lib/same.c: Include <stdbool.h>, <limits.h>.
18940 (_POSIX_NAME_MAX): Define if not defined.
18942 (same_name): If file names are silently truncated, report
18943 that the file names are the same if they are the same after
18944 the silent truncation.
18946 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
18947 conversion function.
18948 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
18949 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
18952 2004-01-15 Jim Meyering <jim@meyering.net>
18954 Merge from coreutils.
18956 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
18957 if no library is required.
18958 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
18959 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
18960 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
18961 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
18962 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
18963 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
18964 value, $ac_cv_search_crypt, if it's "none required".
18965 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
18966 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
18967 not gl_FUNC_GETLOADAVG.
18968 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
18969 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
18971 2004-01-15 Jim Meyering <jim@meyering.net>
18973 Merge from coreutils.
18975 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
18976 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
18977 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
18979 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
18980 optional configure-time default.
18982 * lib/version-etc.c (version_etc_copyright): Update copyright date.
18984 * lib/xreadlink.c (xreadlink): Correct outdated comment.
18986 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
18988 Merge from coreutils.
18990 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
18991 value, $ac_cv_search_nanosleep, if it's "none required".
18993 2004-01-14 Paul Eggert <eggert@twinsun.com>
18995 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
18996 with like-named macro in fnmatch.c.
18997 (EXT): Use an internal constant instead.
18999 Merge fnmatch patches from glibc.
19000 * lib/fnmatch.c (mbsinit): Remove define.
19001 Add libc_hidden_ver (__fnmatch, fnmatch).
19002 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
19003 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
19005 2004-01-14 Karl Berry <karl@gnu.org>
19007 * config/install-sh: update from automake.
19009 2004-01-13 Karl Berry <karl@gnu.org>
19011 * config/install-sh: update from automake.
19013 2004-01-09 Karl Berry <karl@gnu.org>
19015 * config/install-sh: update from automake.
19017 2004-01-05 Karl Berry <karl@gnu.org>
19019 * config/config.{sub,guess}: update from config.
19021 2003-12-31 Karl Berry <karl@gnu.org>
19023 * config/depcomp: update from automake.
19025 2003-12-14 Karl Berry <karl@gnu.org>
19027 * lib/config.charset: update from gettext-runtime.
19029 2003-12-03 Paul Eggert <eggert@twinsun.com>
19031 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
19032 Bug reported by Alfred M. Szmidt.
19034 2003-12-03 Bruno Haible <bruno@clisp.org>
19036 * m4/gettext.m4: Upgrade from gettext-0.13.
19037 * m4/po.m4: Upgrade from gettext-0.13.
19038 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
19039 * m4/intmax.m4: New file, from gettext-0.13.
19040 * m4/printf-posix.m4: New file, from gettext-0.13.
19042 2003-11-29 Karl Berry <karl@gnu.org>
19044 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
19046 2003-11-25 Paul Eggert <eggert@twinsun.com>
19047 Bruno Haible <bruno@clisp.org>
19049 * lib/printf-parse.h: Don't include sys/types.h.
19050 (ARG_NONE): New macro.
19051 (char_directive): Change type of *arg_index fields to size_t.
19052 * lib/printf-parse.c: Don't include sys/types.h.
19053 (SSIZE_MAX): Remove macro.
19054 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
19055 Remove unnecessary overflow check.
19056 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
19059 2003-11-25 Bruno Haible <bruno@clisp.org>
19061 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
19063 2003-11-25 Bruno Haible <bruno@clisp.org>
19065 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
19068 2003-11-24 Paul Eggert <eggert@twinsun.com>
19070 * modules/alloca: Remove dependency on xalloc.
19072 2003-11-24 Paul Eggert <eggert@twinsun.com>
19074 * lib/alloca.c: Remove dependency on xalloc module.
19075 (xalloc_die): Remove.
19076 (memory_full) [!defined emacs]: New macro.
19077 [!defined emacs]: Don't include xalloc.h.
19078 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
19079 address arithmetic overflows. Change datatypes a bit to avoid
19082 2003-11-22 Jim Meyering <jim@meyering.net>
19084 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
19087 2003-11-21 Karl Berry <karl@gnu.org>
19089 * config/config.{sub,guess}: update from config.
19091 2003-11-18 Karl Berry <karl@gnu.org>
19093 * config/config.{sub,guess}: update from config.
19095 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
19097 2003-11-17 Paul Eggert <eggert@twinsun.com>
19099 * README: Mention that S+T cannot overflow if S is the size of
19100 an existing object and T is sufficiently small.
19102 2003-11-17 Jim Meyering <jim@meyering.net>
19104 On systems without utime and without a utimes function capable of
19105 dealing with a NULL struct utimbuf* argument, this utime replacement
19106 could -- in unusual circumstances -- leak a file descriptor.
19107 * lib/utime.c: Include <unistd.h> and <errno.h>.
19108 (utime_null): Be sure to close `fd' and to preserve errno.
19109 Reported by Geoff Collyer via Arnold Robbins.
19111 2003-11-17 Bruno Haible <bruno@clisp.org>
19113 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
19114 (Depends-on): Add xsize.
19116 2003-11-17 Bruno Haible <bruno@clisp.org>
19118 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
19120 2003-11-17 Bruno Haible <bruno@clisp.org>
19122 * lib/vasnprintf.c (alloca): Remove fallback definition.
19123 (freea): Remove definition.
19124 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
19125 Reported by Paul Eggert.
19127 2003-11-16 Paul Eggert <eggert@twinsun.com>
19128 Bruno Haible <bruno@clisp.org>
19130 Protect against address arithmetic overflow.
19131 * lib/printf-args.h: Include stddef.h.
19132 (arguments): Change type of field 'count' to size_t.
19133 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
19134 'unsigned int' where appropriate.
19135 * lib/printf-parse.h: Include sys/types.h.
19136 (char_directive): Change type of *arg_index fields to ssize_t.
19137 (char_directives): Change type of fields 'count', max_*_length to
19139 * lib/printf-parse.c: Include sys/types.h and xsize.h.
19140 (SSIZE_MAX): Define fallback value.
19141 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
19142 instead of 'int' where appropriate. Check a_allocated, d_allocated
19143 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
19144 * lib/vasnprintf.c: Include xsize.h.
19145 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
19146 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
19147 overflow. Avoid wraparound when converting a width or precision from
19150 2003-11-16 Bruno Haible <bruno@clisp.org>
19152 Update from GNU gettext.
19153 * lib/printf-parse.c: Generalize to it can be compiled for wide
19155 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
19156 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
19157 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
19158 SNPRINTF): New macros.
19159 Don't include <alloca.h> if the file is used inside libintl.
19160 (local_wcslen): New function, for Solaris 2.5.1.
19161 (VASNPRINTF): Use it instead of wcslen.
19163 2003-11-16 Bruno Haible <bruno@clisp.org>
19165 * lib/xsize.h (xmax): New function.
19166 (xsum, xsum3, xsum4): Declare as "pure" functions.
19168 2003-11-12 Paul Eggert <eggert@twinsun.com>
19170 * modules/xalloc (Files): Undo latest change, since xalloc.h
19171 no longer needs SIZE_MAX or PTRDIFF_MAX.
19173 2003-11-12 Paul Eggert <eggert@twinsun.com>
19175 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
19178 2003-11-12 Paul Eggert <eggert@twinsun.com>
19180 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
19181 "return", to pacify some unknown compiler. Problem reported
19182 by Joerg Schilling.
19184 2003-11-12 Paul Eggert <eggert@twinsun.com>
19186 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
19187 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
19188 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
19189 heuristic is just as accurate as far as we know, and it removes a
19190 dependency on size_max.m4 and ptrdiff_max.m4.
19192 2003-11-11 Bruno Haible <bruno@clisp.org>
19194 * modules/xsize (Files): Add m4/size_max.m4.
19195 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
19197 2003-11-11 Bruno Haible <bruno@clisp.org>
19199 * m4/size_max.m4: New file.
19200 * m4/ptrdiff_max.m4: New file.
19201 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
19202 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
19203 (gl_XALLOC): Invoke it.
19205 2003-11-11 Bruno Haible <bruno@clisp.org>
19207 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
19208 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
19211 2003-11-10 Paul Eggert <eggert@twinsun.com>
19213 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
19214 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
19215 rejected some allocations of exactly SIZE_MAX - 2 bytes.
19217 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
19218 not (size_t) -1, since it's defined here.
19220 2003-11-09 Karl Berry <karl@gnu.org>
19222 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
19224 2003-11-06 Paul Eggert <eggert@twinsun.com>
19226 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
19227 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
19228 Reject sizes of exactly SIZE_MAX bytes.
19229 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
19230 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
19232 2003-11-05 Bruno Haible <bruno@clisp.org>
19234 * lib/xsize.h: Include limits.h, to avoid a possible collision with
19235 SIZE_MAX defined in <limits.h> on Solaris.
19237 2003-11-04 Jim Meyering <jim@meyering.net>
19239 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
19240 variable names, rather than @VAR@.
19241 * modules/poll: Likewise.
19243 2003-11-04 Bruno Haible <bruno@clisp.org>
19245 * modules/xsize: New file.
19246 * modules/linebreak: Depend on xsize.
19247 * MODULES.html.sh (func_all_modules): Add xsize.
19249 2003-11-04 Bruno Haible <bruno@clisp.org>
19251 * m4/xsize.m4: New file.
19253 2003-11-04 Bruno Haible <bruno@clisp.org>
19255 * lib/xsize.h: New file.
19256 * lib/linebreak.c: Include xsize.h.
19257 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
19258 argument for overflow.
19259 Suggested by Paul Eggert.
19261 2003-11-03 Karl Berry <karl@gnu.org>
19263 * config/config.{guess,sub}: update from config.
19265 2003-11-03 Jim Meyering <jim@meyering.net>
19267 * modules/userspec (lib_SOURCES): Add userspec.h.
19268 (Include): Add "userspec.h".
19269 Improve description.
19271 2003-11-03 Jim Meyering <jim@meyering.net>
19273 * lib/userspec.c: Include "userspec.h".
19274 * lib/userspec.h: New file.
19276 2003-11-03 Bruno Haible <bruno@clisp.org>
19278 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
19280 2003-11-03 Bruno Haible <bruno@clisp.org>
19282 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
19283 available, to avoid (extremely rare) race condition.
19284 Suggested by Paul Eggert.
19286 2003-11-02 Karl Berry <karl@gnu.org>
19288 * config/srclist.txt (vasprintf.c): sync broken, sigh.
19290 2003-10-31 Paul Eggert <eggert@twinsun.com>
19292 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
19293 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
19294 (read_filesystem_list): Set and use me_type_malloced.
19295 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
19296 whatever the type happens to be), for brevity and consistency.
19297 Check for size calculation overflow on Alphas running OSF/1.
19299 2003-10-31 Jim Meyering <jim@meyering.net>
19301 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
19303 * lib/linebuffer.c: Include <string.h> for declaration of memset.
19305 2003-10-30 Paul Eggert <eggert@twinsun.com>
19306 Bruno Haible <bruno@clisp.org>
19308 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
19309 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
19311 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
19313 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
19314 netbsd*-gnu*. Suggested by Robert Millan.
19316 2003-10-29 Paul Eggert <eggert@twinsun.com>
19318 * modules/group-member: Depend on stdbool.
19320 2003-10-29 Paul Eggert <eggert@twinsun.com>
19322 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
19324 2003-10-29 Paul Eggert <eggert@twinsun.com>
19326 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
19327 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
19328 after the 'gnu' in these cases. This fixes some bugs in the
19329 previous change, and is based on suggestions by Robert Millan.
19331 2003-10-29 Paul Eggert <eggert@twinsun.com>
19333 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
19334 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
19336 * lib/quotearg.c (quotearg_n_options): Use it.
19337 * lib/group-member.c: Include <stdbool.h>.
19338 (free_group_info): Arg is now const *; don't free arg.
19339 (get_group_info): Now returns bool and accepts struct group_info *,
19340 rather than returning a malloc'ed struct group_info *.
19341 All uses changed. Check for overflow in internal size calculation.
19343 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
19344 rather than xmalloc/xrealloc.
19345 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
19346 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
19347 conformance bug: the old code used a pointer after freeing the
19348 storage that it addressed.
19349 * lib/hash.c (hash_initialize): Simplify the code by using
19350 xalloc_oversized rather than doing it by hand.
19351 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
19352 the buffer preserved. Use free and xmalloc instead.
19353 * lib/quotearg.c (quotearg_n_options): Likewise.
19354 Use a simpler test for size overflow. Don't use xalloc_oversized
19355 because unsigned int might be wider than size_t (!); this suggests
19356 that we should switch from unsigned int to size_t for slot numbers.
19358 2003-10-28 Paul Eggert <eggert@twinsun.com>
19360 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
19361 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
19362 NetBSD kernels. Requested by Richard Stallman.
19364 2003-10-27 Paul Eggert <eggert@twinsun.com>
19366 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
19367 to allocate the returned structure. Do not allocate a subarray,
19368 as x2nrealloc will do that.
19369 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
19370 instead of xnrealloc.
19371 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
19373 2003-10-27 Bruno Haible <bruno@clisp.org>
19375 * lib/stdbool_.h: Better support for BeOS.
19377 2003-10-26 Paul Eggert <eggert@twinsun.com>
19379 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
19382 2003-10-26 Paul Eggert <eggert@twinsun.com>
19384 * lib/xalloc.h (xalloc_oversized): New static inline function, for
19385 callers that want to do their own size-overflow checking. Include
19386 <stdbool.h>, since xalloc_oversized returns bool.
19387 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
19388 to use xalloc_oversized.
19390 Add two functions x2realloc, x2nrealloc, for programs that grow
19391 arrays dynamically by doubling their sizes.
19392 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
19393 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
19396 Port to C99 semantics for 'inline' of external functions.
19397 Bug reported by Bruno Haible.
19398 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
19399 with the old contents of xnmalloc.
19400 (xnmalloc, xmalloc): Use it.
19401 (xnrealloc_inline): New static inline function,
19402 with the old contents of xnrealloc.
19403 (xnrealloc, xrealloc): Use it.
19405 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
19408 2003-10-26 Karl Berry <karl@gnu.org>
19410 * config/srclist.txt (COPYING.DOC): no longer available from
19411 /gd/gnuorg; don't know where the ultimate source is.
19413 2003-10-25 Paul Eggert <eggert@twinsun.com>
19415 Fix several address-calculation bugs in the hash modules,
19416 plus some minor code cleanup.
19418 * lib/hash.h: Include <stdbool.h>, for bool.
19419 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
19420 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
19421 hash_get_n_entries, hash_get_max_bucket_length,
19422 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
19423 hash_rehash): Use size_t rather than unsigned.
19424 * lib/hash.c (struct hash_table, hash_get_n_buckets,
19425 hash_get_n_buckets_used, hash_get_n_entries,
19426 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
19427 hash_get_entries, hash_do_for_each, hash_string, is_prime,
19428 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
19430 (SIZE_MAX): Define if not defined.
19431 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
19432 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
19434 Use const * when possible.
19435 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
19436 (check_tuning): Fix bug: if tuning parameters were very close to
19437 0 or 1, rounding errors could have caused subscript violations.
19438 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
19439 (hash_initialize): Add 'fail:' label
19440 to free table and return NULL, and use it to simplify code.
19441 Use calloc rather than clearing the storage ourself.
19442 (hash_initialize, hash_rehash): Check for arithmetic overflow in
19443 buffer size calculations.
19444 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
19445 Include <stddef.h>, for size_t.
19446 * lib/hash-pjw.c (hash_pjw): Likewise.
19447 Switch to method described by Bruno Haible.
19448 Include <limits.h>, for CHAR_BIT.
19449 (SIZE_BITS): New macro.
19451 2003-10-23 Paul Eggert <eggert@twinsun.com>
19453 * m4/getline.m4 (AM_FUNC_GETLINE):
19454 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
19455 hosts. Problem reported by Derek Robert Price in
19456 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
19457 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
19458 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
19460 2003-10-21 Paul Eggert <eggert@twinsun.com>
19462 * lib/getndelim2.c (getndelim2): When size calculation overflows,
19463 ceiling the allocation at NMAX bytes rather than silently
19464 discarding input bytes before NMAX is reached. This makes
19465 a difference only if NMAX exceeds SIZE_MAX / 2.
19467 * lib/obstack.c: Merge from glibc.
19468 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
19469 Add libc_hidden_def (_obstack_newchunk).
19470 (_obstack_free) [! defined _LIBC]: Remove.
19471 [defined _LIBC]: Make a strong alias from obstack_free, rather than
19472 a clone of the function body.
19473 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
19474 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
19476 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
19478 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
19481 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
19482 (obstack_ptr_grow_fast, obstack_int_grow_fast):
19483 Don't use lvalue casts, as GCC plans to remove support for them
19484 in GCC 3.5. Reported by Joseph S. Myers. This bug
19485 was also present in the non-GCC version, indicating that this
19486 code had always been buggy and had never been widely used.
19487 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
19488 Use the fast variant of each macro, rather than copying the
19489 definiens of the fast variant; that way, we'll be more likely to
19490 catch future bugs in the fast variants.
19492 2003-10-20 Bruno Haible <bruno@clisp.org>
19494 * modules/wait-process: New file.
19495 * MODULES.html.sh (func_all_modules): Add wait-process.
19497 2003-10-20 Bruno Haible <bruno@clisp.org>
19499 * m4/wait-process.m4: New file.
19501 2003-10-20 Bruno Haible <bruno@clisp.org>
19503 * lib/wait-process.h: New file, from GNU gettext.
19504 * lib/wait-process.c: New file, from GNU gettext.
19506 2003-10-19 Jim Meyering <jim@meyering.net>
19508 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
19511 2003-10-18 Karl Berry <karl@gnu.org>
19513 * config/config.guess: update from config.
19515 2003-10-16 Paul Eggert <eggert@twinsun.com>
19517 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
19518 (getgroups): First arg is int, not size_t.
19519 Don't let 'free' mangle errno.
19521 2003-10-16 Paul Eggert <eggert@twinsun.com>
19523 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
19525 2003-10-16 Karl Berry <karl@gnu.org>
19527 * config/config.{guess,sub}: update from config.
19529 2003-10-16 Jim Meyering <jim@meyering.net>
19531 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
19534 2003-10-15 Paul Eggert <eggert@twinsun.com>
19536 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
19537 (SIZE_MAX): Remove.
19538 (new_exclude, add_exclude_file): Initial size no longer needs to
19540 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
19541 our own address arithmetic overflow checking.
19543 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
19544 (fnmatch): Do not alloca more than 2000 wide characters;
19545 instead, use malloc for large buffers.
19546 Check for address arithmetic overflow, and return -1
19547 with errno set to ENOMEM in that case.
19548 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
19549 (NEW_PATTERN): Do not alloca more than 8000 bytes;
19550 instead, return -1. Check for address arithmetic overflow.
19552 2003-10-14 Paul Eggert <eggert@twinsun.com>
19554 Handle invalid suffixes and overflow independently, so that
19555 callers can treat them independently as needed. Fix some bugs in
19556 suffix handling, e.g., "100k@" was not diagnosed as an invalid
19557 suffix for a human-readable blocksize. The major caller-visible
19558 change is the addition of a new
19559 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
19560 that both overflow and suffix chars were found.
19562 * lib/human.c (humblock): Don't check separately for invalid suffix
19563 char; that is xstrtoumax's job (now that its bug is fixed).
19564 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
19565 INTMAX_MAX]: New macros.
19566 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
19567 TYPE_MAXIMUM): New macros.
19568 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
19569 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
19570 if overflow occurs, as it's what __strtol does and it's more useful
19572 (__xstrtol): If __strtol reports some error other than ERANGE,
19573 reflect it to the caller as LONGINT_INVALID. If it reports
19574 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
19575 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
19576 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
19578 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
19579 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
19580 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
19581 [defined UINTMAX_MAX]: New macros.
19583 2003-10-14 Bruno Haible <bruno@clisp.org>
19585 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
19587 2003-10-14 Bruno Haible <bruno@clisp.org>
19589 * m4/sig_atomic_t: New file, from GNU gettext.
19590 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
19592 2003-10-14 Bruno Haible <bruno@clisp.org>
19594 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
19595 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
19596 Also use volatile where needed.
19598 2003-10-12 Paul Eggert <eggert@twinsun.com>
19600 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
19601 Change maintainer from Bruno Haible to 'all'.
19603 2003-10-12 Paul Eggert <eggert@twinsun.com>
19605 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
19607 2003-10-12 Paul Eggert <eggert@twinsun.com>
19609 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
19610 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
19611 and define in terms of the other primitives.
19612 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
19613 (SIZE_MAX): Define if not already defined.
19614 (array_size_overflow): New function.
19615 (xalloc_die): Abort instead of exiting if 'error' returns.
19616 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
19617 (xmalloc, xrealloc): Use them.
19618 (xcalloc): Check for address arithmetic overflow.
19619 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
19620 a bit faster than strcpy.
19622 2003-10-10 Simon Josefsson <jas@extundo.com>
19624 * modules/argp (Depends-on): Add restrict and strcase.
19626 2003-10-10 Simon Josefsson <jas@extundo.com>
19628 * m4/argp.m4: Add AC_C_INLINE.
19630 2003-10-08 Paul Eggert <eggert@twinsun.com>
19632 Merge getpass from libc, plus a few fixes.
19634 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
19635 Include <stdbool.h>.
19636 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
19637 __fsetlocking to empty.
19638 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
19639 do include <bits/libc-lock.h>.
19640 Do not include <fcntl.h>; not needed.
19641 [_LIBC]: Include <wchar.h>.
19642 (NOTCANCEL_MODE): New macro.
19643 (flockfile, funlockfile) [_LIBC]: New macros.
19644 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
19645 [!_LIBC]: New macros.
19646 (call_fclose): New function.
19647 (getpass): Use it. Save tty stream separately; this simplifies the
19648 code and makes it more reliable if stdin happens to equal stdout.
19649 Invoke __fsetlocking on tty.
19650 Handle thread cancellation if needed.
19651 Namespace cleanup (use __tcgetattr, __getline).
19652 Use bool for Booleans.
19653 [USE_IN_LIBIO]: Handle wide streams.
19654 [!_LIBC]: Unconditionally do the fseek, since we don't know what
19655 stream might go where.
19657 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
19658 doesn't have to include <stdio.h> before us.
19659 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
19660 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
19661 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
19662 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
19663 if not declared, so that we can use getpass.c code from libc without
19665 (flockfile, ftrylockfile, funlockfile): New macros.
19667 2003-10-08 Paul Eggert <eggert@twinsun.com>
19669 * modules/getpass: Depend on stdbool.
19671 2003-10-08 Paul Eggert <eggert@twinsun.com>
19673 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
19675 2003-10-07 Karl Berry <karl@gnu.org>
19677 * config/config.{guess,sub}: update from config.
19679 2003-10-06 Jim Meyering <jim@meyering.net>
19680 Bruno Haible <bruno@clisp.org>
19682 This lets translators provide better translations for the
19683 "Written by ..." part of --version output.
19684 * lib/version-etc.h: Include stdarg.h.
19685 (version_etc_copyright): Declare as readonly.
19686 (version_etc): Make this function variadic with a NULL-terminated list
19687 of author name strings.
19688 (version_etc_va): New declaration.
19689 * lib/version-etc.c: Include stdarg.h, stdlib.h.
19690 (version_etc_copyright): Declare as readonly.
19691 (version_etc_va): New function. Provide a different translatable string
19692 for each possible number of authors < 10. Abbreviate when there are 10
19694 (version_etc): Make this function variadic. Call version_etc_va.
19695 Suggestion from Gary V. Vaughan.
19697 * lib/long-options.h (parse_long_options): Change prototype: the
19698 authors string is moved to the end and becomes variadic.
19699 * lib/long-options.c: Include stdarg.h.
19700 (parse_long_options): Make this function variadic, too.
19701 Call version_etc_va, not version_etc.
19703 2003-10-06 Bruno Haible <bruno@clisp.org>
19705 * modules/version-etc-2: Remove file.
19706 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
19708 2003-10-06 Bruno Haible <bruno@clisp.org>
19710 * modules/fatal-signal: New file.
19711 * MODULES.html.sh (func_all_modules): Add fatal-signal.
19713 2003-10-06 Bruno Haible <bruno@clisp.org>
19715 * m4/fatal-signal.m4: New file.
19716 * m4/signalblocking.m4: New file, from GNU gettext.
19718 2003-10-06 Bruno Haible <bruno@clisp.org>
19720 * lib/version-etc-2.h: Remove file.
19721 * lib/version-etc-2.c: Remove file.
19723 2003-10-06 Bruno Haible <bruno@clisp.org>
19725 * lib/fatal-signal.h: New file, from GNU gettext.
19726 * lib/fatal-signal.c: New file, from GNU gettext.
19728 2003-10-05 Paul Eggert <eggert@twinsun.com>
19730 * README: Rework advice for preventing empty .o files.
19731 Don't recommend ELIDE constructs. Recommend <stddef.h>,
19734 2003-10-04 Karl Berry <karl@gnu.org>
19736 * lib/argp*: update from libc.
19738 2003-10-04 Karl Berry <karl@gnu.org>
19740 * config/config.{guess,sub}: update from config.
19742 2003-10-02 Bruno Haible <bruno@clisp.org>
19744 * modules/lchown (Include): Add lchown.h.
19745 * modules/time_r (Include): Use "..." syntax.
19746 * modules/xgetdomainname (Include): Add xgetdomainname.h.
19748 2003-10-01 Simon Josefsson <jas@extundo.com>
19750 * MODULES.html.sh (func_all_modules): Move gethostname from section
19751 'based on' to section 'lacking' POSIX:2001.
19753 2003-10-01 Larry Jones <lawrence.jones@eds.com>
19755 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
19756 to output mode on the same stream.
19758 2003-09-29 Paul Eggert <eggert@twinsun.com>
19760 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
19761 Fix arg typo in previous patch.
19763 2003-09-28 Jim Meyering <jim@meyering.net>
19765 * lib/error.c: Correct cpp indentation.
19767 2003-09-27 Paul Eggert <eggert@twinsun.com>
19769 * modules/free: New file.
19771 2003-09-27 Paul Eggert <eggert@twinsun.com>
19773 * m4/free.m4: New file.
19775 2003-09-27 Paul Eggert <eggert@twinsun.com>
19777 * lib/minmax.h (MIN, MAX)
19778 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
19779 Omit the special code that used __typeof__, since we worry that
19780 it could be more trouble than it's worth. See:
19781 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
19782 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
19784 * lib/free.c: New file.
19786 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
19788 Trivial fixes to Makefile.am parts of module listings.
19789 * modules/strstr: Append strstr.h to lib_SOURCES.
19790 * modules/strcase: Likewise, for strcase.h.
19792 2003-09-27 Karl Berry <karl@gnu.org>
19794 * config/mkinstalldirs: update from automake.
19796 2003-09-26 Paul Eggert <eggert@twinsun.com>
19798 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
19799 (error_tail): Do not loop, reallocating temporary buffer, since
19800 the output cannot contain more wide characters than the input
19801 contains bytes, the size must be big enough already. This avoids
19802 one potential size overflow calculation. Check for size overflow
19803 when calculating temporary buffer size. Free temporary buffer
19804 when done, if it was allocated with malloc; this plugs a memory
19805 leak. Remove casts from void * to pointers, that are no longer
19806 needed now that we're assuming C89 or better.
19808 Merge error changes from glibc.
19810 * lib/error.c, error.h: Update copyright notice header to match glibc.
19811 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
19812 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
19813 Disable cancellation while printing error.
19814 * lib/error.h: Prepend __ to parameter names.
19816 2003-09-26 Jim Meyering <jim@meyering.net>
19818 * lib/error.c (error_tail): Move some declarations
19819 into inner scope where the local variables are used.
19821 2003-09-26 Bruno Haible <bruno@clisp.org>
19823 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
19825 Don't define stpncpy through config.h; it's now done through stpncpy.h.
19827 2003-09-26 Bruno Haible <bruno@clisp.org>
19829 * lib/stpncpy.h (gnu_stpncpy): New declaration.
19830 (stpncpy): Define as alias for gnu_stpncpy.
19831 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
19833 2003-09-25 Simon Josefsson <jas@extundo.com>
19835 * lib/xgetdomainname.h: New file.
19836 * lib/xgetdomainname.c: New file.
19838 2003-09-25 Simon Josefsson <jas@extundo.com>
19839 Bruno Haible <bruno@clisp.org>
19841 * modules/getdomainname: New file.
19842 * modules/xgetdomainname: New file.
19843 * MODULES.html.sh (func_all_modules): Add getdomainname,
19846 2003-09-25 Simon Josefsson <jas@extundo.com>
19847 Bruno Haible <bruno@clisp.org>
19849 * m4/getdomainname.m4: New file.
19851 2003-09-25 Simon Josefsson <jas@extundo.com>
19852 Bruno Haible <bruno@clisp.org>
19854 * lib/getdomainname.h: New file.
19855 * lib/getdomainname.c: New file.
19857 2003-09-25 Karl Berry <karl@gnu.org>
19859 * lib/argp-fmtstream.c, argp-help.c: update from libc.
19861 2003-09-25 Karl Berry <karl@gnu.org>
19863 * config/install-sh: update from automake.
19865 2003-09-25 Bruno Haible <bruno@clisp.org>
19867 * modules/version-etc-2: New file, from modules/version-etc with
19869 * MODULES.html.sh (func_all_modules): Add version-etc-2.
19871 2003-09-25 Bruno Haible <bruno@clisp.org>
19873 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
19874 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
19876 2003-09-24 Simon Josefsson <jas@extundo.com>
19878 * modules/xgethostname: Add xgethostname.h.
19880 2003-09-24 Paul Eggert <eggert@twinsun.com>
19882 * lib/linebuffer.c (freebuffer): Don't free the argument, just
19883 the buffer associated with the argument. Bug reported by
19886 2003-09-24 Paul Eggert <eggert@twinsun.com>
19888 * README: Document assumptions that 'int' is at least 32 bits
19889 wide, that integer arithmetic is 2's complement without overflow,
19890 that there are no holes in integer values, that adding sizes of
19891 two nonoverlapping objects can't overflow, and that all-bits-zero
19892 yields scalar zero. Fix spelling and capitalization typos.
19894 2003-09-19 Karl Berry <karl@gnu.org>
19896 * lib/argp.h: update from libc.
19898 2003-09-17 Paul Eggert <eggert@twinsun.com>
19900 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
19901 to avoid spurious warnings like "AC_RUN_IFELSE was called before
19902 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
19904 2003-09-17 Paul Eggert <eggert@twinsun.com>
19906 * gnulib-tool: Use "test -h", not "test -L", for portability
19907 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
19908 (tags_regexp): Remove, since \| doesn't conform to POSIX.
19909 (sed_extract_prog): Issue s commands one-by-one, rather than
19910 using \| in one s command.
19912 2003-09-16 Paul Eggert <eggert@twinsun.com>
19914 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
19915 input error, instead of returning NULL the next time we are called
19916 (and therefore losing track of errno).
19918 2003-09-16 Bruno Haible <bruno@clisp.org>
19920 * gnulib-tool (func_create_testdir): Warn about duplicated
19923 2003-09-15 Paul Eggert <eggert@twinsun.com>
19925 * modules/argmatch, modules/fatal, modules/obstack,
19926 modules/xalloc, modules/xgethostname: Sort dependencies by
19927 importance, not alphabetically.
19929 2003-09-15 Paul Eggert <eggert@twinsun.com>
19931 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
19932 fails, so that the caller gets the proper errno.
19934 * lib/readutmp.c (read_utmp): Likewise.
19935 Check for fstat error. Close stream and free storage
19938 2003-09-14 Karl Berry <karl@gnu.org>
19940 * config/srclist.txt (strdup.c): disable for c89 changes.
19942 2003-09-14 Jim Meyering <jim@meyering.net>
19944 * lib/getloadavg.c: Correct cpp indentation.
19945 * lib/strdup.c: Likewise.
19946 * lib/vasnprintf.c: Likewise.
19948 2003-09-14 Bruno Haible <bruno@clisp.org>
19950 * modules/fwriteerror: New file.
19951 * MODULES.html.sh (func_all_modules): Add fwriteerror.
19953 2003-09-14 Bruno Haible <bruno@clisp.org>
19955 * lib/fwriteerror.h: New file.
19956 * lib/fwriteerror.c: New file.
19958 2003-09-12 Paul Eggert <eggert@twinsun.com>
19960 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
19961 modules/xgethostname, modules/xalloc: Depend on exit.
19963 2003-09-12 Paul Eggert <eggert@twinsun.com>
19965 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
19967 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
19968 and AC_MINIX, too, so that their extensions are available.
19970 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
19971 This macro has been superseded by gl_BACKUPFILE.
19973 More patches to assume C89 or better.
19975 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
19977 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
19979 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
19980 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
19981 Include <string.h>, <stdlib.h> unconditionally.
19982 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
19983 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
19984 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
19985 headers or for string.h.
19986 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
19989 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
19991 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
19992 * m4/userspec.m4 (gl_USERSPEC): Likewise.
19993 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
19994 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
19995 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
19996 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
19998 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
19999 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
20000 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
20002 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
20003 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
20004 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
20007 2003-09-12 Paul Eggert <eggert@twinsun.com>
20009 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
20010 * lib/obstack.c [!defined _LIBC]: Likewise.
20011 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
20012 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
20013 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
20015 More changes to assume C89 or better.
20017 * lib/error.c (error_tail): Assume vprintf.
20019 * lib/argmatch.c (getenv): Remove decl.
20020 * lib/progreloc.c (get_full_program_name): Define via prototype.
20021 * lib/setenv.c (clearenv): Likewise.
20022 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
20024 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
20025 (malloc, memcpy): Remove decls.
20026 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
20027 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
20028 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
20029 (memcpy): Remove macro.
20030 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
20031 (__P): Remove. All uses removed.
20032 (PTR): Remove. All uses changed to void *.
20033 (CHAR_BIT, NULL): Remove.
20034 (spaces, zeros, memset_space, memset_zero)
20035 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
20037 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
20038 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
20039 Define with prototype.
20040 Remove now-unnecessary prototype decl.
20041 (extra_args_spec): Assume ANSI C. All uses changed.
20042 (extra_args_spec_iso): Remove.
20043 (my_strftime, emacs_strftimeu): Define via prototype.
20044 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
20046 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
20047 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
20048 (strtoul, strtol): Remove decls.
20049 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
20051 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
20052 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
20053 (LOCALE_PARAM_PROTO): New macro.
20054 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
20055 (INTERNAL (strtol), strtol): Define with a prototype.
20056 (PARAMS): Remove. All uses removed.
20057 * lib/tempname.c: Include <string.h> unconditionally.
20058 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
20059 * lib/xgethostname.c (main): Define with a prototype.
20060 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
20061 Include <stdlib.h> unconditionally.
20062 (calloc, malloc, realloc, free): Remove decls.
20063 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
20064 Include <stdlib.h> unconditionally. Sort include file names.
20066 (xstrtod): Define with a prototype.
20067 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
20068 (strtol, strtoul): Remove decls.
20070 2003-09-11 Paul Eggert <eggert@twinsun.com>
20072 More patches to assume C89 or better.
20073 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
20074 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
20075 string.h, memchr, STDC_HEADERS.
20077 2003-09-11 Paul Eggert <eggert@twinsun.com>
20079 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
20080 Include <stdlib.h>, <string.h> unconditionally.
20081 Remove now-unnecessary cast to char *.
20082 * lib/strnlen.c: Include <string.h> unconditionally.
20083 * lib/yesno.c (yesno): Define with a prototype.
20085 2003-09-11 Bruno Haible <bruno@clisp.org>
20087 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
20089 2003-09-10 Jim Meyering <jim@meyering.net>
20091 * lib/error.c: Correct indentation of cpp directives.
20093 2003-09-10 Bruno Haible <bruno@clisp.org>
20095 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
20096 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
20097 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
20098 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
20099 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
20100 <stdlib.h> and <string.h> checks.
20101 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
20102 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
20104 2003-09-10 Bruno Haible <bruno@clisp.org>
20106 * lib/strcspn.c: Include <string.h> unconditionally.
20107 * lib/strpbrk.c: Include <string.h> unconditionally.
20108 * lib/strstr.c: Include <string.h> unconditionally.
20109 * lib/unicodeio.c: Include <string.h> unconditionally.
20110 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
20111 * lib/unsetenv.c: Likewise.
20112 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
20113 * lib/yesno.c: Include <stdlib.h> unconditionally.
20114 (rpmatch): Add prototype.
20116 2003-09-09 Paul Eggert <eggert@twinsun.com>
20118 More patches to assume C89 or better.
20119 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
20120 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
20121 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
20123 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
20125 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
20127 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
20129 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
20130 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
20131 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
20133 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
20134 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
20136 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
20138 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
20139 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
20140 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
20141 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
20142 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
20143 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
20145 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
20146 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
20147 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
20148 C headers, or for string.h.
20149 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
20150 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
20151 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
20152 headers, memory.h, stdlib.h, string.h, strings.h.
20153 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
20154 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
20155 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
20157 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
20158 headers, memory.h, string.h.
20159 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
20160 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
20162 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
20164 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
20165 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
20166 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
20167 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
20168 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
20170 2003-09-09 Paul Eggert <eggert@twinsun.com>
20174 * lib/acosl.c (main): Use a prototype.
20175 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
20178 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
20180 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
20181 (getopt, etopt_long, getopt_long_only, _getopt_internal)
20182 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
20184 * lib/getopt.c (const): Remove macro.
20185 Include <string.h> unconditionally.
20186 (my_index): Remove; all uses changed to strchr.
20187 (strlen): Remove decl.
20188 (exchange): Remove forward decl; no longer needed.
20189 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
20190 Define with prototype.
20191 * lib/getopt1.c (const): Remove macro.
20192 (getopt_long, getopt_long_only, main): Define with prototype.
20194 * lib/getugroups.c: Include <string.h> unconditionally.
20196 * lib/getusershell.c: Include <stdlib.h> unconditionally.
20197 (getusershell, setusershell, endusershell, readname, main):
20198 Define with prototypes.
20200 * lib/group-member.c: Include group-member.h first.
20201 Include <stdlib.h> unconditionally.
20203 * lib/hard-locale.c: Include hard-locale.h first.
20204 Include <stdlib.h>, <string.h> unconditionally.
20206 * lib/hash.c (free, malloc): Remove decls.
20207 Include <stdlib.h> unconditionally.
20209 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
20210 (getenv): Do not declare.
20212 * lib/idcache.c: Include <string.h> unconditionally.
20214 * lib/long-options.c: Include long-options.h first, to test interface.
20215 Include <stdlib.h> unconditionally.
20217 * lib/makepath.c: Include makepath.h first, to test interface.
20218 Include <stdlib.h> and <string.h> unconditionally.
20220 * lib/linebuffer.c: Include <stdlib.h>.
20221 (free): Remove decl.
20223 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
20224 stddef.h. rpl_malloc returns void *, not char *.
20225 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
20228 * lib/md5.h: Include <limits.h> unconditionally.
20229 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
20230 (__P): Remove; all uses removed.
20231 * lib/md5.c: Include "md5.h" first.
20232 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
20233 md5_buffer, md5_process_bytes, md5_process_block):
20234 Define with prototypes.
20235 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
20236 * lib/sha.c: Include "sha.h" first.
20237 Include <stdlib.h>, <string.h> unconditionally.
20239 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
20240 * lib/memcmp.c (__ptr_t): Likewise.
20241 * lib/memrchr.c (__ptr_t): Likewise.
20242 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
20243 Include <string.h> unconditionally.
20244 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
20245 * lib/memchr.c: Include <stdlib.h> unconditionally.
20246 * lib/memchr.c (LONG_MAX): Remove.
20247 * lib/memrchr.c (LONG_MAX): Likewise.
20248 * lib/memchr.c (__memchr): Define via a prototype.
20249 * lib/memrchr.c (__memrchr): Likewise.
20250 * lib/memcmp.c (__P): Remove, and remove all uses.
20251 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
20252 Remove forward decls; no longer needed.
20253 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
20254 Use types required by C89 in prototype.
20256 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
20257 * lib/savedir.c: Likewise.
20258 * lib/mkdir.c (free): Remove decl.
20259 * lib/rmdir.c (rmdir): Define with a prototype.
20260 * lib/savedir.c: Include savedir.h first, to test interface.
20262 * lib/mktime.c (STDC_HEADERS): Remove.
20263 Include <stdlib.h>, <string.h> unconditionally.
20265 * lib/modechange.c: Include <stdlib.h> unconditionally.
20266 (malloc): Remove decl.
20268 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
20269 (free): Remove decl.
20271 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
20272 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
20273 (This type really should be intptr_t, but that's a C99ism.)
20274 (_obstack_memcpy): Remove: all uses changed to memcpy.
20275 Include <string.h> unconditionally.
20276 (struct obstack): Assume __STDC__ for types of members
20277 chunkfun, freefun, extra_arg.
20278 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
20279 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
20280 obstack_begin, obstack_specify_allocation,
20281 obstack_specify_allocation_with_arg, obstack_chunkfun,
20282 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
20283 Remove unprototyped decls and the macros that use them.
20284 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
20285 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
20286 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
20287 (defined __STDC__ && __STDC__)]:
20288 Remove nonprototyped code.
20289 Include <stdlib.h> unconditionally.
20290 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
20291 _obstack_allocated_p, _obstack_free, obstack_free,
20292 _obstack_memory_used, print_and_abort):
20293 Define using prototypes.
20294 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
20295 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
20296 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
20297 obstack_next_free, obstack_object_size, obstack_room) [0]:
20298 Remove unused, unprototyped code.
20300 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
20302 * lib/physmem.c (physmem_total, physmem_available, main): Define
20305 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
20306 (main): Define with a prototype.
20308 * lib/posixver.c (getenv): Remove decl.
20310 * lib/putenv.c (malloc): Returns void *, not char *.
20311 Include <string.h> unconditionally.
20312 (strchr, memcpy, NULL): Do not define.
20314 * lib/readtokens.c: Include readtokens.h first, to test interface.
20315 Include <stdlib.h>, <string.h> unconditionally.
20316 (init_tokenbuffer): Define with a prototype.
20318 * lib/regex.c (PARAMS): Remove. All uses removed.
20319 All uses of _RE_ARGS removed, too.
20320 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
20322 (bzero): Assume memset exists.
20323 (memcmp, memcpy, NULL): Remove.
20324 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
20325 char, or assignments to local vars of type signed char.
20326 (init_syntax_once, PREFIX(extract_number_and_incr),
20327 PREFIX(print_partial_compiled_pattern),
20328 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
20329 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
20330 PREFIX(regex_grow_registers), PREFIX(regex_compile),
20331 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
20332 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
20333 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
20334 wcs_compile_range, byte_compile_range, truncate_wchar,
20335 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
20336 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
20337 count_mbs_length, wcs_re_match_2_internal,
20338 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
20339 PREFIX(alt_match_null_string_p),
20340 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
20341 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
20342 regfree, PREFIX(extract_number)): Define with prototype. Remove
20343 now-unnecessary declaration, if any.
20344 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
20346 Remove now-unnecessary casts among pointer types.
20347 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
20349 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
20350 (free): Remove decl.
20352 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
20354 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
20355 (free): Remove decl.
20357 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
20358 * lib/xgetcwd.c: Likewise.
20360 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
20361 (free): Remove decl.
20363 * lib/strchrnul.c (strchrnul): Define with a prototype.
20364 Fix bug: c_in was not converted to char before searching.
20366 The following changes are not K&R related:
20368 * lib/group-member.h: Include <sys/types.h>, so that this file is
20370 * lib/makepath.h: Likewise.
20372 * lib/getusershell.c (readname, default_index, line_size, readname):
20373 Use size_t, not int, for sizes.
20374 (readname): If the size overflows, report an error instead of
20377 2003-09-09 Paul Eggert <eggert@twinsun.com>
20379 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
20382 2003-09-09 Paul Eggert <eggert@twinsun.com>
20384 * README: New section: portability guidelines.
20386 2003-09-09 Derek Robert Price <derek@ximbiot.com>
20388 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
20391 2003-09-09 Derek Robert Price <derek@ximbiot.com>
20393 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
20395 2003-09-08 Paul Eggert <eggert@twinsun.com>
20397 Assume C89 or better; remove K&R cruft.
20398 A few of these changes were first proposed by Derek Robert Price
20399 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
20401 * lib/addext.c: Include <string.h> unconditionally.
20402 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
20403 Don't declare getenv or malloc.
20405 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
20406 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
20408 (find_stack_direction, alloca): Use prototypes.
20410 * lib/atexit.c (atexit): Define using a prototype.
20412 * lib/basename.c, dirname.c, stripslash.c:
20413 Include <string.h> unconditionally.
20415 * lib/bcopy.c: Include <stddef.h>.
20416 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
20418 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
20420 * lib/error.h (error, error_at_line, error_print_progname)
20421 [! (defined (__STDC__) && __STDC__)]: Remove decls.
20422 * lib/error.c: Include error.h first, to check interface.
20423 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
20424 (VA_START): Remove; all uses changeed to va_start.
20425 (exit, strerror): Remove decls.
20426 (error_print_progname): Prototype uncondionally.
20427 Don't include <errno.h>; no longer needed.
20428 (private_strerror): Remove.
20429 (error_tail): Always define.
20430 (error, error_at_line): Assume C89 or better; always use prototypes.
20431 * lib/fatal.c: Include "fatal.h" first, to test interface.
20432 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
20433 (VA_START): Remove; all uses changed to va_start.
20434 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
20436 (exit): Remove decl.
20437 (fatal): Prototype unconditionally. Assume va_start works.
20438 Abort at end, to pacify gcc.
20440 * lib/euidaccess.c (main): Define with a prototype.
20442 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
20444 * lib/exitfail.c: Include <stdlib.h> unconditionally.
20446 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
20448 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
20449 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
20450 (getenv): Remove decl.
20451 (fnmatch): Define using a prototype.
20452 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
20453 (FCT): Define using a prototype.
20455 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
20457 * lib/gethostname.c: Include <stddef.h>.
20458 (gethostname): Define with prototype. Length is size_t, not int.
20460 2003-09-08 Paul Eggert <eggert@twinsun.com>
20462 Assume C89 or better; remove K&R cruft.
20463 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
20464 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
20465 string.h, getenv, malloc.
20466 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
20468 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
20469 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
20470 do not check for strerror.
20471 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
20472 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
20473 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
20474 do not check for doprnt or vprintf.
20475 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
20476 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
20478 2003-09-08 Paul Eggert <eggert@twinsun.com>
20480 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
20481 getversion.c should have been removed then, but was accidentally
20484 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
20485 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
20487 2003-09-08 Karl Berry <karl@gnu.org>
20489 * config/config.sub, config.guess, srclistvars.sh: update from savannah
20490 config, forget about prep.
20492 * config/depcomp, missing: update from automake.
20494 2003-09-07 Paul Eggert <eggert@twinsun.com>
20496 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
20497 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
20499 2003-09-07 Paul Eggert <eggert@twinsun.com>
20501 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
20502 copy_tm_result. Bug reported by Simon Josefsson in
20503 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
20505 2003-09-06 Paul Eggert <eggert@twinsun.com>
20507 * m4/time_r.m4: New file.
20508 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
20509 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
20510 is. Check for timegm declaration.
20511 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
20512 Do not check for gmtime_r.
20513 Replace mktime if __mktime_internal does not exist and if mktime
20514 hasn't been replaced already.
20516 2003-09-06 Paul Eggert <eggert@twinsun.com>
20518 * lib/time_r.c, lib/time_r.h: New files.
20520 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
20522 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
20523 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
20525 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
20527 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
20528 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
20529 Include <time_r.h>.
20531 * lib/timegm.c: Switch to glibc implementation, with the following
20533 [defined HAVE_CONFIG_H]: Include <config.h>.
20534 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
20535 (__mktime_internal) [!defined _LIBC]: New decl.
20536 (__gmtime_r) [!defined _LIBC]: New macro and function.
20537 (timegm): Use a prototype, since gnulib assumes C89.
20538 Do not bother declaring tmp to be const, as it's not really usefu.
20539 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
20540 (timegm): Declare only if HAVE_DECL_TIMEGM.
20542 2003-09-06 Paul Eggert <eggert@twinsun.com>
20544 * MODULES.html.sh (func_all_modules): Add time_r.
20545 * modules/time_r: New file.
20546 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
20547 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
20549 2003-09-03 Paul Eggert <eggert@twinsun.com>
20551 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
20552 Bug reported by Lute Kamstra in
20553 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
20555 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
20556 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
20557 course with correspondingly smaller numbers for tomorrow and
20558 yesterday. From Tadayoshi Funaba. Originally installed into
20559 sh-utils on 1999-08-07, but the patch got lost (I guess during the
20562 2003-08-31 Simon Josefsson <jas@extundo.com>
20564 * modules/timegm: New file.
20565 * MODULES.html.sh (func_all_modules): Add timegm.
20567 2003-08-31 Simon Josefsson <jas@extundo.com>
20569 * m4/timegm.m4: New file.
20571 2003-08-31 Simon Josefsson <jas@extundo.com>
20573 * lib/timegm.h: New file.
20574 * lib/timegm.c: New file. Based on
20575 wget-1.8.2/src/http.c:mktime_from_utc.
20577 2003-08-31 Karl Berry <karl@gnu.org>
20579 * lib/argp.h: update from libc.
20581 2003-08-28 Bruno Haible <bruno@clisp.org>
20583 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
20584 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
20585 followed by '#define fnmatch fnmatch_posix' gives an error.
20587 2003-08-28 Bruno Haible <bruno@clisp.org>
20589 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
20590 warning on QNX, which defines O_BINARY to 000000.
20592 2003-08-27 Jim Meyering <jim@meyering.net>
20594 * m4/mkstemp.m4: Require that the system mkstemp be able to create
20595 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
20596 would fail after 32. Reported by Danny Levinson. Details here:
20597 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
20599 2003-08-24 Bruno Haible <bruno@clisp.org>
20601 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
20602 MSVC7 <stdio.h> is included later.
20604 2003-08-22 Simon Josefsson <jas@extundo.com>
20606 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
20608 2003-08-20 Karl Berry <karl@gnu.org>
20610 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
20612 2003-08-20 Bruno Haible <bruno@clisp.org>
20614 * modules/progname: New file.
20615 * MODULES.html.sh (func_all_modules): Add progname.
20617 2003-08-20 Bruno Haible <bruno@clisp.org>
20619 * lib/progname.h: New file, from GNU gettext.
20620 * lib/progname.c: New file, from GNU gettext.
20621 * lib/progreloc.c: New file, from GNU gettext.
20623 2003-08-19 Jim Meyering <jim@meyering.net>
20625 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
20626 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
20628 2003-08-19 Bruno Haible <bruno@clisp.org>
20630 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
20633 2003-08-19 Bruno Haible <bruno@clisp.org>
20635 * lib/xstrdup.c: Assume <string.h> exists.
20637 2003-08-18 Paul Eggert <eggert@twinsun.com>
20639 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
20642 2003-08-18 Jim Meyering <jim@meyering.net>
20644 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
20645 * m4/lib-ld.m4: Likewise.
20647 2003-08-18 Jim Meyering <jim@meyering.net>
20649 * lib/setenv.h: Indent nested cpp directive.
20650 * lib/vasnprintf.c: Remove trailing blanks.
20652 2003-08-17 Simon Josefsson <jas@extundo.com>
20654 * modules/xstrndup: New file.
20655 * MODULES.html.sh (func_all_modules): Add xstrndup.
20657 2003-08-17 Simon Josefsson <jas@extundo.com>
20659 * modules/argp: Fix autoconf macro name. Add more dependencies.
20661 2003-08-17 Simon Josefsson <jas@extundo.com>
20663 * m4/xstrndup.m4: New file.
20665 2003-08-17 Simon Josefsson <jas@extundo.com>
20667 * m4/argp.m4: New file.
20669 2003-08-17 Simon Josefsson <jas@extundo.com>
20670 Bruno Haible <bruno@clisp.org>
20672 * lib/xstrndup.h: New file.
20673 * lib/xstrndup.c: New file.
20675 2003-08-17 Bruno Haible <bruno@clisp.org>
20677 * modules/strndup (Files, Include): Add lib/strndup.h.
20679 2003-08-17 Bruno Haible <bruno@clisp.org>
20681 * modules/euidaccess (Files): Add lib/euidaccess.h.
20683 2003-08-17 Bruno Haible <bruno@clisp.org>
20685 * lib/strndup.h: New file.
20687 2003-08-17 Bruno Haible <bruno@clisp.org>
20689 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
20690 like AC_GNU_SOURCE.
20691 * modules/extensions (configure.ac): Comment out the invocation of
20692 gl_USE_SYSTEM_EXTENSIONS.
20694 2003-08-16 Paul Eggert <eggert@twinsun.com>
20696 Merges from coreutils, etc.
20697 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
20698 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
20699 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
20701 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
20702 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
20704 2003-08-16 Paul Eggert <eggert@twinsun.com>
20706 Document merge from coreutils.
20707 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
20708 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
20709 * modules/utime: Add m4/utimes-null.m4.
20711 2003-08-16 Paul Eggert <eggert@twinsun.com>
20713 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
20714 space, undoing this 2003-08-12 change:
20715 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
20717 2003-08-16 Paul Eggert <eggert@twinsun.com>
20719 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
20720 strtoul.c from libc, undoing this 2003-08-12 change:
20721 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
20723 2003-08-16 Jim Meyering <jim@meyering.net>
20725 Merges from coreutils.
20726 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
20727 prefix. Adjust cache variables similarly. Create 500 rather than
20728 just 300 files, to exercise bug on Darwin6.5, too.
20729 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
20731 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
20732 AM_SYS_POSIX_TERMIOS.
20733 Reported by mkc@mathdogs.com.
20734 Also change use of $am_cv_sys_posix_termios
20735 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
20736 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
20737 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
20738 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
20739 in /proc/mounts until it finds one with matching device number. This
20740 is unnecessary when the FILE argument *is* a mount point. No stat call
20741 is necessary in that case. So, disable the statvfs-testing code on
20742 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
20743 as RedHat bug# 84846.
20744 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
20745 to 1MB, so as not to render systems with no stack size limit (e.g.,
20746 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
20747 Include <unistd.h>. On some systems,
20748 it is required for the definition of _SC_PAGESIZE.
20750 2003-08-16 Jim Meyering <jim@meyering.net>
20752 Merge from coreutils.
20753 * lib/xstrtoimax.c: #else #if -> #elif.
20754 * lib/xstrtoumax.c: Likewise.
20756 2003-08-16 Jim Meyering <jim@meyering.net>
20758 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
20759 * m4/utimes.m4: Removed.
20760 * m4/utimes-null.m4: Renamed from utimes.m4.
20762 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
20763 to 1MB, so as not to render systems with no stack size limit (e.g.,
20764 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
20765 Include <unistd.h>. On some systems,
20766 it is required for the definition of _SC_PAGESIZE.
20768 2003-08-16 Jim Meyering <jim@meyering.net>
20769 and Paul Eggert <eggert@cs.ucla.edu>
20771 Merges from coreutils, etc.
20773 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
20774 using the latest version from cvs. This avoids problems with #line
20775 directives using a vendor (Sun) compiler.
20776 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
20777 Don't set GETGROUPS_LIB here; now it's
20778 done via getgroups.m4's wrapper function.
20779 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
20780 rather than just in sh-util/configure.in, so that the
20781 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
20783 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
20784 AC_FUNC_GETLOADAVG where to find getloadavg.c.
20785 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
20786 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
20787 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
20788 Remove code that is now done by the newly-required macros.
20789 Append $(EXEEXT) to DF_PROG.
20790 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
20791 Do not invoke or require the following here,
20792 since prereq.m4 or some gnulib .m4 now does this for us:
20793 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
20794 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
20795 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
20796 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
20797 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
20798 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
20799 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
20801 Do not replace the following functions, as this is now the job
20802 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
20803 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
20804 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
20805 atexit getpass, strdup, getpagesize.
20807 Do not check for the following functions, as this is now the job
20808 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
20809 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
20811 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
20812 Check for sys/sysctl.h.
20813 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
20814 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
20815 of checking for ssize_t ourselves.
20817 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
20818 Require every macro that gnulib/modules/* suggests for us.
20819 (jm_PREREQ_ADDEXT): New macro.
20820 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
20821 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
20823 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
20824 (gl_PHYSMEM): Use it.
20825 Also check for `table' function.
20826 Check for new headers and functions.
20827 Add check for sys/sysmp.h.
20828 With suggestions from Kaveh Ghazi.
20829 Ignore headers that are present but cannot be compiled. This
20830 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
20833 2003-08-15 Paul Eggert <eggert@twinsun.com>
20835 Document merge from coreutils.
20836 * modules/userspec: Depend on posixver.
20837 * modules/strftime: Depend on tzset.
20839 2003-08-15 Paul Eggert <eggert@twinsun.com>
20841 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
20842 rather than tab, after '#' in shell-script copyright notices.
20843 Suggested by Bruno Haible.
20845 2003-08-15 Paul Eggert <eggert@twinsun.com>
20847 * config/srclist-update: Use three spaces, rather than tab, after '#'
20848 in shell-script copyright notices. Suggested by Bruno Haible.
20849 Remove unnecessary parenthesization in regular expression.
20851 2003-08-15 Jim Meyering <jim@meyering.net>
20853 Merge from coreutils.
20854 * lib/xgethostname.c: Include <stdlib.h>.
20855 (xghostname): Don't exit for anything other than memory-related
20856 failure; just return NULL.
20857 * lib/userspec.c: Include "posixver.h".
20858 (parse_user_spec): Accept `.' as a separator only
20859 in pre-POSIX-200112 mode.
20860 * lib/strtoimax.c: Use #elif rather than #else #if.
20861 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
20862 Remove function, now that we can rely on a working tzset function.
20863 [!_LIBC]: Ensure that the required autoconf test has been run.
20864 [!defined _NL_CURRENT && HAVE_STRFTIME]:
20865 Use underlying_strftime for %r.
20866 * lib/sha.c: Merge in some clean-up and optimization changes from
20868 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
20869 Ensure that it is a multiple of 64.
20870 Rearrange loop exit tests so as to avoid performing an
20871 additional fread after encountering an error or EOF.
20872 * lib/realloc.c: Update copyright date.
20874 2003-08-15 Jim Meyering <jim@meyering.net>
20875 and Paul Eggert <eggert@twinsun.com>
20877 Merge from coreutils.
20878 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
20879 member but strut utmpx does not. Needed for AIX 4.3.3.
20880 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
20882 2003-08-15 Jim Meyering <jim@meyering.net>
20883 and Paul Eggert <eggert@cs.ucla.edu>
20885 Merges from coreutils, etc.
20886 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
20887 Require gl_FUNC_TZSET_CLOBBER.
20888 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
20889 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
20892 2003-08-14 Paul Eggert <eggert@twinsun.com>
20894 Help the merge from coreutils.
20895 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
20896 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
20897 * m4/tzset.m4: Use it too.
20899 2003-08-14 Paul Eggert <eggert@twinsun.com>
20901 * modules/tzset: New file.
20903 2003-08-14 Jim Meyering <jim@meyering.net>
20905 Merges from coreutils.
20906 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
20907 variable names, rather than @FNMATCH_H@.
20908 * modules/alloca: Likewise for $(ALLOCA_H).
20910 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
20911 the three copies of the literal target, `fnmatch.h'.
20912 * modules/alloca (alloca.h): Likewise.
20914 2003-08-14 Jim Meyering <jim@meyering.net>
20916 Merge from coreutils.
20917 * m4/tzset.m4: New file.
20918 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
20919 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
20920 otherwise, AIX 5.1 systems would end up using the latter.
20921 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
20922 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
20923 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
20924 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
20926 2003-08-14 Jim Meyering <jim@meyering.net>
20928 Merge from coreutils.
20929 * lib/obstack.h: Whitespace changes.
20930 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
20931 and xcalloc return values.
20932 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
20933 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
20934 hang on OSF/1 5.1 for DIR on both local and remote file systems.
20935 Reported by (and fix confirmed by) Nelson H. F. Beebe.
20936 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
20938 Use mntctl's return value to drive the entry-processing loop, since
20939 we can't rely on the value of the vmt_length member in the last
20940 entry. On some systems doing so could result in exhausting
20941 virtual memory. Based in part on a patch from Mike Jetzer.
20943 2003-08-14 Jim Meyering <jim@meyering.net>
20944 and Paul Eggert <eggert@twinsun.com>
20946 Merges from coreutils, plus other fixes.
20947 * lib/physmem.c: Merge in portability changes from gcc/libiberty
20948 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
20949 for credits and details. Thanks to Kaveh Ghazi for helping
20950 to keep these files in sync.
20951 (ARRAY_SIZE): Define it.
20952 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
20953 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
20954 (memcasecmp): Don't assume size_t fits in unsigned int.
20955 Remove casts and duplicate code.
20956 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
20957 (memcpy): Remove definition.
20958 Merge in some clean-up and optimization changes from glibc.
20959 [BLOCKSIZE]: Move definition to top of file.
20960 Ensure that it is a multiple of 64.
20961 Rearrange loop exit tests so as to avoid performing an
20962 additional fread after encountering an error or EOF.
20963 * lib/md5.h (md5_uintptr): Define.
20964 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
20965 return to the initial working directory. Preserve errno
20967 * lib/idcache.c: Include "xalloc.h".
20968 (xmalloc, xrealloc): Remove decls.
20969 (getuser): Remove casts no longer required in C89.
20970 * lib/human.c: Include stdio.h, for sprintf.
20971 * lib/group-member.c: Include "xalloc.h".
20972 (xmalloc, xrealloc): Remove decls.
20973 (get_group_info): Remove casts no longer required in C89.
20974 * lib/getusershell.c (readname): Remove casts no longer required in
20976 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
20977 * lib/getline.c: Whitespace fix, from coreutils.
20979 2003-08-13 Paul Eggert <eggert@twinsun.com>
20981 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
20984 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
20985 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
20986 Undo previous (whitespace-only) change.
20988 2003-08-13 Paul Eggert <eggert@twinsun.com>
20990 * lib/exclude.c: Include <ctype.h>
20991 (IN_CTYPE_DOMAIN): New macro.
20992 (is_space): New fn.
20993 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
20996 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
20997 Undo previous (whitespace-only) change.
20999 2003-08-13 Paul Eggert <eggert@twinsun.com>
21001 * config/srclist-update: Change update back to the old behavior,
21002 leaving whitespace alone. Use one 'sed' command rather than a
21004 (fixlicense): Now a variable, not a function.
21005 (remove_trailing_blanks): Remove.
21006 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
21007 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
21008 Undo previous (whitespace-only) change.
21010 2003-08-12 Paul Eggert <eggert@twinsun.com>
21012 Merge from coreutils.
21013 * modules/euidaccess: Add lib_SOURCES, include for new
21016 2003-08-12 Paul Eggert <eggert@twinsun.com>
21018 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
21019 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
21020 Normalize leading white space and remove trailing white space.
21022 Merge from coreutils
21023 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
21025 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
21026 0.12.1. These files are now being upgraded automatically by
21027 ../config/srclist-update.
21029 2003-08-12 Paul Eggert <eggert@twinsun.com>
21031 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
21032 Normalize leading white space and remove trailing white space.
21033 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
21034 notice, as per ../config/srclist-update.
21036 Merge from coreutils.
21037 * lib/euidaccess.h: New file.
21038 * lib/euidaccess.c: Include it.
21039 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
21040 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
21041 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
21043 2003-08-12 Paul Eggert <eggert@twinsun.com>
21045 * config/srclist-update: Add copyright notice.
21046 (remove_id_lines, remove_trailing_blanks): New constants.
21047 (fixfile): Use them to normalize spacing a bit in copied files.
21048 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
21049 Normalize leading white space and remove trailing white space.
21051 * config/texinfo.tex: Sync with texinfo.
21053 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
21054 strtoul.c from libc, to merge coreutils whitespace changes.
21056 * config/srclist.txt: Get the following m4 files from gettext:
21057 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
21058 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
21059 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
21062 2003-08-12 Karl Berry <karl@gnu.org>
21064 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
21067 2003-08-11 Paul Eggert <eggert@twinsun.com>
21069 * modules/gnu-source, m4/gnu-source.m4:
21070 Remove; we're assuming Autoconf 2.54 or later now.
21071 Suggested by Bruno Haible.
21072 * MODULES.html.sh (func_all_modules): Remove gnu-source.
21074 2003-08-11 Bruno Haible <bruno@clisp.org>
21076 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
21078 2003-08-11 Bruno Haible <bruno@clisp.org>
21080 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
21081 (vasnprintf): Use it instead of wcslen.
21083 2003-08-11 Bruno Haible <bruno@clisp.org>
21085 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
21086 value to ensure that _Bool promotes to int. Use #define for _Bool when
21087 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
21089 2003-08-10 Karl Berry <karl@gnu.org>
21091 * lib/regex.h: update from libc (whitespace fix).
21093 2003-08-09 Paul Eggert <eggert@twinsun.com>
21095 Merge some files from coreutils. These changes were
21096 originally made by Jim Meyering.
21097 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
21098 many older Unixes require this.
21099 * lib/alloca.c (alloca): Remove cast to argument of free;
21100 no longer needed in C89.
21101 * lib/alloca_.h, regex.h: Fix white space to match
21102 what GNU indent does.
21104 2003-08-09 Paul Eggert <eggert@twinsun.com>
21106 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
21107 apparently Emacs's Unicode mode got confused before my 2003-08-05
21110 2003-08-08 Paul Eggert <eggert@twinsun.com>
21112 * m4/extensions.m4: New file.
21113 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
21114 Require gl_USE_SYSTEM_EXTENSIONS.
21115 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
21116 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
21118 2003-08-08 Paul Eggert <eggert@twinsun.com>
21120 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
21121 * modules/extensions, modules/gnu-source: New files.
21122 * modules/timespec, modules/unlocked-io: Depend on extensions.
21124 2003-08-07 Paul Eggert <eggert@twinsun.com>
21126 * modules/restrict: New file.
21127 * MODULES.html.sh (func_all_modules): Add restrict.
21128 * modules/regex: Depend on restrict.
21130 2003-08-07 Paul Eggert <eggert@twinsun.com>
21132 * m4/restrict.m4: New file.
21133 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
21135 2003-08-07 Bruno Haible <bruno@clisp.org>
21137 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
21138 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
21140 2003-08-07 Bruno Haible <bruno@clisp.org>
21142 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
21143 makes the module 'getndelim2' compatible with the module 'getline'.
21145 2003-08-05 Paul Eggert <eggert@twinsun.com>
21147 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
21148 byte with "\201" to avoid glitches when editing that source file
21149 with multi-gnome-terminal.
21151 2003-08-05 Paul Eggert <eggert@twinsun.com>
21153 * lib/bumpalloc.h: Remove.
21155 2003-08-05 Paul Eggert <eggert@twinsun.com>
21157 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
21158 * modules/bumpalloc: Remove.
21160 2003-08-04 Paul Eggert <eggert@twinsun.com>
21162 * lib/getloadavg.c: Change copyright notice and spacing to conform to
21165 Merge from coreutils.
21166 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
21168 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
21169 from Karl Berry, implemented by Jim Meyering.
21170 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
21171 from Dmitry V. Levin.
21172 Remove anachronistic cast of xrealloc.
21173 * lib/fnmatch_.h (__const): Remove. Use 'const'.
21174 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
21175 type. Otherwise, it wouldn't compile with at least /bin/cc on
21176 ymp-cray-unicos9.0.2.X.
21177 Combine two mostly-identical uses of alloca into one.
21178 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
21180 2003-08-04 Dave Love <d.love@dl.ac.uk>
21184 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
21185 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
21186 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
21187 obsolete NLIST_NAME_UNION.
21188 [__GNU__]: Undef BSD and FSCALE.
21189 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
21191 2003-08-03 Paul Eggert <eggert@twinsun.com>
21193 * lib/stdbool_.h (_Bool): Make it signed char, instead of
21194 an enum type, so that it's guaranteed to promote to int. See:
21195 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
21197 2003-08-03 Karl Berry <karl@gnu.org>
21199 * config/depcomp: update from automake.
21201 2003-07-31 Paul Eggert <eggert@twinsun.com>
21203 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
21204 (strerror): Don't assume that a printable int fits in 14 bytes.
21206 2003-07-31 Bruno Haible <bruno@clisp.org>
21208 * modules/getpass-gnu: New file.
21209 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
21211 2003-07-31 Bruno Haible <bruno@clisp.org>
21213 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
21215 2003-07-24 Karl Berry <karl@gnu.org>
21217 * config/missing: update from automake.
21219 2003-07-24 Derek Robert Price <derek@ximbiot.com>
21220 Bruno Haible <bruno@clisp.org>
21222 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
21223 * lib/getline.c (getline, getdelim): Likewise.
21224 Remove _GNU_SOURCE define; now it's defined in config.h through
21227 2003-07-23 Karl Berry <karl@gnu.org>
21229 * config/config.sub: update from prep.
21231 2003-07-22 Paul Eggert <eggert@twinsun.com>
21233 * modules/xalloc (Depends-on): Add exitfail.
21234 * modules/xmemcoll: Likewise.
21236 2003-07-22 Paul Eggert <eggert@twinsun.com>
21238 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
21239 over-parenthesization in macros.
21241 Sync with coreutils.
21243 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
21246 Use `exit_failure' for xalloc and xmemcoll instead of their own
21247 private exit-failure variables.
21248 * lib/xalloc.h (xalloc_exit_failure): Remove.
21249 * lib/xmalloc.c: Likewise. Include exitfail.h.
21250 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
21251 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
21252 * lib/xmemcoll.c: Likewise. Include exitfail.h.
21253 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
21255 2003-07-20 Jim Meyering <jim@meyering.net>
21257 * modules/closeout (Depends-on): Add exitfail.
21258 Suggestion from Bruno Haible.
21260 2003-07-19 Karl Berry <karl@gnu.org>
21262 * config/config.sub: update from prep.
21264 2003-07-18 Paul Eggert <eggert@twinsun.com>
21266 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
21268 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
21269 to test that it can stand by itself. Include "exitfail.h".
21270 Clients should set exit_failure instead.
21271 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
21273 2003-07-18 Bruno Haible <bruno@clisp.org>
21275 * modules/getndelim2: New file.
21276 * modules/getline: Share files with module getndelim2.
21277 * modules/getnline: Depend on getndelim2 instead of sharing files with
21278 it. Add getnline.c to lib_SOURCES.
21279 * MODULES.html.sh (func_all_modules): Add getndelim2.
21281 2003-07-18 Bruno Haible <bruno@clisp.org>
21283 * m4/getndelim2.m4: New file.
21284 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
21285 invoke gl_PREREQ_GETNDELIM2.
21286 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
21287 gl_PREREQ_GETNDELIM2.
21288 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
21291 2003-07-18 Bruno Haible <bruno@clisp.org>
21293 * lib/getndelim2.h: New file.
21294 * lib/getndelim2.c: Make into a module of its own. Include config.h,
21296 (getndelim2): Make non-static. Change return type to ssize_t.
21297 * lib/getline.h: Change argument names.
21298 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
21299 * lib/getnline.c: Include getndelim2.h.
21301 2003-07-18 Andreas Schwab <schwab@suse.de>
21303 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
21305 2003-07-17 Karl Berry <karl@gnu.org>
21307 * config/config.sub: update from prep.
21309 2003-07-17 Bruno Haible <bruno@clisp.org>
21311 * modules/getnline: New file.
21312 * modules/getline: Add lib/getndelim2.c to source file list.
21313 * MODULES.html.sh (func_all_modules): Add getnline.
21315 2003-07-17 Bruno Haible <bruno@clisp.org>
21317 * m4/getnline.m4: New file.
21319 2003-07-17 Bruno Haible <bruno@clisp.org>
21321 * m4/Makefile.am.in: Remove file.
21322 * m4/Makefile.am: Remove file.
21323 * m4/Makefile.in: Remove file.
21325 2003-07-17 Bruno Haible <bruno@clisp.org>
21327 * lib/getnline.h: New file.
21328 * lib/getnline.c: New file.
21329 * lib/getndelim2.c: New file, extracted from getline.c.
21330 (getndelim2): Renamed from getdelim2, with added nmax argument.
21331 * lib/getline.c: Include getndelim2.c.
21332 (getdelim2): Moved out to getndelim2.c.
21333 (getline, getdelim): Update.
21335 2003-07-17 Bruno Haible <bruno@clisp.org>
21337 * lib/Makefile.am: Remove file.
21338 * lib/Makefile.in: Remove file.
21340 2003-07-17 Bruno Haible <bruno@clisp.org>
21342 * configure.in: Remove file.
21343 * Makefile.in: Remove file.
21345 2003-07-17 Bruno Haible <bruno@clisp.org>
21347 * MODULES.html.sh: Put the </BODY> right before </HTML>.
21349 2003-07-16 Karl Berry <karl@gnu.org>
21351 * config/srclist-update: was running fixlicense twice, which caused
21352 texinfo.tex to be nullified for some reason. Simplify,
21353 $gplsrc is no longer needed as far as I can see?
21355 2003-07-16 Jim Meyering <jim@meyering.net>
21357 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
21359 2003-07-15 Paul Eggert <eggert@twinsun.com>
21361 * config/srclist.txt: Get the following files from gettext-runtime/intl
21362 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
21363 ref-del.sin. From Bruno Haible.
21364 * config/srclist-update (fixfile): Change grep pattern again, since the
21365 previous fix didn't work (there was another trailing $). Use
21366 '[$]' to escape the $s.
21368 2003-07-15 Karl Berry <karl@gnu.org>
21370 * lib/vasnprintf.c: update from gettext.
21372 2003-07-15 Karl Berry <karl@gnu.org>
21374 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
21375 gets expanded when surrounded by '$'.
21377 2003-07-15 Jim Meyering <jim@meyering.net>
21379 * modules/save-cwd: Don't depend on error. From Derek Price.
21381 2003-07-15 Jim Meyering <jim@meyering.net>
21383 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
21385 2003-07-14 Simon Josefsson <jas@extundo.com>
21387 * modules/mempcpy: New file.
21388 * MODULES.html.sh (func_all_modules): Add mempcpy.
21390 2003-07-14 Simon Josefsson <jas@extundo.com>
21392 * m4/mempcpy.m4: New file.
21394 2003-07-14 Simon Josefsson <jas@extundo.com>
21396 * lib/mempcpy.h: New file.
21397 * lib/mempcpy.c: New file.
21399 2003-07-14 Paul Eggert <eggert@twinsun.com>
21401 * modules/getdate, modules/posixtm: Depend on mktime.
21403 2003-07-14 Paul Eggert <eggert@twinsun.com>
21405 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
21406 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
21407 unicodeio.c, unicodeio.h, unlocked-io.h:
21408 Switch from LGPL to GPL.
21410 2003-07-14 Paul Eggert <eggert@twinsun.com>
21412 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
21413 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
21414 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
21415 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
21416 vasprintf.c, vasprintf.h: Regenerate. These files are now being
21417 updated automatically by ../config/srclist-update. This changes
21418 their license from LPGL to GPL.
21420 2003-07-14 Paul Eggert <eggert@twinsun.com>
21422 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
21423 assumed to refer to the root of the most recent stable gettext version.
21424 * config/srclistvars.sh: Add defaults for eggert.
21425 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
21426 Match "This program" as well as "The program". This is needed
21429 2003-07-14 Jim Meyering <jim@meyering.net>
21431 Don't emit diagnostics. Let callers do that.
21432 * lib/save-cwd.c: Don't include "error.h".
21433 (save_cwd): Don't call error. Ensure that errno is valid
21434 when returning nonzero.
21436 * lib/save-cwd.h (restore_cwd): Update prototype.
21437 * lib/save-cwd.c (restore_cwd): Remove two parameters.
21438 Simplify. Don't call error upon failure. Let callers do that.
21439 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
21440 when auditing is enabled. But don't bother updating the #if.
21442 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
21444 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
21445 it breaks C++ compilation.
21446 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
21448 2003-07-10 Simon Josefsson <jas@extundo.com>
21450 * modules/strchrnul (Makefile.am): Add strchrnul.h.
21452 2003-07-10 Jim Meyering <jim@meyering.net>
21454 * m4/clock_time.m4: Remove trailing blank.
21455 * m4/intmax_t.m4: Likewise.
21457 2003-07-10 Jim Meyering <jim@meyering.net>
21459 * lib/vasnprintf.c: Remove trailing blanks.
21460 Make cpp indentation consistent.
21462 2003-07-09 Paul Eggert <eggert@twinsun.com>
21464 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
21465 posixver.c, strftime.c, strnlen.c, strverscmp.c:
21466 Switch from LGPL to GPL.
21468 2003-07-09 Paul Eggert <eggert@twinsun.com>
21470 * config/srclist.txt: Sort sublists. Add
21471 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
21472 that differ from gnulib for one reason or another; we'd like this list
21473 to be smaller but for now let's document what we have.
21475 2003-07-08 Paul Eggert <eggert@twinsun.com>
21477 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
21478 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
21479 and sweeter "eval x=$x".
21480 * config/srclist.txt: Get lib/argp* from glibc.
21482 2003-07-07 Paul Eggert <eggert@twinsun.com>
21484 * lib/mktime.c: Fix some boundary cases and remove need for floating
21487 Issue a compile-time diagnostic if time_t is floating point, or if
21488 two's complement arithmetic is not in effect, or if arithmetic
21489 right shift does not propagate the sign. These assumptions were
21490 all in the original code but they weren't checked.
21492 (TIME_T_MIDPOINT, verify): New macros.
21493 (__isleap): Remove; it has integer overflow problems.
21494 (leapyear): New function, without those problems.
21495 (ydhms_tm_diff): Remove; splitting into two parts.
21496 (ydhms_diff): New function, containing the arithmetic part of
21497 the old ydhms_tm_diff function. Issue a compile-time
21498 diagnostic if we are not using C99 integer division.
21499 Avoid casts when possible.
21500 (guess_time_tm): New function, containing the checking part of
21501 the old ydhms_tm_diff function. Return the new value, rather than
21502 the difference between it and the old. Accept a new argument T
21503 so that *T specifies the old value. Check for overflow in the result.
21505 (__mktime_internal): Use a time_t offset, not a long int offset.
21506 This undoes the 2003-06-04 change, which is no longer needed now
21507 that we have better overflow checking.
21508 (localtime_offset): Likewise.
21510 (__mktime_internal): Avoid harmful overflow on hosts where time_t
21511 and long are 64-bit but int is only 32-bit.
21512 (ydhms_diff): Use long int to store year1 and yday1.
21513 Issue a compile-time diagnostic if long int is not wide enough.
21515 (__mktime_internal): Use long int to store adjusted year and yday.
21516 Use plain C rather than preprocessor commands, if that doesn't
21518 Check for overflow (and try to repair) after each probe
21519 rather than checking only at the very end. This avoids some bugs
21520 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
21521 does not equal GMT offset at maximum time).
21522 Use integer to check for overflow rather than floating point; this
21523 is more portable to non-IEEE hosts, and is a tad faster.
21524 When we detect that we are oscillating between two values,
21525 don't check whether tm_isdst has the requested value, since
21526 we already know the answer. When tm_isdst has the wrong value,
21527 use a different heuristic to find the right one, based on the
21528 extreme values actually observed in practice in tz2003a,
21529 rather than the (overly optimistic) "previous 3 calendar quarters".
21531 (not_equal_tm, print_tm, check_result): Use "const T" rather than
21532 "T const" to accommodate glibc style.
21533 (check_result): Use less-confusing report format. "long" -> "long int.
21535 Don't loop if the iteration overflows time_t.
21536 Allow a negative step in the iteration.
21538 2003-07-06 Karl Berry <karl@gnu.org>
21540 * config/depcomp: update from automake.
21541 * config/config.sub: update from prep.
21543 2003-07-03 Karl Berry <karl@gnu.org>
21545 * config/config.guess: update from prep.
21547 2003-07-01 Paul Eggert <eggert@twinsun.com>
21549 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
21550 xreadlink.c now includes it unconditionally.
21552 2003-07-01 Paul Eggert <eggert@twinsun.com>
21554 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
21555 having it depend on HAVE_SYS_TYPES_H.
21557 2003-07-01 Bruno Haible <bruno@clisp.org>
21559 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
21560 <sys/types.h> should be sufficient.
21561 Reported by Paul Eggert.
21563 2003-06-26 Karl Berry <karl@gnu.org>
21565 * config/depcomp: update from automake.
21567 2003-06-26 Bruno Haible <bruno@clisp.org>
21569 * modules/human: Depend on module stdbool.
21571 2003-06-25 Bruno Haible <bruno@clisp.org>
21573 * modules/readlink: New file.
21574 * modules/xreadlink: Depend on it.
21575 * MODULES.html.sh (func_all_modules): Add readlink.
21577 2003-06-25 Bruno Haible <bruno@clisp.org>
21579 * m4/readlink.m4: New file.
21581 2003-06-25 Bruno Haible <bruno@clisp.org>
21583 * lib/readlink.c: New file.
21585 2003-06-22 Karl Berry <karl@gnu.org>
21587 * config/srclist.txt: update mkinstalldirs from automake.
21588 * config/mkinstalldirs: update.
21590 2003-06-22 Bruno Haible <bruno@clisp.org>
21592 Portability to mingw32.
21593 * m4/ssize_t.m4: New file, from GNU gettext.
21594 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
21595 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
21597 2003-06-22 Bruno Haible <bruno@clisp.org>
21599 * modules/safe-read: Add m4/ssize_t.m4.
21600 * modules/xreadlink: Add m4/ssize_t.m4.
21602 2003-06-20 Bruno Haible <bruno@clisp.org>
21604 Assume C89, so PARAMS isn't needed.
21605 * lib/unicodeio.h (PARAMS): Remove.
21606 * lib/unicodeio.c: Don't use PARAMS.
21608 2003-06-18 Karl Berry <karl@gnu.org>
21610 * config/config.{guess,sub}: update from prep.
21612 2003-06-18 Jim Meyering <jim@meyering.net>
21614 Merge changes from coreutils.
21615 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
21616 Remove explicit declarations of xmalloc and realloc.
21618 (read_utmp): Remove anachronistic cast of xmalloc.
21620 2003-06-17 Paul Eggert <eggert@twinsun.com>
21622 Assume C89, so PARAMS isn't needed.
21623 * lib/backupfile.h (PARAMS): Remove. All uses removed.
21624 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
21625 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
21626 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
21627 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
21628 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
21629 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
21630 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
21631 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
21632 lib/xstrtod.h, lib/xstrtol.h: Likewise.
21633 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
21634 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
21635 no longer needed. Anyway, config.h should always be included before any
21638 2003-06-11 Simon Josefsson <jas@extundo.com>
21640 * modules/sysexits: New file.
21641 * MODULES.html.sh (func_all_modules): Add sysexits.
21643 2003-06-11 Simon Josefsson <jas@extundo.com>
21645 * lib/sysexit_.h: New file.
21647 2003-06-11 Derek Price <derek@ximbiot.com>
21649 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
21652 2003-06-11 Bruno Haible <bruno@clisp.org>
21654 * m4/sysexits.m4: New file.
21656 2003-06-10 Simon Josefsson <jas@extundo.com>
21658 * lib/argp.h: New file, from glibc.
21659 * lib/argp-ba.c: New file, from glibc.
21660 * lib/argp-eexst.c: New file, from glibc.
21661 * lib/argp-fmtstream.c: New file, from glibc.
21662 * lib/argp-fmtstream.h: New file, from glibc.
21663 * lib/argp-fs-xinl.c: New file, from glibc.
21664 * lib/argp-help.c: New file, from glibc.
21665 * lib/argp-namefrob.h: New file, from glibc.
21666 * lib/argp-parse.c: New file, from glibc.
21667 * lib/argp-pv.c: New file, from glibc.
21668 * lib/argp-pvh.c: New file, from glibc.
21669 * lib/argp-xinl.c: New file, from glibc.
21671 2003-06-10 Simon Josefsson <jas@extundo.com>
21673 * modules/strchrnul: New file.
21675 2003-06-10 Simon Josefsson <jas@extundo.com>
21677 * modules/argp: New file.
21679 2003-06-10 Simon Josefsson <jas@extundo.com>
21681 * m4/strchrnul.m4: New file.
21683 2003-06-10 Simon Josefsson <jas@extundo.com>
21685 * lib/strchrnul.h: New file.
21686 * lib/strchrnul.c: New file.
21688 2003-06-10 Bruno Haible <bruno@clisp.org>
21690 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
21692 2003-06-07 Karl Berry <karl@gnu.org>
21694 * config/config.{guess,sub}: update from prep.
21696 2003-06-07 Jim Meyering <jim@meyering.net>
21698 * modules/strtod: Use $(...) notation, not @...@ for
21699 AC_REPLACE'd variables.
21700 * modules/localcharset: Likewise.
21702 2003-06-07 Jim Meyering <jim@meyering.net>
21704 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
21705 in place of my name in the copyright comment.
21706 Remove definition and uses of __P.
21709 * lib/stat.c: Don't declare xmalloc explicitly.
21710 Instead, include "xalloc.h".
21711 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
21712 xrealloc, and xcalloc return values.
21713 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
21715 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
21717 2003-06-07 Bruno Haible <bruno@clisp.org>
21719 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
21720 avoid AC_CONFIG_LINKS.
21721 * modules/fnmatch (Makefile.am): Use explicit creation rule for
21722 fnmatch.h, to avoid AC_CONFIG_LINKS.
21723 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
21725 2003-06-07 Bruno Haible <bruno@clisp.org>
21727 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
21728 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
21729 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
21731 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
21732 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
21735 2003-06-06 Jim Meyering <jim@meyering.net>
21737 Merge from coreutils.
21738 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
21739 Consolidate declarations and initializations of *_base* locals.
21741 Merge from coreutils.
21742 This avoids a core dump on systems without GNU putenv,
21743 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
21744 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
21745 (unsetenv): New static function, from GNU libc.
21746 (rpl_putenv): Use it.
21748 * lib/modechange.c: Remove trailing blanks.
21750 Merge from coreutils.
21751 * lib/fsusage.c: Remove declaration of statfs.
21752 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
21754 * lib/posixtm.c: Include <stdbool.h> unconditionally.
21756 2003-06-06 Jim Meyering <jim@meyering.net>
21758 * lib/stdbool_.h: Renamed from stdbool.h.in.
21760 2003-06-06 Jim Meyering <jim@meyering.net>
21761 Bruno Haible <bruno@clisp.org>
21763 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
21764 Adjust Makefile.am snippet not to redirect directly to target.
21765 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
21767 2003-06-05 Paul Eggert <eggert@twinsun.com>
21769 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
21770 mismatch, look in future quarters as well as past. This fixes a
21771 bug when processing fall-backwards gaps immediately after a long
21772 period of daylight-saving time.
21774 * lib/mktime.c: Assume freestanding C89 or better.
21775 (HAVE_LIMITS_H): Remove. Assume it's 1.
21776 (__P): Remove; not used.
21777 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
21778 (mktime, not_equal_tm, print_tm, check_result,
21779 main): Use prototypes. Use const * where appropriate.
21780 (main): Fix typo in testing code that uncovered by above changes.
21781 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
21783 2003-06-04 Paul Eggert <eggert@twinsun.com>
21785 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
21786 locale.h, localeconv. This merges changes from coreutils.
21788 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
21789 It can be removed after the next Autoconf is released.
21790 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
21793 2003-06-04 Paul Eggert <eggert@twinsun.com>
21795 * lib/mktime.c: Fix Debian bug 177940
21796 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
21797 (localtime_offset): Now long int, not time_t, because we want it
21798 to be guaranteed to be signed. All uses changed.
21799 (__mktime_internal): If overflow would occur when adding offset,
21802 Merge 'human' changes from coreutils. Rewrite to support
21803 locale-specific notations like thousands separators.
21804 * lib/human.c: Simplify authorship notice.
21805 Include human.h immediately after config.h.
21806 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
21807 <limits.h>: Do not include, since human.h does.
21808 (SIZE_MAX, UINTMAX_MAX): New macros.
21809 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
21810 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
21811 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
21812 (power_letter): Renamed from suffixes.
21813 (generate_suffix_backwards): Remove.
21814 (adjust_value): Now takes int style (because of human.h changes)
21815 and long double value (for greater precision on some platforms).
21816 (group_number): New function.
21817 (human_readable): Use it. Use integer options, not enum.
21818 Put the options before the sizes in the arg list.
21819 Support all the new options.
21820 The old human_readable function has been removed;
21821 use inttostr.h instead.
21822 (human_readable, default_block_size, humblock):
21823 Use uintmax_t, not int, for block sizes.
21824 (human_readable_inexact, block_size_types): Remove.
21825 (block_size_opts): New constant.
21826 (human_options): Renamed from human_block_size, with new signature
21827 that allows block sizes up to UINTMAX_MAX. All callers changed.
21828 * lib/human.h: Add copyright and authorship notice.
21829 Include <limits.h> and <stdbool.h> unconditionally.
21830 (PARAMS): Remove. All uses removed.
21831 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
21832 (enum human_inexact_style): Remove tag; now a nameless enum.
21833 (human_floor, human_ceiling, human_round_to_even): Now have
21834 values 2, 0, 1 rather than -1, 1, 0.
21835 (human_group_digits, human_suppress_point_zero, human_autoscale,
21836 human_base_1024, human_SI, human_B): New constants.
21837 (human_readable_inexact, human_block_size): Remove.
21838 (human_readable): Size args are now uintmax_t, not int.
21839 (human_options): New decl.
21841 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
21842 unnecessary now that we assume C89 or better. This change
21843 imported from coreutils.
21845 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
21846 arbitrarily. This is the same patch as 2003-05-28, but it got lost
21847 in the 2003-05-30 sync from glibc.
21849 .h files should stand alone, but we shouldn't include <sys/types.h>
21850 if we can get away with just <stddef.h>.
21852 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
21853 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
21854 rather than <sys/types.h>, as we merely need size_t.
21855 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
21857 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
21858 Include <stdio.h>, to get FILE.
21859 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
21860 memcasecmp.h has included <stddef.h> and all we need is size_t.
21861 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
21862 our interface, instead of including <sys/types.h>
21864 2003-06-04 Paul Eggert <eggert@twinsun.com>
21866 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
21867 now, as glibc mktime is buggy on non-glibc systems.
21869 2003-06-03 Karl Berry <karl@gnu.org>
21871 * config/config.sub: update from prep.
21873 2003-06-02 Paul Eggert <eggert@twinsun.com>
21876 Fix some minor time-related bugs with POSIX time arguments.
21877 Some valid time stamps were being rejected (notably -1, and
21878 time stamps before 1900 on 64-bit hosts). And some invalid
21879 time stamps were being accepted, e.g. September 31.
21881 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
21882 that we can return (time_t) -1 successfully.
21883 * lib/posixtm.c: Likewise.
21884 [HAVE_STDBOOL_H]: Include <stdbool.h>.
21885 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
21886 (t): Remove static var.
21887 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
21888 of static var. All uses changed.
21889 (year): Do not reject years before 1900; they can occur with
21891 (posix_time_parse): Do not check for out-of-range components;
21892 that is now the caller's responsibility, since our checks were
21893 only approximations.
21894 (posixtime): Use mktime to check for out-of-range components,
21895 since it knows them exactly.
21896 If mktime returns (time_t) -1, check whether an error actually occurred
21897 by invoking localtime on -1.
21898 (main) [TEST_POSIXTIME]: Check for input data errors, and report
21899 posixtime failures better.
21900 Improve the test data (in comments only).
21902 2003-06-02 Karl Berry <karl@gnu.org>
21904 * config/mkinstalldirs (version): new variable.
21905 (--version): new option.
21906 (usage): improve message.
21908 2003-05-30 Karl Berry <karl@gnu.org>
21910 * lib/mktime.c: update from libc.
21912 2003-05-30 Bruno Haible <bruno@clisp.org>
21914 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
21915 * config/config.rpath: Upgrade to gettext-0.12.1.
21917 2003-05-30 Bruno Haible <bruno@clisp.org>
21919 * m4/gettext.m4: Upgrade to gettext-0.12.1.
21920 * m4/nls.m4: New file, from gettext-0.12.1.
21921 * m4/po.m4: New file, from gettext-0.12.1.
21922 * m4/progtest.m4: Upgrade to gettext-0.12.1.
21924 2003-05-30 Bruno Haible <bruno@clisp.org>
21926 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
21927 * lib/localcharset.h: Likewise.
21928 * lib/localcharset.c: Likewise.
21930 2003-05-29 Karl Berry <karl@gnu.org>
21932 * config/config.rpath: update from gettext.
21934 2003-05-28 Paul Eggert <eggert@twinsun.com>
21936 Assume the headers required for C89 freestanding compilers.
21937 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
21938 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
21939 * m4/human.m4 (gl_HUMAN): Likewise.
21940 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
21941 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
21942 * m4/userspec.m4 (gl_USERSPEC): Likewise.
21943 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
21944 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
21945 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
21947 2003-05-28 Paul Eggert <eggert@twinsun.com>
21949 Assume the headers required for C89 freestanding compilers.
21950 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
21951 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
21952 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
21953 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
21954 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
21955 define, since <limits.h> is guaranteed to do that.
21956 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
21957 * lib/exclude.c: Include <stdbool.h> unconditionally.
21958 * lib/tempname.c: Include <stddef.h> unconditionally.
21959 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
21960 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
21961 <stddef.h> does that.
21962 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
21963 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
21964 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
21966 * lib/xstrtol.c: Likewise.
21967 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
21968 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
21970 * lib/addext.c (addext): Use assignment rather than cast, to avoid
21971 warnings on some platforms.
21973 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
21976 2003-05-26 Jim Meyering <jim@meyering.net>
21978 Merge in a change from coreutils:
21979 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
21980 that is guaranteed to be `no'. Use `no_such_member' to indicate
21981 that condition, rather than `-1' which is slightly misleading.
21982 Change the name of the cache variable to have the gl_ prefix.
21983 Prompted by a patch from Richard Dawe for DJGPP.
21985 2003-05-24 Karl Berry <karl@gnu.org>
21987 * config/config.guess: update from prep.
21989 2003-05-22 Karl Berry <karl@gnu.org>
21991 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
21993 2003-05-20 Karl Berry <karl@gnu.org>
21995 * config/config.guess: update from prep.
21997 2003-05-18 Karl Berry <karl@gnu.org>
21999 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
22000 might actually be set by the user.
22002 * config/depcomp, install-sh, mdate-sh: update from automake.
22004 2003-05-17 Bruno Haible <bruno@clisp.org>
22006 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
22007 invalid expansion for AC_EGREP_CPP.
22008 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
22009 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22010 Suggested by Akim Demaille <akim@epita.fr> in
22011 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
22013 2003-05-12 Jim Meyering <jim@meyering.net>
22015 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
22016 the space-padded-by-default conversion specifiers, %e, %k, %l.
22018 2003-05-12 Bruno Haible <bruno@clisp.org>
22020 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
22021 the string is longer than 4 KB.
22023 2003-05-11 Karl Berry <karl@gnu.org>
22025 * config/config.{guess,sub}: update from prep.
22027 2003-05-09 Bruno Haible <bruno@clisp.org>
22029 * modules/error: Add m4/strerror_r.m4 to file list.
22031 2003-05-03 Bruno Haible <bruno@clisp.org>
22033 Upgrade to Unicode-4.0.
22034 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
22035 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
22036 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
22037 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
22038 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
22039 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
22040 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
22041 Change width of U+E0100..U+E01EF from 1 to 0.
22043 2003-04-25 Jim Meyering <jim@meyering.net>
22045 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
22046 of type size_t, not int.
22048 2003-04-25 Bruno Haible <bruno@clisp.org>
22050 * lib/copy-file.c: Include <stddef.h>, for size_t.
22052 2003-04-21 Paul Eggert <eggert@twinsun.com>
22054 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
22055 code which expansion is under static control. Patch imported from
22056 Akim Demaille's patch to Bison; see
22057 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
22059 2003-04-14 Bruno Haible <bruno@clisp.org>
22061 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
22063 2003-04-11 Jim Meyering <jim@meyering.net>
22065 Merge changes from Coreutils.
22067 2003-03-22 Jim Meyering <jim@meyering.net>
22069 * lib/strftime.c (widen): Cast alloca return value to proper type.
22071 2003-01-19 Ulrich Drepper <drepper@redhat.com>
22074 * lib/strftime.c (my_strftime): Handle very large width
22075 specifications for numeric values correctly. Improve checks for
22078 2003-01-19 Jim Meyering <jim@meyering.net>
22080 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
22082 (nl_get_alt_digit) [! defined my_strftime]: Define.
22083 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
22084 _nl_get_alt_digit and _nl_get_walt_digit.
22086 * lib/strftime.c (my_strftime): Merge in locale-related changes from
22087 libc. These changes have no effect outside of _LIBC.
22089 2003-04-10 Bruno Haible <bruno@clisp.org>
22091 * modules/findprog: New file.
22092 * MODULES.html.sh (func_all_modules): Add it.
22094 2003-04-10 Bruno Haible <bruno@clisp.org>
22096 * m4/findprog.m4: New file.
22097 * m4/eaccess.m4: New file.
22099 2003-04-10 Bruno Haible <bruno@clisp.org>
22101 * lib/findprog.h: New file, from GNU gettext.
22102 * lib/findprog.c: New file, from GNU gettext.
22104 2003-04-05 Jim Meyering <jim@meyering.net>
22106 Merge changes from Coreutils.
22108 * lib/exclude.h (PARAMS): Remove definition and uses.
22109 * lib/exclude.c: Remove uses of `PARAMS'.
22111 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
22112 Add test-cases for DOS filenames. Declare program_name.
22113 (main): Set up program_name. Patch by Rich Dawe.
22115 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
22117 Use mntctl's return value to drive the entry-processing loop, since
22118 we can't rely on the value of the vmt_length member in the last
22119 entry. On some systems doing so could result in exhausting
22120 virtual memory. Based in part on a patch from Mike Jetzer.
22122 2003-04-04 Bruno Haible <bruno@clisp.org>
22124 * modules/linebreak: New file.
22125 * MODULES.html.sh (func_all_modules): Add it.
22127 2003-04-04 Bruno Haible <bruno@clisp.org>
22129 * m4/linebreak.m4: New file.
22131 2003-04-04 Bruno Haible <bruno@clisp.org>
22133 * lib/linebreak.h: New file, from GNU gettext.
22134 * lib/linebreak.c: New file, from GNU gettext with slight
22136 * lib/lbrkprop.h: New file, from GNU gettext.
22138 2003-04-03 Bruno Haible <bruno@clisp.org>
22140 * modules/utf8-ucs4: New file.
22141 * modules/utf16-ucs4: New file.
22142 * modules/ucs4-utf8: New file.
22143 * modules/ucs4-utf16: New file.
22144 * MODULES.html.sh (func_all_modules): Add them.
22146 2003-04-03 Bruno Haible <bruno@clisp.org>
22148 * m4/utf-ucs4.m4: New file.
22149 * m4/ucs4-utf.m4: New file.
22151 2003-04-03 Bruno Haible <bruno@clisp.org>
22153 * lib/utf8-ucs4.h: New file, from GNU gettext.
22154 * lib/utf16-ucs4.h: New file, from GNU gettext.
22155 * lib/ucs4-utf8.h: New file, from GNU gettext.
22156 * lib/ucs4-utf16.h: New file, from GNU gettext.
22158 2003-04-02 Bruno Haible <bruno@clisp.org>
22160 * modules/binary-io: New file.
22161 * MODULES.html.sh (func_all_modules): Add it.
22163 2003-04-02 Bruno Haible <bruno@clisp.org>
22165 * lib/binary-io.h: New file, from GNU gettext.
22167 2003-04-01 Bruno Haible <bruno@clisp.org>
22169 * modules/pathname: New file.
22170 * MODULES.html.sh (func_all_modules): Add it.
22172 2003-04-01 Bruno Haible <bruno@clisp.org>
22174 * lib/pathname.h: New file, from GNU gettext.
22175 * lib/concatpath.c: New file, from GNU gettext.
22177 2003-03-30 Bruno Haible <bruno@clisp.org>
22179 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
22181 2003-03-30 Bruno Haible <bruno@clisp.org>
22183 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
22184 function chown() doesn't exist.
22186 2003-03-28 Bruno Haible <bruno@clisp.org>
22188 * modules/copy-file: New file.
22189 * MODULES.html.sh (func_all_modules): Add it.
22191 2003-03-28 Bruno Haible <bruno@clisp.org>
22193 * m4/copy-file.m4: New file.
22195 2003-03-28 Bruno Haible <bruno@clisp.org>
22197 * lib/copy-file.h: New file, from GNU gettext.
22198 * lib/copy-file.c: New file, from GNU gettext.
22200 2003-03-18 Jim Meyering <jim@meyering.net>
22202 * lib/quote.c (quote_n): Fix typo in comment.
22204 2003-03-18 Bruno Haible <bruno@clisp.org>
22206 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
22208 * m4/onceonly_2_57.m4: Likewise.
22210 2003-03-17 Bruno Haible <bruno@clisp.org>
22212 * m4/onceonly.m4: Require autoconf 2.54 or newer.
22213 (m4_quote): Remove macro.
22214 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
22216 2003-03-14 Jim Meyering <jim@meyering.net>
22218 Merge changes from Coreutils.
22219 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
22220 to be const, in order to avoid warnings.
22221 (obstack_room): Likewise.
22222 (obstack_empty_p): Likewise.
22224 2003-03-14 Bruno Haible <bruno@clisp.org>
22226 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
22227 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
22229 2003-03-13 Paul Eggert <eggert@twinsun.com>
22231 Merge changes from Bison.
22232 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
22233 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
22234 when compiling Bison 1.875's `bitset bset = obstack_alloc
22235 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
22236 * lib/hash.c: Include <stdbool.h> unconditionally.
22238 2003-03-13 Paul Eggert <eggert@twinsun.com>
22240 * m4/onceonly.m4 (m4_quote): New macro.
22241 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
22242 Quote AC_FOREACH variable-expansions properly.
22244 2003-03-13 Paul Eggert <eggert@twinsun.com>
22246 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
22248 2003-03-09 Paul Eggert <eggert@twinsun.com>
22250 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
22251 Reported by Bruce Becker; see:
22252 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
22254 2003-03-03 Paul Eggert <eggert@twinsun.com>
22255 Bruno Haible <bruno@clisp.org>
22257 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
22258 Reported by John Hughes, see
22259 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
22261 2003-02-20 Bruno Haible <bruno@clisp.org>
22263 * MODULES.html.sh (func_all_modules): Add poll.
22265 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
22267 * modules/poll: New file.
22269 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
22271 * lib/poll_.h: New file.
22272 * lib/poll.c: New file.
22274 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
22276 * m4/poll.m4: New file.
22278 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
22280 * modules/mathl: New file.
22282 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
22284 * lib/mathl.h: New file.
22285 * lib/acosl.c: New file.
22286 * lib/asinl.c: New file.
22287 * lib/atanl.c: New file.
22288 * lib/ceill.c: New file.
22289 * lib/cosl.c: New file.
22290 * lib/expl.c: New file.
22291 * lib/floorl.c: New file.
22292 * lib/frexpl.c: New file.
22293 * lib/ldexpl.c: New file.
22294 * lib/logl.c: New file.
22295 * lib/sincosl.c: New file.
22296 * lib/sinl.c: New file.
22297 * lib/sqrtl.c: New file.
22298 * lib/tanl.c: New file.
22299 * lib/trigl.c: New file.
22300 * lib/trigl.h: New file.
22302 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
22304 * m4/mathl.m4: New file.
22306 2003-02-18 Bruno Haible <bruno@clisp.org>
22308 * MODULES.html.sh (func_all_modules): Add mathl.
22310 2003-02-17 Bruno Haible <bruno@clisp.org>
22312 * modules/mkdtemp: New module.
22313 * MODULES.html.sh (func_all_modules): Add it.
22315 2003-02-17 Bruno Haible <bruno@clisp.org>
22317 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
22319 2003-02-17 Bruno Haible <bruno@clisp.org>
22321 * lib/mkdtemp.h: New file, from GNU gettext.
22322 * lib/mkdtemp.c: New file, from GNU gettext.
22324 2003-02-02 Jim Meyering <jim@meyering.net>
22326 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
22329 2003-01-31 Bruno Haible <bruno@clisp.org>
22331 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
22333 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
22335 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
22337 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
22340 2003-01-31 Bruno Haible <bruno@clisp.org>
22342 * lib/rename.c: #undef rename before defining rpl_rename.
22343 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
22345 2003-01-30 Bruno Haible <bruno@clisp.org>
22347 * modules/vasnprintf, modules/vasprintf: New modules.
22348 * MODULES.html.sh (func_all_modules): Add them.
22350 2003-01-30 Bruno Haible <bruno@clisp.org>
22352 * m4/signed.m4: New file, from GNU gettext.
22353 * m4/longdouble.m4: New file, from GNU gettext.
22354 * m4/wchar_t.m4: New file, from GNU gettext.
22355 * m4/wint_t.m4: New file, from GNU gettext.
22356 * m4/vasnprintf.m4: New file.
22357 * m4/vasprintf.m4: New file.
22359 2003-01-30 Bruno Haible <bruno@clisp.org>
22361 * lib/printf-args.h: New file, from GNU gettext.
22362 * lib/printf-args.c: New file, from GNU gettext.
22363 * lib/printf-parse.h: New file, from GNU gettext.
22364 * lib/printf-parse.c: New file, from GNU gettext.
22365 * lib/vasnprintf.h: New file, from GNU gettext.
22366 * lib/vasnprintf.c: New file, from GNU gettext.
22367 * lib/asnprintf.c: New file, from GNU gettext.
22368 * lib/vasprintf.h: New file, from GNU gettext with modifications.
22369 * lib/vasprintf.c: New file, from GNU gettext.
22370 * lib/asprintf.c: New file, from GNU gettext.
22372 2003-01-29 Bruno Haible <bruno@clisp.org>
22374 * modules/stpncpy: New module.
22375 * MODULES.html.sh (func_all_modules): Add it.
22377 2003-01-29 Bruno Haible <bruno@clisp.org>
22379 * m4/stpncpy.m4: New file.
22381 2003-01-29 Bruno Haible <bruno@clisp.org>
22383 * lib/stpncpy.h: New file, from GNU gettext with modifications.
22384 * lib/stpncpy.c: New file, from GNU gettext with modifications.
22386 2003-01-28 Bruno Haible <bruno@clisp.org>
22388 * modules/c-ctype: New module.
22389 * MODULES.html.sh (func_all_modules): Add it.
22391 2003-01-28 Bruno Haible <bruno@clisp.org>
22393 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
22395 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
22398 2003-01-27 Bruno Haible <bruno@clisp.org>
22400 * modules/xsetenv: New module.
22401 * MODULES.html.sh (func_all_modules): Add it.
22403 2003-01-27 Bruno Haible <bruno@clisp.org>
22405 * lib/xsetenv.h: New file, from GNU gettext.
22406 * lib/xsetenv.c: New file, from GNU gettext.
22408 2003-01-23 Jim Meyering <jim@meyering.net>
22410 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
22411 from working on systems without dirfd (at least Irix and OSF1/Tru64).
22413 2003-01-23 Bruno Haible <bruno@clisp.org>
22415 * modules/minmax: New module.
22416 * MODULES.html.sh (func_all_modules): Add it.
22418 2003-01-23 Bruno Haible <bruno@clisp.org>
22420 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
22423 2003-01-22 Bruno Haible <bruno@clisp.org>
22425 * modules/exit: New module.
22426 * MODULES.html.sh (func_all_modules): Add it.
22428 2003-01-22 Bruno Haible <bruno@clisp.org>
22430 * lib/exit.h: New file, from GNU gettext.
22432 2003-01-19 Bruno Haible <bruno@clisp.org>
22434 * gnulib-tool: Recognize option --extract-maintainer.
22435 (func_get_maintainer): New function.
22436 * modules/*: Add Maintainer entry.
22438 2003-01-16 Jim Meyering <jim@meyering.net>
22440 * m4/regex.m4: The `regex' struct is both input and output.
22441 Initialize it before each use. Patch by Tim Waugh.
22443 2003-01-16 Bruno Haible <bruno@clisp.org>
22445 * MODULES.html.sh: Add a table of contents. Add the module name as
22446 leftmost column. Add hyperlinks.
22448 2003-01-15 Bruno Haible <bruno@clisp.org>
22450 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
22452 2003-01-15 Bruno Haible <bruno@clisp.org>
22454 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
22455 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
22458 2003-01-15 Bruno Haible <bruno@clisp.org>
22460 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
22462 2003-01-15 Bruno Haible <bruno@clisp.org>
22464 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
22465 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
22467 2003-01-14 Jim Meyering <jim@meyering.net>
22469 * lib/same.c (same_name): Tweak a comment.
22471 2003-01-14 Bruno Haible <bruno@clisp.org>
22473 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
22474 when a string comparison is sufficient.
22476 2003-01-14 Bruno Haible <bruno@clisp.org>
22478 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
22481 2003-01-14 Bruno Haible <bruno@clisp.org>
22483 * lib/hash-pjw.c: Add comment about low quality of this function.
22485 2003-01-13 Bruno Haible <bruno@clisp.org>
22487 * modules/stpcpy: Distribute lib/stpcpy.h.
22488 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
22490 2003-01-13 Bruno Haible <bruno@clisp.org>
22492 * modules/*: Add a description.
22493 * modules/strpbrk: Fix Makefile.am snippet.
22494 * modules/strtoimax: Fix dependencies.
22495 * modules/strtoumax: Likewise.
22497 2003-01-13 Bruno Haible <bruno@clisp.org>
22499 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
22500 * modules/alloca (Makefile.am): All object files depend on alloca.h.
22501 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
22503 2003-01-13 Bruno Haible <bruno@clisp.org>
22505 * gnulib-tool (func_create_testdir): Store config/* files in the main
22507 * config.rpath: Move to ...
22508 * config/config.rpath: ... here.
22509 * modules/gettext: Contains config/config.rpath, not config.rpath.
22510 * modules/iconv: Likewise.
22512 2003-01-12 Paul Eggert <eggert@twinsun.com>
22514 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
22515 to avoid collisions with libcurses and libreadline.
22517 * m4/getstr.m4: Remove.
22518 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
22520 2003-01-12 Paul Eggert <eggert@twinsun.com>
22522 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
22523 to avoid collisions with libcurses and libreadline.
22525 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
22526 * lib/getstr.h, getstr.c: Remove.
22527 * lib/getline.c: Include "getline.h", to check interface.
22528 Move body of old getstr.c here: this defines MIN_CHUNK and
22529 declares getdelim2, which is renamed from getstr.
22530 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
22532 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
22534 * lib/linebuffer.h: Likewise.
22535 (readline): Remove backward-compatibility macro.
22537 2003-01-12 Paul Eggert <eggert@twinsun.com>
22539 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
22540 to avoid collisions with libcurses and libreadline.
22542 * MODULES.html.sh: Remove getstr.
22543 * modules/getline: Depend on unlocked-io, not getstr.
22545 2003-01-12 Jim Meyering <jim@meyering.net>
22547 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
22549 2003-01-10 Bruno Haible <bruno@clisp.org>
22551 * modules/alloca: Change Makefile.am requirements. Simplify Include
22552 requirements. Add lib/alloca_.h to file list.
22554 2003-01-10 Bruno Haible <bruno@clisp.org>
22556 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
22558 2003-01-10 Bruno Haible <bruno@clisp.org>
22560 * lib/alloca_.h: New file.
22561 * lib/getdate.y: Unconditionally include alloca.h.
22562 * lib/makepath.c: Likewise.
22563 * lib/setenv.c: Likewise.
22564 * lib/userspec.c: Likewise.
22566 2003-01-09 Karl Berry <karl@gnu.org>
22568 * MODULES.html.sh: include `dirname $0` in PATH, to find
22571 2003-01-09 Bruno Haible <bruno@clisp.org>
22573 * modules/stdbool: Change configure.ac, Makefile.am requirements.
22574 Simplify Include requirements. Add lib/stdbool.h.in to file list.
22576 2003-01-09 Bruno Haible <bruno@clisp.org>
22578 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
22580 2003-01-09 Bruno Haible <bruno@clisp.org>
22582 * lib/stdbool.h.in: New file.
22584 2003-01-09 Bruno Haible <bruno@clisp.org>
22586 * gnulib-tool (func_all_modules): Ignore files ending in ~.
22587 * MODULES.html.sh: Likewise.
22589 2003-01-08 Jim Meyering <jim@meyering.net>
22591 * lib/full-write.c: Undefine and define-away `const' after inclusion
22592 of errno.h, not before. Suggestion from Bruno Haible.
22594 2003-01-08 Bruno Haible <bruno@clisp.org>
22596 * modules/full-read: Depend on full-write.
22598 2003-01-08 Bruno Haible <bruno@clisp.org>
22600 * lib/safe-read.c: Include specification header first, to ensure its
22602 * lib/full-write.c: Likewise.
22604 2003-01-07 Jim Meyering <jim@meyering.net>
22606 * lib/full-write.c: Rework so that it may serve to define full_read,
22608 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
22610 2003-01-07 Bruno Haible <bruno@clisp.org>
22612 * lib/strtoimax.c: Include <stdint.h> as an alternative to
22614 * lib/xstrtol.h: Likewise.
22615 * lib/xstrtoimax.c: Likewise.
22616 * lib/xstrtoumax.c: Likewise.
22617 * lib/human.h: Likewise.
22619 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
22620 on systems that have <inttypes.h> but not <stdint.h>.
22622 2003-01-07 Bruno Haible <bruno@clisp.org>
22624 * MODULES.html.sh: Add copyright notice.
22625 (missed_files): Omit CVS directory entries.
22626 (func_module): Make it work with sed-3.02.
22627 * MODULES.txt: Remove file.
22629 2003-01-06 Jim Meyering <jim@meyering.net>
22631 * lib/version-etc.c: Update year in translatable copyright string.
22633 2003-01-03 Karl Berry <karl@gnu.org>
22635 * config/config.{guess,sub}: update from prep.
22637 2003-01-02 Karl Berry <karl@gnu.org>
22639 * doc/COPYING.DOC: belatedly updated to 1.2.
22641 2003-01-01 Karl Berry <karl@gnu.org>
22643 * gnulib-tool (func_verify_module): report module name $module in
22644 error message, not $1.
22645 * gnulib-tool (create-testdir): don't complain if destdir couldn't
22646 be created, only if it doesn't exist.
22647 * gnulib-tool (last_checkin_date): don't expand the $Date here.
22649 2002-12-31 Paul Eggert <eggert@twinsun.com>
22651 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
22653 2002-12-31 Paul Eggert <eggert@twinsun.com>
22655 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
22656 memcmp if strcoll doesn't work.
22658 2002-12-31 Bruno Haible <bruno@clisp.org>
22660 * lib/utime.c (utime_null): No need to call ftruncate if the file was
22663 2002-12-31 Bruno Haible <bruno@clisp.org>
22665 * lib/memcoll.c (STRCOLL): New macro.
22668 2002-12-31 Bruno Haible <bruno@clisp.org>
22670 * lib/localcharset.h: New file.
22671 * lib/localcharset.c: Include it.
22672 * lib/unicodeio.c: Likewise.
22674 2002-12-31 Bruno Haible <bruno@clisp.org>
22676 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
22677 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
22679 2002-12-31 Bruno Haible <bruno@clisp.org>
22681 * lib/getline.h: Include <stddef.h>, for size_t.
22683 * lib/unicodeio.h: Include <stddef.h>, for size_t.
22684 * lib/unicodeio.c: Don't include <stddef.h>.
22686 2002-12-31 Bruno Haible <bruno@clisp.org>
22688 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
22691 2002-12-24 Karl Berry <karl@gnu.org>
22693 * config/config.guess: update from prep.
22695 2002-12-24 Bruno Haible <bruno@clisp.org>
22697 General infrasructure.
22698 * m4/README: Rewritten.
22699 * m4/onceonly.m4: New file.
22700 * m4/onceonly_2_57.m4: New file.
22703 * m4/atexit.m4: New file.
22706 * m4/strtod.m4: New file.
22709 * m4/strtol.m4: New file.
22712 * m4/strtoul.m4: New file.
22715 * m4/memchr.m4: New file.
22718 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
22719 (jm_FUNC_MEMCMP): Invoke it.
22722 * m4/memcpy.m4: New file.
22725 * m4/memmove.m4: New file.
22728 * m4/memset.m4: New file.
22731 * m4/strcspn.m4: New file.
22734 * m4/strpbrk.m4: New file.
22737 * m4/strstr.m4: New file.
22740 * m4/strerror.m4: New file.
22743 * m4/mktime.m4: Renamed from jm-mktime.m4.
22744 (gl_PREREQ_MKTIME): New macro.
22745 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
22748 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
22749 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
22750 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
22753 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
22754 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
22755 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
22758 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
22759 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
22760 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
22762 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
22765 * m4/xalloc.m4: New file.
22768 * m4/alloca.m4: New file.
22771 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
22772 (jm_FUNC_PUTENV): Invoke it.
22775 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
22776 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
22777 when invoked twice.
22778 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
22782 * m4/memrchr.m4: New file.
22785 * m4/stpcpy.m4: New file.
22788 * m4/strcase.m4: New file.
22791 * m4/strdup.m4: New file.
22794 * m4/strnlen.m4: New file.
22797 * m4/strndup.m4: New file.
22800 * m4/xstrtod.m4: New file.
22803 * m4/xstrtol.m4: New file.
22806 * m4/getdate.m4: New file.
22808 Module unlocked-io.
22809 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
22810 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
22811 * m4/jm-glibc-io.m4n: Remove file.
22813 Module long-options.
22814 * m4/long-options.m4: New file.
22817 * m4/md5.m4: New file.
22820 * m4/sha.m4: New file.
22823 * m4/getstr.m4: New file.
22826 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
22827 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
22828 <sys/types.h>, for size_t. Use the function name gnu_getline, not
22829 simply getline. Infoke gl_PREREQ_GETLINE.
22832 * m4/obstack.m4: New file.
22835 * m4/hash.m4: New file.
22838 * m4/readtokens.m4: New file.
22841 * m4/strverscmp.m4: New file.
22844 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
22848 * m4/strtoll.m4: New file.
22851 * m4/strtoull.m4: New file.
22854 * m4/strtoimax.m4: New file.
22857 * m4/strtoumax.m4: New file.
22860 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
22861 jm_AC_PREREQ_XSTRTOIMAX.
22862 Moved the strtol prerequisites to strtol.m4.
22863 Moved the strtoll prerequisites to strtoll.m4.
22864 Moved the strtoimax prerequisites to strtoimax.m4.
22867 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
22868 jm_AC_PREREQ_XSTRTOUMAX.
22869 Moved the strtoul prerequisites to strtoul.m4.
22870 Moved the strtoull prerequisites to strtoull.m4.
22871 Moved the strtoumax prerequisites to strtoumax.m4.
22874 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
22875 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
22878 * m4/dup2.m4: New file.
22881 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
22882 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
22885 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
22886 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
22888 Module gettimeofday.
22889 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
22890 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
22891 gl_PREREQ_GETTIMEOFDAY.
22894 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
22895 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
22898 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
22899 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
22900 jm_AC_TYPE_UINTMAX_T.
22901 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
22904 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
22905 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
22908 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
22909 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
22912 * m4/timespec.m4 (gl_TIMESPEC): New macro.
22913 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
22914 * m4/st_mtim.m4: Indentation.
22917 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
22918 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
22919 gl_PREREQ_NANOSLEEP.
22922 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
22923 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
22924 (gl_REGEX): New macro.
22927 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
22928 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
22931 * m4/rmdir.m4: New file.
22934 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
22935 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
22936 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
22939 * m4/dirname.m4: New file.
22942 * m4/getopt.m4: New file.
22944 Module unistd-safer.
22945 * m4/unistd-safer.m4: New file.
22948 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
22950 (gl_PREREQ_FNMATCH_EXTRA): New macro.
22951 (gl_FUNC_FNMATCH_POSIX): New macro.
22952 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
22953 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
22957 * m4/exclude.m4: New file.
22960 * m4/human.m4: New file.
22966 * m4/backupfile.m4: New file.
22967 * m4/d-ino.m4: Indentation.
22970 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
22971 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
22972 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
22975 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
22979 * m4/euidaccess.m4: New file.
22982 * m4/file-type.m4: New file.
22985 * m4/fileblocks.m4: New file.
22988 * m4/filemode.m4: New file.
22991 * m4/isdir.m4: New file.
22994 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
22995 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
22998 * m4/makepath.m4: New file.
23001 * m4/modechange.m4: New file.
23004 * m4/mountlist.m4: New file.
23005 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
23008 Module path-concat.
23009 * m4/path-concat.m4: New file.
23012 * m4/pathmax.m4: New file.
23015 * m4/same.m4: New file.
23018 * m4/save-cwd.m4: New file.
23021 * m4/savedir.m4: New file.
23024 * m4/xgetcwd.m4: New file.
23025 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
23028 * m4/xreadlink.m4: New file.
23031 * m4/safe-read.m4: New file.
23034 * m4/safe-write.m4: New file.
23037 * m4/closeout.m4: New file.
23039 Module stdio-safer.
23040 * m4/stdio-safer.m4: New file.
23043 * m4/getpass.m4: New file.
23046 * m4/getugroups.m4: New file.
23048 Module group-member.
23049 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
23050 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
23053 * m4/idcache.m4: New file.
23056 * m4/userspec.m4: New file.
23059 * m4/clock_time.m4: New file.
23060 * m4/gettime.m4: New file.
23063 * m4/settime.m4: New file.
23066 * m4/posixtm.m4: New file.
23068 Module gethostname.
23069 * m4/gethostname.m4: New file.
23072 * m4/canon-host.m4: New file.
23075 * m4/codeset.m4: New file, from gettext-0.11.5.
23076 * m4/gettext.m4: New file, from gettext-0.11.5.
23077 * m4/glibc21.m4: New file, from gettext-0.11.5.
23078 * m4/iconv.m4: New file, from gettext-0.11.5.
23079 * m4/intdiv0.m4: New file, from gettext-0.11.5.
23080 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
23081 * m4/inttypes.m4: New file, from gettext-0.11.5.
23082 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
23083 * m4/isc-posix.m4: New file, from gettext-0.11.5.
23084 * m4/lcmessage.m4: New file, from gettext-0.11.5.
23085 * m4/lib-ld.m4: New file, from gettext-0.11.5.
23086 * m4/lib-link.m4: New file, from gettext-0.11.5.
23087 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
23088 * m4/progtest.m4: New file, from gettext-0.11.5.
23089 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
23090 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
23091 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
23093 Module localcharset.
23094 * m4/localcharset.m4: New file.
23096 Module hard-locale.
23097 * m4/hard-locale.m4: New file.
23100 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
23102 * m4/mbrtowc.m4: Add comment.
23105 * m4/memcasecmp.m4: New file.
23108 * m4/memcoll.m4: New file.
23111 * m4/unicodeio.m4: New file.
23114 * m4/rpmatch.m4: New file.
23117 * m4/yesno.m4: New file.
23120 * m4/exitfail.m4: New file.
23123 * m4/c-stack.m4 (gl_C_STACK): New macro.
23124 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
23127 * m4/error.m4 (gl_ERROR): New macro.
23128 (jm_PREREQ_ERROR): Use onceonly macros.
23131 * m4/fatal.m4: New file.
23134 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
23135 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
23137 Module getpagesize.
23138 * m4/getpagesize.m4: New file.
23140 Module getusershell.
23141 * m4/getusershell.m4: New file.
23144 * m4/physmem.m4: New file.
23147 * m4/posixver.m4: New file.
23150 * m4/quotearg.m4: New file.
23153 * m4/quote.m4: New file.
23156 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
23159 * m4/sig2str.m4: New file.
23162 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
23164 * m4/intmax_t.m4: New file.
23165 * m4/d-type.m4: Indentation.
23166 * m4/jm-macros.m4: Update.
23167 * m4/prereq.m4 (jm_PREREQ): Update.
23168 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
23169 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
23170 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
23171 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
23172 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
23173 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
23174 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
23175 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
23176 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
23177 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
23178 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
23179 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
23180 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
23181 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
23182 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
23183 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
23184 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
23185 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
23186 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
23188 2002-12-24 Bruno Haible <bruno@clisp.org>
23190 * MODULES.txt: Update according to m4/ changes.
23193 * config.rpath: New file, from gettext-0.11.5.
23195 * modules/*: New module descriptions.
23196 * gnulib-tool: New file.
23197 * MODULES.html.sh: New file.
23199 2002-12-21 Karl Berry <karl@gnu.org>
23201 * doc/fdl.texi: update to version 1.2.
23203 2002-12-19 Karl Berry <karl@gnu.org>
23205 * config/config.guess: update from prep.
23207 2002-12-18 Bruno Haible <bruno@clisp.org>
23209 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
23210 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
23212 2002-12-17 Bruno Haible <bruno@clisp.org>
23214 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
23215 stdlib.h, string.h.
23217 2002-12-17 Bruno Haible <bruno@clisp.org>
23219 * lib/canon-host.c (strdup): Remove unused declaration.
23221 * lib/fsusage.c: Include full_read.h.
23222 (get_fs_usage): Use full_read instead of safe_read.
23224 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
23226 2002-12-12 Karl Berry <karl@gnu.org>
23228 * config/config.guess: update from prep.
23230 2002-12-11 Bruno Haible <bruno@clisp.org>
23232 * m4/setenv.m4: New file, from gettext-0.11.5.
23234 2002-12-11 Bruno Haible <bruno@clisp.org>
23236 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
23238 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
23241 2002-12-11 Bruno Haible <bruno@clisp.org>
23243 * setenv.c (alloca): Fall back to malloc.
23244 (freea): New macro.
23245 (setenv): Use freea() to free memory allocated with alloca().
23247 2002-11-13 Bruno Haible <bruno@clisp.org>
23249 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
23250 function declarations.
23251 * unsetenv.c (unsetenv): Likewise.
23253 2002-03-04 Bruno Haible <bruno@clisp.org>
23255 Portability to AIX 4.3.3.
23256 * unsetenv.c: New file, extracted from setenv.c.
23257 * setenv.c: Move the unsetenv() function to unsetenv.c.
23259 2001-12-20 Bruno Haible <bruno@clisp.org>
23261 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
23262 use malloc instead. For SunOS 4.
23264 2001-12-11 Bruno Haible <bruno@clisp.org>
23266 * setenv.c: Declare alloca.
23267 (compar_fn_t): New typedef.
23268 (KNOWN_VALUE, STORE_VALUE): Use it.
23270 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
23273 2002-12-10 Paul Eggert <eggert@twinsun.com>
23275 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
23276 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
23277 Choose values that are less likely to collide with system fnmatch
23279 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
23280 defined (e.g., a pure POSIX system).
23281 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
23282 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
23284 2002-12-06 Paul Eggert <eggert@twinsun.com>
23286 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
23287 a pain in practice to deal with generated m4 files. This change
23288 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
23290 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
23291 and jm-glibc-io.m4, as they are no longer a special case.
23292 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
23293 kludge and the auto-generation stuff. Check only whether the
23294 functions are declared, not whether they exist, since older hosts
23295 that don't declare the functions can't use the optimization anyway.
23297 2002-12-06 Jim Meyering <jim@meyering.net>
23299 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
23301 Merge in changes from libc's misc/error.c, in preparation
23302 for the merge of gnulib's changes back into libc.
23304 * lib/error.c (_): Define only if not already defined.
23305 Move definition to follow all #include directives.
23306 Include unlocked-io.h only if !_LIBC.
23307 [_LIBC]: Include <libio/libioP.h>.
23308 [USE_IN_LIBIO]: Include <libio/iolibio.h>
23309 (fflush): Tweak definition to use INTUSE.
23312 2002-12-05 Paul Eggert <eggert@twinsun.com>
23314 * lib/alloca.c [defined emacs]: Include "lisp.h".
23315 (xalloc_die) [defined emacs]: New macro.
23316 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
23317 [! defined emacs]: Include <xalloc.h>.
23318 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
23319 (pointer): Typedef to POINTER_TYPE *.
23320 (malloc): Remove decl; we now always use xmalloc.
23321 (alloca): Use old-style definition, since Emacs needs this.
23322 Check for arithmetic overflow when computing combined size.
23324 2002-12-04 Paul Eggert <eggert@twinsun.com>
23326 Do not generate unlocked-io.h automatically, since it's easier to
23327 maintain it by hand.
23329 * lib/unlocked-io.h: New file, from GNU diffutils,
23330 but with proper copyright notice and attribution.
23331 * lib/gen-uio: Remove.
23332 * lib/Makefile.am: Add copyright notice.
23333 (libfetish_a_SOURCES): Add unlocked-io.h.
23334 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
23335 (DISTCLEANFILES, io_functions): Remove macros.
23336 (EXTRA_DIST): Remove gen_uio.
23337 (unlocked-io.h): Remove rule.
23339 2002-12-04 Jim Meyering <jim@meyering.net>
23341 Reflect the fact that stat.c and lstat.c are no longer generated.
23342 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
23343 (DISTCLEANFILES): Likewise.
23344 (EXTRA_DIST): Likewise.
23345 (all_local): Don't depend on stat.c or lstat.c.
23346 (stat.c, lstat.c): Remove rules.
23347 (EXTRA_DIST): Remove xstat.in.
23349 * lib/xstat.in: Remove file. Contents moved into stat.c.
23350 * lib/stat.c: New file. Contents mostly from xstat.in.
23351 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
23352 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
23354 * lib/safe-read.c: Rework so that it may serve to define safe_write,
23356 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
23358 2002-12-03 Jim Meyering <jim@meyering.net>
23360 * lib/safe-read.c, safe-write.c: Change variable names and comments,
23361 but not semantics, to minimize the differences between these two files.
23362 (safe_read): Change comment to mention SAFE_READ_ERROR.
23364 * lib/safe-read.c (IS_EINTR): Define.
23365 (safe_read): Use IS_EINTR in place of in-function cpp directives.
23367 2002-12-02 Jim Meyering <jim@meyering.net>
23369 * lib/safe-read.c (EINTR): Define.
23370 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
23371 (INT_MAX): Provide fallback.
23372 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
23374 * lib/safe-read.h (SAFE_READ_ERROR): Define.
23376 2002-12-02 Bruno Haible <bruno@clisp.org>
23378 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
23379 Define, taken from safe-read.c.
23380 (INT_MAX): Provide fallback.
23381 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
23382 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
23384 * lib/safe-read.c (EINTR): Remove definition.
23385 (safe_read): Don't use EINTR if it is absent.
23387 2002-12-01 Jim Meyering <jim@meyering.net>
23389 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
23391 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
23393 2002-11-27 Paul Eggert <eggert@twinsun.com>
23395 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
23396 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
23397 with `if (! (value < limit)) abort ();', for readability.
23399 2002-11-26 Karl Berry <karl@gnu.org>
23401 * lib/strdup.c: copy from libc again, with jim's ok.
23402 * lib/.cppi-disable: re-add strdup.c
23404 2002-11-25 Karl Berry <karl@gnu.org>
23406 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
23407 instead of "strtol.c".
23409 2002-11-25 Karl Berry <karl@gnu.org>
23411 * config/install-sh: update from automake for variable quoting, $0 in
23414 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
23415 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
23418 2002-11-25 Jim Meyering <jim@meyering.net>
23420 * lib/mktime.c: Sync from libc, now that it has the latest fix.
23422 2002-11-24 Karl Berry <karl@gnu.org>
23424 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
23425 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
23427 2002-11-24 Jim Meyering <jim@meyering.net>
23429 Update from coreutils:
23431 * lib/mktime.c: Merge in changes from libc.
23433 Avoid a link-time failure on some Linux systems.
23434 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
23436 (__mon_yday): Declare with the STATIC attribute.
23437 (__mktime_internal): Likewise.
23438 Based on a report from Greg Schafer.
23440 2002-11-23 Jim Meyering <jim@meyering.net>
23442 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
23443 Use `unsigned', not `int', as type of index.
23445 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
23447 * lib/fsusage.c: Remove unneeded parentheses around operands of
23450 2002-11-22 Paul Eggert <eggert@twinsun.com>
23452 * lib/quotearg.h: Allow multiple inclusion by surrounding with
23453 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
23454 so that we can be included first.
23455 (PARAMS): Remove; we now assume C89 or later. All uses removed.
23456 * lib/quotearg.c: Include quotearg.h immediately after config.h.
23457 No need to include stddef.h or sys/types.h any more.
23458 Surround local include files with "", not "<>".
23459 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
23460 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
23461 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
23462 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
23463 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
23464 (ISPRINT): Remove; no longer needed now that we assume C89.
23466 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
23469 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
23470 quotearg_char): Use SIZE_MAX rather than
23471 (size_t) -1 when we are talking about "infinity".
23473 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
23475 2002-11-22 Paul Eggert <eggert@twinsun.com>
23477 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
23478 hint that one should use `if (! x) abort ();' rather than `assert
23479 (x);', and anyway it's one less thing to worry about configuring.
23480 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
23481 hash_rehash, hash_insert): Use abort rather than assert.
23483 2002-11-22 Bruno Haible <bruno@clisp.org>
23485 * lib/safe-read.h: Assume C89. Add comments.
23486 (safe_read): Change return type to size_t.
23487 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
23488 byte counts > SSIZE_MAX correctly.
23489 * lib/safe-write.h: New file.
23490 * lib/safe-write.c: New file.
23491 * lib/full-read.h: New file.
23492 * lib/full-read.c: New file.
23493 * lib/full-write.h: Assume C89. Add comments.
23494 * lib/full-write.c: Include safe-write.h.
23495 (full_write): Rewritten to use safe_write.
23496 Suggested by Jim Meyering and Paul Eggert.
23498 2002-11-21 Jim Meyering <jim@meyering.net>
23500 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
23502 Merge in changes from the coreutils.
23504 2002-09-25 Paul Eggert <eggert@twinsun.com>
23505 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
23507 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
23508 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
23509 int. Work more efficiently if X is the same width as uintmax_t.
23510 Do not compare X to -1, to avoid bogus compiler warning.
23511 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
23512 Don't assume that f_frsize and f_bsize are the same type.
23514 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
23515 warning on FreeBSD.
23517 * lib/makepath.c (make_path): Restore umask *before* creating the final
23519 (make_path): Minor reformatting.
23521 * lib/xmalloc.c: Adjust to work with new autoconf macros,
23522 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
23523 HAVE_MALLOC/HAVE_REALLOC.
23525 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
23526 dummy ones. At least on GNU/Linux systems, `auto' means something
23528 From Michael Stone.
23530 2002-11-21 Bruno Haible <bruno@clisp.org>
23532 Remove case insensitive option matching.
23533 * lib/argmatch.h (argcasematch): Remove declaration.
23534 (ARGCASEMATCH): Remove macro.
23535 (__xargmatch_internal): Remove case_sensitive argument.
23536 (XARGMATCH): Update.
23537 (XARGCASEMATCH): Remove macro.
23538 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
23539 case_sensitive argument.
23540 (argcasematch): Remove function.
23541 (__xargmatch_internal): Remove case_sensitive argument.
23542 (main): Use XARGMATCH instead of XARGCASEMATCH.
23544 * lib/xmalloc.c: Change compile-time error message. Add comment about
23545 required autoconf version.
23547 2002-11-20 Paul Eggert <eggert@twinsun.com>
23549 Merge argmatch cleanups from Bison. Assume C89.
23551 * lib/argmatch.c: Include config.h here, not in argmatch.h.
23552 Include stdlib.h, for EXIT_FAILURE.
23553 Always include <string.h>, since we assume C89.
23554 (EXIT_FAILURE): Remove pre-C89 bug workaround.
23555 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
23556 Include <stddef.h> instead, since it's all we need for size_t.
23557 (PARAMS): Remove. All uses removed.
23558 (ARRAY_CARDINALITY): Do not bother to #undef.
23559 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
23560 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
23561 Remove unnecessary parentheses.
23562 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
23563 Insert necessary parentheses.
23564 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
23565 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
23567 2002-11-19 Bruno Haible <bruno@clisp.org>
23569 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
23570 * lib/mbswidth.h: Include <stddef.h>, for size_t.
23572 * lib/mbswidth.h (PARAMS): Remove macro.
23573 (mbswidth, mbsnwidth): Use ANSI C function declarations.
23574 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
23576 * lib/gcd.h (PARAMS): Remove macro.
23577 (gcd): Use ANSI C function declarations.
23578 * lib/gcd.c (gcd): Likewise.
23580 2002-11-15 Bruno Haible <bruno@clisp.org>
23582 * lib/strcspn.c: Include <stddef.h>.
23583 (strcspn): Use ANSI C function declaration. Change return type to
23585 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
23586 (strpbrk): Use NULL.
23587 * lib/strpbrk.h (PARAMS): Remove macro.
23588 (strpbrk): Use ANSI C function declaration.
23589 * lib/strstr.c: Don't include <sys/types.h>.
23590 * lib/strstr.h (PARAMS): Remove macro.
23591 (strstr): Use ANSI C function declarations.
23593 2002-11-14 Karl Berry <karl@gnu.org>
23595 * config/mkinstalldirs: `do' on separate line, instead of
23598 2002-11-06 Bruno Haible <bruno@clisp.org>
23600 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
23601 * lib/gcd.c (gcd): Likewise.
23603 2002-11-05 Bruno Haible <bruno@clisp.org>
23605 * lib/gcd.h: New file, from gettext-0.11.5.
23606 * lib/gcd.c: New file, from gettext-0.11.5.
23608 2002-11-05 Bruno Haible <bruno@clisp.org>
23610 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
23611 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
23612 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
23613 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
23615 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
23617 * lib/makepath.c: Include gettext.h instead of <locale.h> and
23620 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
23621 * lib/human.c: Include gettext.h instead of <libintl.h>.
23622 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
23623 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
23624 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
23625 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
23626 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
23627 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
23628 (textdomain): Remove definition.
23629 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
23631 * lib/long-options.c: Remove include of <libintl.h> and definition of
23633 * lib/same.c: Remove include of <libintl.h> and definition of _.
23635 2002-11-04 Owen Taylor <otaylor@redhat.com>
23637 * lib/config.charset: A few additions for Solaris.
23639 2002-11-04 Bruno Haible <haible@clisp.cons.org>
23641 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
23642 * lib/localcharset.c (locale_charset): Declare as extern "C".
23644 2002-11-04 Bruno Haible <haible@clisp.cons.org>
23646 * lib/config.charset: msdos in uk_UA uses CP1125.
23648 2002-11-04 Bruno Haible <bruno@clisp.org>
23650 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
23651 * lib/strcase.h: New file, from GNU gettext-0.11.5.
23652 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
23653 * lib/strstr.h: New file, from GNU gettext-0.11.5.
23654 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
23656 2002-11-04 Bruno Haible <bruno@clisp.org>
23658 * lib/localcharset.c (locale_charset): Don't return an empty string.
23660 2002-11-04 Bruno Haible <bruno@clisp.org>
23662 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
23665 2002-11-04 Bruno Haible <bruno@clisp.org>
23667 * lib/config.charset: Update for newest glibc. Add canonical names
23668 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
23670 2002-11-04 Bruno Haible <bruno@clisp.org>
23672 * lib/config.charset: Add support for NetBSD.
23674 2002-11-04 Bruno Haible <bruno@clisp.org>
23676 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
23678 2002-11-01 Bruno Haible <bruno@clisp.org>
23680 * configure.in: Add AC_CONFIG_AUX_DIR call.
23681 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
23683 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
23685 2002-09-28 Karl Berry <karl@gnu.org>
23687 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
23688 installed automake until the next release, since changes have been
23691 2002-09-25 Karl Berry <karl@gnu.org>
23693 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
23694 * lib/getopt*: copy from libc/posix.
23695 * lib/gettext.h: copy from gettext.
23696 * lib/.cppi-disable: add strdup.c, gettext.h.
23698 2002-09-25 Karl Berry <karl@gnu.org>
23700 * config/srclist.txt: enable gettext.h check.
23701 * config/config.{guess,sub}: update from prep.
23702 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
23703 from automake 1.6.3.
23706 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
23708 * regex.c (PATFETCH): Remove the translating fetch.
23709 (PATFETCH_RAW): Rename to PATFETCH.
23710 (set_image_of_range): New fun.
23711 (SET_RANGE_TABLE_WORK_AREA): Use it.
23712 (regex_compile): Don't translate the pattern chars so eagerly.
23713 Only do it when inserting an `exactn' bytecode or when handling
23715 (mutually_exclusive_p): Avoid empty statement.
23717 2002-07-06 Jim Meyering <meyering@lucent.com>
23719 * m4/README: Don't mention Makefile.am.in.
23720 Outline how I've tested changes to .m4 files. Yep, it's a pain.
23722 2002-07-01 Jim Meyering <meyering@lucent.com>
23724 * lib/c-stack.c: Include sys/time.h.
23725 From Volker Borchert.
23727 2002-06-26 Paul Eggert <eggert@twinsun.com>
23729 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
23731 2002-06-26 Paul Eggert <eggert@twinsun.com>
23733 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
23734 New macro. Use it uniformly instead of
23735 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
23736 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
23737 reported by Vin Shelton.
23739 2002-06-22 Paul Eggert <eggert@twinsun.com>
23741 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
23742 Do not assume SA_SIGINFO behavior.
23743 Bug reported by Jim Meyering on NetBSD 1.5.2.
23745 2002-06-22 Jim Meyering <meyering@lucent.com>
23747 * m4/c-stack.m4: New file, from diffutils-2.8.2.
23748 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
23750 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
23751 now that configure.ac uses AC_GNU_SOURCE.
23752 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
23753 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
23755 Update to latest tools. Suggestions from Paul Eggert.
23756 * m4/stdbool.m4: New file, from diffutils-2.8.2.
23757 * m4/gnu-source.m4: Update from diffutils-2.8.2.
23758 * m4/fnmatch.m4: Likewise.
23759 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
23760 to AC_HEADER_STDBOOL
23762 2002-06-22 Jim Meyering <meyering@lucent.com>
23764 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
23765 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
23767 2002-06-22 Jim Meyering <meyering@lucent.com>
23769 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
23771 * lib/exitfail.c, exitfail.h: Likewise.
23772 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
23774 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
23776 (EXTRA_DIST): Add fnmatch_loop.c.
23777 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
23779 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
23780 * lib/fnmatch.c: Update from diffutils-2.8.2.
23781 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
23782 * lib/fnmatch.h: Remove file.
23784 2002-06-21 Jim Meyering <meyering@lucent.com>
23786 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
23787 * m4/mbrtowc.m4: Likewise.
23789 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
23790 * m4/mbswidth.m4: Reflect name change:
23791 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
23792 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
23794 * m4/lib-link.m4: Update from gettext-0.11.2.
23795 * m4/gettext.m4: Likewise.
23797 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
23798 From Alfred M. Szmidt.
23800 2002-06-18 Paul Eggert <eggert@twinsun.com>
23802 * lib/file-type.h: Report an error if neither S_ISREG nor
23803 S_IFREG is defined, instead of using a test specific to glibc
23804 2.2. This should be safe, since POSIX requires S_ISREG and
23805 Unix Version 7 had S_IFREG. We don't need to check for
23806 <sys/types.h> since we don't use any symbols that it defines.
23808 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
23810 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
23811 $@-t, so that each temporary file name is unique and valid in the first
23812 8 characters, for operation under DOS.
23814 2002-06-15 Paul Eggert <eggert@twinsun.com>
23816 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
23818 2002-06-15 Jim Meyering <meyering@lucent.com>
23820 Work even with DJGPP 2.03, which lacks support for symlinks.
23822 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
23824 * lib/lchown.c (S_ISLNK): Likewise.
23826 2002-06-15 Jim Meyering <meyering@lucent.com>
23828 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
23829 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
23830 have been included before this file.
23832 2002-06-14 Jim Meyering <meyering@lucent.com>
23834 * lib/file-type.h: Use the version from diffutils-2.8.2.
23835 * lib/file-type.c: Likewise.
23837 2002-06-07 Jim Meyering <meyering@lucent.com>
23839 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
23840 They're needed at least for NetBSD 1.5.2.
23841 ($statxfs_includes): Include those same headers.
23842 ($statxfs_includes): Include sys/vfs.h if available.
23843 ($statxfs_includes): Likewise for sys/statvfs.h.
23844 Check for the following members in both structs statfs and statvfs:
23845 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
23847 2002-06-01 Jim Meyering <meyering@lucent.com>
23849 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
23850 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
23852 2002-05-28 Jim Meyering <meyering@lucent.com>
23854 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
23855 Reported by Volker Borchert.
23857 2002-05-27 Jim Meyering <meyering@lucent.com>
23859 Fix a problem seen only on nonconforming systems whereby ls.c's
23860 use of localtime, and then of gettimeofday would cause trouble:
23861 the localtime call used to initialize rpl_gettimeofday's save
23862 mechanism would clobber ls's current local time information so
23863 that in any long listing the first file would always be listed
23864 with date 1970-01-01. Analysis by Volker Borchert.
23866 * lib/gettimeofday.c (localtime): Undefine.
23867 (rpl_localtime): New function.
23869 2002-05-27 Jim Meyering <meyering@lucent.com>
23871 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
23874 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
23875 use the replacement function; it wouldn't resolve at link time.
23876 Reported by Volker Borchert.
23878 2002-05-22 Jim Meyering <meyering@lucent.com>
23880 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
23882 * lib/file-type.h: New file.
23883 * lib/file-type.c (file_type): New file/function. Extracted from
23886 2002-04-30 Jim Meyering <meyering@lucent.com>
23888 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
23890 2002-04-29 Paul Eggert <eggert@twinsun.com>
23892 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
23894 2002-04-29 Paul Eggert <eggert@twinsun.com>
23896 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
23897 Do not check for alloca.h (no longer used) or stdbool.h (was never
23898 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
23900 2002-04-29 Paul Eggert <eggert@twinsun.com>
23902 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
23904 2002-04-29 Jim Meyering <meyering@lucent.com>
23906 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
23907 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
23908 Use AC_FUNC_STRNLEN here instead.
23910 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
23911 With autoconf-2.53a, it's part of AC_PROG_CC.
23913 2002-04-28 Paul Eggert <eggert@twinsun.com>
23915 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
23916 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
23918 2002-04-28 Paul Eggert <eggert@twinsun.com>
23920 * lib/sig2str.h, lib/sig2str.c: New files.
23921 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
23923 2002-04-28 Paul Eggert <eggert@twinsun.com>
23925 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
23926 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
23927 of 127, since 64 is the largest conceivable number for ancient
23929 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
23931 2002-04-28 Jim Meyering <meyering@lucent.com>
23933 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
23935 2002-04-24 Jim Meyering <meyering@lucent.com>
23937 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
23938 (jm_PREREQ): Use it.
23940 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
23941 mach/mach.h fcntl.h.
23942 Check for this function: setlocale.
23944 2002-04-24 Jim Meyering <meyering@lucent.com>
23946 * lib/gettext.h: New file, from Gettext.
23947 * lib/Makefile.am (INCLUDES): Remove -I../intl.
23948 (libfetish_a_SOURCES): Add gettext.h.
23950 2002-04-16 Jim Meyering <meyering@lucent.com>
23952 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
23953 ut_pid, ut_id, ut_exit.
23955 2002-04-16 Jim Meyering <meyering@lucent.com>
23957 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
23958 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
23959 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
23961 2002-04-12 Jim Meyering <meyering@lucent.com>
23963 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
23964 now-bogus check for f_type in sys/mount.h. Instead, just test for the
23965 existence of the getmntinfo function. Needed for Darwin 5.3.
23967 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
23968 This is necessary at least on Darwin 5.3.
23970 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
23971 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
23972 strnlen.o in the library, and that makes some versions of ranlib
23975 2002-04-12 Jim Meyering <meyering@lucent.com>
23977 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
23979 2002-04-09 Jim Meyering <meyering@lucent.com>
23981 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
23982 to be more precise. Rather than saying we're checking whether the
23983 function `works', say what we're testing.
23984 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
23985 Reported by Bruno Haible.
23987 2002-03-10 Jim Meyering <meyering@lucent.com>
23989 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
23990 Suggestion from Santiago Vila.
23992 2002-03-08 Jim Meyering <meyering@lucent.com>
23994 * lib/rename.c: Mention that this wrapper is needed also on
23995 mips-dec-ultrix4.4 systems.
23997 2002-03-02 Jim Meyering <meyering@lucent.com>
23999 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
24000 not HAVE_CLOCK_SETTIME.
24002 2002-02-27 Paul Eggert <eggert@twinsun.com>
24004 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
24005 Check for clock_settime.
24007 2002-02-27 Paul Eggert <eggert@twinsun.com>
24009 * lib/nanosleep.h: Rename to....
24010 * lib/timespec.h: New name for nanosleep.h. All uses changed.
24012 * lib/gettime.c: New file.
24013 * lib/settime.c: New file.
24014 * lib/stime.c: Remove.
24016 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
24017 timespec.h. Remove nanosleep.h.
24019 2002-02-25 Paul Eggert <eggert@twinsun.com>
24021 * m4/acl.m4: New file.
24022 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
24023 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
24025 2002-02-25 Paul Eggert <eggert@twinsun.com>
24027 * lib/acl.c, lib/acl.h: New files.
24028 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
24030 2002-02-24 Jim Meyering <meyering@lucent.com>
24032 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
24033 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
24034 cause trouble. Reported by Nelson Beebe.
24036 2002-02-23 Paul Eggert <eggert@twinsun.com>
24038 * lib/path-concat.c (xpath_concat): Reorder code to pacify
24039 compilers that don't know that xalloc_die never returns.
24041 2002-02-20 Jim Meyering <meyering@lucent.com>
24043 * lib/getdate.c: Regenerate using bison-1.33.
24045 2002-02-17 Jim Meyering <meyering@lucent.com>
24047 * config/config.guess (main): Don't use `head -1'; it's no longer
24048 portable. Use `sed 1q' instead.
24050 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
24052 * m4/codeset.m4: Upgrade to gettext-0.11.
24053 * m4/gettext.m4: Upgrade to gettext-0.11.
24054 * m4/glibc21.m4: Upgrade to gettext-0.11.
24055 * m4/iconv.m4: Upgrade to gettext-0.11.
24056 * m4/isc-posix.m4: Upgrade to gettext-0.11.
24057 * m4/lcmessage.m4: Upgrade to gettext-0.11.
24058 * m4/lib-ld.m4: New file, from gettext-0.11.
24059 * m4/lib-link.m4: New file, from gettext-0.11.
24060 * m4/lib-prefix.m4: New file, from gettext-0.11.
24061 * m4/progtest.m4: Upgrade to gettext-0.11.
24063 2002-02-15 Paul Eggert <eggert@twinsun.com>
24065 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
24066 (jm_PREREQ): Use it.
24068 2002-02-15 Paul Eggert <eggert@twinsun.com>
24070 * lib/posixver.c, lib/posixver.h: New files.
24071 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
24073 2002-02-02 Paul Eggert <eggert@twinsun.com>
24074 Bruno Haible <bruno@clisp.org>
24076 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
24077 (fwrite_success_callback): New declaration.
24078 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
24079 print_unicode_char. Call failure callback instead of error.
24080 (fwrite_success_callback): New function.
24081 (exit_failure_callback): New function.
24082 (fallback_failure_callback): New function.
24083 (print_unicode_char): Call unicode_to_mb.
24085 2002-01-26 Jim Meyering <meyering@lucent.com>
24087 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
24088 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
24090 2002-01-26 Jim Meyering <meyering@lucent.com>
24092 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
24094 2002-01-22 Paul Eggert <eggert@twinsun.com>
24096 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
24098 2002-01-22 Jim Meyering <meyering@lucent.com>
24100 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
24101 Otherwise, some versions of automake would omit the rule that makes
24102 Makefile from Makefile.in.
24104 2002-01-21 Paul Eggert <eggert@twinsun.com>
24106 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
24107 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
24108 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
24109 (memcoll): Set errno to zero if there is no error.
24111 * lib/quotearg.c (quotearg_buffer_restyled):
24112 Fix bug with quoting buffers containing NUL when backslashing escapes.
24113 This bug was exposed by the other changes in this patch.
24114 (quotearg_n_options): New arg ARGSIZE.
24115 All callers changed.
24116 (quoting_options_from_style): New function.
24117 (quotearg_n_style): Use it.
24118 (quotearg_n_style_mem): New function.
24120 * lib/quotearg.h (quotearg_n_style_mem): New function.
24122 2002-01-19 Jim Meyering <meyering@lucent.com>
24124 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
24125 Remove useless quotes: DF_PROG="df".
24126 * m4/strnlen.m4: New file.
24128 2002-01-16 Paul Eggert <eggert@twinsun.com>
24130 * lib/backupfile.c (ISDIGIT): Comment fix.
24131 * lib/getdate.y (ISDIGIT): Likewise.
24132 * lib/posixtm.c (ISDIGIT, year): Likewise.
24133 * lib/strverscmp.c (ISDIGIT): Likewise.
24134 * lib/userspec.c (ISDIGIT): Likewise.
24136 2002-01-16 Jim Meyering <meyering@lucent.com>
24138 * lib/getdate.y: Add three semicolons, each just before a closing
24139 brace. Bison (as of version 1.31) no longer papers over that mistake.
24141 2002-01-05 Jim Meyering <meyering@lucent.com>
24143 * lib/version-etc.c (version_etc_copyright): Update copyright year.
24145 2001-12-19 Paul Eggert <eggert@twinsun.com>
24147 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
24148 not silently exit merely because the output buffer happens to
24149 have nothing pending.
24151 2001-12-18 Paul Eggert <eggert@twinsun.com>
24153 See the big note in ../ChangeLog.
24154 * lib/human.c (suffixes): Prefer K to k for 1024.
24155 (generate_suffix_backwards): New function.
24156 (human_readable_inexact): Use it.
24157 * lib/xstrtol.c (__xstrtol): If there is no number but there
24158 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
24159 Accept 'K' as well as 'k'.
24161 2001-12-15 Jim Meyering <meyering@lucent.com>
24163 * lib/regex.h (__restrict_arr): Update from libc.
24165 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
24166 as `remote' if the name starts with `//'. Suggested by Michael Stone.
24169 2001-12-14 Jim Meyering <meyering@lucent.com>
24171 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
24172 Suggestion from Bruno Haible.
24174 2001-12-10 Jim Meyering <meyering@lucent.com>
24176 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
24177 xrealloc, Instead, include "xalloc.h".
24178 (initbuffer): Don't cast xmalloc return value to char*.
24179 (readline): Reword comment.
24180 Don't cast xrealloc return value to char*
24181 Return NULL, not 0.
24183 2001-12-09 Jim Meyering <meyering@lucent.com>
24185 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
24186 about `signed and unsigned type in conditional expression'.
24187 * lib/posixtm.c (posix_time_parse): Likewise.
24189 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
24191 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
24192 to avoid a pedantic warning.
24194 * lib/getstr.c: Don't include assert.h.
24195 (getstr): Remove warning-evoking assertions.
24196 Return -1 if offset parameter is out of bounds.
24197 Change the type of a local from int to size_t.
24199 * lib/strftime.c (my_strftime_localtime_r): Include this function
24200 definition in the `#if ! HAVE_TM_GMTOFF' block.
24202 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
24203 Include xalloc.h instead.
24205 2001-12-02 Jim Meyering <meyering@lucent.com>
24207 * lib/tempname.c: Don't declare getenv, thus reverting the change of
24208 2001-11-18. It's no longer necessary, now that stdlib.h is always
24211 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
24212 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
24214 2001-11-30 Akim Demaille <akim@epita.fr>
24216 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
24217 before being defined.
24219 2001-11-27 Paul Eggert <eggert@twinsun.com>
24221 * lib/quotearg.h (quotearg_n, quotearg_n_style):
24222 First arg is int, not unsigned.
24223 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
24224 (SIZE_MAX, UINT_MAX): New macros.
24225 (quotearg_n_options): Abort if N is negative.
24226 Avoid overflow check on hosts where size_t is 64 bits and int
24227 is 32 bits, as overflow is impossible there.
24228 Fix off-by-one typo that caused unnecessary reallocation.
24230 2001-11-27 Jim Meyering <meyering@lucent.com>
24232 * lib/tempname.c: Merge with version from libc.
24233 * lib/regex.c: Likewise.
24235 * lib/tempname.c: Include stdlib.h unconditionally. On some old
24236 systems for which STDC_HEADERS is 0, it was not included, resulting in
24237 a warning about an integer-to-pointer conversion problem with getenv.
24238 Reported by Volker Borchert.
24240 2001-11-26 Jim Meyering <meyering@lucent.com>
24242 * lib/gtod.h: Remove file.
24243 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
24244 * lib/gettimeofday.c: Don't include gtod.h.
24245 (GTOD_init): Remove function.
24246 (rpl_gettimeofday): Do its job here instead, rather than aborting.
24247 Suggestion from Volker Borchert.
24249 2001-11-23 Jim Meyering <meyering@lucent.com>
24251 * lib/hash.h (struct hash_table): Don't define here. Merely declare
24253 * lib/hash.c (struct hash_table): Define it here instead.
24255 2001-11-22 Jim Meyering <meyering@lucent.com>
24257 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
24259 2001-11-20 Jim Meyering <meyering@lucent.com>
24261 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
24262 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
24264 2001-11-19 Jim Meyering <meyering@lucent.com>
24266 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
24267 directory. Use "conftestXXXXXX" as the template.
24268 Suggestion from Paul Eggert.
24270 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
24271 immediately, so the test doesn't mistakenly hit the max-open-files
24274 2001-11-18 Paul Eggert <eggert@twinsun.com>
24276 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
24277 (TEMPORARIES): New macro.
24278 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
24279 removes an artificial limitation (e.g. HP-UX 10.20, where
24282 2001-11-18 Jim Meyering <meyering@lucent.com>
24284 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
24286 2001-11-18 Jim Meyering <meyering@lucent.com>
24288 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
24291 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
24292 files will be created before anything else.
24294 2001-11-17 Paul Eggert <eggert@twinsun.com>
24296 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
24297 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
24299 2001-11-17 Jim Meyering <meyering@lucent.com>
24301 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
24302 Prompted by a report from Bob Proulx.
24304 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
24305 Instead, require UTILS_FUNC_MKSTEMP.
24307 2001-11-17 Jim Meyering <meyering@lucent.com>
24309 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
24310 Now, that's done as part of AC_FUNC_STRTOD.
24312 2001-11-17 Jim Meyering <meyering@lucent.com>
24314 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
24315 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
24316 rather than group writable. Patch by Juan F. Codagnone.
24318 * lib/readtokens.c: Remove explicit declarations of xmalloc and
24319 xrealloc, Instead, include "xalloc.h".
24321 * lib/mountlist.c: Include unlocked-io.h after all system headers.
24322 Remove explicit declarations of xmalloc, xrealloc,
24323 and xstrdup. Instead, include "xalloc.h".
24325 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
24327 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
24329 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
24331 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
24332 Reported by Padraig Brady.
24334 * lib/mkstemp.c: #undef mkstemp.
24336 (rpl_mkstemp): Rename from mkstemp.
24339 2001-11-16 Jim Meyering <meyering@lucent.com>
24341 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
24342 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
24343 determine the amount of total physical memory, use pstat_getstatic.
24344 HPUX-11 doesn't define _SC_PHYS_PAGES.
24345 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
24346 If sysconf couldn't be used to determine the amount of available
24347 physical memory, use both pstat_getstatic and pstat_getdynamic.
24348 Based on a patch from Bob Proulx.
24350 2001-11-10 Jim Meyering <meyering@lucent.com>
24352 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
24353 (jm_PREREQ): Use it.
24355 2001-11-09 Jim Meyering <meyering@lucent.com>
24357 * m4/jm-macros.m4: Require autoconf-2.52f.
24358 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
24359 Use these AC_-prefixed names, not the AM_-prefixed ones.
24361 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
24363 2001-11-05 Jim Meyering <meyering@lucent.com>
24365 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
24367 2001-11-04 Jim Meyering <meyering@lucent.com>
24369 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
24372 2001-11-03 Jim Meyering <meyering@lucent.com>
24374 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
24377 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
24378 know the name of the variable in the macro definition.
24380 2001-11-03 Jim Meyering <meyering@lucent.com>
24382 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
24383 in argmatch_to_argument call.
24385 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
24388 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
24389 e.g., a fault due to an attempt to free a NULL pointer.
24391 2001-11-01 Jim Meyering <meyering@lucent.com>
24393 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
24394 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
24396 2001-11-01 Jim Meyering <meyering@lucent.com>
24398 * lib/dirfd.c, lib/dirfd.h: New files.
24399 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
24401 * lib/hash.c (hash_print) [TESTING]: Clean up.
24403 2001-10-22 Paul Eggert <eggert@twinsun.com>
24405 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
24406 to avoid a warning if -Wall.
24408 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
24411 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
24412 (per RMS's instructions, this is now the canonical source)
24413 * lgpl/, gpl/: New directories.
24415 2001-10-21 Paul Eggert <eggert@twinsun.com>
24417 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
24419 2001-10-21 Jim Meyering <meyering@lucent.com>
24421 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
24422 this code would end up calling gettext even in packages built
24423 with --disable-nls.
24424 * lib/getopt.c (_): Likewise.
24425 * lib/regex.c (_): Likewise.
24427 2001-10-20 Paul Eggert <eggert@twinsun.com>
24429 * m4/error.m4 (jm_PREREQ_ERROR):
24430 Do not invoke AC_CHECK_FUNCS with strerror_r, as
24431 AC_FUNC_STRERROR_R does that.
24432 Check for strerror declaration.
24434 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
24435 are supposed to have them these days.
24436 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
24437 Merge changes from latest Autoconf CVS.
24438 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
24439 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
24440 POSIX decided to standardize on the int flavor of strerror_r.
24442 2001-10-20 Paul Eggert <eggert@twinsun.com>
24444 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
24445 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
24446 Use strerror_r that is only a macro, even if it is not a function.
24447 (strerror): Check for HAVE_DECL_STRERROR before declaring.
24448 (private_strerror): Use prototypes, not old-style function definition.
24449 (print_errno_message): New function.
24450 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
24451 char*-flavored one.
24452 (error_tail, error, error_at_line): Use it.
24454 2001-10-11 Jim Meyering <meyering@lucent.com>
24456 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
24457 and quote_n (1, ... to avoid clobbering a buffer.
24459 2001-10-05 Jim Meyering <meyering@lucent.com>
24461 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
24463 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
24464 * lib/hash-pjw.h: New file.
24466 2001-09-30 Jim Meyering <meyering@lucent.com>
24468 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
24469 `struct fsstat' has the `f_fstypename' member.
24470 Use that to define FS_TYPE, which is now used to make
24471 the getfsstat link test tighter.
24473 2001-09-30 Jim Meyering <meyering@lucent.com>
24475 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
24476 Include <sys/ucred.h>, for Apple Darwin.
24477 Include sys/mount.h and sys/fs_types.h only if available.
24479 (read_filesystem_list): Use FS_TYPE.
24481 2001-09-29 Paul Eggert <eggert@twinsun.com>
24483 * lib/exclude.c (excluded_filename): 0 -> false, since it's
24486 2001-09-29 Jim Meyering <meyering@lucent.com>
24488 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
24489 [one-argument getmntent function]): Include stdio.h before mntent.h.
24490 SunOS 4.1.x needs it for the declaration of `FILE'.
24491 Patch by Volker Borchert.
24493 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
24494 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
24495 sys/fs_types.h, and make the link-test for getfsstat guard #include
24496 directives with appropriate #if HAVE_*_H tests so that we can
24497 detect getfsstat on Apple Darwin1.3.7 systems.
24498 Reported by Nelson Beebe.
24499 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
24501 2001-09-28 Paul Eggert <eggert@twinsun.com>
24503 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
24504 #defines strtoimax. Also treat the other strto* functions
24507 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
24508 Check for strtoul and strtoumax,
24509 as those declarations are made even in the signed case.
24510 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
24511 Likewise, for strtol and strtoimax.
24513 2001-09-28 Paul Eggert <eggert@twinsun.com>
24515 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
24516 #defines strtoimax. Also treat the other strto* functions
24519 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
24520 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
24521 (strtoimax, strtoumax): Do not declare if already defined as a macro.
24523 2001-09-26 Jim Meyering <meyering@lucent.com>
24525 Most macros in unlocked-io.h had the wrong number of arguments.
24526 * lib/gen-uio: New script.
24527 (USE_UNLOCKED_IO): Define to 1 if not already defined.
24528 * lib/unlocked-io.hin: Remove file.
24529 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
24530 rather than trying to embed it here.
24531 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
24532 Reported by Padraig Brady.
24534 2001-09-25 Volker Borchert <bt@teknon.de>
24536 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
24539 2001-09-24 Jim Meyering <meyering@lucent.com>
24541 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
24543 2001-09-23 Jim Meyering <meyering@lucent.com>
24545 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
24546 instead of the mere test for existence of mntent.h. The latter
24547 would get a false-positive on AIX 3.4 systems.
24548 In the outer getmntent if-block, don't die if neither of the getmntent
24549 tests succeeds. Instead, just fall through and continue with the
24552 2001-09-23 Jim Meyering <meyering@lucent.com>
24554 * lib/mountlist.c: Remove useless parentheses in #if directives.
24555 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
24556 the deprecated MOUNTED symbol is no longer defined in mntent.h.
24558 2001-09-22 Jim Meyering <meyering@lucent.com>
24560 * m4/gettext.m4: New file. From gettext.
24561 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
24562 * m4/progtest.m4: Likewise
24563 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
24564 * m4/glibc21.m4: Likewise.
24566 * m4/libintl.m4: Remove. No longer used.
24568 2001-09-22 Jim Meyering <meyering@lucent.com>
24570 * lib/localcharset.c: Update from latest gettext.
24571 * lib/config.charset: Likewise.
24573 2001-09-20 Jim Meyering <meyering@lucent.com>
24575 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
24577 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
24580 2001-09-20 Jim Meyering <meyering@lucent.com>
24582 * lib/xstrtol.c (strtoimax): Guard declaration with
24583 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
24584 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
24585 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
24586 (strtoumax): Likewise, for completeness (it wasn't necessary).
24588 2001-09-17 Paul Eggert <eggert@twinsun.com>
24590 * lib/strtoimax.c (HAVE_LONG_LONG):
24591 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
24592 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
24593 to work around bug in IBM C compiler.
24595 2001-09-17 Jim Meyering <meyering@lucent.com>
24597 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
24598 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
24599 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
24600 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
24601 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
24602 whenever the right hand side need not be expanded by the shell.
24604 2001-09-16 Paul Eggert <eggert@twinsun.com>
24606 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
24607 library. It's not correct, as some older glibcs are buggy.
24608 fnmatch wasn't fixed until glibc 2.2.
24610 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
24611 special shell magic here.
24613 2001-09-16 Jim Meyering <meyering@lucent.com>
24615 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
24616 * m4/jm-macros.m4: Require it.
24618 2001-09-16 Jim Meyering <meyering@lucent.com>
24620 * lib/mkdir.c: New file.
24622 2001-09-15 Jim Meyering <meyering@lucent.com>
24624 * m4/jm-macros.m4: Check for help2man.
24626 2001-09-11 Jim Meyering <meyering@lucent.com>
24628 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
24629 The body, by Paul Eggert, was moved here from configure.in.
24630 * m4/jm-macros.m4: Require UTILS_HOST_OS.
24632 2001-09-04 Paul Eggert <eggert@twinsun.com>
24634 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
24635 (jm_PREREQ): Use it.
24637 2001-09-04 Paul Eggert <eggert@twinsun.com>
24639 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
24640 Use ssize_t, not int, to store result of readlink.
24641 Check for ssize_t overflow as well as size_t overflow,
24642 as POSIX says the result of readlink is implementation-defined
24643 when ssize_t overflows.
24644 Remove unnecessary cast to char*.
24645 Use free+malloc instead of realloc, as the storage doesn't need
24646 to be preserved and it's clearer and can be more efficient that way.
24647 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
24648 * lib/xreadlink.h (xreadlink): Update prototype.
24650 2001-09-04 Paul Eggert <eggert@twinsun.com>
24652 * lib/xgetcwd.c: Revert some of the previous change; intead,
24653 fix the HAVE_GETCWD_NULL code to behave more like the
24654 !HAVE_GETCWD_NULL code used to.
24656 Include "xalloc.h".
24657 (xgetcwd): Do not return NULL when memory is exhausted; instead,
24660 2001-09-03 Paul Eggert <eggert@twinsun.com>
24662 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
24663 sys/param.h, as pathmax.h includes them.
24665 2001-09-03 Paul Eggert <eggert@twinsun.com>
24667 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
24668 (jm_PREREQ_XGETCWD): New macro.
24670 * m4/getcwd.m4: New file.
24672 2001-09-03 Paul Eggert <eggert@twinsun.com>
24674 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
24675 like the HAVE_GETCWD_NULL code.
24676 Include pathmax.h if not HAVE_GETCWD.
24677 Do not include xalloc.h.
24678 (INITIAL_BUFFER_SIZE): New symbol.
24679 Do not use xmalloc / xrealloc, since the caller is responsible for
24680 handling errors. Preserve errno around `free' during failure.
24681 Do not overrun buffer when using getwd.
24683 2001-09-03 Paul Eggert <eggert@twinsun.com>
24685 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
24686 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
24689 2001-09-03 Paul Eggert <eggert@twinsun.com>
24691 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
24692 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
24693 spotted by Jim Meyering.
24695 2001-09-03 Jim Meyering <meyering@lucent.com>
24697 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
24700 2001-09-02 Jim Meyering <meyering@lucent.com>
24702 * lib/error.c: Update from GNU libc.
24704 2001-09-01 Jim Meyering <meyering@lucent.com>
24706 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
24709 2001-09-01 Jim Meyering <meyering@lucent.com>
24711 * lib/xreadlink.c: New file.
24712 * lib/xreadlink.h: New file.
24713 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
24716 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
24717 doesn't conflict with sparc Solaris 7's definition in
24718 /usr/include/sys/int_types.h.
24720 * lib/exclude.c: Use `""', not `<>' to #include non-system header
24722 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
24723 and strncasecmp as r-values. Unixware didn't have declarations.
24725 2001-08-31 Paul Eggert <eggert@twinsun.com>
24727 * lib/xstrtol.h: Add copyright notice.
24728 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
24729 LONGINT_INVALID_SUFFIX_CHAR.
24731 2001-08-31 Paul Eggert <eggert@twinsun.com>
24733 * lib/xstrtol.c (strtoimax): New decl.
24735 2001-08-31 Paul Eggert <eggert@twinsun.com>
24737 * lib/xgetcwd.c: Don't include pathmax.h.
24738 Include stdlib.h and unistd.h if available.
24740 (xmalloc, xstrdup, free): Remove decls.
24741 (xgetcwd): Don't assume sizes fit in unsigned.
24742 Check for overflow when computing sizes.
24743 Simplify reallocation code.
24745 2001-08-31 Paul Eggert <eggert@twinsun.com>
24747 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
24748 a directory's st_size can have an arbitrary value, so the old
24749 usage could waste an arbitrary amount of memory. All uses
24751 * lib/savedir.h: Update prototype.
24753 2001-08-31 Paul Eggert <eggert@twinsun.com>
24755 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
24757 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
24760 Also, make the following further changes to make this file's
24761 configuration more similar to that of strtol.c:
24762 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
24763 (strtoumax, uintmax_t, strtoull, strtol): Remove.
24764 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
24765 (strtoimax): Renamed from strtoumax. All uses of unsigned values
24766 changed to signed values.
24768 And make the following changes as well:
24769 Fix copyright notice, as 1999 was missing.
24770 (verify): New macro.
24771 (strtoimax): Check sizes at compile-time, not run-time.
24772 Prefer strtol to strtoll if both work.
24773 (main): Remove; it was not that useful and was a pain to maintain.
24775 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
24777 2001-08-31 Jim Meyering <meyering@lucent.com>
24779 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
24780 Use an initial, malloc'd, buffer of length 128 rather than
24781 a statically allocated one of length 1024.
24783 2001-08-30 Paul Eggert <eggert@twinsun.com>
24785 Simplify code, partly by assuming autoconf 2.52 semantics.
24787 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
24789 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
24790 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
24792 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
24793 Move AC_REQUIRE to next-to-top level, to avoid confusion.
24794 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
24795 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
24796 jm_AC_HEADER_INTTYPES_H.
24797 * m4/jm-macros.m4 (jm_MACROS): Likewise.
24799 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
24801 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
24802 Quote first arg of AC_DEFUN.
24803 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
24804 since they are needed to parse the include file even if we need
24805 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
24806 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
24807 but with opposite signedness.
24809 2001-08-30 Paul Eggert <eggert@twinsun.com>
24811 Merge 'exclude' changes from tar 1.13.22.
24812 This fixes one or two unlikely storage allocation overflow bugs,
24813 but doesn't change user-visible behavior otherwise.
24815 2001-08-30 Paul Eggert <eggert@twinsun.com>
24817 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
24818 (jm_PREREQ_EXCLUDE): New macro.
24820 2001-08-30 Paul Eggert <eggert@twinsun.com>
24822 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
24825 2001-08-30 Paul Eggert <eggert@twinsun.com>
24827 * lib/hash.c: Remove '2001' from copyright notice.
24829 2001-08-30 Paul Eggert <eggert@twinsun.com>
24831 * lib/full-write.h: New file.
24832 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
24833 * lib/full-write.c: Correct credits, as cccp.c no longer
24834 exists and anyway it was so heavily changed from the old cccp
24835 code as to be unrecognizable. Include full-write.h.
24836 (full_write) Return size_t, with short writes meaning failure.
24837 All callers changed. This fixes a bug with large buffers
24839 * lib/utime.c: Include full-write.h.
24841 2001-08-30 Paul Eggert <eggert@twinsun.com>
24843 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
24844 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
24845 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
24846 Include if available.
24847 (<xalloc.h>): Include
24848 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
24849 (verify): New macro. Use it to verify that EXCLUDE macros do not
24850 collide with FNM macros.
24851 (struct patopts): New struct.
24852 (struct exclude): Use it, as exclude patterns now come with options.
24853 (new_exclude): Support above changes.
24854 (new_exclude, add_exclude_file):
24855 Initial size must now be a power of two to simplify overflow checking.
24856 (free_exclude, fnmatch_no_wildcards): New function.
24857 (excluded_filename): No longer requires options arg, as the options
24858 are determined by add_exclude. Now returns bool, not int.
24859 (excluded_filename, add_exclude):
24860 Add support for the fancy new exclusion options.
24861 (add_exclude, add_exclude_file): Now takes int options arg.
24862 Check for arithmetic overflow when computing sizes.
24863 (add_exclude_file): xrealloc might modify errno, so don't
24864 realloc until after errno might be used.
24866 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
24868 (free_exclude): New decl.
24869 (add_exclude, add_exclude_file): Now takes int options arg.
24870 (excluded_filename): No longer requires options arg, as the options
24871 are determined by add_exclude. Now returns bool, not int.
24873 2001-08-30 Paul Eggert <eggert@twinsun.com>
24875 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
24877 2001-08-27 Jim Meyering <meyering@lucent.com>
24879 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
24881 * lib/version-etc.c (N_): Remove definition.
24882 Revert most of last change.
24883 Instead, simply don't mark the `Copyright...' string for translation.
24884 Based on advice from Paul Eggert.
24886 * lib/strtoxmax.c: Tweak comment.
24888 2001-08-26 Jim Meyering <meyering@lucent.com>
24890 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
24892 * m4/xstrtoimax.m4: New file.
24893 * m4/xstrtoumax.m4: Add comments explaining why we
24894 AC_REPLACE_FUNCS(strtol).
24896 2001-08-26 Jim Meyering <meyering@lucent.com>
24898 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
24899 of copyright with `%s' so translators don't get an untranslated
24901 (COPYRIGHT_YEAR): Define.
24902 (version_etc): Use fprintf rather than fputs.
24903 Suggestion from Ulrich Drepper.
24905 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
24907 * lib/strtoll.c: New file, from GNU libc.
24908 * lib/xstrtoimax.c: New file.
24910 * lib/xstrtol.h: Add xstrtoimax.
24911 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
24912 * lib/strtoimax.c: New file. Likewise, but first define
24915 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
24917 * lib/strtoxmax.c: ... then renamed to this.
24919 2001-08-18 Paul Eggert <eggert@twinsun.com>
24921 * m4/inttypes.m4: Add AC_PREREQ(2.13).
24922 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
24923 (jm_AC_TYPE_INTMAX_T): New macro.
24924 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
24926 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
24928 * m4/longlong.m4: Renamed from ulonglong.m4.
24929 * m4/inttypes.m4: Renamed from inttypes_h.m4.
24930 * m4/uintmax_t.m4: Removed.
24932 2001-08-13 Paul Eggert <eggert@twinsun.com>
24934 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
24935 Port to Solaris 8, where 'sed' requires a space after the 'r'
24936 command, and where sh dislikes "$/". Clean up the spacing a bit.
24937 Redirect output to $tmp just once.
24939 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
24941 * lib/addext.c (<errno.h>): Include.
24942 (errno): Declare if not defined.
24943 (addext): Work correctly when pathconf returns -1 and leaves
24944 errno alone because there is no limit. Also, work even if
24945 pathconf returns a value greater than SIZE_MAX.
24947 2001-08-12 Jim Meyering <meyering@lucent.com>
24949 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
24950 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
24951 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
24952 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
24953 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
24954 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
24955 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
24956 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
24957 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
24958 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
24959 utime.m4, utimes.m4, xstrtoumax.m4:
24960 Quote the first argument in each use of AC_DEFUN.
24962 2001-08-12 Jim Meyering <meyering@lucent.com>
24964 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
24965 Simply `return getcwd (NULL, 0);'.
24966 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
24967 Use 1300 as initial value for length, not PATH_MAX.
24969 * lib/pathmax.h: Clean up cpp syntax.
24971 2001-08-12 Jim Meyering <meyering@lucent.com>
24973 * lib/gettimeofday.c: New file.
24974 * lib/gtod.h: New file.
24975 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
24977 2001-08-05 Jim Meyering <meyering@lucent.com>
24979 * m4/jm-macros.m4: Require autoconf-2.52.
24981 2001-08-04 Jim Meyering <meyering@lucent.com>
24983 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
24984 stmt, to get in sync with glibc.
24986 2001-08-03 Paul Eggert <eggert@twinsun.com>
24988 The following changes are from gettext 0.10.39 as maintained by
24991 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
24992 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
24993 with inverted sense. All uses changed.
24995 * lib/mbswidth.c: Don't include <limits.h>.
24996 Include <stdlib.h> and <string.h> unconditionally.
24997 (iswcntrl, mbsinit, ISCNTRL): New macros.
24998 (mbsnwidth): Use K&R style function declarations.
24999 Don't bother checking for MB_LEN_MAX == 1, since the compiler
25000 can optimize it when MB_CUR_MAX == 1.
25001 The width of control characters is zero, not 1.
25003 2001-08-03 Paul Eggert <eggert@twinsun.com>
25005 The following changes are from gettext 0.10.39 as maintained by
25006 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
25008 * m4/codeset.m4: Upgrade to serial AM1.
25009 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
25010 all uses changed. Quote first arg of AC_DEFUN.
25011 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
25013 * m4/iconv.m4: Upgrade to serial AM2.
25014 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
25015 Add --with-libconv-prefix.
25016 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
25017 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
25018 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
25019 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
25020 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
25022 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
25023 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
25024 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
25025 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
25026 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
25027 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
25028 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25029 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
25030 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
25032 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
25035 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
25036 not the default value.
25038 2001-06-25 Bruno Haible <haible@clisp.cons.org>
25039 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
25040 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
25041 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
25042 Also check for iswcntrl, used for wcwidth fallback.
25043 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
25046 2001-08-03 Jim Meyering <meyering@lucent.com>
25048 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
25049 as it was in the original. Reported by Paul Eggert.
25051 2001-07-16 Jim Meyering <meyering@lucent.com>
25053 * m4/gettimeofday.m4: New file.
25054 Prompted by a report from Bernhard Baehr.
25056 2001-07-15 Jim Meyering <meyering@lucent.com>
25058 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
25059 stuff. Now it's in ../Makefile.cfg.
25061 2001-07-15 Jim Meyering <meyering@lucent.com>
25063 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
25064 (BUILT_SOURCES): Add unlocked-io.h.
25065 (io_functions): Define.
25066 (unlocked-io.h): New rule.
25067 (DISTCLEANFILES): Add unlocked-io.h.
25068 (all-local): Depend on unlocked-io.h, to ensure it is created.
25070 * lib/unlocked-io.hin: New file
25072 * lib/regex.c: Update from glibc.
25074 2001-07-05 Jim Meyering <meyering@lucent.com>
25076 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
25078 (libfetish_a_SOURCES): Put all .h files here instead.
25079 Remove a thus-exposed (better checks in automake) duplicate and
25080 two unnecessary .h files.
25082 2001-07-04 Jim Meyering <meyering@lucent.com>
25084 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
25085 that generates jm-glibc-io.m4 so that it doesn't trigger any make
25088 2001-07-02 Jim Meyering <meyering@lucent.com>
25090 The following changes were prompted by suggestions from Bruno Haible.
25092 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
25094 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
25095 definition of EXTRA_DIST.
25096 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
25097 ensure that the generated file is created/updated whenever the list
25098 of $(unlocked_functions) is changed.
25099 (jm-glibc-io.m4): New rule.
25100 (unlocked-io.h): New rule -- currently unused.
25102 2001-06-24 Jim Meyering <meyering@lucent.com>
25104 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
25105 unmatched right bracket, rather than kludging it with an extra,
25106 falsely-matching quote in a comment. Patch by Akim Demaille.
25108 2001-06-11 Jim Meyering <meyering@lucent.com>
25110 * lib/regex.c: Update from GNU libc.
25112 2001-05-27 Jim Meyering <meyering@lucent.com>
25114 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
25115 Check for ut_type in struct utmp.
25117 2001-05-27 Jim Meyering <meyering@lucent.com>
25119 * lib/readutmp.h (UT_TYPE): Define.
25121 2001-05-24 Jim Meyering <meyering@lucent.com>
25123 * lib/argmatch.c: Include "quote.h".
25124 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
25125 quote function. Reported by Göran Uddeborg.
25127 2001-05-22 Jim Meyering <meyering@lucent.com>
25129 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
25130 now that we use the package-supplied version unconditionally.
25131 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
25133 2001-05-21 Jim Meyering <meyering@lucent.com>
25135 * m4/regex.m4: Change a couple backticks to single quotes to avoid
25136 shell syntax errors.
25138 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
25140 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
25142 2001-05-20 Paul Eggert <eggert@twinsun.com>
25144 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
25145 Don't bother to check library strftime, since
25146 we'll be using our own my_strftime function anyway.
25147 Define my_strftime instead of strftime.
25149 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
25151 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
25152 which is not yet declared.
25154 2001-05-15 Jim Meyering <meyering@lucent.com>
25156 * m4/regex.m4: Use proper quoting so brackets appear in the test
25158 Reported by, and with help from, Bruno Haible.
25160 2001-05-13 Jim Meyering <meyering@lucent.com>
25162 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
25165 2001-05-11 Paul Eggert <eggert@twinsun.com>
25167 dirname code cleanup. base_name now behaves more compatibly
25168 with POSIX basename when given file names that have trailing
25169 slashes, and similarly for dir_name. Add new primitives
25170 base_len and dir_len. Put the directory-name-related decls
25173 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
25174 * lib/backupfile.c (base_name): Likewise.
25175 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
25176 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
25177 * lib/makepath.c (strip_trailing_slashes): Likewise.
25178 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
25179 ISSLASH): Likewise.
25180 * lib/rename.c (strip_trailing_slashes): Likewise.
25181 * lib/same.c (base_name): Likewise.
25182 * lib/stripslash.c (ISSLASH): Likewise.
25184 * lib/addext.c: Include <dirname.h> after size_t is defined.
25185 * lib/backupfile.c: Likewise.
25187 * lib/addext.c (addext): Use base_len to trim redundant
25188 trailing slashes instead of doing it ourselves.
25189 But do not trim the last slash if it is not redundant.
25191 * lib/backupfile.c (find_backup_file_name,
25192 max_backup_version): Use base_len instead of rolling it ourselves.
25193 Handle the case of "" and (on DOS) "C:" correctly.
25195 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
25196 needed. Include <string.h>, <dirname.h>.
25197 (base_name): Allow file names ending in slashes, other than names
25198 that are all slashes. In this case, return the basename followed
25199 by the slashes. This is more general, and can be used in places
25200 where the original base_name purposely had an assertion failure.
25201 (base_len): New function.
25203 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
25204 Do not include <assert.h>; no longer needed.
25206 (memrchr): Remove decl.
25207 (dir_name_r): Remove.
25208 (dir_len): Renamed from dirlen. All callers changed.
25209 Rewrite in terms of base_name, for simplicity and consistency.
25210 (dir_name): Never return NULL. All callers changed.
25211 Do not include <stdlib.h> in test program; no longer needed.
25212 return 0; is fine for test program.
25214 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
25216 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
25218 * lib/path-concat.c (path_concat): Use base_len to compute
25219 base length, not strlen; this means we cannot rely on memcpy
25222 * lib/same.c (STREQ): Remove.
25223 (same_name): Handle the case where the basename ends in trailing '/'.
25225 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
25226 a slash was stripped. Do not strip the last slash after a
25227 file system prefix.
25229 2001-05-11 Paul Eggert <eggert@twinsun.com>
25231 * lib/Makefile.am (libfetish_a_SOURCES):
25232 Add strftime.c, since we now compile it on all hosts.
25234 * lib/strftime.c (my_strftime):
25235 Define to nstrftime if emacs, but only if my_strftime is not defined.
25236 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
25237 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
25238 Add one more extra argument: a nanoseconds value.
25241 (my_strftime function): Add %N format.
25242 (emacs_strftimeu): Renamed from emacs_strftime,
25243 with extra ut argument.
25245 2001-05-09 Paul Eggert <eggert@twinsun.com>
25247 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
25249 2001-04-21 Jim Meyering <meyering@lucent.com>
25251 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
25254 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
25256 * m4/ftruncate.m4: Check for chsize.
25257 Link with ftruncate.o unconditionally if ftruncate is missing.
25258 This was required when cross-compiling to i586-mingw32msvc.
25260 2001-04-08 Jim Meyering <meyering@lucent.com>
25262 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
25263 recomputed; that's necessary when the offset spans a DST transition.
25264 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
25266 2001-04-02 Jim Meyering <meyering@lucent.com>
25268 * lib/regex.h, regex.c: Update from GNU libc.
25270 2001-03-24 Jim Meyering <meyering@lucent.com>
25272 * m4/jm-macros.m4: Require autoconf-2.49d.
25274 2001-03-20 Bruno Haible <haible@clisp.cons.org>
25276 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
25278 2001-03-19 Paul Eggert <eggert@twinsun.com>
25280 * lib/version-etc.c (version_etc_copyright): Update to 2001.
25282 2001-03-17 Jim Meyering <meyering@lucent.com>
25284 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
25285 now that the version in autoconf is equivalent.
25286 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
25288 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
25289 Suggestion from Akim Demaille.
25291 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
25292 (jm_PREREQ_TEMPNAME): New function.
25294 2001-03-16 Paul Eggert <eggert@twinsun.com>
25296 * lib/tempname.c (uint64_t): Define to uintmax_t if
25297 not defined, and if UINT64_MAX is not defined.
25298 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
25299 Reported by John David Anglin.
25301 2001-03-15 Bruno Haible <haible@clisp.cons.org>
25303 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
25304 resolve alias if codeset is empty.
25305 * lib/config.charset (BeOS): Use wildcard syntax.
25307 2001-03-13 Jim Meyering <meyering@lucent.com>
25309 * lib/path-concat.c (path_concat)
25310 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
25311 concatenating e.g., `C:' and `foo'.
25314 2001-03-06 Bruno Haible <haible@clisp.cons.org>
25316 * lib/localcharset.c (locale_charset): Don't use
25317 setlocale(LC_CTYPE,NULL). Don't return NULL.
25318 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
25320 2001-03-06 Bruno Haible <haible@clisp.cons.org>
25322 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
25323 support for DOS/DJGPP.
25325 2001-03-01 Paul Eggert <eggert@twinsun.com>
25327 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
25328 lacks mkstemp. Compile our own tempname.c if we compile our own
25329 mkstemp.c, as mkstemp relies on tempname.
25331 2001-03-01 Jim Meyering <meyering@lucent.com>
25333 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
25334 AH_VERBATIM really does output its argument verbatim.
25336 2001-02-28 Paul Eggert <eggert@twinsun.com>
25338 * lib/Makefile.am (libfetish_a_SOURCES):
25339 Add dup-safer.c, fopen-safer.c.
25340 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
25342 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
25343 * lib/unistd-safer.h: New files.
25345 2001-02-25 Paul Eggert <eggert@twinsun.com>
25347 The mkstemp replacement is taken from glibc 2.2.2, with some
25348 portability fixes for use outside glibc, as follows:
25350 * lib/tempname.c (struct_stat64): New macro.
25351 (direxists, __gen_tempname): Use it.
25352 This avoids a portability problem with Solaris 8.
25354 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
25355 (<stddef.h>, <stdint.h>, <string.h>):
25356 Include only if STDC_HEADERS || _LIBC.
25357 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
25358 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
25359 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
25360 (__set_errno): Define this macro if <errno.h> doesn't.
25361 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
25362 Define these macros if <stdio.h> doesn't.
25363 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
25364 Define these macros if <sys/stat.h>
25365 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
25366 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
25367 __xstat64): Define if not _LIBC.
25368 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
25369 (__gen_tempname): Invoke gettimeofday only if
25370 HAVE_GETTIMEOFDAY || _LIBC;
25371 otherwise, fall back on plain "time".
25372 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
25374 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
25376 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
25378 2001-02-18 Paul Eggert <eggert@twinsun.com>
25380 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
25382 2001-02-17 Paul Eggert <eggert@twinsun.com>
25384 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
25385 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
25386 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
25387 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
25389 2001-02-17 Paul Eggert <eggert@twinsun.com>
25391 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
25392 Remove workaround macros for hosts that have mbrtowc but not
25393 mbstate_t, as we now insist on proper declarations for both
25394 before using mbrtowc.
25396 2001-02-17 Jim Meyering <meyering@lucent.com>
25398 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
25399 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
25400 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
25403 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
25404 rather than AC_CACHE_VAL.
25406 2001-02-17 Jim Meyering <meyering@lucent.com>
25408 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
25409 around included file name.
25411 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
25413 * lib/strftime.c: Update from GNU libc (the only changes were to
25416 2001-02-17 Jim Meyering <meyering@lucent.com>
25418 * lib/regex.c: Update from libc.
25420 2001-02-17 Bruno Haible <haible@clisp.cons.org>
25422 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
25425 2001-02-16 Paul Eggert <eggert@twinsun.com>
25427 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
25428 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
25429 Reported by Mark Hounschell via Paul Eggert.
25431 2001-02-07 Jim Meyering <meyering@lucent.com>
25433 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
25435 2001-02-05 Jim Meyering <meyering@lucent.com>
25437 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
25438 it includes the patch required for `large file' support with at least
25439 HP-UX's 10.20 /bin/cc.
25441 2001-02-03 Jim Meyering <meyering@lucent.com>
25443 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
25444 AS_IF, now that it works once again (mysteriously).
25445 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
25447 2001-01-30 Jim Meyering <meyering@lucent.com>
25449 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
25450 * m4/chown.m4: Rename conftestchown to conftest.chown.
25451 * m4/rename.m4: s/conftestdir/conftest.d1/ and
25452 s/conftestdir2/conftest.d2/.
25453 * m4/utimes.m4: s/conftestdata/conftest.data/
25454 Inspired by Pavel Roskin's change in autoconf.
25456 2001-01-30 Bruno Haible <haible@clisp.cons.org>
25458 * lib/config.charset: Update for FreeBSD 4.2.
25460 2001-01-27 Jim Meyering <meyering@lucent.com>
25462 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
25464 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
25466 2001-01-26 Jim Meyering <meyering@lucent.com>
25468 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
25469 quotearg.c includes it.
25471 2001-01-26 Jim Meyering <meyering@lucent.com>
25473 * lib/quotearg.c: Include stddef.h.
25474 * lib/quote.c: Include stddef.h.
25475 Reported by Axel Kittenberger.
25477 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
25478 line in double quotes so that it evokes a better diagnostic.
25479 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
25480 Reported by Axel Kittenberger.
25482 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
25484 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
25485 as if it was a `charset'.
25487 2001-01-21 Bruno Haible <haible@clisp.cons.org>
25489 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
25492 2001-01-21 Bruno Haible <haible@clisp.cons.org>
25494 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
25495 to avoid a warning. Add back 'const' to inptr.
25497 2001-01-20 Jim Meyering <meyering@lucent.com>
25499 Be sure that headers are checked before used in code compiled
25500 for the type checks.
25501 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
25502 In place of that, invoke jm_CHECK_ALL_TYPES.
25503 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
25504 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
25505 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
25506 The check for ssize_t was mistakenly run before the test for unistd.h.
25508 The configure-time check for stdbool.h was missing.
25509 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
25510 (jm_PREREQ_HASH): New function.
25512 2001-01-17 Jim Meyering <meyering@lucent.com>
25514 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
25515 for autoconf-2.49c.
25516 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
25518 2001-01-16 Jim Meyering <meyering@lucent.com>
25520 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
25523 2001-01-14 Jim Meyering <meyering@lucent.com>
25525 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
25526 foo and bar. Create conftestdir/ in the script, not in the C code.
25527 Remove directories in the script, not in the C code.
25528 Remove conftestdir{,2} before trying to create the directory.
25529 Make the entire configure script fail if the mkdir fails.
25531 2001-01-14 Jim Meyering <meyering@lucent.com>
25533 * lib/rename.c: New file. From Volker Borchert.
25534 Include stdlib.h, string.h or strings.h, and xalloc.h.
25535 Use strip_trailing_slashes rather than open-coding it.
25537 2001-01-03 Paul Eggert <eggert@twinsun.com>
25539 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
25541 2001-01-03 Jim Meyering <meyering@lucent.com>
25543 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
25544 of local `inptr' to avoid warning with some system declarations of
25547 2001-01-02 Volker Borchert <bt@teknon.de>
25549 * m4/rename.m4: New file.
25550 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
25552 2001-01-01 Jim Meyering <meyering@lucent.com>
25554 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
25555 even on systems with utmpx.h. It's necessary for the declaration of
25556 utmp's ut_user member. Reported by Andreas Jaeger.
25558 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
25559 available. They are required for the declarations of getgrgid and
25561 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
25562 Reported by Andreas Jaeger.
25564 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
25566 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
25567 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
25568 so `make install' also works in VPATH builds.
25570 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
25572 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
25573 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
25574 can be used in subdirectories.
25576 2000-12-29 Paul Eggert <eggert@twinsun.com>
25578 * lib/modechange.c: Do not assume that mode_t uses the
25579 traditional octal encoding. E.g. "chmod 1 FOO" should set
25580 the other-execute bit of FOO even if S_IXOTH != 1.
25582 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
25583 WOTH, XOTH, ALLM): New macros.
25584 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
25585 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
25587 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
25588 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
25590 No need to use uintmax_t; unsigned long is long enough.
25591 Don't bother to get suffix since we don't use it.
25593 2000-12-26 Jim Meyering <meyering@lucent.com>
25595 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
25596 better with autoheader.
25598 2000-12-24 Jim Meyering <meyering@lucent.com>
25600 * lib/hash.c (is_prime): Return explicit boolean values.
25601 (hash_get_first): Return NULL to appease Irix5.6's 89.
25602 Reported by Nelson Beebe.
25604 2000-12-19 Bruno Haible <haible@clisp.cons.org>
25606 * lib/localcharset.c (locale_charset): Add support for Win32.
25608 2000-12-18 Paul Eggert <eggert@twinsun.com>
25610 * lib/physmem.h, lib/physmem.c: New files.
25612 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
25613 (noinst_HEADERS): Add physmem.h.
25615 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
25616 't' for compatibility with Solaris 8 sort.
25618 2000-12-18 Bruno Haible <haible@clisp.cons.org>
25620 * lib/config.charset: Add support for BeOS.
25622 2000-12-17 Jim Meyering <meyering@lucent.com>
25624 * m4/dos.m4 (jm_AC_DOS): New file and macro.
25625 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
25627 2000-12-16 Jim Meyering <meyering@lucent.com>
25629 This bug had a serious impact on chown: `chown N:M FILE' (for integer
25630 N and M) would have treated it like `chown N:N FILE'.
25632 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
25634 2000-12-16 Jim Meyering <meyering@lucent.com>
25636 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
25637 SHELLS_FILE to a file name that's useful on djgpp systems.
25639 (ADDITIONAL_DEFAULT_SHELLS): Define.
25640 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
25641 Based mostly on a patch from Prashant TR.
25643 2000-12-16 Bruno Haible <haible@clisp.cons.org>
25645 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
25646 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
25647 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
25649 2000-12-08 Andreas Schwab <schwab@suse.de>
25651 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
25652 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
25654 2000-12-07 Jim Meyering <meyering@lucent.com>
25656 * lib/stripslash.c (ISSLASH): Define.
25657 (strip_trailing_slashes): Use ISSLASH rather than comparing against
25661 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
25662 (dir_name_r): Declare this function as static.
25663 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
25664 manifest itself on a name containing a mix of slashes and
25666 Make this function work with names starting with a DOS-style
25667 drive letter and colon prefix.
25668 (dir_name): Append `.' if necessary.
25669 Based mostly on patches from Prashant TR and Eli Zaretskii.
25671 * lib/dirname.h (dir_name_r): Remove prototype.
25673 2000-12-06 Paul Eggert <eggert@twinsun.com>
25675 * m4/off_t-format.m4: Remove this file.
25676 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
25678 2000-12-06 Jim Meyering <meyering@lucent.com>
25680 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
25681 replacement strtoull, we may well need the replacement strtoul, too.
25682 Check for declarations of strtoul and strtoull.
25683 Check for strtol. Mainly as a cue to cause automake to include
25684 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
25685 Check for limits.h -- strtol.c needs it.
25687 2000-12-05 Jim Meyering <meyering@lucent.com>
25689 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
25691 2000-12-04 Jim Meyering <meyering@lucent.com>
25693 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
25694 Also include memory.h, stdlib.h, unistd.h if appropriate.
25695 Reported by Andreas Jaeger (conflicting declaration of malloc).
25697 2000-12-02 Jim Meyering <meyering@lucent.com>
25699 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
25700 * m4/jm-macros.m4 (jm_MACROS): require it.
25702 2000-12-02 Jim Meyering <meyering@lucent.com>
25704 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
25706 2000-12-01 Paul Eggert <eggert@twinsun.com>
25708 * lib/memrchr.c: Include <config.h> before any system include file.
25710 2000-11-30 Jim Meyering <meyering@lucent.com>
25712 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
25714 2000-11-30 Jim Meyering <meyering@lucent.com>
25716 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
25718 2000-11-29 Paul Eggert <eggert@twinsun.com>
25720 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
25722 2000-11-26 Jim Meyering <meyering@lucent.com>
25724 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
25726 2000-11-22 Paul Eggert <eggert@twinsun.com>
25728 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
25729 size of (size_t) -1; it's not portable.
25731 2000-11-17 Jim Meyering <meyering@lucent.com>
25733 * lib/strstr.c: Update from GNU libc.
25735 2000-11-17 Akim Demaille <akim@epita.fr>
25737 * lib/obstack.h: Formatting changes.
25738 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
25739 prevent type checking.
25740 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
25741 cast the value to (void *): assigning a `foo *' to a `void *'
25743 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
25745 2000-11-16 Jim Meyering <meyering@lucent.com>
25747 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
25749 2000-11-11 Jim Meyering <meyering@lucent.com>
25751 * lib/error.c: Add a couple #includes, merging from GNU libc version.
25753 2000-11-10 Jim Meyering <meyering@lucent.com>
25755 * lib/obstack.h: Update from GNU libc.
25756 * lib/obstack.c: Likewise.
25758 2000-11-08 Bruno Haible <haible@clisp.cons.org>
25760 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
25762 2000-11-06 Paul Eggert <eggert@twinsun.com>
25764 * lib/getusershell.c (setusershell): Use rewind rather than
25765 fseek/fseeko, to avoid configuration hassles with fseeko.
25766 Don't bother opening SHELLS_FILE if shellstream is NULL;
25767 it's not necessary.
25769 2000-11-05 Jim Meyering <meyering@lucent.com>
25771 * lib/makepath.h (make_dir): Declare.
25772 * lib/makepath.c (make_dir): Remove `static' attribute.
25775 2000-11-04 Jim Meyering <meyering@lucent.com>
25777 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
25779 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
25781 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
25782 last one in a bucket, advance to the next bucket.
25784 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
25786 * lib/fnmatch.c: Do not comment out all the code if we are using
25787 the GNU C library, because in some cases we are replacing buggy
25788 code in the GNU C library itself.
25790 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
25792 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
25793 (regex_compile): Catch bogus \(\1\).
25795 2000-10-30 Paul Eggert <eggert@twinsun.com>
25797 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
25798 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
25799 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
25801 2000-10-30 Paul Eggert <eggert@twinsun.com>
25803 * lib/error.h, getline.h, modechange.h:
25804 Remove "2000" from Copyright line, as the file hasn't been
25805 changed this year other than in the copyright notice.
25807 * lib/xalloc.h: Add "2000" to Copyright line, as this file
25808 was changed this year.
25810 2000-10-29 Jim Meyering <meyering@lucent.com>
25812 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
25814 * m4/ls-mntd-fs.m4: Likewise
25816 2000-10-29 Jim Meyering <meyering@lucent.com>
25818 * lib/xstat.in: Fix grammar in comment.
25820 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
25822 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
25823 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
25824 doesn't define __restrict_arr.
25826 2000-10-28 Jim Meyering <meyering@lucent.com>
25828 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
25829 (jm_PREREQ_MEMCHR): New function.
25831 2000-10-28 Jim Meyering <meyering@lucent.com>
25833 * lib/memchr.c: Update from libc.
25834 Adjust for portability:
25835 [HAVE_STDLIB_H]: Include stdlib.h.
25836 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
25837 Undef __memchr, too.
25838 [!weak_alias]: Define __memchr to memchr.
25840 * lib/regex.c: Update from libc.
25841 * lib/regex.h: Likewise.
25842 * lib/getopt1.c: Likewise.
25843 * lib/memcmp.c: Likewise.
25845 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
25846 Avoid using fseek, when possible -- it's broken by design.
25847 Patch by Ulrich Drepper.
25849 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
25851 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
25852 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
25853 Giving in to popular pressure to shut up the compiler with casts.
25855 2000-10-26 Jim Meyering <meyering@lucent.com>
25857 * lib/strftime.c: Update from libc.
25859 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
25861 * regex.c: More `unsigned char' -> `re_char' changes.
25862 Also change several `int' into `re_wchar_t'.
25863 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
25864 (PUSH_FAILURE_POINTER): Don't cast any more.
25865 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
25866 We want GCC to complain, since this piece of code makes
25867 re_match non-reentrant, which *should* be fixed.
25868 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
25869 (EXTEND_BUFFER): Use RETALLOC.
25870 (SET_LIST_BIT): Don't cast.
25871 (re_wchar_t): New type.
25872 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
25873 that those two functions will always properly return.
25874 (IMMEDIATE_QUIT_CHECK): Cast to void.
25875 (analyse_first): Use recursion rather than an explicit stack.
25876 (re_compile_fastmap): Can't fail anymore.
25877 (re_search_2): Don't check re_compile_fastmap for failure.
25878 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
25879 Now also sets the new value (passed in a new argument).
25880 (re_match_2_internal): Use it.
25881 Also, use a new var `reg' of type size_t when looping through regs
25882 rather than reuse the inappropriate `mcnt'.
25884 2000-10-25 Jim Meyering <meyering@lucent.com>
25886 * lib/obstack.c: Update from libc.
25888 2000-10-24 Kenichi Handa <handa@etl.go.jp>
25890 * regex.c (regex_compile): Change the way of handling a range from
25891 a char less than 256 to a char not less than 256.
25893 2000-10-24 Andrew Innes <andrewi@gnu.org>
25895 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
25897 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
25898 so that re_search functions only quit when callers expect them to.
25900 2000-10-23 Jim Meyering <meyering@lucent.com>
25902 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
25903 wrong. That set_locale call must not have any side effects.
25906 2000-10-22 Jim Meyering <meyering@lucent.com>
25908 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
25909 [CYCLIC]: Remove now-unused definition.
25911 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
25912 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
25913 Suggestion from Ulrich Drepper.
25915 2000-10-21 Jim Meyering <meyering@lucent.com>
25917 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
25918 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
25919 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
25921 2000-10-21 Jim Meyering <meyering@lucent.com>
25923 * lib/dirname.c (memrchr): Declare if necessary.
25924 (dir_name): Remove the restriction that there be no
25925 trailing slashes. Now, this code skips past them, effectively
25927 [TEST_DIRNAME] (main): New unit tests.
25929 * lib/memrchr.c: New file from GNU libc.
25930 Undef __memrchr, too.
25931 [!weak_alias]: Define __memrchr to memrchr.
25932 Guard weak_alias use with `#ifdef weak_alias'.
25934 2000-10-21 Jim Meyering <meyering@lucent.com>
25936 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
25937 (dir_name): Use dir_name_r.
25938 * lib/dirname.h (dir_name_r): Declare it.
25940 2000-10-17 Jim Meyering <meyering@lucent.com>
25942 * lib/quote.h (PARAMS): Define and use.
25943 Reported by Akim Demaille.
25945 * lib/getopt.c: Update from libc.
25947 2000-10-16 Jim Meyering <meyering@lucent.com>
25949 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
25953 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
25955 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
25957 2000-09-25 Jim Meyering <meyering@lucent.com>
25959 * lib/md5.h (rol): Define (from GnuPG).
25961 * lib/sha.c: Give credit (GnuPG) where due.
25962 (M): Use rol rather than open-coding it.
25963 Add a FIXME comment.
25965 2000-09-21 Jim Meyering <meyering@lucent.com>
25967 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
25968 Reported by Michael Stone.
25970 2000-09-20 Jim Meyering <meyering@lucent.com>
25972 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
25973 (noinst_HEADERS): Add sha.h.
25974 Based on code from Scott G. Miller and from GnuPG.
25976 2000-09-18 Jim Meyering <meyering@lucent.com>
25978 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
25979 LIBS. Otherwise, everyone ends up linking with -lelf for some
25981 Reported by Mike Stone.
25983 2000-09-15 Jim Meyering <meyering@lucent.com>
25985 * lib/regex.c: Update from libc.
25987 2000-09-10 Jim Meyering <meyering@lucent.com>
25989 * lib/getopt.c (_getopt_internal): Update from glibc.
25991 2000-09-09 Jim Meyering <meyering@lucent.com>
25993 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
25994 think it should be used as a general replacement for isascii.
25995 * lib/fnmatch.c: Likewise.
25996 * lib/mbswidth.c: Likewise
25997 * lib/regex.c: Likewise.
26000 * lib/userspec.c: Include sys/param.h and limits.h.
26002 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
26003 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
26004 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
26005 UID, GID. Check range.
26007 2000-09-06 Jim Meyering <meyering@lucent.com>
26009 * lib/getopt.c (_getopt_internal): Update from glibc.
26011 2000-08-30 Jim Meyering <meyering@lucent.com>
26013 * lib/strftime.c: Merge in changes from GNU libc.
26015 2000-08-26 Jim Meyering <meyering@lucent.com>
26017 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
26018 * m4/fpending.m4: New file.
26020 2000-08-26 Jim Meyering <meyering@lucent.com>
26022 * lib/closeout.c: Include "__fpending.h".
26023 (close_stdout_status): Return right away if there's nothing to flush.
26025 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
26026 * lib/__fpending.c: New file.
26027 * lib/__fpending.h: New file.
26029 2000-08-20 Jim Meyering <meyering@lucent.com>
26031 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
26032 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
26033 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
26035 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
26037 Improve fileutils installation on systems where running
26038 programs (like install) can't be unlinked.
26039 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
26040 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
26042 2000-08-07 Paul Eggert <eggert@twinsun.com>
26044 Standardize on "memory exhausted" instead of "Memory exhausted"
26045 or "virtual memory exhausted".
26046 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
26047 "virtual memory exhausted".
26048 * lib/same.c (same_name): Invoke xalloc_die instead of printing
26050 * lib/userspec.c (parse_user_spec): Likewise.
26051 * lib/bumpalloc.h: comment fix
26052 * lib/same.c, userspec.c: Include xalloc.h.
26054 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
26055 not char *const and pointing to a constant array.
26056 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
26057 (xrealloc): Comment fix.
26059 * lib/userspec.c (parse_user_spec):
26060 Don't translate a message until just before returning,
26061 to avoid unnecessary translation.
26063 2000-08-07 Jim Meyering <meyering@lucent.com>
26065 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
26066 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
26067 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
26068 getgroups.c, gethostname.c, getopt.h, group-member.c,
26069 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
26070 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
26071 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
26072 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
26073 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
26074 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
26075 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
26076 yesno.c: Back out Copyright date changes for each file with no change
26077 this year. This eases coordination with other programs using the same
26078 source code modules. From Paul Eggert.
26080 2000-08-06 Paul Eggert <eggert@twinsun.com>
26082 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
26083 not char, for compatibility with glibc 2.1.3 strftime.c.
26085 2000-08-03 Greg McGary <greg@mcgary.org>
26087 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
26088 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
26089 (EXTEND_BUFFER): Use them.
26091 2000-08-01 Jim Meyering <meyering@lucent.com>
26093 * lib/dirname.c (ISSLASH): Define.
26094 (BACKSLASH_IS_PATH_SEPARATOR): Define.
26095 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
26096 both `\' and `/' may be use as path separators.
26097 Based on a patch from Prashant TR.
26099 2000-07-31 Paul Eggert <eggert@twinsun.com>
26101 * lib/quotearg.c (quotearg_n_options): Don't make the initial
26102 slot vector a constant, since it might get modified.
26104 2000-07-31 Jim Meyering <meyering@lucent.com>
26106 * lib/xmalloc.c: Use `virtual memory exhausted', not
26107 `Memory exhausted'.
26108 * lib/obstack.c (print_and_abort): Likewise.
26110 2000-07-30 Paul Eggert <eggert@twinsun.com>
26112 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
26113 buffer, so that the caller can always quote one small
26114 component of a "memory exhausted" message in slot 0.
26115 From a suggestion by Jim Meyering.
26117 2000-07-30 Jim Meyering <meyering@lucent.com>
26119 * lib/makepath.c (make_path): Quote the other instance, too.
26121 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
26122 (STATIC_BUF_SIZE): Define.
26123 (quotearg_n_options): Use only statically allocated storage when
26124 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
26125 than STATIC_BUF_SIZE.
26127 2000-07-29 Jim Meyering <meyering@lucent.com>
26129 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
26130 * lib/dirname.c (dir_name): Likewise.
26132 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
26135 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
26136 (dir_name): Assert that there are no trailing slashes.
26138 2000-07-29 Bruno Haible <haible@clisp.cons.org>
26140 * lib/mbswidth.h (mbswidth): Add a flags argument.
26141 (mbswidth): New declaration.
26142 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
26143 * lib/mbswidth.c (mbswidth): Add a flags argument.
26144 (mbsnwidth): New function.
26146 2000-07-24 Jim Meyering <meyering@lucent.com>
26148 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
26150 2000-07-23 Paul Eggert <eggert@twinsun.com>
26152 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
26154 2000-07-23 Paul Eggert <eggert@twinsun.com>
26156 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
26157 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
26158 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
26159 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
26160 invoke multibyte primitives.
26162 2000-07-23 Paul Eggert <eggert@twinsun.com>
26165 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
26166 so that mbstate_t is always defined.
26168 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
26169 be 1 in at least one GCC installation, and this configuration
26170 error is likely to be common. Ignoring MB_LEN_MAX hurts
26171 performance on hosts that have mbrtowc but have only unibyte
26172 locales, but I assume these hosts are rare.
26174 2000-07-23 Paul Eggert <eggert@twinsun.com>
26176 * lib/mbswidth.c (_XOPEN_SOURCE):
26177 Don't define; this causes problems on Solaris 7.
26178 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
26180 2000-07-23 Jim Meyering <meyering@lucent.com>
26182 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
26183 too: getgrgid, getpwuid, getuid.
26185 2000-07-23 Jim Meyering <meyering@lucent.com>
26187 * lib/basename.c (base_name): Add an assertion.
26189 2000-07-23 Bruno Haible <haible@clisp.cons.org>
26191 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
26192 shadow its mbsinit function.
26194 2000-07-17 Bruno Haible <haible@clisp.cons.org>
26196 * lib/mbswidth.h: New file.
26197 * lib/mbswidth.c: New file.
26198 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
26199 (noinst_HEADERS): Add mbswidth.h.
26201 2000-07-17 Bruno Haible <haible@clisp.cons.org>
26203 * lib/config.charset: Add support for FreeBSD. Improve support for
26206 2000-07-16 Bruno Haible <haible@clisp.cons.org>
26208 * m4/mbswidth.m4: New file.
26209 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
26211 2000-07-15 Jim Meyering <meyering@lucent.com>
26213 * lib/makepath.c: Include quote.h.
26214 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
26215 corresponding argument in a `quote (...)' call.
26216 Give better diagnostics.
26218 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
26219 (noinst_HEADERS): Add quote.h.
26221 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
26222 from tar's src/misc.c.
26223 * lib/quote.h: New file. Prototypes for same.
26225 2000-07-14 Paul Eggert <eggert@twinsun.com>
26227 From a suggestion by Bruno Haible.
26228 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
26229 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
26230 to decide whether to define the BeOS workaround macro;
26231 this adjusts to the change to AC_MBSTATE_T.
26233 2000-07-14 Jim Meyering <meyering@lucent.com>
26235 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
26236 jm_AC_TYPE_UINTMAX_T.
26238 2000-07-13 Paul Eggert <eggert@twinsun.com>
26240 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
26242 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
26243 quotearg_buffer_restyled): Add support for
26244 clocale_quoting_style. Undo previous change to
26245 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
26246 and "{RIGHT QUOTATION MARK}" msgids.
26248 2000-07-10 Paul Eggert <eggert@twinsun.com>
26250 From a suggestion by Bruno Haible.
26251 * m4/mbstate_t.m4 (AC_MBSTATE_T):
26252 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
26253 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
26254 and mbstate_t, to a single-part test that simply defines mbstate_t.
26255 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
26256 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
26258 2000-07-10 Jim Meyering <meyering@lucent.com>
26260 * m4/strerror_r.m4: Mirror the correction made in autoconf.
26262 * m4/gnu-source.m4: Output to confdefs.h directly.
26263 Suggestion from Akim Demaille.
26265 2000-07-09 Paul Eggert <eggert@twinsun.com>
26267 The old behavior of quoting `like this' doesn't look good with
26268 newer, ISO-style fonts. See:
26269 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
26271 Instead, quote "like this" by default. Let the translator
26272 tailor the locale-specific quoting behavior by providing
26273 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
26275 * lib/quotearg.c (N_): New macro.
26276 (gettext_default): New function.
26277 (quotearg_buffer_restyled): Use
26278 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
26279 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
26281 2000-07-09 Jim Meyering <meyering@lucent.com>
26283 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
26284 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
26286 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
26287 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
26289 2000-07-09 Jim Meyering <meyering@lucent.com>
26291 * lib/Most files: Update copyright dates to include 2000.
26293 2000-07-08 Jim Meyering <meyering@lucent.com>
26295 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
26297 (xgethostname): Remove now-unnecessary #ifdef.
26298 Move declaration of `err' into loop where it's used.
26300 2000-07-05 Paul Eggert <eggert@twinsun.com>
26301 and Bruno Haible <haible@clisp.cons.org>
26303 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
26304 only if the test for an object-type mbstate_t fails. This
26305 prevents us from mistakenly reporting that mbstate_t is a
26306 system object type after we "#define mbstate_t int" to work
26309 2000-07-05 Paul Eggert <eggert@twinsun.com>
26310 and Bruno Haible <haible@clisp.cons.org>
26312 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
26314 2000-07-05 Bruno Haible <haible@clisp.cons.org>
26316 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
26318 Include <ctype.h> for use of isalpha.
26320 2000-07-05 Bruno Haible <haible@clisp.cons.org>
26322 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
26323 by allocating a larger buffer. Test the gethostname return value for
26324 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
26325 returns an error and ENAMETOOLONG isn't defined.
26327 2000-07-05 Bruno Haible <haible@clisp.cons.org>
26329 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
26332 2000-07-04 Jim Meyering <meyering@lucent.com>
26334 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
26335 of the deprecated AC_CHECKING.
26337 2000-07-04 Jim Meyering <meyering@lucent.com>
26339 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
26340 Reported by Bruno Haible.
26342 2000-07-04 Jim Meyering <meyering@lucent.com>
26344 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
26345 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
26348 2000-07-03 Paul Eggert <eggert@twinsun.com>
26350 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
26351 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
26353 2000-07-03 Paul Eggert <eggert@twinsun.com>
26354 and Bruno Haible <haible@clisp.cons.org>
26356 * lib/quotearg.c (mbrtowc):
26357 Assign to *pwc, and return 1 only if result is nonzero.
26358 (iswprint): Use ISPRINT when substituting our own mbrtowc.
26360 2000-07-03 Jim Meyering <meyering@lucent.com>
26362 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
26364 2000-07-03 Jim Meyering <meyering@lucent.com>
26366 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
26367 This is necessary to get a definition of e.g., UTMP_FILE on
26371 2000-07-02 Jim Meyering <meyering@lucent.com>
26373 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
26375 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
26376 AC_LIBOBJ(function_name).
26377 * m4/chown.m4: Likewise.
26378 * m4/fnmatch.m4: Likewise.
26379 * m4/ftruncate.m4: Likewise.
26380 * m4/getgroups.m4: Likewise.
26381 * m4/getline.m4: Likewise.
26382 * m4/group-member.m4: Likewise.
26383 * m4/jm-macros.m4: Likewise.
26384 * m4/lstat.m4: Likewise.
26385 * m4/malloc.m4: Likewise.
26386 * m4/memcmp.m4: Likewise.
26387 * m4/nanosleep.m4: Likewise.
26388 * m4/putenv.m4: Likewise.
26389 * m4/realloc.m4: Likewise.
26390 * m4/regex.m4: Likewise.
26391 * m4/stat.m4: Likewise.
26392 * m4/strftime.m4: Likewise.
26394 2000-07-02 Jim Meyering <meyering@lucent.com>
26396 * lib/quotearg.c (mbstate_t): Don't define here.
26398 2000-07-02 Jim Meyering <meyering@lucent.com>
26400 * lib/nanosleep.c (SIGCONT): Define if not already defined.
26402 2000-07-01 Jim Meyering <meyering@lucent.com>
26404 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
26406 2000-07-01 Jim Meyering <meyering@lucent.com>
26408 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
26411 2000-07-01 Bruno Haible <haible@clisp.cons.org>
26413 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
26414 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
26416 2000-07-01 Bruno Haible <haible@clisp.cons.org>
26418 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
26419 per change in ../m4/ls-mntd-fs.m4.
26420 (read_filesystem_list): Ignore symbolic links.
26422 2000-06-29 Jim Meyering <meyering@lucent.com>
26424 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
26425 for declaration of strcmp.
26427 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
26429 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
26430 Avoid warning by casting result to `char *' to remove `const'.
26432 2000-06-28 Jim Meyering <meyering@lucent.com>
26434 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
26435 included by quotearg.c, for which we perform this test. From
26438 2000-06-27 Bruno Haible <haible@clisp.cons.org>
26440 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
26441 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
26442 <utmpx.h> exists, put readutmp.o into LIBOBJS.
26444 2000-06-27 Bruno Haible <haible@clisp.cons.org>
26446 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
26448 2000-06-26 Paul Eggert <eggert@twinsun.com>
26450 savedir now sets errno on failure and invokes xmalloc to get memory.
26451 Fix a couple of other minor bugs while we're at it.
26453 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
26454 (NAMLEN): Remove macro.
26455 (malloc, realloc): Remove decls.
26456 (stpcpy): Likewise.
26457 ("xalloc.h"): Include.
26458 (NAME_SIZE_DEFAULT): New macro.
26459 (savedir): Use xmalloc / xrealloc to allocate memory.
26460 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
26461 Skip "" directory entries.
26462 Use strlen to calculate directory entry length, since the old method
26463 is rarely used these days and isn't worth supporting.
26464 Don't use a pointer after freeing it.
26465 Check for integer overflow when calculating allocation size.
26466 Use memcpy to copy entries, instead of stpcpy.
26467 Set errno properly when returning NULL.
26468 Check for readdir error.
26470 2000-06-26 Jim Meyering <meyering@lucent.com>
26472 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
26474 2000-06-25 Jim Meyering <meyering@lucent.com>
26476 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
26477 Linux header bug when _XOPEN_SOURCE is defined to 500.
26479 2000-06-25 Bruno Haible <haible@clisp.cons.org>
26481 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
26484 2000-06-25 Bruno Haible <haible@clisp.cons.org>
26486 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
26488 Don't include <stdlib.h>. Don't declare malloc, realloc.
26490 2000-06-24 Jim Meyering <meyering@lucent.com>
26492 * m4/strerror_r.m4: Revive this file -- to try out an experimental
26493 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
26494 for which strerror does return char*, but which lacks a conveniently
26495 accessible declaration of the function. If the compile-test says
26496 strerror_r doesn't work, then resort to a `run'-test that works on
26497 BeOS and segfaults on DEC Unix.
26499 2000-06-24 Jim Meyering <meyering@lucent.com>
26501 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
26503 2000-06-23 Paul Eggert <eggert@twinsun.com>
26505 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
26506 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
26508 2000-06-23 Paul Eggert <eggert@twinsun.com>
26510 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
26511 (mbrtowc, mbstate_t): Define substitutes if
26512 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
26513 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
26514 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
26516 2000-06-23 Jim Meyering <meyering@lucent.com>
26518 * m4/afs.m4: Add missing AC_MSG_RESULT.
26519 Reported by Bruno Haible.
26521 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
26522 Suggestion from Bruno Haible.
26524 2000-06-23 Jim Meyering <meyering@lucent.com>
26526 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
26528 2000-06-21 Jim Meyering <meyering@lucent.com>
26530 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
26532 2000-06-21 Jim Meyering <meyering@lucent.com>
26534 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
26535 (noinst_HEADERS): Add getstr.h.
26537 * lib/getline.c (getstr): Move into a separate file.
26538 * lib/getstr.c (getstr): New file, extracted from getline.c, with
26539 the following changes: new parameter, delim2; both delim[12]
26540 parameters have type `int', not `char'. The latter would lose
26541 with 8-bit delimiters.
26542 * lib/getstr.h: New file.
26544 2000-06-21 Bruno Haible <haible@clisp.cons.org>
26546 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
26547 than 1024, return a memory chunk of least possible size, instead
26548 of size PATH_MAX + 2. In the loop, increment the size proportionally.
26549 Use free/xmalloc instead of xrealloc to avoid copying for very long
26552 2000-06-21 Bruno Haible <haible@clisp.cons.org>
26554 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
26557 2000-06-21 Bruno Haible <haible@clisp.cons.org>
26559 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
26560 address, not strdup. Include <stdlib.h> and don't declare free().
26562 2000-06-19 Jim Meyering <meyering@lucent.com>
26564 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
26566 2000-06-18 Jim Meyering <meyering@lucent.com>
26568 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
26570 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
26571 `checking whether...' message to be consistent with that of the
26574 2000-06-18 Jim Meyering <meyering@lucent.com>
26576 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
26577 Besides, these days every porting target provides a mkdir function.
26579 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
26580 needed. (this snippet comes from src/system.h).
26582 2000-06-16 Bruno Haible <haible@clisp.cons.org>
26584 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
26586 2000-06-15 Paul Eggert <eggert@twinsun.com>
26588 * lib/human.c (adjust_value): New function.
26589 (human_readable_inexact): Apply rounding style even when
26590 printing approximate values.
26592 2000-06-14 Paul Eggert <eggert@twinsun.com>
26594 * lib/human.c (human_readable_inexact): Allow an input block
26595 size that is not a multiple of the output block size, and vice versa.
26596 Reported by Piergiorgio Sartor.
26598 2000-06-14 Paul Eggert <eggert@twinsun.com>
26600 * lib/getdate.y (get_date): Apply relative times after time
26601 zone indicator, not before. Reported by Todd A. Jacobs.
26603 2000-06-13 Jim Meyering <meyering@lucent.com>
26605 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
26607 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
26609 2000-06-12 Paul Eggert <eggert@twinsun.com>
26611 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
26613 2000-06-12 Jim Meyering <meyering@lucent.com>
26615 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
26616 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
26618 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
26619 the optional argument, `lib'.
26621 2000-06-08 Jim Meyering <meyering@lucent.com>
26623 * m4/largefile.m4: Remove file (now that it's part of autoconf).
26625 2000-06-04 Paul Eggert <eggert@twinsun.com>
26627 Rewrite largefile configuration so that we don't need to run
26628 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
26629 AC_CANONICAL_HOST in configure.in -- jmm]
26631 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
26632 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
26633 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
26634 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
26635 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
26637 Instead of inspecting the output of getconf, try to compile the
26638 test program without and with the macro definition.
26639 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
26640 for getconf. Instead, check for the needed flags by compiling
26643 2000-06-04 Paul Eggert <eggert@twinsun.com>
26645 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
26647 2000-06-04 Jim Meyering <meyering@lucent.com>
26649 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
26650 SunOS 4.1.4 for which gid_t is an unsigned type.
26652 2000-06-03 Jim Meyering <meyering@lucent.com>
26654 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
26655 now that autoconf requires that.
26657 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
26658 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
26659 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
26661 2000-06-03 Jim Meyering <meyering@lucent.com>
26663 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
26665 2000-06-03 Bruno Haible <haible@clisp.cons.org>
26667 * m4/glibc21.m4: New file.
26668 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
26670 2000-06-03 Bruno Haible <haible@clisp.cons.org>
26672 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
26673 newer, don't install charset.alias.
26674 * lib/config.charset: Change the Linux/glibc rules so they become empty
26675 on glibc-2.1 or newer.
26677 2000-06-02 Jim Meyering <meyering@lucent.com>
26679 * lib/mountlist.c: Back out last change. Instead, do this...
26680 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
26681 me_dummy member using the same `ignore'-testing code.
26682 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
26686 2000-05-29 Jim Meyering <meyering@lucent.com>
26688 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
26689 mounts with the `ignore' attribute. Based on a patch from
26692 2000-05-28 Jim Meyering <meyering@lucent.com>
26694 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
26695 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
26696 * m4/stat.m4: Likewise.
26697 * m4/lstat.m4: Likewise.
26698 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
26700 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
26701 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
26703 2000-05-26 Jim Meyering <meyering@lucent.com>
26705 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
26707 2000-05-24 Jim Meyering <meyering@lucent.com>
26709 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
26710 autoconf requires that.
26711 * m4/lib-check.m4: Likewise.
26712 * m4/jm-macros.m4: Likewise.
26713 * m4/strftime.m4: Likewise.
26715 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
26716 AC_CHECK_DECLS, now that autoconf requires that.
26718 2000-05-22 Jim Meyering <meyering@lucent.com>
26720 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
26721 * m4/lstat.m4: Likewise.
26723 2000-05-22 Jim Meyering <meyering@lucent.com>
26725 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
26727 2000-05-20 Jim Meyering <meyering@lucent.com>
26729 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
26730 (jm_PREREQ): Use it.
26732 2000-05-18 Jim Meyering <meyering@lucent.com>
26734 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
26735 back, too, since it may have been modified by allocate_entry.
26736 (hash_delete): Rewrite to use neither the assignment operator
26737 nor the comma operator in an if-expression.
26739 2000-05-15 Paul Eggert <eggert@twinsun.com>
26742 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
26743 Remove; no longer needed.
26744 "quotearg.h": Add include.
26745 (file_name): Do not bother to explicitly initialize to NULL; it's less
26746 efficient on some hosts.
26747 (close_stdout_status): Remove test as to whether stdout was already
26748 closed; it breaks for the case "echo x | sort >&-".
26749 Quote file name colons.
26750 Do not assume that _("write error") lacks format strings.
26752 2000-05-15 Jim Meyering <meyering@lucent.com>
26754 * lib/version-etc.c (version_etc_copyright): Update the copyright
26755 string used in all --version output.
26757 2000-05-14 Jim Meyering <meyering@lucent.com>
26759 * lib/closeout.c (close_stdout_set_file_name): New function.
26760 (close_stdout_status): Use new file-scoped global.
26761 Return right away if fstat says the stdout file descriptor is invalid.
26762 * lib/closeout.h (close_stdout_set_file_name): Declare.
26764 2000-05-10 Jim Meyering <meyering@lucent.com>
26766 * lib/closeout.c [default_exit_status]: New file-scoped variable.
26767 (close_stdout_set_status): New function.
26768 * lib/closeout.h (close_stdout_set_status): Declare.
26770 2000-05-09 Jim Meyering <meyering@lucent.com>
26772 * m4/gettext.m4: Rename this...
26773 * m4/libintl.m4: ...to this.
26775 2000-05-08 Jim Meyering <meyering@lucent.com>
26777 * lib/long-options.c: Don't include closeout.h.
26778 (parse_long_options): Don't call close_stdout for --version.
26780 2000-05-06 Paul Eggert <eggert@twinsun.com>
26782 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
26783 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
26784 2.1.3 bug. This avoids a clash when files like regex.c define
26787 2000-05-06 Jim Meyering <meyering@lucent.com>
26789 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
26790 (AC_REPLACE_FUNCS): Add strnlen.
26792 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
26793 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
26795 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
26796 AC_SEARCH_LIBS call for nanosleep.
26797 (LIB_NANOSLEEP): Set and AC_SUBST.
26799 2000-05-06 Jim Meyering <meyering@lucent.com>
26801 * lib/strnlen.c: Undefine __strnlen and strnlen.
26802 [!weak_alias]: Define __strnlen to strnlen.
26804 * lib/atexit.c: New file, from libiberty.
26806 2000-05-06 Jim Meyering <meyering@lucent.com>
26808 * lib/closeout.c (close_stdout_status): Also check for errors on the
26811 2000-05-05 Jim Meyering <meyering@lucent.com>
26813 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
26814 AC_SEARCH_LIBS call for clock_gettime.
26815 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
26817 * m4/search-libs.m4: Update from autoconf.
26819 su doesn't work on Solaris 2.6.
26820 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
26821 <shadow.h>. Reported by Dragos Harabor.
26823 2000-05-05 Bruno Haible <haible@clisp.cons.org>
26825 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
26826 memcpy instead of xmalloc, xrealloc, path_concat.
26827 (locale_charset): Treat empty environment variables as absent.
26828 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
26830 2000-05-04 Jim Meyering <meyering@lucent.com>
26832 * lib/getopt.c: Update from glibc.
26833 * lib/obstack.c: Likewise.
26834 * lib/obstack.h: Likewise.
26835 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
26838 * lib/regex.h: Likewise.
26839 * lib/strndup.c: Likewise.
26840 * lib/strnlen.c: New file, from glibc.
26842 2000-05-03 Jim Meyering <meyering@lucent.com>
26844 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
26846 2000-05-02 Paul Eggert <eggert@twinsun.com>
26848 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
26849 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
26850 compile-time test, rather than inspecting host and OS, to
26851 decide whether to define _LARGEFILE_SOURCE.
26853 2000-05-01 Jim Meyering <meyering@lucent.com>
26855 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
26857 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
26858 Based on a patch from Bruno Haible.
26860 2000-05-01 Jim Meyering <meyering@lucent.com>
26862 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
26864 2000-04-29 Jim Meyering <meyering@lucent.com>
26866 * lib/path-concat.c: Declare strdup only if it's not defined.
26867 * lib/canon-host.c: Likewise.
26869 2000-04-28 Jim Meyering <meyering@lucent.com>
26871 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
26872 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
26873 is included first, then limits.h is included by locale.h by libintl.h.
26874 From John David Anglin.
26876 2000-04-25 Jim Meyering <meyering@lucent.com>
26878 * lib/makepath.c (S_IRWXUGO): Define.
26879 (make_path): Always perform explicit chmod if MODE specifies any
26880 of the `special' permission bits. Prompted by a bug report against
26881 install from Mate Wierdl and Joost van Baal.
26883 2000-04-18 Jim Meyering <meyering@lucent.com>
26885 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
26886 (jm_PREREQ): Use it.
26888 2000-04-18 Jim Meyering <meyering@lucent.com>
26890 * lib/README: New file.
26892 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
26893 getpagesize. For BeOS. Based on a patch from Bruno Haible.
26895 2000-04-17 Jim Meyering <meyering@lucent.com>
26898 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
26899 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
26900 Suggestion from Akim Demaille.
26902 2000-04-17 Jim Meyering <meyering@lucent.com>
26904 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
26905 the definition of it to rpl_strftime also defined-away the system's
26908 2000-04-15 Jim Meyering <meyering@lucent.com>
26910 Use `C' to denote so-called `contiguous' files, the same way
26912 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
26913 (ftypelet): Use S_ISCTG.
26914 From Michael Deutschmann.
26916 2000-04-14 Jim Meyering <meyering@lucent.com>
26918 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
26919 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
26922 2000-04-14 Jim Meyering <meyering@lucent.com>
26924 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
26926 2000-04-13 Jim Meyering <meyering@lucent.com>
26928 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
26929 AH_VERBATIM to insert required #ifndef into config.h.in.
26930 Suggestion from Akim Demaille.
26932 2000-04-12 Jim Meyering <meyering@lucent.com>
26934 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
26935 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
26936 Christian Krackowizer.
26938 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
26939 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
26940 (AC_SYS_LARGEFILE): Require.
26941 (AM_C_PROTOTYPES): Require.
26943 2000-04-08 Jim Meyering <meyering@lucent.com>
26945 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
26946 names don't conflict. Reported by Eli Zaretskii.
26948 2000-04-07 Jim Meyering <meyering@lucent.com>
26950 * lib/putenv.c: Move inclusion of errno.h so it follows that of
26951 sys/types.h, to work around system header problems on AIX 3.2.5.
26954 2000-04-07 Bruno Haible <haible@clisp.cons.org>
26956 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
26957 bug. Deal with the different error behavior of Irix iconv.
26959 2000-04-05 Paul Eggert <eggert@twinsun.com>
26961 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
26962 IRIX if the installer said otherwise.
26964 2000-04-05 Jim Meyering <meyering@lucent.com>
26966 Portability tweaks required for ultrix4.3.
26967 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
26968 (jm_CHECK_DECLS): Add getutent to the list of functions.
26969 (_jm_DECL_HEADERS): Add utmpx.h.
26970 From John David Anglin.
26972 * m4/strftime.m4: Back out the 2000-04-02 change.
26973 Instead of that change, simply undefine putenv in the test program.
26975 2000-04-05 Jim Meyering <meyering@lucent.com>
26977 Portability tweaks required for ultrix4.3.
26978 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
26980 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
26981 * lib/canon-host.c: Declare strdup.
26982 * lib/path-concat.c: Likewise.
26983 From John David Anglin.
26985 2000-04-04 Jim Meyering <meyering@lucent.com>
26987 Be more DOS 8.3-friendly.
26988 * lib/ref-add.sin: Renamed from ref-add.sed.in.
26989 * lib/ref-del.sin: Renamed from ref-del.sed.in.
26990 * lib/Makefile.am: Reflect renaming.
26991 Reported by Eli Zaretskii.
26993 Use a temporary file name that won't clash with `charset.alias'
26994 in the DOS 8.3 name space.
26995 * lib/Makefile.am (charset_tmp): Define.
26996 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
26997 (uninstall-local): Likewise.
26998 Reported by Eli Zaretskii.
27000 2000-04-03 Jim Meyering <meyering@lucent.com>
27002 * m4/gettext.m4: Fix typo in comment.
27004 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
27005 textutils/configure.in). Suggestion from Paul Eggert.
27006 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
27008 2000-04-02 Paul Eggert <eggert@twinsun.com>
27010 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
27011 variable in the shell rather than using putenv, which isn't
27012 portable. This avoids the configure-time inter-test dependency
27013 on the potentially-renamed putenv function.
27015 2000-03-30 Paul Eggert <eggert@twinsun.com>
27017 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
27018 before checking struct stat.st_blksize, so that
27019 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
27021 2000-03-29 Paul Eggert <eggert@twinsun.com>
27023 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
27024 since strftime.c uses HAVE_STRFTIME to decide whether to use
27025 the underlying strftime.
27027 2000-03-29 Paul Eggert <eggert@twinsun.com>
27029 * lib/time/strftime.c (my_strftime): Make sure we call the system
27030 strftime, not ourselves, when invoking the underlying strftime.
27032 2000-03-24 Jim Meyering <meyering@lucent.com>
27034 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
27035 (charset_alias): Define.
27036 (install-exec-local): Factor out common code.
27037 (uninstall-local): Split lines longer than 80.
27038 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
27039 (SUFFIXES): Define.
27040 (.sed.in.sed): New rule. Don't redirect directly to $@.
27041 (CLEANFILES): Add ref-add.sed and ref-del.sed.
27043 2000-03-19 Bruno Haible <haible@clisp.cons.org>
27045 * lib/config.charset: Output a line containing "Packages using this
27047 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
27048 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
27049 ref-del.sed): New rules.
27051 2000-03-17 Jim Meyering <meyering@lucent.com>
27053 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
27054 Otherwise, include <strings.h>
27056 2000-03-17 Bruno Haible <haible@clisp.cons.org>
27058 * lib/unicodeio.c (utf8_wctomb): New function.
27059 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
27060 format instead of in UCS-4 with platform dependent endianness.
27062 2000-03-10 Jim Meyering <meyering@lucent.com>
27064 * m4/lib-check.m4: Look for getspnam in -lgen, too.
27065 From Marco Franzen.
27067 2000-03-07 Paul Eggert <eggert@twinsun.com>
27069 * lib/savedir.c (savedir): Work even if directory size is
27070 negative; this can happen with some screwy NFS configurations.
27072 2000-03-06 Jim Meyering <meyering@lucent.com>
27074 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
27075 if it's NULL (because we ran out of memory). From Bruno Haible.
27077 2000-03-05 Jim Meyering <meyering@lucent.com>
27079 * lib/localcharset.c ("path-concat.h"): Include.
27080 (get_charset_aliases): Use path_concat instead of ANSI string
27083 * lib/unicodeio.h (PARAMS): Define.
27084 Use it to guard prototype.
27086 2000-03-04 Jim Meyering <meyering@lucent.com>
27088 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
27089 for lib/localcharset.c.
27091 2000-03-04 Jim Meyering <meyering@lucent.com>
27093 * lib/Makefile.am (install-exec-local): Create $(libdir) before
27094 installing into it.
27095 (uninstall-local): Uncomment this rule so `make distcheck' works
27098 * lib/unicodeio.c (<errno.h>): Include it.
27099 (errno): Declare if not defined.
27101 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
27103 * lib/config.charset: New version, incorporating remarks from a linux
27104 i18n mailing list. From Bruno Haible.
27106 2000-03-04 Bruno Haible <haible@clisp.cons.org>
27108 * m4/codeset.m4: New file.
27109 * m4/iconv.m4: New file.
27110 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
27112 2000-03-03 Jim Meyering <meyering@lucent.com>
27114 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
27116 2000-03-02 Jim Meyering <meyering@lucent.com>
27118 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
27119 the messages come out on separate lines.
27121 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
27122 rather than jm_CHECK_DECLARATIONS.
27123 * m4/decl.m4: Remove now-unused file.
27125 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
27128 2000-03-02 Jim Meyering <meyering@lucent.com>
27130 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
27132 2000-03-01 Jim Meyering <meyering@lucent.com>
27134 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
27135 * lib/unicodeio.c: Likewise.
27137 2000-03-01 Bruno Haible <haible@clisp.cons.org>
27139 * lib/config.charset: New file.
27140 * lib/localcharset.c: New file.
27141 * lib/unicodeio.h, lib/unicodeio.c: New files.
27142 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
27143 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
27144 (noinst_HEADERS): Add unicodeio.h.
27145 (all-local, install-exec-local, charset.alias): New targets.
27147 2000-02-28 Paul Eggert <eggert@twinsun.com>
27149 * lib/quotearg.c (ALERT_CHAR): New macro.
27150 (quotearg_buffer_restyled): Use it.
27152 2000-02-27 Jim Meyering <meyering@lucent.com>
27154 * m4/check-decl.m4: Add getenv to the list.
27156 2000-02-27 Jim Meyering <meyering@lucent.com>
27158 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
27159 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
27161 * lib/backupfile.c: Guard inclusion of stdlib.h with
27162 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
27163 Declare malloc if needed.
27165 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
27166 `#ifndef HAVE_DECL..'
27167 now that autoconf always defines the HAVE_DECL_ symbols.
27168 * lib/human.c: Likewise.
27169 * lib/same.c: Likewise.
27170 * lib/strtoumax.c: Likewise.
27172 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
27173 declaration check was not run.
27174 * lib/hash.c: Likewise.
27175 * lib/human.c: Likewise.
27176 * lib/same.c: Likewise.
27177 * lib/strtoumax.c: Likewise.
27179 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
27180 `.', then first look up the entire `.'-containing string as a login
27183 2000-02-23 Jim Meyering <meyering@lucent.com>
27185 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
27186 in place of my hack.
27188 2000-02-18 Paul Eggert <eggert@twinsun.com>
27190 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
27191 (textint): New typedef.
27192 (parser_control): Member year changed from int to textint.
27194 (YYSTYPE): Removed; replaced by %union with int and textint members.
27195 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
27196 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
27197 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
27198 (tSNUMBER, tUNUMBER): Now of type <textintval>.
27199 (date, number, to_year): Use width of number in digits, not its value,
27200 to determine whether it's a 2-digit year, or a 2-digit time.
27201 (yylex): Store number of digits of numeric tokens.
27202 Reported by John Kendall.
27204 (parser_control): Changed from struct parser_control to typedef (for
27205 consistency). All uses changed.
27207 (tID): Removed; not used.
27208 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
27210 2000-02-14 Paul Eggert <eggert@twinsun.com>
27212 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
27213 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
27215 2000-02-12 Jim Meyering <meyering@lucent.com>
27217 * lib/userspec.c (ISDIGIT): Define it.
27218 (isdigit): Remove definition.
27219 (is_number): Use ISDIGIT, not isdigit.
27220 <libintl.h>: Include.
27221 (_ and N_): Define.
27222 (parse_user_spec): Mark translatable strings.
27224 2000-02-10 Jim Meyering <meyering@lucent.com>
27226 With these changes, nanosleep.[ch] are finally enough like the other
27227 lib/* replacement files to compile on a few more losing systems.
27229 * lib/nanosleep.h: Don't include config.h.
27230 Remove prototype from declaration of nanosleep.
27231 (PARAMS): Remove now-unneeded definition.
27232 * lib/nanosleep.c: #undef nanosleep.
27233 (rpl_nanosleep): Rename from nanosleep.
27235 2000-02-10 Jim Meyering <meyering@lucent.com>
27237 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
27238 gnu_nanosleep to rpl_nanosleep.
27240 2000-02-09 Jim Meyering <meyering@lucent.com>
27242 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
27243 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
27245 2000-02-08 Akim Demaille <akim@epita.fr>
27247 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
27248 `[' and `]' and remove uses of `changequote'.
27249 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
27250 (AC_SYS_LARGEFILE): Likewise.
27251 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27252 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
27254 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
27255 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
27256 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
27257 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
27259 2000-02-05 Jim Meyering <meyering@lucent.com>
27261 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
27262 Remove explicit use of AC_HEADER_TIME. It is required by
27263 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
27264 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
27265 in autoconf whereby the expansion of the latter ended up preceding
27266 the expansion of its prerequisite, AC_HEADER_TIME.
27267 Reported by Volker Borchert.
27269 2000-02-03 Jim Meyering <meyering@lucent.com>
27271 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
27273 2000-02-03 Jim Meyering <meyering@lucent.com>
27275 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
27276 rather than with `#if HAVE_UTMPNAME'.
27278 2000-02-02 Jim Meyering <meyering@lucent.com>
27280 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
27281 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
27282 Reported by Eli Zaretskii.
27284 2000-02-01 Jim Meyering <meyering@lucent.com>
27286 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
27288 2000-01-31 Jim Meyering <meyering@lucent.com>
27290 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
27291 functions. Add the time.h and sys/time.h headers along with the
27292 AC_REQUIRE'ment of AC_HEADER_TIME.
27294 2000-01-31 Jim Meyering <meyering@lucent.com>
27296 * lib/nanosleep.h (nanosleep): Guard declaration with
27297 `#if ! HAVE_DECL_NANOSLEEP'.
27298 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
27299 the declaration in that vendor's sys/timers.h.
27300 Reported by Christian Krackowizer.
27302 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
27303 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
27304 (ISPRINT): Likewise.
27305 Reported by Tom Tromey.
27307 2000-01-30 Jim Meyering <meyering@lucent.com>
27309 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
27311 * m4/prereq.m4 (utmp_includes): Define.
27312 Check for ut_user and ut_name members in both struct utmpx
27315 2000-01-30 Jim Meyering <meyering@lucent.com>
27317 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
27318 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
27319 header files where only utmpx.ut_user is declared.
27321 * lib/readutmp.h (UT_USER): Define.
27323 2000-01-29 Jim Meyering <meyering@lucent.com>
27325 * m4/lib-check.m4: New file containing library-related checks from
27326 fileutils and sh-utils (textutils had none).
27328 2000-01-28 Jim Meyering <meyering@lucent.com>
27330 * m4/perl.m4: Change format of warning message to look more like that
27331 from the missing script. Suggestion from François Pinard.
27333 2000-01-25 Jim Meyering <meyering@lucent.com>
27335 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
27336 well as time.h in the compile check.
27337 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
27338 Fix typo in cross-compiling case: s/yes/no/.
27340 2000-01-23 Jim Meyering <meyering@lucent.com>
27342 * m4/jm-macros.m4: Move df-related tests here from
27343 fileutils/configure.in
27345 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
27346 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
27348 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
27349 s/space/ac_fsusage_space/.
27350 (jm_FILE_SYSTEM_USAGE): Take two parameters.
27352 * m4/ftruncate.m4: New file (derived from part of
27353 fileutils/configure.in).
27354 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
27355 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
27357 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
27358 AC_SUBST these here, rather than just in sh-util/configure.in, so
27359 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
27361 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
27362 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
27363 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
27364 (AC_SUBST(POW_LIBM)): Likewise.
27365 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
27367 2000-01-23 Jim Meyering <meyering@lucent.com>
27369 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
27372 2000-01-22 Jim Meyering <meyering@lucent.com>
27374 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
27376 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
27378 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
27380 (AC_CHECK_HEADERS): Likewise for sh-utils.
27381 (AC_CHECK_HEADERS): Likewise for textutils.
27382 Merge the three lists of headers.
27384 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
27385 from fileutils' configure.in.
27387 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
27388 code. Moved tests into their own function (_jm_DECL_HEADERS) in
27391 * m4/check-decl.m4: Use #if rather than #ifdef.
27392 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
27393 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
27394 (_jm_DECL_HEADERS): Define new function.
27395 (jm_CHECK_DECLARATIONS): Require it.
27397 2000-01-22 Jim Meyering <meyering@lucent.com>
27399 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
27400 [! HAVE_DECL_STRTOULL]: Declare strtoull.
27401 Required for some AIX systems. Reported by Christian Krackowizer.
27402 [TESTING] (main): New function.
27404 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
27405 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
27408 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
27411 * lib/strverscmp.c (ISDIGIT): Define.
27412 (strverscmp): Use ISDIGIT, not isdigit.
27414 2000-01-19 Jim Meyering <meyering@lucent.com>
27416 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
27417 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
27418 defines `struct timespec' in <sys/time.h>
27420 * m4/c-bs-a.m4: Remove uses of changequote altogether.
27421 Thanks to Akim for explaining.
27423 2000-01-17 Paul Eggert <eggert@twinsun.com>
27425 * lib/nanosleep.c (nanosleep):
27426 Don't use SA_INTERRUPT to decide whether to call sigaction, as
27427 POSIX.1 doesn't require SA_INTERRUPT and some systems
27428 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
27429 it's been part of POSIX.1 since day 1 (in 1988).
27431 2000-01-17 Jim Meyering <meyering@lucent.com>
27433 * lib/interlock: Remove unused file. Reported by François Pinard.
27435 2000-01-16 Paul Eggert <eggert@twinsun.com>
27437 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
27438 alert, backslash, formfeed, and vertical tab unnecessarily in
27439 shell quoting style.
27441 2000-01-16 Jim Meyering <meyering@lucent.com>
27443 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
27444 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
27445 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
27446 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
27448 2000-01-16 Jim Meyering <meyering@lucent.com>
27450 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
27451 because the latter didn't work.
27453 2000-01-15 Jim Meyering <meyering@lucent.com>
27455 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
27456 (AC_REPLACE_FUNCS): Add memcpy and memset.
27457 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
27459 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
27461 2000-01-12 Jim Meyering <meyering@lucent.com>
27463 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
27464 (jm_PREREQ): Use it.
27465 (jm_PREREQ_READUTMP): New macro.
27466 (jm_PREREQ): Use it.
27468 2000-01-11 Paul Eggert <eggert@twinsun.com>
27470 Quote multibyte characters correctly.
27471 * m4/c-bs-a.m4: New file.
27472 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
27473 (jm_PREREQ): Use it.
27475 2000-01-11 Paul Eggert <eggert@twinsun.com>
27477 * m4/uintmax_t.m4: Port to autoconf 2.13.
27479 2000-01-08 Jim Meyering <meyering@ascend.com>
27481 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
27482 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
27484 2000-01-04 Jim Meyering <meyering@ascend.com>
27486 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
27487 jm_STRUCT_DIRENT_D_TYPE.
27488 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
27489 jm_STRUCT_DIRENT_D_INO.
27490 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
27492 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
27494 * m4/utime.m4: Likewise.
27496 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
27497 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
27499 2000-01-03 Paul Eggert <eggert@twinsun.com>
27501 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
27502 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
27504 2000-01-02 Jim Meyering <meyering@ascend.com>
27506 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
27507 remember if this is necessary.
27509 1999-12-26 Jim Meyering <meyering@ascend.com>
27511 * m4/jm-macros.m4: Use it here.
27512 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
27514 1999-12-23 Jim Meyering <meyering@ascend.com>
27516 * m4/jm-macros.m4: Check for clock_gettime (moved from
27517 fileutils/configure.in)
27518 Check for gettimeofday.
27520 1999-12-20 Jim Meyering <meyering@ascend.com>
27522 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
27523 autoconf-2.14a-1999-12-20.
27525 1999-12-19 Jim Meyering <meyering@ascend.com>
27527 * m4/lstat-slash.m4: New file.
27528 * m4/jm-macros.m4: Use the new macro:
27529 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
27531 1999-12-07 Jim Meyering <meyering@ascend.com>
27533 * m4/perl.m4: Require that File::Compare be available, too.
27534 Too many systems seem to lack it.
27536 * m4/strftime.m4: Add checks for most of the cpp macros tested in
27537 GNU's strftime.c. Prompted by a patch from Paul Eggert.
27539 1999-11-18 Paul Eggert <eggert@twinsun.com>
27541 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
27542 problem with the QNX 4.25 shell, which doesn't propagate exit
27543 status of failed commands inside shell assignments.
27545 1999-11-17 Jim Meyering <meyering@ascend.com>
27547 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
27549 1999-11-07 Jim Meyering <meyering@ascend.com>
27551 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
27553 1999-11-06 Jim Meyering <meyering@ascend.com>
27555 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
27556 * m4/jm-macros.m4 (jm_MACROS): Use it here.
27558 1999-11-05 Jim Meyering <meyering@ascend.com>
27560 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
27561 configure.in of textutils, fileutils, and sh-utils into this one
27562 (shared between those packages) file.
27563 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
27564 AC_STRUCT_ST_BLKSIZE.
27566 1999-11-03 Jim Meyering <meyering@ascend.com>
27568 * m4/ssize_t.m4: Remove file. No longer needed since the new version
27569 of AC_CHECK_TYPE checks includes unistd.h.
27570 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
27571 Suggestion from Akim Demaille.
27573 1999-10-30 Jim Meyering <meyering@ascend.com>
27575 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
27577 * m4/ls-mntd-fs.m4: Likewise.
27578 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
27579 * m4/jm-winsz1.m4: Likewise.
27581 * m4/const.m4: Remove file, since the fix made it into the experimental
27582 version of autoconf.
27583 * m4/mktime.m4: Likewise.
27585 * m4/check-type.m4: Remove file, now that the latest version of
27586 AC_CHECK_TYPE takes a third arg to specify additional #includes.
27588 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
27589 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
27592 1999-10-04 Jim Meyering <meyering@ascend.com>
27594 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
27596 1999-09-22 Paul Eggert <eggert@twinsun.com>
27598 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
27599 2.95.1 bug with HP-UX 10.20.
27601 1999-09-17 Jim Meyering <meyering@ascend.com>
27603 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
27604 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
27605 due to missing strdup (against sh-utils-2.0).
27607 1999-08-29 Jim Meyering <meyering@ascend.com>
27609 * m4/jm-macros.m4: Require jm_BISON.
27610 * m4/bison.m4: New file.
27612 1999-08-17 Paul Eggert <eggert@twinsun.com>
27614 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
27615 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
27617 1999-08-05 Jim Meyering <meyering@ascend.com>
27619 * m4/getline.m4: Rename test file from conftestdata to conftest.data
27620 to avoid conflicts with `conftest' on 8+3 filesystems.
27621 Suggestion from Eli Zaretskii.
27623 1999-08-04 Jim Meyering <meyering@ascend.com>
27625 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
27626 fileutils and sh-utils (textutils's getline test was inadequate).
27627 (AM_FUNC_GETLINE): Run this test.
27628 (AC_CHECK_FUNCS): Check for getdelim.
27629 Reported by Bob Proulx.
27631 1999-08-02 Jim Meyering <meyering@ascend.com>
27633 * m4/jm-macros.m4: Add a comment.
27635 1999-08-01 Paul Eggert <eggert@twinsun.com>
27637 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
27638 <inttypes.h> defines strtoumax as a macro (and not as a
27641 1999-08-01 Paul Eggert <eggert@twinsun.com>
27643 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
27644 that we can shift, multiply and divide unsigned long long
27645 values; Ultrix cc can't do it.
27647 1999-08-01 Paul Eggert <eggert@twinsun.com>
27649 * m4/mktime.m4: New file, which is a preview of what should appear
27650 in the next public autoconf release.
27652 1999-08-01 Paul Eggert <eggert@twinsun.com>
27654 * m4/lfs.m4: Remove this file.
27655 * m4/largefile.m4: New file. It contains the old contents of
27656 lfs.m4, except that all names with prefix AC_LFS have been
27657 changed to use the prefix AC_SYS_LARGEFILE instead, to be
27658 compatible with future autoconf versions. Also, some minor m4
27659 quoting problems have been fixed.
27661 1999-08-01 Paul Eggert <eggert@twinsun.com>
27663 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
27664 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
27665 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
27666 and simplify the shell code.
27668 1999-08-01 Jim Meyering <meyering@ascend.com>
27670 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
27673 1999-07-20 Jim Meyering <meyering@ascend.com>
27675 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
27677 1999-07-15 Jim Meyering <meyering@ascend.com>
27679 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
27681 1999-05-22 Jim Meyering <meyering@ascend.com>
27683 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
27685 1999-05-20 Jim Meyering <meyering@ascend.com>
27687 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
27688 Add a colon after each `then' in case $4 is empty.
27690 1999-05-16 Jim Meyering <meyering@ascend.com>
27692 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
27694 1999-05-10 Jim Meyering <meyering@ascend.com>
27696 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
27698 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
27701 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
27703 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
27705 1999-05-04 Paul Eggert <eggert@twinsun.com>
27707 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
27708 not CPPFLAGS, so that linking works correctly in IRIX.
27710 1999-04-30 Paul Eggert <eggert@twinsun.com>
27712 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
27714 1999-04-20 Paul Eggert <eggert@twinsun.com>
27716 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
27717 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
27718 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
27719 jm_AC_TYPE_UNSIGNED_LONG_LONG.
27720 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
27722 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
27724 1999-04-20 Jim Meyering <meyering@ascend.com>
27726 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
27727 AC_REPLACE xstroull if necessary. From Paul Eggert.
27728 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
27730 1999-04-18 Jim Meyering <meyering@ascend.com>
27732 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
27733 * m4/jm-macros.m4: Use it.
27735 1999-04-06 Jim Meyering <meyering@ascend.com>
27737 * m4/strftime.m4: Remove test for %f.
27739 1999-03-29 Jim Meyering <meyering@ascend.com>
27741 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
27742 superset of the AC_TYPE_* checks in the textutils, fileutils,
27743 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
27746 1999-03-28 Jim Meyering <meyering@ascend.com>
27748 * m4/jm-macros.m4: Define GNU_PACKAGE here.
27749 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
27750 replaced e.g., in the *.sh files of the sh-utils.
27752 1999-03-20 Jim Meyering <meyering@ascend.com>
27754 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
27755 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
27756 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
27758 1999-03-19 Jim Meyering <meyering@ascend.com>
27760 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
27762 1999-03-12 Jim Meyering <meyering@ascend.com>
27764 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
27766 1999-03-07 Jim Meyering <meyering@ascend.com>
27768 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
27771 1999-02-17 Jim Meyering <meyering@ascend.com>
27773 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
27774 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
27776 1999-02-07 Jim Meyering <meyering@ascend.com>
27778 * m4/group-member.m4: New file -- extracted from sh-utils'
27781 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
27782 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
27784 1999-02-06 Jim Meyering <meyering@ascend.com>
27786 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
27787 * m4/fnmatch.m4: Likewise.
27788 * m4/getgroups.m4: Likewise.
27789 * m4/lstat.m4: Likewise.
27790 * m4/malloc.m4: Likewise.
27791 * m4/putenv.m4: Likewise.
27792 * m4/realloc.m4: Likewise.
27793 * m4/regex.m4: Likewise.
27794 * m4/stat.m4: Likewise.
27795 * m4/strftime.m4: Likewise.
27796 Suggestion from Alain Magloire.
27798 * m4/chown.m4: Use `.$ac_objext', not `.o'.
27799 * m4/fnmatch.m4: Likewise.
27800 * m4/getgroups.m4: Likewise.
27801 * m4/getline.m4: Likewise.
27802 * m4/lstat.m4: Likewise.
27803 * m4/malloc.m4: Likewise.
27804 * m4/memcmp.m4: Likewise.
27805 * m4/putenv.m4: Likewise.
27806 * m4/realloc.m4: Likewise.
27807 * m4/regex.m4: Likewise.
27808 * m4/stat.m4: Likewise.
27809 * m4/strftime.m4: Likewise.
27810 Suggestion from Alain Magloire.
27812 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
27815 * m4/regex.m4: Add a run-time Test for proper operation of
27816 re_compile_pattern.
27818 1999-01-31 Jim Meyering <meyering@ascend.com>
27820 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
27822 1999-01-30 Jim Meyering <meyering@ascend.com>
27824 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
27826 * m4/jm-mktime.m4: Make this a wrapper around the official
27827 AM_FUNC_MKTIME rather than my private copy, now that the official one
27829 * m4/mktime.m4: Remove file.
27831 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
27832 * m4/uptime.m4: Likewise.
27833 * m4/uintmax_t.m4: Likewise.
27835 1999-01-28 Jim Meyering <meyering@ascend.com>
27837 * m4/jm-macros.m4: Use jm_AFS.
27838 * m4/afs.m4: New file (from fileutils' configure.in).
27840 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
27841 * m4/chown.m4: Likewise.
27842 * m4/d-ino.m4: Likewise.
27843 * m4/d-type.m4: Likewise.
27844 * m4/fnmatch.m4: Likewise.
27845 * m4/getgroups.m4: Likewise.
27846 * m4/gettext.m4: Likewise.
27847 * m4/jm-mktime.m4: Likewise.
27848 * m4/jm-winsz2.m4: Likewise.
27849 * m4/lcmessage.m4: Likewise.
27850 * m4/ls-mntd-fs.m4: Likewise.
27851 * m4/malloc.m4: Likewise.
27852 * m4/memcmp.m4: Likewise.
27853 * m4/putenv.m4: Likewise.
27854 * m4/realloc.m4: Likewise.
27855 * m4/st_mtim.m4: Likewise.
27856 * m4/strftime.m4: Likewise.
27858 1999-01-16 Jim Meyering <meyering@ascend.com>
27860 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
27861 (ARGMATCH_DIE_DECL): Define.
27863 1999-01-12 Jim Meyering <meyering@ascend.com>
27865 * m4/Makefile.am.in: Rewrite to avoid using fmt.
27866 Reported by Lars Hecking.
27868 1999-01-10 Jim Meyering <meyering@ascend.com>
27870 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
27872 * m4/inttypes_h.m4: Likewise.
27873 * m4/lstat.m4: Likewise.
27874 * m4/malloc.m4: Likewise.
27875 * m4/readdir.m4: Likewise.
27876 * m4/realloc.m4: Likewise.
27877 * m4/st_dm_mode.m4: Likewise.
27878 * m4/stat.m4: Likewise.
27879 * m4/utimbuf.m4: Likewise.
27880 * m4/utimes.m4: Likewise.
27882 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
27883 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
27884 comments in config.h.in are meaningful.
27886 * m4/jm-macros.m4: Require autoconf-2.13 here.
27888 * m4/regex.m4: By default, don't use the included regex.c on systems
27889 with glibc 2. Suggestion from Uli Drepper.
27891 1999-01-02 Jim Meyering <meyering@ascend.com>
27893 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
27895 1998-12-18 Jim Meyering <meyering@ascend.com>
27897 * m4/Makefile.am.in (Makefile.am): Simplify rule.
27898 Based on a suggestion from Lars Hecking.
27900 1998-11-16 Paul Eggert <eggert@twinsun.com>
27902 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
27904 1998-11-16 Jim Meyering <meyering@ascend.com>
27906 * m4/lfs.m4: Double-quote the `uname...` expression.
27908 1998-11-14 Jim Meyering <meyering@ascend.com>
27910 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
27911 * m4/stat.m4: Likewise.
27913 1998-11-03 Jim Meyering <meyering@ascend.com>
27915 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
27916 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
27918 1998-10-18 Jim Meyering <meyering@ascend.com>
27920 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
27922 1998-10-17 Jim Meyering <meyering@ascend.com>
27924 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
27925 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
27926 calls for those previously hard-coded headers. Instead, take a new
27928 (jm_CHECK_DECLARATIONS): Reflect interface change.
27929 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
27930 (jm_CHECK_DECL_LOCALTIME_R): New macro.
27932 * m4/mktime.m4: Test for spring-forward gap before long-running test.
27934 1998-10-14 Jim Meyering <meyering@ascend.com>
27936 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
27937 instead of "TZ=America/Vancouver". From Paul Eggert.
27939 1998-10-11 Jim Meyering <meyering@ascend.com>
27941 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
27942 This adds a test for a recently added compatibility fix for mktime.c.
27943 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
27945 1998-09-27 Jim Meyering <meyering@ascend.com>
27947 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
27949 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
27950 ../configure.in, including a change from Gordon Matzigkeit to allow
27951 cross-compiling for the Hurd.
27953 * m4/glibc.m4: New file/macro to test for the GNU C Library
27954 versions 1 and 2. From Gordon Matzigkeit.
27957 1998-09-21 Jim Meyering <meyering@ascend.com>
27959 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
27961 1998-08-18 Paul Eggert <eggert@twinsun.com>
27963 Port nanosecond-resolution times to UnixWare 2.1.2 and
27964 pedantic Solaris 2.6.
27966 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
27968 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
27969 Generate name of ns member, instead of just 1 or undef.
27970 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
27972 1998-08-15 Jim Meyering <meyering@ascend.com>
27974 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
27975 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
27976 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
27977 instead of jm_TYPE_SSIZE_T.
27979 1998-08-12 Jim Meyering <meyering@ascend.com>
27981 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
27983 1998-08-02 Jim Meyering <meyering@ascend.com>
27985 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
27986 in acconfig.h manually.
27988 1998-07-31 Paul Eggert <eggert@twinsun.com>
27990 * m4/st_mtim.m4: New file.
27992 1998-07-28 Jim Meyering <meyering@ascend.com>
27994 * m4/utimes.m4: Undef stat.
27996 1998-07-25 Jim Meyering <meyering@ascend.com>
27998 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
27999 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
28001 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
28003 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
28004 uid and gid actually remain unchanged.
28006 1998-07-07 Jim Meyering <meyering@ascend.com>
28008 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
28010 1998-07-04 Jim Meyering <meyering@ascend.com>
28012 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
28013 to prove that this macro can be used in packages without regex.c.
28015 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
28017 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
28020 1998-07-03 Jim Meyering <meyering@ascend.com>
28022 * m4/gettext.m4: Add -lintl if it's found to be necessary.
28024 * m4/gettext.m4: New file -- from gettext-0.10.35.
28025 * m4/lcmessage.m4: Likewise.
28026 * m4/progtest.m4: Likewise.
28028 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
28029 * m4/jm-macros.m4: Require the new macro.
28031 1998-06-29 Jim Meyering <meyering@ascend.com>
28033 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
28034 for the definition of NGROUPS (used in a system header included
28037 1998-06-28 Jim Meyering <meyering@ascend.com>
28039 * m4/ls-mntd-fs.m4: New file.
28040 * m4/fstypename.m4: New file.
28042 * m4/jm-macros.m4: Require the new macro.
28043 * m4/jm-glibc-io.m4: New file.
28045 1998-05-19 Jim Meyering <meyering@ascend.com>
28047 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
28048 * m4/lchown.m4: New file.
28050 * m4/Makefile.am.in: New file.
28051 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
28053 1998-05-14 Jim Meyering <meyering@ascend.com>
28055 * m4/Makefile.am (EXTRA_DIST): Add them.
28056 * m4/jm-macros.m4: New file.
28057 * m4/utimbuf.m4: New file.
28059 1998-05-12 Jim Meyering <meyering@ascend.com>
28061 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
28063 1998-05-11 Jim Meyering <meyering@ascend.com>
28065 * m4/isc-posix.m4: New file.
28067 1998-05-10 Jim Meyering <meyering@ascend.com>
28069 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
28071 1998-05-09 Jim Meyering <meyering@ascend.com>
28073 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
28074 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
28077 * m4/ssize_t.m4: New file.
28078 * m4/mktime.m4: Remove file -- the new automake has this now.
28080 1998-04-26 Jim Meyering <meyering@ascend.com>
28082 * m4/assert.m4: New file.
28083 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
28085 1998-04-05 Jim Meyering <meyering@ascend.com>
28087 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
28088 (jm_PREREQ): Use it here.
28090 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
28092 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
28095 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
28097 * m4/prereq.m4: New file.
28098 * m4/error.m4: New file.
28099 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
28101 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
28103 * m4/getline.m4: Don't set am_cv_func_working_getline before the
28104 cache-check for the same variable -- that defeated the purpose of
28105 the test; the test program was never run. This was a problem only
28106 on systems with losing getline functions -- HP-UX 10.20 is one.
28107 Reported by Bjorn Helgaas.
28109 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
28111 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
28113 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
28115 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
28117 * m4/const.m4: New file. Use an initializer in this declaration
28118 typedef int charset[2]; const charset x;
28119 Reported by Bob Glickstein.
28121 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
28123 * m4/chown.m4: Fix reversed types on -1 args to chown.
28126 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
28128 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
28129 Add lseek and memchr.
28131 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
28132 T.E.Dickey <dickey@clark.net> said that some older preprocessors
28133 have a 20-character limit on names.
28135 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
28137 * m4/inttypes_h.m4: New file.
28138 * m4/uintmax_t.m4: New file.
28139 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
28141 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
28142 Free Software Foundation, Inc.
28143 Copying and distribution of this file, with or without modification,
28144 are permitted provided the copyright notice and this notice are preserved.